Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MP3 mit Mono-Sound auf Stereo hochmixen? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Mon Nov 26, 2007 12:28 pm    Post subject: MP3 mit Mono-Sound auf Stereo hochmixen? [solved] Reply with quote

Hallo,

ich habe einige wenige Musikdateien im Mono-Format. Laut MPlayer-Ausgabe verfügen diese schon über 2 Soundchannels, allerdings, ist scheinbar einer der beiden (der rechte) leer. Gibt es eine Möglichkeit, den linken Channel auf den rechten zu kopieren und die Datei so abzuspeichern?

mfG!


Last edited by phate on Mon Nov 26, 2007 8:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Mon Nov 26, 2007 1:29 pm    Post subject: Reply with quote

Jepp, schau dir mal audacity an. Da kannst du mit rumbasteln
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Mon Nov 26, 2007 2:11 pm    Post subject: Reply with quote

Danke, aber kann man das auch über ein Konsolenprogramm irgendwie automatisieren?
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3369
Location: de

PostPosted: Mon Nov 26, 2007 3:18 pm    Post subject: Reply with quote

phate wrote:
Danke, aber kann man das auch über ein Konsolenprogramm irgendwie automatisieren?

Schuß ins Blaue:
Mit mencoder kannst du so allerlei machen. Da sollte auch was in der Hinsicht dabei sein.
Back to top
View user's profile Send private message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Mon Nov 26, 2007 3:35 pm    Post subject: Reply with quote

Hm ich hab's hiermit versucht:
Code:
mencoder -vc null -af channels=2:2:0:0:0:1 -oac copy -of rawaudio "$1.mp3" -o "$1.new.mp3"

Jedoch scheitert das mit folgender Meldung:
Code:
Erfolg: Format: 0  Daten: 0x0 - 0x19a880
Audio file-Dateiformat erkannt!
Videostream zwingend notwendig!

Dabei sage ich dem mencoder doch ausdrücklich, dass ich kein Video möchte, oder?
Back to top
View user's profile Send private message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Mon Nov 26, 2007 4:58 pm    Post subject: Reply with quote

Code:
mencoder -vc null -af channels=2:2:0:0:0:1 -oac copy -of rawaudio "$1.mp3" -o "$1.new.mp3"

Lass das '-vc null' einfach mal weg...
Das impliziert ja, daß Video da ist, das mencoder das aber ignorieren soll.
Deshalb die Fehlermeldung.
_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2
Back to top
View user's profile Send private message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Mon Nov 26, 2007 7:17 pm    Post subject: Reply with quote

Hi, hab' ich mir auch schon überlegt, aber:
Code:
user@host / $ mencoder -af channels=2:2:0:0:0:1 -oac copy -of rawaudio "$1" -o "$1.new.mp3"
MEncoder SVN-r24130 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(TM) XP 2200+ (Family: 6, Model: 8, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Kompiliert für x86 CPU mit folgenden Erweiterungen: MMX MMX2 3DNow 3DNowEx SSE

Erfolg: Format: 0  Daten: 0x0 - 0x19a880
Audio file-Dateiformat erkannt!
Videostream zwingend notwendig!

Beenden...
Back to top
View user's profile Send private message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Mon Nov 26, 2007 7:57 pm    Post subject: Reply with quote

Probier mal dieses Konstrukt:
Code:
#!/bin/bash
IFS="
"
mkfifo audiodump.wav
for f in `ls *.mp3`
  do
lame -q2 -V 5 --vbr-new ./audiodump.wav ./${f%.mp3}.mp3 &
mplayer $f -vc dummy -vo null -af channels=2:2:0:0:0:1 -ao pcm:file=./audiodump.wav >/dev/null
done
rm ./audiodump.wav

_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2
Back to top
View user's profile Send private message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Mon Nov 26, 2007 8:10 pm    Post subject: Reply with quote

Hmm, das Skript hat sämtliche mp3-Dateien in dem Ordner, in dem ich es ausgeführt habe, auf eine Länge von wenigen Sekunden abgeschnitten ...
Etwas Positives hat das Ganze: so weit es erkennbar ist (bei einer Songlänge von ca. 1 Sekunde ist es schwer festzustellen) kommt der Sound wenigstens sowohl von der linken wie von der rechten Seite.
Back to top
View user's profile Send private message
Aldo
Guru
Guru


Joined: 15 Jan 2003
Posts: 440
Location: Cologne, Germany

PostPosted: Mon Nov 26, 2007 8:17 pm    Post subject: Reply with quote

Seltsam, bei mir hat es den Testordner korrekt umwewandelt.
Aber du kannst es ja als Denkanstoss nehmen:
Code:
mplayer Mono-Datei.mp3 -vc dummy -vo null -af channels=2:2:0:0:0:1 -ao pcm:file=./audiodump.wav
und dann in einem 2. Schritt
Code:
lame -q2 -V 5 --vbr-new ./audiodump.wav ./neue-Datei.mp3
oder so...
Ist jetzt schon spät, hab nun keine Lust mehr weiter zu experimentieren.
Muß in's Bett. (Hab Frühschicht)
_________________
Abit A-N78-HD
Phenom 9750
8 GB Ram
Linux 2.6.29-gentoo
FreeBSD 7.2
Back to top
View user's profile Send private message
phate
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 298
Location: Aachen, Germany

PostPosted: Mon Nov 26, 2007 8:33 pm    Post subject: Reply with quote

Danke, das hier funktioniert ganz gut:

Code:
#!/bin/bash

mplayer "$1" -vc dummy -vo null -af channels=2:2:0:0:0:1 -ao pcm:file=/tmp/audiodump.wav
lame -q2 -V 5 --vbr-new /tmp/audiodump.wav "${1%.mp3}.stereo.mp3"
rm /tmp/audiodump.wav
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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