Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[HS?] exporter en masse du ogg en mp3

3 réponses
Avatar
Zuthos
--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Bonjour,
J'esp=E9re ne pas trop =EAtre Hors Sujet :-(
voila, j'essaye d'exporter des fichiers ogg en mp3 comme ceci
for i in *.ogg; do ogg123 -d wav -f - "$i" | lame -h - > mp3/"$i".mp3;
done
L'ordinateur semble faire quelquechose, mais cela ne marche pas??
une id=E9ee?
merci d'avance

--=20
Pr=E9cis=E9ment, la d=E9mence de ceux qui ne comprennent pas l'anarchie,
provient de l'impuissance o=F9 ils sont de concevoir une soci=E9t=E9 raison=
nable",
Francisco Ferrer

--ew6BAiZeqk4r7MaW
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFwN+tLuKvIr6sKjcRAnUsAJ0cvh5gSWsrWhjEaBu1VPt7vEdNHwCg/KzR
5Ev28YLpApJmsDD0Bd2ucOg=
=rDbr
-----END PGP SIGNATURE-----

--ew6BAiZeqk4r7MaW--


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

3 réponses

Avatar
Sylvain MEDEOT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zuthos a écrit :
Bonjour,
J'espére ne pas trop être Hors Sujet :-(
voila, j'essaye d'exporter des fichiers ogg en mp3 comme ceci
for i in *.ogg; do ogg123 -d wav -f - "$i" | lame -h - > mp3/"$i".mp3;
done
L'ordinateur semble faire quelquechose, mais cela ne marche pas??
une idéee?
merci d'avance




L'équivalent avec bladeenc (fonctionne bien)

#!/bin/sh
for i in *.ogg;
do
/usr/bin/ogg123 -d wav -f - "$i" | /usr/bin/bladeenc STDIN "`/bin/echo $i | sed
's/ogg/mp3/g' `";
done


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwON2G2qHcr4CDdkRApW3AJ0Q076sEcoxoKkbICSey0u8YKbJPgCfeT/4
Y/HcLwY45dw8Q7mjqTLUU4k =jrIq
-----END PGP SIGNATURE-----




___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
nicolas
Zuthos a écrit :

for i in *.ogg; do ogg123 -d wav -f - "$i" | lame -h - > mp3/"$i".mp3;
done



Mon petit doigt me dit qu'il y a un > en trop.

nicolas patrois : pts noir asocial
--
EMPLOI

M : Avant, une chenille était sûre de devenir papillon... maintenant,
avec la flexibilité... elle peut très bien finir rhinocéros dans une
boîte d'intérim...


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Jacques L'helgoualc'h
Bonsoir,

Sylvain MEDEOT a écrit, mercredi 31 janvier 2007, à 19:44 :
[...]
#!/bin/sh
for i in *.ogg;
do
/usr/bin/ogg123 -d wav -f - "$i" | /usr/bin/bladeenc STDIN "`/bin/echo $i | sed
's/ogg/mp3/g' `";
done



- l'option « g » de la substitution peut modifier le nom du fichier,

$ fileºch.Lionel_Rogg.ogg ; echo "$file" | sed s/ogg/mp3/g
Bach.Lionel_Rmp3.mp3

il vaudrait sans doute mieux utiliser « s/.ogg$/.mp3/ » ;


- on peut éviter un sous-shell (sh fourni par bash) :

$ sh -c 'file=Lionel_Rogg.ogg ; echo "${file%.*}.mp3"'
Lionel_Rogg.mp3

... mais il ne faut pas utiliser le double %% :

$ sh -c 'fileºch.Lionel_Rogg.ogg ; echo "${file%%.*}.mp3"'
Bach.mp3

$
--
Jacques L'helgoualc'h


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact