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

Some Twitch VODs are downloaded without video #6086

Closed
nixxquality opened this issue Jun 26, 2015 · 5 comments
Closed

Some Twitch VODs are downloaded without video #6086

nixxquality opened this issue Jun 26, 2015 · 5 comments

Comments

@nixxquality
Copy link

@nixxquality nixxquality commented Jun 26, 2015

For example, this VOD is perfectly fine while this VOD is downloaded as audio only.

[twitch:vod] 5954507: Downloading vod info JSON
[twitch:vod] 5954507: Downloading vod access token
[twitch:vod] 5954507: Downloading m3u8 information
[download] Destination: Dota 2 with Heavy Commentary-v5954507.mp4
ffmpeg version N-73155-gd5a36ed Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-
libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-
libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-lib
vo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-li
bwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --e
nable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 45.100 / 56. 45.100
  libavformat    56. 38.102 / 56. 38.102
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 18.100 /  5. 18.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'http://vod.ak.hls.ttvnw.net/v1/AUTH_system/vods_0c95/barnyyy_14780390064_254509257/high/index-dvr.m3u8':
  Duration: 03:36:18.87, start: 61.509000, 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, 116 kb/s
    Stream #0:1: Data: timed_id3 (ID3  / 0x20334449)
[mp4 @ 0000000001d22380] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, mp4, to 'Dota 2 with Heavy Commentary-v5954507.mp4.part':
  Metadata:
    encoder         : Lavf56.38.102
    Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 116 kb/s

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0000000001cb7cc0] Invalid stream index 2
    Last message repeated 521 times
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 26, 2015

This looks like a problem in ffmpeg, livestreamer with mpv plays it fine but mpv on itself (which uses ffmpeg) only plays the audio.
You can use --hls-prefer-native, but I can't seek with mpv.

@nixxquality
Copy link
Author

@nixxquality nixxquality commented Jun 26, 2015

Really? Even when I tried with livestreamer I was getting an audio-only file.

I'm trying your --hls-prefer-native suggestion now, and it seems to work.

I'll post again in a few hours when I'm able to confirm if it's alright.

@nixxquality
Copy link
Author

@nixxquality nixxquality commented Jun 26, 2015

The download has finished, and I return with, unfortunately, bad news.

It looks like this file is audio only as well.

Here is the details on the file, as provided by ffmpeg:

ffmpeg version N-73155-gd5a36ed Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-
libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-
libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-lib
vo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-li
bwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --e
nable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 45.100 / 56. 45.100
  libavformat    56. 38.102 / 56. 38.102
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 18.100 /  5. 18.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[NULL @ 00000000020e4100] start time for stream 2 is not set in estimate_timings_from_pts
[mpegts @ 0000000001cfcf20] Could not find codec parameters for stream 2 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'Dota 2 with Heavy Commentary-v5954507.mp4':
  Duration: 03:36:18.89, start: 61.509000, bitrate: 1640 kb/s
  Program 1
    Stream #0:0[0x100]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 109 kb/s
    Stream #0:1[0x102]: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:2[0x101]: Video: h264 ([27][0][0][0] / 0x001B), none, 90k tbr, 90k tbn

If I add -analyzeduration 20, the video track no longer appears:

Input #0, mpegts, from 'Dota 2 with Heavy Commentary-v5954507.mp4':
  Duration: 03:36:18.89, start: 61.509000, bitrate: 1640 kb/s
  Program 1
    Stream #0:0[0x100]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 115 kb/s
    Stream #0:1[0x102]: Data: timed_id3 (ID3  / 0x20334449)
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 27, 2015

mpv plays it fine (except for seeking) but VLC it only plays the audio.

@nixxquality
Copy link
Author

@nixxquality nixxquality commented Jun 28, 2015

Yeah, you're right... I wonder why that is?
More importantly, I wonder how I would go about turning this file into one that works in other players as well.

@dstftw dstftw closed this Jun 12, 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
3 participants
You can’t perform that action at this time.