Converting wav to ogg audio fil

vassilux . v.gontcharov at gmail.com
Thu Nov 21 08:53:16 PST 2013


Hi,
I try to use on the Windows gstreamer-java,  gstreamer 0.10 installed
I can convert a test wav file from commande line like this :
gst-launch-0.10 -v filesrc location=test.wav ! decodebin2 location=test.wav
! audioconvert ! vorbisenc quality=0.5 ! oggmux ! filesink
location=test_new.ogg

I got the follow error when execute my sample
0:00:01.170600312  6712   19DC8D28 INFO                wavparse
gstwavparse.c:2031:gst_wavparse_stream_data:<wavparse0> Error pushing on
srcpad wavparse0:src, reason not-linked, is linked? = 1
0:00:01.170760033  6712   19DC8D28 WARN                wavparse
gstwavparse.c:2110:gst_wavparse_loop:<wavparse0> error: Internal data flow
error.
0:00:01.170776390  6712   19DC8D28 WARN                wavparse
gstwavparse.c:2110:gst_wavparse_loop:<wavparse0> error: streaming task
paused, reason not-linked (-1)
0:00:01.170808142  6712   19DC8D28 INFO        GST_ERROR_SYSTEM
gstelement.c:1983:gst_element_message_full:<wavparse0> posting message:
Internal data flow error.
0:00:01.182107622  6712   19DC8D28 INFO        GST_ERROR_SYSTEM
gstelement.c:2006:gst_element_message_full:<wavparse0> posted error
message: Internal data flow error.
Error: code=1, source=wavparse0, message=Internal data flow error.

This is my code

Pipeline pipe = new Pipeline("pipeline");
FileSrc fileSrc = new FileSrc("filesrc");
fileSrc.setLocation(filePath);
//
//final Element wavparse = ElementFactory.make("wavparse", "wavparse");
final Element decodebin = ElementFactory.make("decodebin2", "decodebin2");
final Element audioConvert = ElementFactory.make("audioconvert",
"audioconvert");
final Element audioResample = ElementFactory.make("audioresample",
"audioResample");
final Element vorbisEnc = ElementFactory.make("vorbisenc",
"vorbisenc");
final Element oggmux = ElementFactory.make("oggmux", "oggmux");
FileSink fileSink = new FileSink("filesink");
fileSink.setLocation(filePath + "_temp.ogg");
//
pipe.addMany(fileSrc, decodebin, audioConvert, audioResample, vorbisEnc,
oggmux, fileSink);
//
pipe.play();
Gst.main();
pipe.stop();

Thank for help

Vassili
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131121/848e0ad7/attachment.html>


More information about the gstreamer-devel mailing list