Quote:
Originally Posted by dhdurgee
I did a bit of a web search looking for further information and aproaches to attacking the gstreamer problem. This led me to try this:
Code:
[root@kindle mplayer]# /usr/bin/gst-launch -v filesrc location=./audiodump.wav ! 'audio/x-raw-int,rate=(int)44100,channels=(int)2' !
queue ! mixersink
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = audio/x-raw-int, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = audio/x-raw-int, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = audio/x-raw-int, rate=(int)44100, channels=(int)2
ERROR: from element /GstPipeline:pipeline0/MixerSink:mixersink0: The stream is in the wrong format.
Additional debug info:
gstbaseaudiosink.c(706): gst_base_audio_sink_setcaps (): /GstPipeline:pipeline0/MixerSink:mixersink0:
cannot parse audio format.
Execution ended after 20550000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...
Perhaps someone can help me interpret this further. Looking at the gst-inspect output for mixersink I believe I have the capabilities matched. Is this implying that my audiodump.wav is in incorrect format and I need to try again? Other suggestions?
Dave
PS: I have tried this with and without the WAV header -ao pcm -format s16le
|
You are on the right track here. Note that you do not need the WAV header, as it's raw PCM audio.
Try other common bitrate/channel combinations. For bitrates, try 16000, 44100, and 48000. For channels, try 1 and 2. Note that you don't need to reconvert the audio files until one works, as you could just feed it random bytes for all it cares (obviously, you'll hear garbage too, but the goal is to get it to start).