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

Dagfinn Stangeland jodgipost at gmail.com
Fri Mar 18 11:13:28 CET 2011


2011/3/18 John Doe <jdmls at yahoo.com>

> 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
>  /a/b/c/toto.def
>
> Is that what you needed?
>
> JD
>

I'm afraid I need to be spoonfed;) or at least see your example in context.

D


More information about the ffmpeg-user mailing list