Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Using <code>eval</code> can do what you want... Depending on what you have in <code>$R_IMG</code>, <code>$SOUND</code> and <code>$OUT</code>, they may need double-quote escaping, eg. <code>\"$SOUND\"</code> .... </p> <p>Your <code>$META</code> (which I assume is another name for youur originally named $ALBUM) doesn't need to be laid out like this, but it surely helps (me) ... Just spaces, as in your original works just as well. </p> <pre><code>META=' -metadata album="Peregrinações" -metadata title="Passeio ao PETAR" -metadata author="Rogério Madureira" -metadata date="2012" -metadata description="Áudio de um passeio ao PETAR" -metadata comment="Áudio capturado com TACAM DR-07MKII e Foto capturada com Canon PowerShot S5IS" '; META="$(echo "$META" |sed 's|"|\\\\"|g' |tr '\n' ' ')" eval "ffmpeg -i $R_IMG -r 1 -b 1800 -i $SOUND -acodec libmp3lame -ab 128k $META -y $OUT" </code></pre> <hr> <p>If you prefer to not use the <code>sed</code> conversion line, you simply need to change each <code>"</code> in <code>$META</code> to <code>\\"</code> as in this next example: </p> <pre><code>META=' -metadata album=\\"Peregrinações\\" -metadata title=\\"Passeio ao PETAR\\" -metadata author=\\"Rogério Madureira\\" -metadata date=\\"2012\\" -metadata description=\\"Áudio de um passeio ao PETAR\\" -metadata comment=\\"Áudio capturado com TACAM DR-07MKII e Foto capturada com Canon PowerShot S5IS" ' eval "ffmpeg -i $R_IMG -r 1 -b 1800 -i $SOUND -acodec libmp3lame -ab 128k $META -y $OUT" </code></pre> <hr> <p>I've tested it successfully with the following <code>ffmpeg</code> encoding parameters: </p> <pre><code>eval "ffmpeg -i ~/input.flv -sameq -acodec libmp3lame -ab 128k $META -y ~/output.mp3" </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload