Roemer
7th November 2020, 23:34
Hello all
I am doing some VHS -> mkv conversions. For that, I use an USB-Grabber and ffmpeg to record the video from a real VHS-player, then add some trimming and filters in Avisynth+ and re-encode again with ffmpeg to the final format.
The problem I am now facing is that after recording (with like:
ffmpeg -f dshow -rtbufsize 2048M -video_size 720x480 -i video="AV TO USB2.0":audio="Mikrofon (USB2.0 MIC)" -c:v libx264 -crf 6 -preset medium -tune grain -c:a libmp3lame -b:a 320k -f tee -map 0:v -map 0:a "E:/Recordings/video_x.mp4|[f=nut]pipe:" | ffplay pipe:
I get a working mp4 which plays absolutely fine in ffplay or vlc.
Now when I open that file in avisynth and play that in ffmpeg, the audio is getting more and more async as the video progresses.
I tried checking if the video has a variable framerate with ffmpeg -i "E:\Recordings\file.mp4" -vf vfrdet -f null - but that shows something like VFR:0.000000 (0/53131) so I guess it is not variable.
I also tried adjusting the FPS in avisynth with AssumeFPS(FrameCount()/AudioLengthF() * c.AudioRate(), False) which also does not really help.
I am now ending up just using TimeStretch and just try increasing or decreasing the tempo by small steps until the video and audio at the end seems about right. But that is cumbersome and far from perfect.
Does anyone have the same issue? Or could help me find the problem?
Help would be greatly appreciated as I have dozens of VHS with Camera-Recordings of my family to convert.
Many thanks in advance
Roman
I am doing some VHS -> mkv conversions. For that, I use an USB-Grabber and ffmpeg to record the video from a real VHS-player, then add some trimming and filters in Avisynth+ and re-encode again with ffmpeg to the final format.
The problem I am now facing is that after recording (with like:
ffmpeg -f dshow -rtbufsize 2048M -video_size 720x480 -i video="AV TO USB2.0":audio="Mikrofon (USB2.0 MIC)" -c:v libx264 -crf 6 -preset medium -tune grain -c:a libmp3lame -b:a 320k -f tee -map 0:v -map 0:a "E:/Recordings/video_x.mp4|[f=nut]pipe:" | ffplay pipe:
I get a working mp4 which plays absolutely fine in ffplay or vlc.
Now when I open that file in avisynth and play that in ffmpeg, the audio is getting more and more async as the video progresses.
I tried checking if the video has a variable framerate with ffmpeg -i "E:\Recordings\file.mp4" -vf vfrdet -f null - but that shows something like VFR:0.000000 (0/53131) so I guess it is not variable.
I also tried adjusting the FPS in avisynth with AssumeFPS(FrameCount()/AudioLengthF() * c.AudioRate(), False) which also does not really help.
I am now ending up just using TimeStretch and just try increasing or decreasing the tempo by small steps until the video and audio at the end seems about right. But that is cumbersome and far from perfect.
Does anyone have the same issue? Or could help me find the problem?
Help would be greatly appreciated as I have dozens of VHS with Camera-Recordings of my family to convert.
Many thanks in advance
Roman