You are not logged in.
Pages: 1
Is there a way to convert audio/video files on the command line through gstreamer? I have some files (mostly wavpack) that (I believe) ffmpeg just turns into static, but Serpentine (which uses gstreamer) can properly decode.
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
I'm pretty sure gst-launch will do what you want, but it won't be easy. The man page lists some examples for converting files, but it's fairly low-level, so it would require some knowledge on gstreamer internals. mencoder or sox would be simpler.
Offline
are you converting to .wav first? .wv ~> .wav ~> .x
otherwise, if you go from .wv ~> x, you'll get nothing but static.
Offline
I have tried to convert from .wv to .wav and that's when I ended up with nothing but static, unfortunately... I'll look into gst-launch, but I also found something called perl-gstreamer. Perhaps I can make some kind of a script using that.
If I'm successful, I'll post it.
EDIT: If you only need to decode wv files, wavunpack will do it. I've been reading the gstreamer documentation and it doesn't look like it will be *too* hard to create a script that decodes through gst-launch based on the file extension. The basic syntax follows:
gst-launch filesrc location=(input filename.ext) ! (gstreamer plugins go here) ! filesink location=(output filename.ext)
and replace fields in () with the appropriate filename and pipeline description. For example, you could do the following:
gst-launch filesrc location=music.mp3 ! mad ! vorbisenc ! filesink location=music.ogg (mp3 to ogg)
gst-launch filesrc location=music.wv ! wavpackparse ! wavpackdec ! audioconvert ! audioresample ! filesink location=music.wav (wv to wav)
gst-launch filesrc location=music.mp3 ! mad ! flacenc ! filesink location=music.flac (mp3 to flac)
Last edited by mrbug (2008-01-11 13:35:06)
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
wvunpack to wav in working fine here (since I actually read the manual [I hadn't when I first responded])
Last edited by skottish (2008-01-12 03:46:54)
Offline
wvunpack to wav in working fine here (since I actually read the manual [I hadn't when I first responded])
Ha, yeah... I found that while I was playing with gst-launch. Go figure...
Although I am playing with gst-launch to make a decoder for all file types (similar to ffmpeg) using the decodebin pipe.
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
Pages: 1