Opened 8 years ago

Last modified 8 years ago

#5191 new defect

no constant frame rate with MP4 to TS conversion

Reported by: kyriako41 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hello,
I want to convert MP4 to TS, using, for example:

ffmpeg -report -i Video.mp4 -c:v copy -bsf:v h264_mp4toannexb -r 25 Video.TS

Even if the input file has a constant frame rate, the output is "Variable Frame Rate".
More Details I have put in the forum:
http://ffmpeg.gusari.org/viewtopic.php?f=11&t=2603

Cheers,
kyriako41.

Attachments (1)

ffmpeg-20160118-210836.log (7.6 KB ) - added by kyriako41 8 years ago.
Log File MP4 to TS

Download all attachments as: .zip

Change History (4)

comment:1 by Carl Eugen Hoyos, 8 years ago

Please post all required information - command line and complete, uncut console output for current FFmpeg git head - here in the ticket to make it valid.

comment:2 by Hendrik, 8 years ago

MPEG-TS has no indication of constant or variable frame rate, it just has timestamps.

by kyriako41, 8 years ago

Attachment: ffmpeg-20160118-210836.log added

Log File MP4 to TS

in reply to:  1 comment:3 by kyriako41, 8 years ago

Replying to cehoyos:

Please post all required information - command line and complete, uncut console output for current FFmpeg git head - here in the ticket to make it valid.

the complete command line is:
ffmpeg.exe -report -i Video.mp4 -c:v copy -bsf:v h264_mp4toannexb -r 25 Video.TS
The log file is attached.

As an example video file, I used this one:
https://www.youtube.com/watch?v=V1QUJFPRWnM

Interestingly, when I transcode the MP4 video to MP2, the frame rate is preserved:
ffmpeg -i Video.mp4 -q:v 3 -c:v mpeg2video -c:a mp3 Video.TS

Note: See TracTickets for help on using tickets.