I'm capturing my capture card with ffmpeg.
The audio is in TMPGEnc VMW 6 at every position frameaccurate in sync with the video. (thats very impressive by ffmpeg to have such a perfect audio capture. just wow.)
I capture into NVEnc.
Thats what I use:
The audio capture is like said frameaccurate in sync with TMPGEnc VMW 6, BUT:
Code: Select all
ffmpeg -vstats_file "d:\XVideos\Lets Play Unreal\LP-Unreal_Level06_1.txt" -rtbufsize 1024M -f dshow -framerate 60 -thread_queue_size 1024 -probesize 10M -pixel_format bgr24 -i video="Datapath VisionSC-DP2 Video 01":audio="Wave (ASUS Xonar HDAV 1.3 Audio" -vf "vflip" -vcodec h264_nvenc -pix_fmt yuv420p -rc:v vbr -b:v 0 -qmin 1 -qmax 16 -preset hp -acodec pcm_s16le -audio_buffer_size 80 "e:\Lets Play Unreal\LP-Unreal_Level06_1.mkv"
I want to encode the video with ffmpeg as well, because TMPGEnc's Encoding is extremely slow even with NVEnc, but I need to encode it after the capture, because I want to upscale the video a little bit, because it greatly improves videoquality on youtube, because they give more bitrate then.
The problem is: lsmash and ffms2 - both do index the file (and so seem not to read any mkv timecodes, like TMPGEnc apparently does (it uses Intel Media SDK as decoder))
But the indexing loses the audio sync for some frames. If I add the fps number of the video the both readers it is reduced from about ~15 frames difference to 3 to 6, but sometimes again 10 frames of difference. I can move the audio a bit backwards to correct it to a very low difference, but it would be obviously more comfortable if it would simply use the apparently present timecodes of the mkv.
And if the timecodes result into a even FRAMEACCURATE audio sync I obviously get into the mood of wanting to stay with this even more perfect audio sync.
So my question now is: Can your reader read the timecodes of the mkv so that the audio remains its perfect audio sync and not just tmpgenc ?
That would be awesome if so.