Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mp3: 192kbps -> 128kbps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Finnish
View previous topic :: View next topic  
Author Message
ormi
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 234
Location: lappeen Ranta, Finland

PostPosted: Tue Jun 08, 2004 8:18 am    Post subject: mp3: 192kbps -> 128kbps Reply with quote

Onkos helppoa tapaa konvertoida mp3:set 192->128kbs. Laatuhan tuossa kärsii, mutta mahtuu enemmän levyjä yhdelle cd:lle, kun soitan niitä autossa :roll:
Back to top
View user's profile Send private message
wilho
Apprentice
Apprentice


Joined: 22 Jul 2002
Posts: 169

PostPosted: Tue Jun 08, 2004 8:52 am    Post subject: Reply with quote

mpg123 -c biisi.mp3 | lame -r -h -v -b 128 - - > biisi_128.mp3

Tuo tuli sitten hatusta, en ole kokeillut, mutta luultavasti toimii...

edit: tuli mieleen, että useampikin lienee tarpeen konvertoida
Tee joku tämmöinen skripti to128.sh tai sitten funktio .bashrc:hen
Code:

#!/bin/bash
for arg in "$@"
do
  mpg123 -c $arg | lame -r -h -v -b 128 - - > ${arg}_128.mp3
done

ja kutsu sitä vaikka näin
to128.sh biisi.mp3
tai
to128.sh | eval ls *.mp3

Tämäkin on täysin testaamaton...tagit tuossa taitaa tosin jäädä matkalle.
Back to top
View user's profile Send private message
ormi
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 234
Location: lappeen Ranta, Finland

PostPosted: Tue Jun 08, 2004 6:31 pm    Post subject: Reply with quote

Ei pelaa tuo skripti. Näyttää vain saman kuin 'ls' :(
Back to top
View user's profile Send private message
wilho
Apprentice
Apprentice


Joined: 22 Jul 2002
Posts: 169

PostPosted: Wed Jun 09, 2004 7:24 am    Post subject: Reply with quote

Kutsuesimerkki on väärin, pitäisi olla
to128.sh `eval ls *.mp3`

Ja nuo hipsut on ne hipsut mitkä löytyy backspacen vierestä shiftin kanssa...
Back to top
View user's profile Send private message
Ari Rahikkala
Guru
Guru


Joined: 02 Oct 2002
Posts: 370
Location: Finland

PostPosted: Wed Jun 09, 2004 7:45 am    Post subject: Reply with quote

lame kyllä osaa muuttaa itsekin mp3->mp3:

Code:
for file in *.mp3; do lame -h -b 128 "${file}" "${file/.mp3/-128.mp3}"; done


Tämä komentorivi tekee 128kbps:set kopiot jokaisesta .mp3-päätteisestä tiedostosta tässä hakemistossa. Perinteiset id3-tagit kylläkin katoavat joten muuta ne id3v2-tageiksi, komennolla
Code:
id3v2 -C *
. Tarvitset ohjelmat media-sound/lame ja media-sound/id3v2.
_________________
<laurentius> gentoo linux?
<ari> Yesh.
<laurentius> they look horny
Back to top
View user's profile Send private message
ormi
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 234
Location: lappeen Ranta, Finland

PostPosted: Wed Jun 09, 2004 9:39 am    Post subject: Reply with quote

Kiitos vinkeistä, nyt pelaa! :)
Back to top
View user's profile Send private message
wilho
Apprentice
Apprentice


Joined: 22 Jul 2002
Posts: 169

PostPosted: Wed Jun 09, 2004 10:31 am    Post subject: Reply with quote

Jahas, tässähän oppii samalla uutta - en tiennytkään että for osaa lukea tuolla tavalla tiedostolistan :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Finnish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum