Pages : 1
#1 Le 08/12/2010, à 15:56
- Snake046
[ffmpeg] From MP3 to OGG
Lol ! Les développeurs de ffmpeg ont laissé une division par zéro dans leur programme !
J'ai sans doute tapé une mauvaise commande, mais voici ce qui a causé ce plantage dans ffmpeg :
ffmpeg -ab 192k -acodec vorbis -i track01.mp3 track01.ogg
Ayant bien parcouru la documentation, je pensais que cette commande devrait encoder correctement mon fichier en OGG Vorbis (sans l'option -acodec, il encode en OGG Flac, et j'ai besoin d'OGG Vorbis)... visiblement non ? (ou peut-être que oui, mais comme mon ffmpeg est récalcitrant).
Savez-vous comment je pourrais convertir de mp3 à ogg en passant par ffmpeg ?
Je suis fatigué de télécharger des binaires windows pour un simple encodage en vorbis !
Aucun message n'est caché dans cette signature.
Hors ligne
#2 Le 08/12/2010, à 22:23
- wido
Re : [ffmpeg] From MP3 to OGG
Bonjour,
essaye
$ ffmpeg -i track01.mp3 -f ogg -strict experimental -acodec vorbis -ab 192k track01.ogg
mais j'ai au final une musique inaudible
$ mediainfo /home/wido/Desktop/01-daft_punk-overture.ogg
General
Complete name : /home/wido/Desktop/01-daft_punk-overture.ogg
Format : OGG
File size : 330 KiB
Duration : 2mn 28s
Overall bit rate : 18.3 Kbps
Writing application : Lavf52.84.0
Audio
ID : 1186174983 (0x46B39807)
Format : Vorbis
Duration : 2mn 28s
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Writing library : Lavf52.84.0
par contre avec:
$ ffmpeg -i track01.mp3 -f ogg -strict experimental -acodec vorbis -aq 6 track01.ogg
on obtient de meilleur résultat (Kbps)
$ mediainfo /home/wido/Desktop/01-daft_punk-overture.ogg
General
Complete name : /home/wido/Desktop/01-daft_punk-overture.ogg
Format : OGG
File size : 607 KiB
Duration : 2mn 28s
Overall bit rate : 33.6 Kbps
Writing application : Lavf52.84.0
Audio
ID : 3574435273 (0xD50D8DC9)
Format : Vorbis
Duration : 2mn 28s
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Writing library : Lavf52.84.0
Testé sous archlinux.
$ ffmpeg -version
FFmpeg version SVN-r25679, Copyright (c) 2000-2010 the FFmpeg developers
built on Nov 5 2010 09:22:10 with gcc 4.5.1
Hors ligne
Pages : 1