not able to record specific h263 stream

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

not able to record specific h263 stream

Terry Leung-2
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?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: not able to record specific h263 stream

qwerty-1
Hi All,

Is there any solution of above given problem? I also do not want to decode and encode the a/v data before dumping into file. If there is anyway to dump the a/v RTP stream into file without applying decoding and encoding then please share.

Thanks,
Uma
Reply | Threaded
Open this post in threaded view
|

Re: not able to record specific h263 stream

Nathanael D. Noblet
On 10/22/2011 05:39 AM, qwerty-1 wrote:
> Hi All,
>
> Is there any solution of above given problem? I also do not want to decode
> and encode the a/v data before dumping into file. If there is anyway to dump
> the a/v RTP stream into file without applying decoding and encoding then
> please share.


You would need to depay the rtp stream (which would result in I assume
audio & video), which you then feed into a muxer->filesink and you'd be
done...
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel