justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
863 stars 144 forks source link

23.976fps with pulldown not outputting correctly #680

Open ThunderCart opened 1 year ago

ThunderCart commented 1 year ago

.264 file encoded at 24000/1001 CFR with fake interlacing and pulldown seem to be not muxing correctly, file produced by tsmuxer is 29.97fps but has the incorrect duration. The correct duration is achieved by muxing at 24000/1001 however that is not Blu-ray standard to my knowledge. (Atleast not for standard def)

With version 1.10.6 the following commands would work:

MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --custom-chapters=99:99:99 --split-size=4000MiB --vbv-len=500 V_MPEG4/ISO/AVC, "C:\file.264", insertSEI, contSPS, track=0, fps=29.970

however the same file and commands used in newer versions of tsmuxer produce files with shorter durations.

jcdr428 commented 1 year ago

@ThunderCart please supply sample.

ThunderCart commented 1 year ago

Thanks for your quick response

Attatched is an 80 frame sample, when muxed with tsmuxer v1.10.6 it results in a duration of 3s 320ms at 30000/1001 with pulldown flags but the same settings through tsmuxer v2.6.12 it comes out at 2s 653ms at 30000/1001, seemingly discarding pulldown.

Sorry if I'm just missing something simple.

Sample.zip

ThunderCart commented 1 year ago

The issue is that tsmuxer does not keep the pulldown after muxing, unlike previous older versions. I have the "Remove pulldown" box left unchecked.

jcdr428 commented 1 year ago

@ThunderCart I've also tested 2.6.12 and it does not output correctly either. From what I've read, the AVC SEI pict_struct field should be used to determine the subsequent PTS values -which is currently not the case. The issue will remain open, you'll have to wait for a good soul interested to work on this...