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

Strange output with Twitch url #8253

Closed
hedii opened this issue Jan 16, 2016 · 4 comments
Closed

Strange output with Twitch url #8253

hedii opened this issue Jan 16, 2016 · 4 comments

Comments

@hedii
Copy link
Contributor

@hedii hedii commented Jan 16, 2016

hi, i get a strange output, not parsable at all with this twitch url:

youtube-dl -v http://www.twitch.tv/camak/v/28045712
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.twitch.tv/camak/v/28045712']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.01.15
[debug] Python version 2.7.6 - Linux-3.14.32-xxxx-grs-ipv6-64-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: ffmpeg N-51325-g29af74e-static, ffprobe N-51325-g29af74e-static
[debug] Proxy map: {}
[twitch:vod] 28045712: Downloading vod info JSON
[twitch:vod] 28045712: Downloading vod access token
[twitch:vod] 28045712: Downloading m3u8 information
[debug] Invoking downloader on u'http://vod.edgecast.hls.twitch.tv/v1/AUTH_system/vods_cd92/camak_18020368192_358194813/chunked/index-muted-OTEJL239VH.m3u8'
[download] Destination: Michael Bay Production Morning Show-v28045712.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)
' -i http://vod.edgecast.hls.twitch.tv/v1/AUTH_system/vods_cd92/camak_18020368192_358194813/chunked/index-muted-OTEJL239VH.m3u8 -f mp4 -c copy -bsf:a aac_adtstoasc 'file:Michael Bay Production Morning Show-v28045712.mp4.part'
ffmpeg version N-51325-g29af74e-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.1 (Debian 5.2.1-24) 20151121
  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --cc=gcc
  libavutil      55.  9.100 / 55.  9.100
  libavcodec     57. 16.100 / 57. 16.100
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 15.100 /  6. 15.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, hls,applehttp, from 'http://vod.edgecast.hls.twitch.tv/v1/AUTH_system/vods_cd92/camak_18020368192_358194813/chunked/index-muted-OTEJL239VH.m3u8':
  Duration: 02:54:21.57, start: 62.112989, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 146 kb/s
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709/bt709/iec61966-2-1), 1280x720, 60 fps, 60 tbr, 90k tbn, 120 tbc
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
[mp4 @ 0x3af1fe0] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x3af1fe0] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:Michael Bay Production Morning Show-v28045712.mp4.part':
  Metadata:
    encoder         : Lavf57.19.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1280x720, q=2-31, 60 fps, 60 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 146 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=41733 fps=419 q=-1.0 size=  310812kB time=00:11:35.57 bitrate=3660.5kbits/s     

the last line updates in real time in the console, even with --newline option.
This is ffmpeg output, no? why the normal output is not shown?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 16, 2016

This is ffmpeg output, no? why the normal output is not shown?

I guess you want the [download] 10% of XXX MiB ... message, we currently don't support that when using ffmpeg but you can get it with --hls-prefer-native(note that our implementation is not as good as what ffmpeg provides, but it allows quitting the download and resuming it later!)

@hedii
Copy link
Contributor Author

@hedii hedii commented Jan 16, 2016

Ok, but why ffmpeg is used as a downloader only for twitch ? I don't have that on other videos. What is the difference ? I parse the console output in a php app. This difference of output is a pain to parse

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 16, 2016

What is the difference ?

Because they use HLS to deliver the videos (both live and archived videos).

This difference of output is a pain to parse

As I said: try using the --hls-prefer-native option.

@hedii
Copy link
Contributor Author

@hedii hedii commented Jan 16, 2016

Ok thank you !

@hedii hedii closed this Jan 16, 2016
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.