Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube stream file corruption #17210

Open
hohmd opened this issue Aug 11, 2018 · 1 comment
Open

Youtube stream file corruption #17210

hohmd opened this issue Aug 11, 2018 · 1 comment

Comments

@hohmd
Copy link

@hohmd hohmd commented Aug 11, 2018

./youtube-dl --no-part -f 95 https://www.youtube.com/watch?v=lapwFzhrr38
[youtube] lapwFzhrr38: Downloading webpage
[youtube] lapwFzhrr38: Downloading video info webpage
[youtube] lapwFzhrr38: Extracting video information
[youtube] lapwFzhrr38: Downloading m3u8 information
[youtube] lapwFzhrr38: Downloading MPD manifest
[download] Destination: name_here.mp4
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libdc1394 --enable-libfaac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/lapwFzhrr38.1/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/r3---sn-25glene6.googlevideo.com/playlist_type/DVR/ei/NP1tW6qlIty6VtfPs5gD/gcr/fr/mm/32/mn/sn-25glene6/ms/lv/mv/u/pl/24/dover/10/keepalive/yes/mt/1533934348/ip/94.23.197.222/ipbits/0/expire/1533956500/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/568822D78DD8782ACA1551618BEACD44908B7663.90FE2A57640CDECD65F4CD31D89C94BDE8DD87AF/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 7274.986667, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 112 kb/s
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
Output #0, mp4, to 'file:name_here.mp4':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 112 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[https @ 0x143af00] HTTP error 403 Forbiddentime=02:08:45.03 bitrate=1629.8kbits/s
[hls,applehttp @ 0x12278a0] Failed to reload playlist 0
[https @ 0x143af00] HTTP error 403 Forbidden
[hls,applehttp @ 0x12278a0] Failed to reload playlist 0
frame=231900 fps= 11 q=-1.0 Lsize= 1544373kB time=02:08:50.00 bitrate=1636.7kbits/s
video:1419308kB audio:118305kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.439668%
[ffmpeg] Downloaded 1581438243 bytes
[download] 100% of 1.47GiB

Description of your issue, suggested solution and other information

Hello.

I am having constant problems while downloading live streams. It always leads to corrupted file. I can't play it with MPC-HC, VLC or any other player.

Please help. I am sure that file is downloading. But due to youtube traffic throttling, it downloads on slow speed. Due to this, it never downloads in full. But i'm OK with part of stream, but still file can not be played.

Is there something i can try to do with file to fix it? There are obviously frames in 1.5 GB file so i should at least be able to withdraw frames by itself from the file and convert it to another (empty) video file.

@message
Copy link

@message message commented Apr 23, 2020

Same. Downloaded live stream, which is not available anymore, but file is corrupt, in spite it is around 900MB

[~] $ youtube-dl https://www.youtube.com/watch?v=503PnFKMdlE
[youtube] 503PnFKMdlE: Downloading webpage
[youtube] 503PnFKMdlE: Downloading m3u8 information
[youtube] 503PnFKMdlE: Downloading MPD manifest
[dashsegments] Total fragments: 1175
[download] Destination: Disclosure - Kitchen Mix (Self Isolation F.M. 003)-503PnFKMdlE.f137.mp4
[download] 100% of 813.04MiB in 12:20
[dashsegments] Total fragments: 1175
[download] Destination: Disclosure - Kitchen Mix (Self Isolation F.M. 003)-503PnFKMdlE.f140.m4a
[download] 100% of 90.93MiB in 02:41
[ffmpeg] Merging formats into "Disclosure - Kitchen Mix (Self Isolation F.M. 003)-503PnFKMdlE.mp4"
Deleting original file Disclosure - Kitchen Mix (Self Isolation F.M. 003)-503PnFKMdlE.f137.mp4 (pass -k to keep)
Deleting original file Disclosure - Kitchen Mix (Self Isolation F.M. 003)-503PnFKMdlE.f140.m4a (pass -k to keep)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.