X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2F__init__.py;h=a36101c146c199245f566bef4a8f0089a1e66014;hb=35aa7098cd22249e3ab446925a27c57572ff49d9;hp=238a0818f1c0b89604dc4e482a20b589cbf3a7b2;hpb=bac268e243f356ca90c11f4db9ff8126d4c59d5a;p=youtube-dl diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 238a0818f..a36101c14 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -424,6 +424,10 @@ def parseOpts(overrideArguments=None): help='write metadata to the video file') postproc.add_option('--xattrs', action='store_true', dest='xattrs', default=False, help='write metadata to the video file\'s xattrs (using dublin core and xdg standards)') + postproc.add_option('--prefer-avconv', action='store_false', dest='prefer_ffmpeg', + help='Prefer avconv over ffmpeg for running the postprocessors (default)') + postproc.add_option('--prefer-ffmpeg', action='store_true', dest='prefer_ffmpeg', + help='Prefer ffmpeg over avconv for running the postprocessors') parser.add_option_group(general) @@ -709,6 +713,7 @@ def _real_main(argv=None): 'socket_timeout': opts.socket_timeout, 'bidi_workaround': opts.bidi_workaround, 'debug_printtraffic': opts.debug_printtraffic, + 'prefer_ffmpeg': opts.prefer_ffmpeg, } with YoutubeDL(ydl_opts) as ydl: