[FFmpeg-trac] #4768(undetermined:new): FFmpeg preserving CFR during TS to MP4 conversion
FFmpeg
trac at avcodec.org
Wed Aug 12 13:59:41 CEST 2015
#4768: FFmpeg preserving CFR during TS to MP4 conversion
-------------------------------------+-------------------------------------
Reporter: zer0z | Owner:
Type: enhancement | Status: new
Priority: wish | Component:
Version: unspecified | undetermined
Keywords: dts | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by Zenitram):
Replying to [comment:10 cehoyos]:
> Does the input option {{{-r 24000/1001}}} help?
It is.
Test with a 23.976 TS file:
ffmpeg -i test.ts -c copy test.mp4
dump of stts:
{{{
009B8EC6 Time to Sample (656 bytes)
009B8EC6 Header (8 bytes)
009B8EC6 Size: 656 (0x00000290)
009B8ECA Name: stts
009B8ECE Version: 0 (0x00)
009B8ECF Flags: 0 (0x000000)
009B8ED2 Number of entries: 80 (0x00000050)
009B8ED6 Sample Count: 2 (0x00000002)
009B8EDA Sample Duration: 3754 (0x00000EAA)
009B8EDE Sample Count: 1 (0x00000001)
009B8EE2 Sample Duration: 3753 (0x00000EA9)
009B8EE6 Sample Count: 3 (0x00000003)
009B8EEA Sample Duration: 3754 (0x00000EAA)
009B8EEE Sample Count: 1 (0x00000001)
...
}}}
ffmpeg -i test.ts -c copy -r 24000/1001 test.mp4
{{{
009B8EC6 Time to Sample (24 bytes)
009B8EC6 Header (8 bytes)
009B8EC6 Size: 24 (0x00000018)
009B8ECA Name: stts
009B8ECE Version: 0 (0x00)
009B8ECF Flags: 0 (0x000000)
009B8ED2 Number of entries: 1 (0x00000001)
009B8ED6 Sample Count: 159 (0x0000009F)
009B8EDA Sample Duration: 1001 (0x000003E9)
}}}
I guess the OP has a workaround (it is not detected and set automaticly by
FFmpeg, but he can force FFmpeg to do it) for doing what he wants to do.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4768#comment:11>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list