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

[ooyala] picking formats with m3u8 manifests (was: picking formats) #2292

Closed
kickerofelves opened this issue Feb 2, 2014 · 5 comments
Closed

Comments

@kickerofelves
Copy link

@kickerofelves kickerofelves commented Feb 2, 2014

In my youtube-dl.conf I have -f "18/43/34/h264-sd/flv/mp4-sd/mp4". When trying to download from some sites (particularly ooyala), I still get the highest resolution.

  1. How do I pick the res where 480x270, 640x360, and 1280x720 are available? (See below)
  2. My config also fails when getting soundcloud files. -fwav and -fmp3 also fail. It would be nice if there was some way to disable the -f or all the youtube-dl.conf options.
[Vice] life-as-a-truck-stop-stripper-full-length: Downloading webpage
[Ooyala] 5yeW9mazqGRQO-Kig7MadzZ-kh4nbmDM: Downloading webpage
[Ooyala] 5yeW9mazqGRQO-Kig7MadzZ-kh4nbmDM: Downloading webpage
[download] Destination: Vice_-_Every_Woman_-Full_Length-5yeW9mazqGRQO-Kig7MadzZ-kh4nbmDM.mp4
ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  3 2013 05:43:15 with gcc 4.8 (Debian 4.8.1-10)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --dis  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpegts @ 0x237b8c0] Estimating duration from bitrate, this may be inaccurate
[aac @ 0x24cae40] max_analyze_duration 5000000 reached at 5015510 microseconds
[aac @ 0x24cae40] Estimating duration from bitrate, this may be inaccurate
[mpegts @ 0x2811e80] Estimating duration from bitrate, this may be inaccurate
[mpegts @ 0x2856960] Estimating duration from bitrate, this may be inaccurate
Input #0, hls,applehttp, from 'http://player.ooyala.com/player/ipad/5yeW9mazqGRQO-Kig7MadzZ-kh4nbmDM.m3u8?js=1':
  Duration: 00:27:24.00, start: 0.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 868000
    Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x360, 11.99 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      variant_bitrate : 868000
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 130 kb/s
    Metadata:
      variant_bitrate : 868000
  Program 1 
    Metadata:
      variant_bitrate : 128000
    Stream #0:2: Audio: aac, 44100 Hz, stereo, fltp, 137 kb/s
    Metadata:
      variant_bitrate : 128000
  Program 2 
    Metadata:
      variant_bitrate : 442000
    Stream #0:3: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 480x270, 11.99 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      variant_bitrate : 442000
    Stream #0:4: Audio: aac ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp, 68 kb/s
    Metadata:
      variant_bitrate : 442000
  Program 3 
    Metadata:
      variant_bitrate : 1530000
    Stream #0:5: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 1280x720, 11.99 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      variant_bitrate : 1530000
    Stream #0:6: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 130 kb/s
    Metadata:
      variant_bitrate : 1530000
Output #0, mp4, to 'Vice_-_Every_Woman_-Full_Length-5yeW9mazqGRQO-Kig7MadzZ-kh4nbmDM.mp4.part':
  Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=2-31, 11.99 fps, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 1530000
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 130 kb/s
    Metadata:
      variant_bitrate : 868000
Stream mapping:
  Stream #0:5 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
No longer receiving variant 1ze=    1219kB time=00:00:08.01 bitrate=1247.0kbits/s    
No longer receiving variant 2ze=    1508kB time=00:00:09.96 bitrate=1239.8kbits/s    
frame=  331 fps= 48 q=-1.0 size=    2257kB time=00:00:13.86 bitrate=1333.7kbits/s    
ERROR: Interrupted by user
frame=  340 fps= 48 q=-1.0 Lsize=    2349kB time=00:00:14.21 bitrate=1354.1kbits/s    
video:2116kB audio:227kB subtitle:0 global headers:0kB muxing overhead 0.273598%
Received signal 2: terminating.
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 2, 2014

Please post at least which url you are trying to download from, so that we can better help. Probably the problem is with the m3u8 manifest, I think it just downloads the best quality.

If you specify the format option in the command it will override the formats set in the configuration file. For ignoring the configuration files there's an open issue: #633.

Please open a new issue for the soundcloud problem and post the output of youtube-dl URL --verbose -f mp3.

@kickerofelves
Copy link
Author

@kickerofelves kickerofelves commented Feb 3, 2014

Sorry, the url got cut off.
http://www.vice.com/every-woman/life-as-a-truck-stop-stripper-full-length
another example is:
http://www.mmafighting.com/2014/2/2/5370376/ufc-169-post-fight-show

Thanks for pointing to the previous ticket. Doesn't seem like it'll happen anytime soon.

@rbrito
Copy link
Contributor

@rbrito rbrito commented Dec 4, 2014

This request seems very similar to one that I got downstream on Debian:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753309

@lmamane
Copy link

@lmamane lmamane commented Jan 14, 2015

Yes, that is exactly the same request as in Debian bug 753309, only here it is framed as a bug (it does't work, I expect it would) while in the Debian bug it is framed more as a "new feature".

A workable method would be to parse the output of avprobe, or parse the m3u8 file yourself (it doesn't seem to be a complicated format).

yan12125 added a commit that referenced this issue May 7, 2015
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 7, 2015

Thanks for the suggestion. For Ooyala videos, m3u8 information are extracted now.

@kickerofelves The second URL http://www.mmafighting.com/2014/2/2/5370376/ufc-169-post-fight-show contains a Youtube video and an Ooyala video. However, youtube-dl detects the Youtube video first, so the Ooyala video is not downloaded. We'll have to wait until the feature requested in #5587 implemented to correctly extract both videos.

@yan12125 yan12125 closed this May 7, 2015
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
5 participants
You can’t perform that action at this time.