"Could not decode stream" error with GStreamer

cvinyas cvinyas at gmail.com
Thu Aug 15 10:56:22 PDT 2013


Hello to everybody,

I'm currently working with GStreamer to stream a mp4 720p video and play it
with a Raspberry Pi. I archived that. I am able now to play the video and it
looks fine. The problem appears with the audio. I'm trying to send both
video and audio to the Raspberry but the Faad (Free AAC decoder) doesn't
work properly.

This error appears:

ERROR: from element /GstPipeline:pipeline0/GstFaad:faad0: Could not decode
stream.
Additional debug info: gstfaad.c(820):gst_faad_handle_frame ():
/GstPipeline:pipeline0/GstFaad:faad0: Failed to init decoder from stream.

Using the tail  --gst-debug-level=2 in the receiver, it reveals warnings
like " Invalid sample rate index 13" (from the aacparse) or Channel coupling
not yet implemented (from audio decoder) or Bitstream value not allowed by
specification.

I attach you the pipelines I have used:

Server:

gst-launch-1.0 -v filesrc location=/home/carlos/Descargas/test.mp4 ! qtdemux
name = dmux dmux.audio_0 ! aacparse ! rtpmp4gpay ! udpsink
host=192.168.137.3 port=5004  dmux.video_0 ! queue ! h264parse ! avdec_h264
! x264enc tune="zerolatency" threads=4 speed-preset=2 ! rtph264pay
config-interval=2 mtu=4500 ! udpsink host=192.168.137.3 port=5002

Client (Raspberry):

gst-launch-1.0 -v udpsrc uri=udp://192.168.137.3:5004
caps="application/x-rtp,media=(string)audio" ! queue ! rtpmp4gdepay !
aacparse ! faad ! alsasink udpsrc uri=udp://192.168.137.3:5002 caps
="application/x-rtp" ! rtpjitterbuffer ! queue ! rtph264depay ! h264parse !
omxh264dec ! autovideosink

I will appreciate your help to solve the problem.




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Could-not-decode-stream-error-with-GStreamer-tp4661571.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list