ffmpeg says "At least one output file must be specified"

Archived from the Transloadit support forum. Originally posted on October 27, 2011; details may be outdated, see our docs for current behavior. Original thread

Assembly REDACTED

ffmpeg says “At least one output file must be specified”

I’m using a template with a bunch of custom ffmpeg options.

  "ffmpeg": {
    "pix_fmt": "yuv422p",
    "vcodec": "mpeg2video",
    "flags": "+ildct+ilme",
    "top": "1",
    "dc": "10",
    "flags2": "+ivlc+non_linear_q",
    "qmin": "1",
    "vtag": "xd5c",
    "rc_max_vbv_use": "1",
    "rc_min_vbv_use": "1",
    "b": "35000k",
    "minrate": "35000k",
    "maxrate": "35000k",
    "bufsize": "36408333",
    "bf": "2",
    "aspect": "16:9",
    "acodec": "pcm_s16be",
    "newaudio": "true"
  }

Further ffmpeg research makes me think that it’s a result of the “newaudio” option, which goes after the output file in the ffmpeg command line. So your software would need to make an exception for the “newaudio” option when building your command line…?

Further ffmpeg research makes me think that it’s a result of the “newaudio” option, which goes after the output file in the ffmpeg command line.

Indeed, that seems very quirky, I don’t see why ffmpeg would do it that way …

Karl: Can you look into this today? I think “whitelisting” this flag and putting it at the end seems reasonable for now.

Thanks guys!

Hi Justin,

please use -map instead of -newaudio because in the next version of ffmpeg it will be removed.

ffmpeg changelog:

-newvideo/-newaudio/-newsubtitle are gone, because they were redundant and worked in a nonstandard way. -map is sufficient to add streams to output files.

Kind regards,
Karl Skomski

Ah, that makes sense. Thanks!

>