PDA

View Full Version : ffmpeg: Non-monotonous DTS in output stream


enthos
05-11-2017, 03:08 AM
ffmpeg doesn't download the video correctly.
The ts file has some broken information.
Any other tool or ffmpeg options can download the full video?

1.
Video replay entry:
http://www.yy.com/u/1837936591

2.
The 2017-05-10 video:
http://www.yy.com/x/15012_1621895922_69600597_1494425663398
(The video will be deleted after two days.)
The length is 01:59:50 when I view it on chrome.

3.
m3u8 file from above link (View source with chrome)
http://record.vod.huanjuyun.com/xcrs/15012_1621895922_69600597_1494425663398.m3u8

4.
The ts file in above m3u8 file.
http://yycloudlive15013.bs2dl.yy.com/crs_d9be276025754b5da837bbebcb9f365a.ts

5.
ffmpeg -i http://record.vod.huanjuyun.com/xcrs/15012_1621895922_69600597_1494425663398.m3u8 -c copy junjun_20170510night.mkv

The message I get:

...
[matroska @ 000000000348bac0] Non-monotonous DTS in output stream 0:1;
previous: 1635136, current: 1635127; changing to 1635136.
This may result in incorrect timestamps in the output file.

[matroska @ 000000000348bac0] Non-monotonous DTS in output stream 0:0;
previous: 1635116, current: 1635086; changing to 1635116.
This may result in incorrect timestamps in the output file.

frame=173446 fps= 69 q=-1.0 Lsize= 892382kB time=01:21:05.50 bitrate=1502.5kbits/s speed=1.93x
video:872435kB audio:23149kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

The junjun_20170510night.mkv file has the length 01:21:05.

I download it 5 times. The file sizes are:
913,798,900 junjun_20170510nightbad3.mkv
913,798,900 junjun_20170510nightbad5.mkv

394,162 15012_1621895922_69600597_1494425663398.m3u8
1,023,392,664 crs_d9be276025754b5da837bbebcb9f365a.ts (by wget, it show 1:21:05 length, too.)

6.

The file sizes for ref.
s
812,423,846 junjun_20170501night.mkv 01:45:39
962,490,334 junjun_20170503night.mkv 02:05:10
892,843,066 junjun_20170504night.mkv 01:56:16
934,342,068 junjun_20170508night.mkv 02:12:49
795,520,664 junjun_20170509night.mkv 01:44:47

ihryjfbd
05-11-2017, 03:49 AM
Transport streams contain multiple streams, you can try splitting the stream into 3 then rejoin as a regular .mp4, .mkv is just a container format.

http://i.imgur.com/9vJDxBz.jpg