[gst-devel] not able to record specific h263 stream

Terry Leung terry83 at gmail.com
Wed Feb 13 04:17:03 CET 2008

Hi all,

I am writing a program to record a h263 stream and amr stream into a 3gp file
I use the pipeline below:

ffmux_3gp name=mux%s ! filesink name=file%s \
{ udpsrc name=audioudp%s caps=\"application/x-rtp,
media=(string)audio, payload=(int)98, clock-rate=(int)8000,
encoding-name=(string)AMR, encoding-params=(string)1,
octet-align=(string)1\" ! gstrtpjitterbuffer name=audiojitter%s
latency=4000 ts-offset=1000000 ! rtpamrdepay queue-delay=0
name=audiodepay%s ! queue name=audioqueue%s } ! mux%s.audio_0 \
{ udpsrc name=videoudp%s caps=\"application/x-rtp,
media=(string)video, payload=(int)34, clock-rate=(int)90000,
encoding-name=(string)H263\" ! gstrtpjitterbuffer name=videojitter%s
latency=0 ts-offset=1000000 ! rtph263depay queue-delay=0
name=videodepay%s ! queue name=videoqueue%s } ! mux%s.video_0"

but it doesnt success
It return error saying that "failed to write file header, check codec setting"
However, if i add a decoder and encoder after the rtph263depay
element, i get the things working nicely

I dont want to add a decoder and encoder in between as this will make
the quality worse than before
any method to solve the program?

More information about the gstreamer-devel mailing list