[FFmpeg-user] help with quotes in bash script

tim nicholson nichot20 at yahoo.com
Wed May 21 08:23:28 CEST 2014


On 21/05/14 02:01, Elliott Balsley wrote:
> I have a bash script for running ffmpeg, which broke when I added more
> than one video filter (which required adding quotes).  Basically I
> have several commands which append options to a long string called
> $ffopts, then I call ffmpeg like this:
> 
> ffmpeg $ffpreopts -i "$f" -acodec libfdk_aac -b:a 128k $ffopts
> "$output_dir/$base.mp4"
> 
> But it gives the below error.
> 
> [NULL @ 0x7f8473809200] Unable to find a suitable output format for
> 'format=pix_fmts=rgb24,'
> format=pix_fmts=rgb24,: Invalid argument
> 
> I think this is something to do with my use of quotes, but I can't
> figure it out.  If I add a line in the script to echo $ffopts right
> before running ffmpeg, it shows like this:
> 

Possibly an unescaped carriage return in $ffopts? difficult to tell from
your word wrapped output.


> [...]



More information about the ffmpeg-user mailing list