[FFmpeg-user] Unable to copy large stream - PTS and/or DTS invalid (overflowing?)

Stephen Belt sbelt at sebscape.com
Thu Aug 23 17:43:19 CEST 2012

I am new to ffmpeg. I found this tool in a forum where another user, like
myself, was attempting to copy a stream of video. I am using what I believe
is the latest version of ffmpeg:

   ffmpeg version N-43804-g780bf75 Copyright (c) 2000-2012 the FFmpeg
     built on Aug 21 2012 21:16:09 with gcc 4.7.1 (GCC)

My issue is that after downloading ~ 1 hour worth of streaming, I see the
same error messages and my output.ts stops growing. My theory is that the
video is so long (~ 3 hrs.) that these PTS and/or DTS values overflow (I am
guessing this because of the negative values being echoed.)

Is there an option I need to add, or some trick (like splitting the input
into discreet chunks) that will allow me to copy this video?

My command line is (sorry, the url has an expire parm, so it will be
invalid by the time you read this):

C:\Users\owner\ffmpeg-20120822-git-780bf75-win64-static\bin>ffmpeg -i "
9/key/yt1/pmbypass/yes/id/dd5e5dcab98e95bc/file/index.m3u8" -c copy

and after an hour or so of content copied, my output simply repeast the
[mpegts @ 000000000e628840] st:0 PTS: -8125696352 DTS: -8125696352 <
246900379 invalid, clipping
[mpegts @ 000000000e628840] st:0 PTS: -8125694432 DTS: -8125694432 <
246900380 invalid, clipping
[mpegts @ 000000000e628840] st:0 PTS: -8125692512 DTS: -8125692512 <
246900381 invalid, clipping
[mpegts @ 000000000e628840] st:0 PTS: -8125690592 DTS: -8125690592 <
246900382 invalid, clipping
[mpegts @ 000000000e628840] st:0 PTS: -8125688672 DTS: -8125688672 <
246900383 invalid, clipping
... and so on...

When I press ctrl-c the output says:

frame=68552 fps= 50 q=-1.0 Lsize= 1676477kB time=00:45:42.10
video:1464249kB audio:80556kB subtitle:0 global headers:0kB muxing overhead
Received signal 2: terminating.

any ideas?


More information about the ffmpeg-user mailing list