-
video twice audio speed
Hi
My process is (.mp4 from gopro cam)–>(separate .h264 and ac3 streams)–>mux to .m2ts
ffmpeg(ver 0.8.12) does step 1 and tsMuxer does step 2 (under Linux)
ffmpeg -i IN.MP4 -s hd1080 -an -vcodec libx264 -vpre baseline -b 30M -r 50 OUT.h264
When I play the final .m2ts the video runs about 2x too fast, audio OK.
Checking the various stages with ffprobe and pulling out what look like the relevant parameters, gives:
Column 1: the original Gopro .mp4
Column 2: the .h264 video stream from ffmpeg (see command above)
Column 3: the final muxed .m2ts file from tsMuxer
Column 4: a .MTS file from a JVC camera – which works for my further processingFile/ Original ffmpeg tsMuxer JVC camera
Param mp4 .h264 .m2ts .MTS
codec_time_base 1/100 1/100 1/100 1/50
r_frame_rate 50/1 100/2 50/1 50/1
av_frame_rate 50/1 50/1 50/1 50/1
time_base 1/180,000 1/1,200,000 1/90,000 1/90,000
video speed OK OK approx 2x OK
It seems plausible that tsMuxer is messing it up by picking up just the numerator of r_frame_rate in column 2, but this program is not under development and source is not available.
Is there a way I can get ffmpeg to make me an h264 video stream with the same parameters as column 4, thus giving tsMuxer the best chance of success? (I’ve tried -r 50/1 , -copytb, -copyts, which had no effect.)
Thanks for any help or pointers!