Converting MPEG4-GENERIC pcap audio using rtpmp4depay

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

Converting MPEG4-GENERIC pcap audio using rtpmp4depay

shiva varma
When I use rtpmp4depay to convert MPEG4-GENERIC audio in pcap, I get the "reason not-negotiated" error

gst-launch filesrc location=audio.pcap ! pcapparse src-ip=10.22.156.148 ! "application/x-rtp, media=audio, clock-rate=48000, encoding-name=MPEG4-GENERIC" ! rtpmp4gdepay ! fakesink

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2550): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Can you point me to the possible cause of the error

Thanks
-Shiva
Reply | Threaded
Open this post in threaded view
|

Re: Converting MPEG4-GENERIC pcap audio using rtpmp4depay

Wim Taymans
On Fri, 2010-12-17 at 11:53 -0800, shiva varma wrote:

> When I use rtpmp4depay to convert MPEG4-GENERIC audio in pcap, I get the
> "reason not-negotiated" error
>
> gst-launch filesrc location=audio.pcap ! pcapparse src-ip=10.22.156.148 !
> "application/x-rtp, media=audio, clock-rate=48000,
> encoding-name=MPEG4-GENERIC" ! rtpmp4gdepay ! fakesink
>
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2550): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> Can you point me to the possible cause of the error

Your caps are incomplete, gst-inspect rtpmp4gdepay will show that
'streamtype' and 'mode' should be specified on the caps.

Wim

>
> Thanks
> -Shiva
>



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Converting MPEG4-GENERIC pcap audio using rtpmp4depay

shiva varma
Hi Wim
  Thanks for your response

I tried adding mode and streamtype to the caps...

gst-launch filesrc location=cts.mpeg4.PT96.pcap ! pcapparse ! "application/x-rtp, payload=96, media=audio, clock-rate=48000, encoding-name=MPEG4-GENERIC, mode=generic, streamtype=4" ! rtpmp4gdepay ! fakesink

gst-launch filesrc location=cts.mpeg4.PT96.pcap ! pcapparse ! "application/x-rtp, payload=96, media=audio, clock-rate=48000, encoding-name=MPEG4-GENERIC, mode=generic, streamtype=5" ! rtpmp4gdepay ! fakesink

Also tried with mode= AAC-lbr and AAC-hbr, I am still running into the same error....

Thanks
Shiva