Hi guys, I'm using an Android phone as an in-car digital video recorder. The application I'm using also logs data from the car's ECU chip such as engine revs and speed. The resulting files are a .mp4, a .srt file and a .csv file. When I open the video on my computer with MPC-HC, everything works well with the .srt subtitles showing the logged data. However, whenever I attempt to edit the video file in any application, there will be problems with the audio sync. It seems like the problem stems from the video's variable frame rate, as most phones record in.
I've tried to fix the problem by re-encoding in Handbrake using the Constant framerate option, but no matter what I do the resulting video will have out-of-sync audio. I tried using "ffmpeg -i input.mp4 -c copy -copyts -r 30 -async 30 output.mp4" and it's also out-of-sync. I tried using Adobe Media Encoder with the Frame Blending option and that too fails.
My aim is to use a program called Dashware to overlay the logged data on top of the above-mentioned video. It does this by reading the .csv file and matching the timecodes to the video but this requires the video to be of a constant framerate, or else it doesn't match up at all.
Does anyone have any solutions or advice to give me?
+ Reply to Thread
Results 1 to 9 of 9
-
-
The most reliable tool I've found so far for accurately interpreting and converting variable framerate to constant is TMPGenc Video Mastering works. Everything else (including the ones you mentioned) has fallen short in the sync department.
-
You should use lowest common denominator for frame speed (you can search for lowest delta between two frames (time domain) and later use this delta as framerate. It should be simple frame repeat operation, later you can convert such video to normal speed by using one of typical framerate conversion algorithms.
-
converting variable framerate to constant = Ulead Video Studio, it work's for me, nothing else comes close ... download the 30 day trial
-
In AviSynth:
DirectShowSource("filename.ext", fps=x.y, ConvertFPS=true, SeekZero=true)
Then use an all intra codec like huffyuv or UT Video Codec to create your intermediate file. -
Hi guys, thanks for all the responses. I've tried TMPGENC and found it to be quite reliable in fixing my problems. I've tried MediaCoder too but it seems to work only when the average frame rate is higher than my encoded frame rate. Is there a freeware program that can fix this though? TMPGEnc is quite expensive. Would appreciate if that program supports QuickSync or NVENC 6.0.
Similar Threads
-
Variable or Constant Framerate?
By JackDanielZ in forum Video ConversionReplies: 56Last Post: 4th Aug 2015, 07:14 -
Advice for hard telecined, variable framerate DVD?
By xAlienxx in forum DVD RippingReplies: 16Last Post: 16th Dec 2014, 16:26 -
How can I convert variable bit rate video without screwing up voice synch
By johnharlin in forum Video ConversionReplies: 3Last Post: 23rd Aug 2014, 06:23 -
MPEG-dash files from youtube: really variable framerate??
By flashandpan007 in forum Video Streaming DownloadingReplies: 4Last Post: 7th Jan 2014, 15:04 -
Video scattering , audio sync variable delay in MKV files
By prabhakarlad in forum Software PlayingReplies: 13Last Post: 22nd Apr 2011, 14:55