[gstreamer] use gst-launch to play video from AXIS network camera

509 views
Skip to first unread message

Yang Zheng

unread,
Sep 13, 2011, 3:59:14 AM9/13/11
to pandaboard
I can play video from video file on pandaboard by following command:
$ gst-launch filesrc location=/home/myuser/somevideo.mp4 ! typefind !
qtdemux name=demux demux.video_00 ! queue ! nal2bytestream_h264 !
omx_h264dec ! v4l2sink
In my opinion, using omx_***dec and v4l2sink is the only way to reduce
CPU load when playing video.

Now I play video from AXIS network camera by following command:
$ gst-launch souphttpsrc location=http://root:12...@192.168.0.90/axis-
cgi/mjpg/video.cgi?resolution=640x480 do-timestamp=true !
multipartdemux ! jpegdec ! ffmpegcolorspace ! ximagesink
$ gst-launch rtspsrc location=rtsp://root:12...@192.168.0.90/mpeg4/
media.amp ! rtpmp4vdepay ! ffdec_mpeg4 ! ffmpegcolorspace ! ximagesink
Both can work well, one for jpeg, and the other for mpeg. But it cost
too much CPU load, because it does NOT use omx_***dec.

So the question is, how to play video from AXIS network camera using
omx decode plugin?
The following commands all failed: (which did well when playing video
file)
$ gst-launch playbin2 uri=rtsp://root:12...@192.168.0.90/mpeg4/
media.amp
$ gst-launch uridecodebin uri=rtsp://root:12...@192.168.0.90/mpeg4/
media.amp ! v4l2sink


Regards.

Reply all
Reply to author
Forward
0 new messages