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

avconv subprocess does not respect youtube_dl --proxy setting #6087

Closed
nlevitt opened this issue Jun 26, 2015 · 3 comments
Closed

avconv subprocess does not respect youtube_dl --proxy setting #6087

nlevitt opened this issue Jun 26, 2015 · 3 comments
Labels

Comments

@nlevitt
Copy link

@nlevitt nlevitt commented Jun 26, 2015

Proxy logs and lsof show that the avconv subprocess is not using the proxy configured with --proxy.

(venv)17:45:53+nlevitt@desktop-nlevitt:youtube-dl$ youtube-dl --verbose --no-check-certificate --proxy http://localhost:8000 --write-sub 'http://video.pbs.org/video/2365392401/'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--no-check-certificate', '--proxy', 'http://localhost:8000', '--write-sub', 'http://video.pbs.org/video/2365392401/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.25
[debug] Git HEAD: 533f67d
[debug] Python version 3.4.0 - Linux-3.13.0-55-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.18-6, avprobe 9.18-6, rtmpdump 2.4
[debug] Proxy map: {'http': 'http://localhost:8000', 'https': 'http://localhost:8000'}
[PBS] 2365392401: Downloading JSON metadata
[PBS] 2365392401: Downloading recommended_encoding video url info
[PBS] 2365392401: Downloading m3u8 information
[PBS] 2365392401: Downloading alternate_encoding video url info
[debug] Invoking downloader on 'http://ga.video.cdn.pbs.org/videos/msu-commencements/5f84513b-5eff-4123-a9e8-ca7c5dab7334/164449/hd-mezzanine-16x9/0884b587_msuco-141213-amcommencement-16x9-hls-2500k.m3u8'
[download] Destination: Baccalaureate Degree Commencement, Fall 2014-2365392401.mp4
WARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors.
avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, hls,applehttp, from 'http://ga.video.cdn.pbs.org/videos/msu-commencements/5f84513b-5eff-4123-a9e8-ca7c5dab7334/164449/hd-mezzanine-16x9/0884b587_msuco-141213-amcommencement-16x9-hls-2500k.m3u8':
  Duration: 01:44:57.00, start: 10.000000, bitrate: N/A
    Stream #0.0: Video: h264 (Main), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0.1: Audio: aac, 44100 Hz, mono, fltp
Output #0, mp4, to 'Baccalaureate Degree Commencement, Fall 2014-2365392401.mp4.part':
  Metadata:
    encoder         : Lavf54.20.4
    Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 90k tbc
    Stream #0.1: Audio: aac, 44100 Hz, mono
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
Non-monotonous DTS in output stream 0:1; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
^Came=21229 fps=1662 q=-1.0 size=  239222kB time=708.26 bitrate=2766.9kbits/s    
ERROR: Interrupted by user
@nlevitt nlevitt changed the title avconv does not respect --proxy setting avconv subprocess does not respect youtube_dl --proxy setting Jun 26, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 26, 2015

I couldn't find an option for setting the proxy in avconv/ffmpeg, do you know how to do it?
Using an environment variable probably works, could you try running export http_proxy=<PROXY> before running youtube-dl?

@nlevitt
Copy link
Author

@nlevitt nlevitt commented Jun 26, 2015

The environment variable works! Thanks, that's great. Maybe youtube-dl can set it when running avconv?

@yan12125 yan12125 added the request label Jun 27, 2015
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 9, 2016

Implemented quite some time ago.

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