You are not logged in.

#1 2008-01-11 01:27:55

mrbug
Member
Registered: 2007-07-17
Posts: 221

command line gstreamer?

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

#2 2008-01-11 01:34:11

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: command line gstreamer?

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

#3 2008-01-11 04:27:19

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: command line gstreamer?

are you converting to .wav first? .wv ~> .wav ~> .x

otherwise, if you go from .wv ~> x, you'll get nothing but static.

Offline

#4 2008-01-11 13:02:09

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: command line gstreamer?

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

#5 2008-01-12 03:46:12

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: command line gstreamer?

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

#6 2008-01-12 07:14:38

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: command line gstreamer?

skottish wrote:

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

Board footer

Powered by FluxBB