rtsp (H264 + aac) stream receive

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

rtsp (H264 + aac) stream receive

Shilpa Chandrappa
Hi,

I need to receive an rtsp (H264 + AAC ) audio + video stream from IP Camera and record in mp4 format.

The pipeline command which I am using is not receiving data.

Command used

" gst-launch-0.10 rtspsrc location=rtsp://172.22.74.3/h264 name=rtsp  ! queue ! rtph264depay ! video/x-h264, width=1920, height=1080, framerate=30/1  ! ffdec_h264  ! videorate ! ffenc_mpeg4 ! mp4mux name=mp4 ! filesink location=video.mp4 rtsp.  ! queue ! rtpmp4gdepay !  mp4."

Could anyone help what is the issue with this pipeline ?

Regards,
Shilpa
Reply | Threaded
Open this post in threaded view
|

Re: rtsp (H264 + aac) stream receive

Sebastian Dröge-3
On Do, 2014-02-06 at 04:30 -0800, Shilpa Chandrappa wrote:

> Hi,
>
> I need to receive an rtsp (H264 + AAC ) audio + video stream from IP Camera
> and record in mp4 format.
>
> The pipeline command which I am using is not receiving data.
>
> Command used
>
> " gst-launch-0.10 rtspsrc location=rtsp://172.22.74.3/h264 name=rtsp  !
> queue ! rtph264depay ! video/x-h264, width=1920, height=1080, framerate=30/1
> ! ffdec_h264  ! videorate ! ffenc_mpeg4 ! mp4mux name=mp4 ! filesink
> location=video.mp4 rtsp.  ! queue ! rtpmp4gdepay !  mp4."
>
> Could anyone help what is the issue with this pipeline ?
I don't know if that's the only problem but for one thing you will need
to add queue elements before all muxer sinkpads and after all rtspsrc
srcpads.

Also you should add bitstream parser elements before the muxer sinkpads,
e.g. h264parse or mpeg4videoparse.

All this will probably also work better when you update to the latest
GStreamer 1.x release.

--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment