av_interleaved_write_frame(): Invalid argument #1902

Closed
opened 2026-02-21 00:09:10 -05:00 by deekerman · 1 comment
Owner

Originally created by @TwistTheNeil on GitHub (Feb 22, 2014).

I tried to download a video and got this error
Here's the output:
[12:50:19 - neil@salinity ~/youtube-dl]$ ./youtube-dl http://www.youtube.com/watch?v=2LB3j39Djzc
[youtube] Setting language
[youtube] 2LB3j39Djzc: Downloading webpage
[youtube] 2LB3j39Djzc: Downloading video info webpage
[youtube] 2LB3j39Djzc: Extracting video information
[youtube] 2LB3j39Djzc: Downloading formats manifest
[download] Destination: ABS 15 National Championships • Open Semifinals-2LB3j39Djzc.mp4
avconv version 0.8.4-6:0.8.4-1, Copyright (c) 2000-2012 the Libav developers
built on Oct 22 2012 21:36:00 with gcc 4.7.2
[applehttp @ 0x1e264c0] Estimating duration from bitrate, this may be inaccurate
Input #0, applehttp, from 'http://www.youtube.com/api/manifest/hls_playlist/id/2LB3j39Djzc.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/gir/yes/dg_shard/2LB3j39Djzc.1_96/hls_chunk_host/www.youtube.com/playlist_type/DVR/pmbypass/yes/maudio/1/gcr/us/upn/og5nWv-UsNo/fexp/938800,914092,916611,937417,937416,913434,936910,936913,902907/sver/3/ip/174.141.138.213/ipbits/0/expire/1393117162/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,gir,dg_shard,hls_chunk_host,playlist_type,pmbypass,maudio,gcr/signature/310C6BBCD530E634DBBAE7F8202C7CA5DB44DA99.7ADC0E056044D1E7DE0B8FF92F658B05D1060D17/key/dg_yt0/file/index.m3u8':
Duration: N/A, start: 2510.008000, bitrate: N/A
Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0.1: Audio: aac, 48000 Hz, stereo, s16
Output #0, mp4, to 'ABS 15 National Championships • Open Semifinals-2LB3j39Djzc.mp4.part':
Metadata:
encoder : Lavf53.21.0
Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 90k tbc
Stream #0.1: Audio: aac, 48000 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
[mp4 @ 0x1eb5500] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 864 >= 864
av_interleaved_write_frame(): Invalid argument

ERROR: ffmpeg exited with code 1

Is this an api problem or a ffmpeg problem? Or a whole other thing?

Originally created by @TwistTheNeil on GitHub (Feb 22, 2014). I tried to download a video and got this error Here's the output: [12:50:19 - neil@salinity ~/youtube-dl]$ ./youtube-dl http://www.youtube.com/watch?v=2LB3j39Djzc [youtube] Setting language [youtube] 2LB3j39Djzc: Downloading webpage [youtube] 2LB3j39Djzc: Downloading video info webpage [youtube] 2LB3j39Djzc: Extracting video information [youtube] 2LB3j39Djzc: Downloading formats manifest [download] Destination: ABS 15 National Championships • Open Semifinals-2LB3j39Djzc.mp4 avconv version 0.8.4-6:0.8.4-1, Copyright (c) 2000-2012 the Libav developers built on Oct 22 2012 21:36:00 with gcc 4.7.2 [applehttp @ 0x1e264c0] Estimating duration from bitrate, this may be inaccurate Input #0, applehttp, from 'http://www.youtube.com/api/manifest/hls_playlist/id/2LB3j39Djzc.1/itag/96/source/yt_live_broadcast/ratebypass/yes/live/1/cmbypass/yes/newshard/yes/gir/yes/dg_shard/2LB3j39Djzc.1_96/hls_chunk_host/www.youtube.com/playlist_type/DVR/pmbypass/yes/maudio/1/gcr/us/upn/og5nWv-UsNo/fexp/938800,914092,916611,937417,937416,913434,936910,936913,902907/sver/3/ip/174.141.138.213/ipbits/0/expire/1393117162/sparams/ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,newshard,gir,dg_shard,hls_chunk_host,playlist_type,pmbypass,maudio,gcr/signature/310C6BBCD530E634DBBAE7F8202C7CA5DB44DA99.7ADC0E056044D1E7DE0B8FF92F658B05D1060D17/key/dg_yt0/file/index.m3u8': Duration: N/A, start: 2510.008000, bitrate: N/A Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.97 tbr, 90k tbn, 59.94 tbc Stream #0.1: Audio: aac, 48000 Hz, stereo, s16 Output #0, mp4, to 'ABS 15 National Championships • Open Semifinals-2LB3j39Djzc.mp4.part': Metadata: encoder : Lavf53.21.0 Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 90k tbc Stream #0.1: Audio: aac, 48000 Hz, stereo Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press ctrl-c to stop encoding [mp4 @ 0x1eb5500] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 864 >= 864 av_interleaved_write_frame(): Invalid argument ERROR: ffmpeg exited with code 1 Is this an api problem or a ffmpeg problem? Or a whole other thing?
Author
Owner

@jaimeMF commented on GitHub (Feb 23, 2014):

It works with ffmpeg 2.1.3, but not with libav 9.10. I would install ffmpeg or report the error to the libav developers.

@jaimeMF commented on GitHub (Feb 23, 2014): It works with ffmpeg 2.1.3, but not with libav 9.10. I would install ffmpeg or report the error to the libav developers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#1902
No description provided.