[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
developers
     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 "
http://www.youtube.com/api/manifest/hls_variant/upn/xsWU1qWQrs8/sparams/id%2Cip%2Cipbits%2Cmaudio%2Cplaylist_type%2Cpmbypass%2Cex
pire/playlist_type/CLEAN/maudio/1/ip/
98.217.46.222/ipbits/8/signature/4881045E30CED40AE6BE6EFB9E86F1A97840D22A.A6A8600F67FBAC516D1FAB22309929F88EC4D70D/sver/3/source/yt_live_broadcast/expire/134575685
9/key/yt1/pmbypass/yes/id/dd5e5dcab98e95bc/file/index.m3u8" -c copy
output.ts

and after an hour or so of content copied, my output simply repeast the
messages:
...
[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
bitrate=5008.5kbits/s
video:1464249kB audio:80556kB subtitle:0 global headers:0kB muxing overhead
8.523512%
Received signal 2: terminating.

any ideas?

TIA,
Steve


More information about the ffmpeg-user mailing list