[FFmpeg-user] [FFMpeg user] scripting help: find > xargs ffmpeg

John Doe jdmls at yahoo.com
Fri Mar 18 10:34:38 CET 2011

From: Dagfinn Stangeland <jodgipost at gmail.com>

> find   music/flac/ -iname *.flac -print0 | xargs -0 -I sourcefile ffmpeg -i
> >  sourcefile -acodec alac -map_meta_data 0:0,s0 "`basename "sourcefile"
> >  .flac`.m4a"

By example, if you use bash:

  $ toto=/a/b/c/toto.abc
  $ echo ${toto%%.abc}.def

Is that what you needed?



More information about the ffmpeg-user mailing list