13 mars 2013

Mencoder - Réparer un flux mp4

FICHIER MP4
mencoder "entree.mp4" -oac copy -fafmttag 0x706D -ovc copy -forceidx -o "sortie.mp4"

Utiliser Mencoder pour réparer les flux audio-video partiel ou avec un index cassé. Permet de réparer un video partiellement téléchargée pour la rendre visible avec Mplayer ou VLC par exemple

-forceidx permet de reconstruire l'index de la video

-oac copy -fafmttag 0x706D permet de forcer le marqueur audio


voir ici
http://www.mplayerhq.hu/DOCS/HTML/fr/menc-feat-streamcopy.html

FICHIER AVI
mencoder "entree.avi" -o "sortie.avi"  -forceidx -oac copy -ovc copy

sur un flux AVI ces options devraient suffire.


-ENGLISH BELOW-
Repair your broken video stream with mencoder. For MP4 type file use  :
mencoder "entree.mp4" -oac copy -fafmttag 0x706D -ovc copy -forceidx -o "sortie.mp4"

or AVI type file use :
mencoder "entree.avi" -o "sortie.avi"  -forceidx -oac copy -ovc copy

Give best quality without rencoding the stream.


Aucun commentaire: