[youtube|ffmpeg] Automatically correct video with non-square pixels (Fixes #4674)
[youtube-dl] / youtube_dl / options.py
index 14006178d7c0a71d73a13d072e1e21304d955cfb..e5602bb3a3787fae92da14731e7f3c9922066fcd 100644 (file)
@@ -631,6 +631,13 @@ def parseOpts(overrideArguments=None):
         '--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(
+        '--fixup',
+        metavar='POLICY', dest='fixup', default='detect_or_warn',
+        help='(experimental) Automatically correct known faults of the file. '
+             'One of never (do nothing), warn (only emit a warning), '
+             'detect_or_warn(check whether we can do anything about it, warn '
+             'otherwise')
     postproc.add_option(
         '--prefer-avconv',
         action='store_false', dest='prefer_ffmpeg',