Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 2
    Have some faith man, ffmpeg -i input.m4a "$@" output.m4a does what you want. :) Also, -metadata "title=It's got spaces" is easier to write than -metadata 'title=It'\''s got spaces'. Commented Sep 6, 2017 at 5:25
  • @Satō please turn that into an answer, it’s much better than the current answers :-/. Commented Sep 6, 2017 at 5:37
  • @SatōKatsura: I actually have one additional level of indirection that prevents "$@" from working. Will update question... Commented Sep 6, 2017 at 5:39
  • The solution is still "$@". Change the upper layer scripts to take this into account, not the other way around. Unquoted $@ is almost never what you want (it certainly isn't here). Commented Sep 6, 2017 at 5:44
  • @SatōKatsura: Can you explain how to change the upper layer scripts? I tried changing the upper layer scripts to "$@" as well, but I got an error where $@ did not seem to be expanded. BTW I am using single quotes so special charactes like '$' do not get expanded if they are part of the metadata. Commented Sep 6, 2017 at 5:51