[FFmpeg-user] Output PTS is different from the source

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Dec 18 17:54:50 CET 2014

Wesley Wen <delbin.wen <at> gmail.com> writes:

> I'm transcoding one MPEG2-TS file to MP4, but I 
> noticed the start PTSs of video and audio of the 
> generated MP4 file are different from the source.

> The first video frame starts at 0, while the 
> first audio PTS is negative.

I believe there is an option to avoid negative 
timestamps if you don't like them.

> I would expect the PTS of source and output 
> should be identical.

This sounds very unlikely if the source is a 
transport stream.

Please remember to always test current FFmpeg 
before reporting an issue here.

Carl Eugen

More information about the ffmpeg-user mailing list