Mencoder: howto n.2 - Ricodifica dei filmati con riscalamento

<span style="font-family: arial;">Per ridurre lo spazio occupato dai file mpeg e' possibile ricodificarli in DiVX con mencoder in questo modo:</span><br /> <p><span style="font-size: 100%;"><span style="font-family: arial; font-weight: bold; color: rgb(0, 0, 255);">mencoder File_origine.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf scale=640:480 -oac copy -o File_destinazione.avi</span><br /> <br /> <span style="font-weight: bold; font-family: arial;">Spiegazione:</span><br /> </span></p> <div style="font-family: arial;"><span style="font-size: 100%;"><br /> </span> <table rules="none" frame="void" cols="2" cellspacing="0" border="0"> <colgroup><col width="78"></col><col width="377"></col></colgroup> <tbody> <tr> <td width="78" height="16" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">-ovc</span></td> <td width="377" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">output video codec</span></td> </tr> <tr> <td height="16" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">lavc</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">il codec lavc/libavcodec che si trova all&rsquo;interno del pacchetto ffempeg</span></td> </tr> <tr> <td height="16" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">vcodec</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">forza il codec (in questo caso mpeg4)</span></td> </tr> <tr> <td height="16" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">mbd</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">fissa il rateo di distorsione</span></td> </tr> <tr> <td height="15" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">scale</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">scale alla dimensione data (in questo caso 640x480)</span></td> </tr> <tr> <td height="16" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">-oac</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">outpuc audio codec</span></td> </tr> <tr> <td height="16" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">copy</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">copia l'audio in entrata cosi' come e' in uscita</span></td> </tr> <tr> <td height="15" align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">-o</span></td> <td align="left" bg="" style="color: rgb(0, 0, 153);"><span style="font-size: 100%;">l'output</span></td> </tr> </tbody> </table> <br /> </div> <span style="font-size: 100%;"><span style="font-family: arial;">In questo modo il file mantiene il codec audio originale: e' possibile anche codificarlo in mp3 con VBR in modo da risparmiare spazio, ma il file risultante sara' leggibile solo con mplayer.<br /> <br /> Eugenio</span></span>

SMF 2.0.15 | SMF © 2013, Simple Machines
TinyPortal © 2005-2012

Indietro all'articolo