OVH Cloud OVH Cloud

conversion de l'audio sur une vidéo

1 réponse
Avatar
squatter
j'aimerai convertir le son de mes fichiers vidéos.
vidéo OGG (ogm)vers une vidéo (xvid)MP3
comment faire et avec quels logiciels ?

1 réponse

Avatar
no_spam
On Tue, 03 Feb 2004 20:38:27 +0100, squatter wrote:

j'aimerai convertir le son de mes fichiers vidéos.
vidéo OGG (ogm)vers une vidéo (xvid)MP3
comment faire et avec quels logiciels ?


De la vidéo ogg, c'est original...
Les codecs vidéo ogg sont encore au stade de la recherche,
il me semble, et sont loin d'être releasés...
Je suppose donc que tu parles de fichiers vidéo mpeg ou divx
avec une bande son en ogg...

A part celà, ce n'est pas forcément une bonne idée: tu vas
pas mal dégrader la qualité en faisant celà.
La doc de mplayer dit (dans les premières réponses de Google, hum...):
(exemple 1 de encoding-tips.txt)

In example 1, we'll suppose you want to re-encode the audio anyway.
This will be essential if your source audio isn't mp3, e.g. for DVD's
or nasty avi files with divx/wma audio. This approach makes things
much easier.

Step 1: Dump the audio with mplayer -ao pcm -nowaveheader. There are
various options that can be used to speed this up, most notably -vo
null, -vc null, and/or -hardframedrop. -benchmark also seemed to help
in the past. :)

Step 2: Figure out what -delay value syncs the audio right in mplayer.
If this number is positive, use a command like the following:

dd if=audiodump.wav bs64 skip=[delay] | lame -x - out.mp3

where [delay] is replaced by your delay amount in hundredths of a
second (1/10 the value you use with mplayer). Otherwise, if delay is
negative, use a command like this:

( dd if=/dev/zero bs64 skip=[delay] ; cat audiodump.wav ) | lame -x - out.mp3

Don't include the minus (-) sign in delay. Also, keep in mind you'll
have to change the 1764 number and provide additional options to lame
if your audio stream isn't 44100/16bit/littleendian/stereo.

Step 3: Use mencoder to remux your new mp3 file with the movie:

mencoder -audiofile out.mp3 -oac copy ...

...