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 668011 - ffenc_g722: does not work
ffenc_g722: does not work
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
unspecified
Other All
: Normal blocker
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-16 13:15 UTC by IamTrying
Modified: 2012-09-24 18:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description IamTrying 2012-01-16 13:15:24 UTC
It does not work i have tried several times and also with latest snapshot from git. Also it does not output the audio. How can i fix it?


$ GST_DEBUG=2 gst-launch -v autoaudiosrc ! audioconvert ! audioresample ! audio/x-raw-int, endianness=1234, signed=true, width=16, depth=16 ! ffenc_g722 ! rtpg722pay ! rtpg722depay ! ffdec_g722 ! audioresample ! audioconvert ! autoaudiosink
Setting pipeline to PAUSED ...
0:00:00.060150075  2447      0x1485080 WARN                   pulse pulsemixerctrl.c:365:gst_pulsemixer_ctrl_open:<autoaudiosrc0-actual-src-puls> Failed to get source info: Invalid argument
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstPulseSrc:autoaudiosrc0-actual-src-puls: source-output-index = 3
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstPulseSrc:autoaudiosrc0-actual-src-puls: actual-buffer-time = 131070000
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstPulseSrc:autoaudiosrc0-actual-src-puls: actual-latency-time = 10000
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0.GstGhostPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstPulseSrc:autoaudiosrc0-actual-src-puls.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
0:00:00.078434096  2447      0x1485080 WARN                     bin gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query latency
New clock: GstAudioSrcClock
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0.GstGhostPad:src.GstProxyPad:proxypad0: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
0:00:00.094592504  2447      0x1831f30 WARN                  ffmpeg gstffmpegcodecmap.c:140:gst_ff_channel_layout_to_gst: Unknown channels in channel layout - assuming NONE layout
/GstPipeline:pipeline0/ffenc_g722:ffenc_g7220.GstPad:src: caps = audio/G722, channels=(int)1, rate=(int)16000, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >, block_align=(int)0, bitrate=(int)128000
/GstPipeline:pipeline0/ffenc_g722:ffenc_g7220.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)16000, channels=(int)1
/GstPipeline:pipeline0/GstRtpG722Pay:rtpg722pay0.GstPad:src: caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)G722, encoding-params=(string)1, channels=(int)1, payload=(int)96, ssrc=(uint)3384409475, clock-base=(uint)971129076, seqnum-base=(uint)50217
/GstPipeline:pipeline0/GstRtpG722Pay:rtpg722pay0.GstPad:sink: caps = audio/G722, channels=(int)1, rate=(int)16000, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >, block_align=(int)0, bitrate=(int)128000
/GstPipeline:pipeline0/GstRtpG722Pay:rtpg722pay0: timestamp = 971129076
/GstPipeline:pipeline0/GstRtpG722Pay:rtpg722pay0: seqnum = 50217
/GstPipeline:pipeline0/GstRtpG722Depay:rtpg722depay0.GstPad:src: caps = audio/G722, rate=(int)16000, channels=(int)1, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >
/GstPipeline:pipeline0/GstRtpG722Depay:rtpg722depay0.GstPad:sink: caps = application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)G722, encoding-params=(string)1, channels=(int)1, payload=(int)96, ssrc=(uint)3384409475, clock-base=(uint)971129076, seqnum-base=(uint)50217
/GstPipeline:pipeline0/ffdec_g722:ffdec_g7220.GstPad:sink: caps = audio/G722, rate=(int)16000, channels=(int)1, channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >
0:00:00.101820476  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.101889186  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.120442792  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.120512721  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.140357231  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.140425430  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.161284050  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.161352058  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.179764985  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.179832807  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.200468496  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.200487828  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.220860150  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.220927791  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.241719702  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.241787926  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.261882358  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.261950681  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.282108047  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.282176276  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.300610386  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.300678570  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.320750359  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.320818257  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.341645701  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.341713854  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.361892925  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.361961094  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.380403196  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.380471375  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.399183333  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.399202208  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.419733742  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.419801544  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.439980986  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.440048803  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.460756810  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.460776190  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.479545679  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.479613641  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.499848978  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.499916740  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.520853256  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.520921439  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.540826247  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.540894300  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.560977912  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.561046125  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.581171754  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.581240825  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.601267925  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.601336384  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.621452646  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.621520509  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.640004087  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.640071563  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.659826855  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.659847345  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.680424716  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.680492900  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.701280533  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.701348296  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.720029866  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.720099859  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.740947042  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.741014986  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.761122609  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.761190892  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.779630724  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.779700186  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.799457900  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.799476658  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.820050917  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.820118674  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.840292752  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.840360830  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.860884399  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.860903610  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.881369149  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.881436887  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.901274629  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.901341699  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.922346122  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.922414150  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.940756332  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.940824466  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.960976131  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.961043567  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:00.982118580  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.982186102  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.002217264  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.002284525  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.022508891  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.022576899  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.040901532  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.040969064  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.061408600  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.061427807  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.080275427  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.080343515  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.100474007  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.100542612  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
^CCaught interrupt -- 0:00:01.120666851  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.120734368  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.141772654  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.141841199  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.162015837  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.162083544  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.182236378  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.182304717  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.202280676  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.202348684  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.220724403  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.220792993  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.241751223  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.241819653  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.261932691  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.262000072  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.280465760  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.280533778  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.300712518  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.300779980  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
0:00:01.320936428  2447      0x1831f30 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:01.321005243  2447      0x1831f30 WARN                  ffmpeg gstffmpegdec.c:2308:gst_ffmpegdec_frame:<ffdec_g7220> ffdec_g722: decoding error (len: -22, have_data: 0)
handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 1252817983 ns.
Setting pipeline to PAUSED ...
0:00:01.332084896  2447      0x18330f0 WARN                audiosrc gstaudiosrc.c:239:audioringbuffer_thread_func:<autoaudiosrc0-actual-src-puls> error reading data -1 (reason: Success), skipping segment
Setting pipeline to READY ...
/GstPipeline:pipeline0/ffdec_g722:ffdec_g7220.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstRtpG722Depay:rtpg722depay0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstRtpG722Depay:rtpg722depay0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstRtpG722Pay:rtpg722pay0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstRtpG722Pay:rtpg722pay0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/ffenc_g722:ffenc_g7220.GstPad:src: caps = NULL
/GstPipeline:pipeline0/ffenc_g722:ffenc_g7220.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0.GstGhostPad:src: caps = NULL
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstPulseSrc:autoaudiosrc0-actual-src-puls.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstPulseSrc:autoaudiosrc0-actual-src-puls: source-output-index = 4294967295
Setting pipeline to NULL ...
Freeing pipeline ...
Comment 1 Tim-Philipp Müller 2012-01-16 13:28:11 UTC
What's the output of:

    gst-inspect-0.10 ffenc_g722 | head -n 18

?

Does this work:

  gst-launch-0.10 audiotestsrc ! audio/x-raw-int,channels=2 ! audioconvert ! ffenc_g722 ! ffdec_g722 ! audioconvert ! autoaudiosink

?
Comment 2 IamTrying 2012-01-16 13:34:25 UTC
No, it does not work.

1) $ gst-inspect-0.10 ffenc_g722 | head -n 18
Factory Details:
  Long name:	FFmpeg G.722 ADPCM encoder
  Class:	Codec/Encoder/Audio
  Description:	FFmpeg g722 encoder
  Author(s):	Wim Taymans <wim.taymans@gmail.com>, Ronald Bultje <rbultje@ronald.bitfreak.net>
  Rank:		secondary (128)

Plugin Details:
  Name:			ffmpeg
  Description:		All FFmpeg codecs and formats (local snapshot)
  Filename:		/usr/lib/gstreamer-0.10/libgstffmpeg.so
  Version:		0.10.13.1
  License:		GPL
  Source module:	gst-ffmpeg
  Binary package:	FFmpeg
  Origin URL:		http://ffmpeg.org/

GObject


2) $ gst-launch-0.10 audiotestsrc num-buffers=5 ! audio/x-raw-int,channels=2 ! audioconvert ! ffenc_g722 ! ffdec_g722 ! audioconvert ! autoaudiosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.071771712  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.071980686  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.072095351  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.072486237  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.072598306  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.072700869  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.073064287  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.073173089  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.073274383  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.073620889  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.073727099  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.073828158  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.074175576  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.074280955  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.074381803  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
0:00:00.074482457  3528      0x1e10a60 ERROR                 ffmpeg :0:: A custom get_buffer() cannot be used with avcodec_decode_audio3()
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 258741 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Comment 3 Olivier Crête 2012-03-20 20:50:18 UTC
Since the switch to tracking the 0.8 branch of libav, it just abort()s... using this simple pipeline "audiotestsrc ! ffenc_g722 ! fakesink"

But my guess is that it's probably an upstream bug in libav. I suggest we disable it for now until it's fixed upstream.
Comment 4 Olivier Crête 2012-03-20 20:53:24 UTC
I should also mention that with 39808588c0b56edfa1c4c77d86618742cffe1019, the last release before3 the switch to the 0.8 branch, all the pipelines on this page work.
Comment 5 Olivier Crête 2012-09-10 23:50:09 UTC
Using the git master of gst-libav as of today (Sept 10, 2012) works fine.