[FFmpeg-user] h264_mp4toannexb does not store a proper frame-rate.

Wodzu brucedickinson at wp.pl
Wed Feb 7 15:40:27 EET 2024


Hi,   I have an mp4 file, that I want to convert to Annex B. The file properties are:     Duration: 01:59:59.97, start: 0.000000, bitrate: 1221 kb/s      Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1280x720, 1221 kb/s, 15 fps, 15 tbr, 15360 tbn, 60 tbc (default)    I am converting to Annex B this way:   ffmpeg -i file.mp4 -vcodec copy -vbsf h264_mp4toannexb -an output_file.264   After running ffprobe on the output_file.264:     Duration: N/A, bitrate: N/A      Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt470bg/bt470bg/smpte170m, progressive), 1280x720, 30 fps, 30 tbr, 1200k tbn, 60 tbc   As you can see, the duration information has been lost and fps is now 30 fps. It it possible to retain the original FPS?   Cheers,   Bruce


More information about the ffmpeg-user mailing list