After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732856 - cannot playback recorded audio with ffdec_g726
cannot playback recorded audio with ffdec_g726
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.0
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-07 15:04 UTC by pcouliba
Modified: 2014-07-07 16:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pcouliba 2014-07-07 15:04:46 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 ...
Comment 1 Wim Taymans 2014-07-07 15:15:56 UTC
G726 can not be placed in a raw file like that, the decoder needs to know the bitrate to calculate the blocksize.
Comment 2 pcouliba 2014-07-07 15:21:36 UTC
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"
Comment 3 Wim Taymans 2014-07-07 15:27:44 UTC
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
Comment 4 pcouliba 2014-07-07 16:14:53 UTC
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.
Comment 5 Nicolas Dufresne (ndufresne) 2014-07-07 16:38:47 UTC
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/