GNOME Bugzilla – Bug 732856
cannot playback recorded audio with ffdec_g726
Last modified: 2014-07-07 16:38:47 UTC
Record: gst-launch autoaudiosrc ! ffenc_g726 bitrate=16000 ! filesink location="recg726.wav" File (recg726.wav) recorded fine. Playback; gst-launch filesrc location=recg726.wav ! ffdec_g726 ! alsasink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /GstPipeline:pipeline0/ffdec_g726:ffdec_g7260: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. Additional debug info: gstffmpegdec.c(2804): gst_ffmpegdec_chain (): /GstPipeline:pipeline0/ffdec_g726:ffdec_g7260: ffdec_g726: input format was not set before data start ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ... For Playback, I also tried: gst-launch playbin uri=file:///home/root/recg726.wav Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind: Could not determine type of stream. Additional debug info: gsttypefindelement.c(996): gst_type_find_element_activate (): /GstPlayBin:playbin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind Setting pipeline to NULL ... Freeing pipeline ...
G726 can not be placed in a raw file like that, the decoder needs to know the bitrate to calculate the blocksize.
I recorded with the bitrate in the recording command but when I specify the bitrate with the decoder, it refuses it; How do specify the bitrate in the decoding commands as you suggested? This is what I just tried for playback with bitrate(same as I did in recording): gst-launch filesrc location=recg726.wav ! ffdec_g726 bitrate=16000 ! alsasink WARNING: erroneous pipeline: no property "bitrate" in element "ffdec_g7260"
this works, for example: gst-launch-1.0 -e autoaudiosrc ! avenc_g726 bitrate=16000 ! matroskamux ! filesink location=g726.mkv gst-launch-1.0 filesrc location=g726.mkv ! matroskademux ! avdec_g726 ! pulsesink
Basically, you are saying that I need a matching muxer to mux the bitrate info into my g726 file during recording, right? Do you know which muxer/demuxer works for ffenc_g726/ffdec_g726? matroskamux/matroskademux do not work with ffenc_g726/ffdec_g726. I am also interested to use your avenc_g726. Do you have a link where to get this avenc_g726 plugin? my linux release does not come with such plugin.
This is not a support forum. Please register to mailing lists if you want to ask for help. See gstreamer-devel http://gstreamer.freedesktop.org/lists/