Hi.
Did anyone ever successfully try streaming from/to the MX53?
My pipelines:
Source:
(on the MX53)
gst-launch mfw_v4lsrc ! mfw_ipucsc ! mfw_vpuencoder codec-type=std_mpeg4 ! r
tpmp4vpay ! udpsink host=192.168.1.52 port=5000 sync=false
This works and I can display this stream on a ubuntu desktop machine.
Sink:
(again MX53)
gst-launch \
udpsrc port=5000 caps="application/x-rtp,clock-rate=90000" \
! gstrtpjitterbuffer latency=0 ! rtpmp4vdepay \
! "video/mpeg, mpegversion=4, width=720, height=576, framerate=15/1" \
! mfw_vpudecoder ! fakesink -v --gst-debug=mfw_vpudecoder:4
This does not work. The problem is the mfw_vpudecoder plugin. In the debug log I see:
0:00:05.703612111 1336 0x126428 ERROR mfw_vpudecoder mfw_gst_vpu_decoder.c:2108:mfw_gst_vpudec_vpu_init: >>VPU_DEC: vpu_DecGetInitialInfo failed. Error code is -1 handle 1326488
0:00:05.704250861 1336 0x126428 DEBUG mfw_vpudecoder mfw_gst_vpu_decoder.c:3109:mfw_gst_vpudec_chain: >>VPU_DEC: mfw_gst_vpudec_vpu_init failed but with MPEG2 keep asking for more data timeouts=0, init fail cnt=1
Setting the parser option of the mfw_vpudecoder plugin does not help. Using mpeg4videoparse does not help either.
Can somebody give me a hint?
Hi,
In my i.mx53 boards, this command line can work well. You can try. transmitter and receiver are both i.mx53 boards
transmitter:
gst-launch-0.10 -v mfw_v4lsrc capture-width=352 capture-height=288 ! queue ! mfw_vpuencoder codec-type=std_mpeg4 ! rtpmp4vpay send-config=true ! queue ! udpsink host=192.168.0.202 port=5002 sync=false async=false
receiver:
gst-launch-0.10 -v udpsrc port=5002 buffer-size=100000 ! queue ! capsfilter caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)3, config=(string)000001b003000001b59113000001000000012000c888800f50b042414103, payload=(int)96" ! rtpmp4vdepay ! mfw_vpudecoder codec-type=std_mpeg4 ! queue ! mfw_isink sync=false async=false
Bhavana, you can build packages from source or use package manager. For Ubuntu you can use next sequence - apt-get update && apt-get upgrade.
Bhavana, this is a GStreamer specific erroc, can you update gstreamer?
On my host, Debian GNU/Linux 6.0, I use next:
~$ dpkg -l | grep gstreamer
ii gstreamer-tools 0.10.30-1 Tools for use with GStreamer
ii gstreamer0.10-ffmpeg 0.10.10-1 FFmpeg plugin for GStreamer
ii gstreamer0.10-nice 0.0.12-1 ICE library (GStreamer plugin)
ii gstreamer0.10-plugins-bad 0.10.19-2+b2 GStreamer plugins from the "bad" set
ii gstreamer0.10-plugins-base 0.10.30-1 GStreamer plugins from the "base" set
ii gstreamer0.10-plugins-good 0.10.24-1 GStreamer plugins from the "good" set
ii gstreamer0.10-plugins-ugly 0.10.15-1 GStreamer plugins from the "ugly" set
ii gstreamer0.10-tools 0.10.30-1 Tools for use with GStreamer
ii gstreamer0.10-x 0.10.30-1 GStreamer plugins for X11 and Pango
ii libgstreamer-plugins-base0.10-0 0.10.30-1 GStreamer libraries from the "base" set
ii libgstreamer0.10-0 0.10.30-1 Core GStreamer libraries and elements
ii totem-gstreamer 2.30.2-6 A simple media player for the GNOME desktop (transitional package)
gst-launch udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, profile-level-id=(string)6, encoding-name=(string)MP4V-ES" ! rtpmp4vdepay ! ffdec_mpeg4 ! xvimagesink
Bhavana said:
stream on ubuntu desktop:
This command for (mx53)
gst-launch mfw_v4lsrc ! mfw_ipucsc ! mfw_vpuencoder codec-type=std_mpeg4 ! r
tpmp4vpay ! udpsink host=192.168.1.52 port=5000 sync=falseWhat is the command for ubuntu desktop machine?
-Thankyou
stream on ubuntu desktop:
This command for (mx53)
gst-launch mfw_v4lsrc ! mfw_ipucsc ! mfw_vpuencoder codec-type=std_mpeg4 ! r
tpmp4vpay ! udpsink host=192.168.1.52 port=5000 sync=false
What is the command for ubuntu desktop machine?
-Thankyou
Hello, Chaim A!
For USB-camera you must use v4l2src.
Chaim.
If you make a movie, using your USB web camera. The movie will be H264? Or it will be a MPEG4?
What´s the codec type for your video src?
Yes, USB camera identified properly.
It works and
Daiane Angolini said:
What is your source codec type? are you sure your camera output match the example?
Chaim A said:Hi,
I'm trying the example as offered in the MX53QSB_VPU_v11 pdf Doc, but it's terminate Immediately?!?!?
root@freescale ~$ gst-launch mfw_v4lsrc ! mfw_ipucsc ! mfw_vpuencoder codec-type
=std_mpeg4 ! rtpmp4vpay ! udpsink host=192.168.1.231 port=5656 sync=false
MFW_GST_V4LSRC_PLUGIN 2.0.3 build on Sep 29 2011 15:40:54.
IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.
MFW_GST_IPU_CSC_PLUGIN 2.0.3 build on Sep 29 2011 15:40:23.
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX53
VPU Version: firmware 13.4.41; libvpu: 5.3.2
MFW_GST_VPU_ENCODER_PLUGIN 2.0.3 build on Sep 29 2011 15:40:26.
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
root@freescale ~$
What is your source codec type? are you sure your camera output match the example?
Chaim A said:
Hi,
I'm trying the example as offered in the MX53QSB_VPU_v11 pdf Doc, but it's terminate Immediately?!?!?
root@freescale ~$ gst-launch mfw_v4lsrc ! mfw_ipucsc ! mfw_vpuencoder codec-type
=std_mpeg4 ! rtpmp4vpay ! udpsink host=192.168.1.231 port=5656 sync=false
MFW_GST_V4LSRC_PLUGIN 2.0.3 build on Sep 29 2011 15:40:54.
IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.
MFW_GST_IPU_CSC_PLUGIN 2.0.3 build on Sep 29 2011 15:40:23.
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX53
VPU Version: firmware 13.4.41; libvpu: 5.3.2
MFW_GST_VPU_ENCODER_PLUGIN 2.0.3 build on Sep 29 2011 15:40:26.
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
root@freescale ~$
Hi,
I'm trying the example as offered in the MX53QSB_VPU_v11 pdf Doc, but it's terminate Immediately?!?!?
root@freescale ~$ gst-launch mfw_v4lsrc ! mfw_ipucsc ! mfw_vpuencoder codec-type
=std_mpeg4 ! rtpmp4vpay ! udpsink host=192.168.1.231 port=5656 sync=false
MFW_GST_V4LSRC_PLUGIN 2.0.3 build on Sep 29 2011 15:40:54.
IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.
MFW_GST_IPU_CSC_PLUGIN 2.0.3 build on Sep 29 2011 15:40:23.
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX53
VPU Version: firmware 13.4.41; libvpu: 5.3.2
MFW_GST_VPU_ENCODER_PLUGIN 2.0.3 build on Sep 29 2011 15:40:26.
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
root@freescale ~$
What do you mean?
Do you want another player to be used on imx side or PC side?
I like to use gstreamer for the imx side.
Krishna Pavan said:
Hi all,
Is there any other player, other than VLC, which can help in the streaming from PC to i.MX5X ?
Hi all,
Is there any other player, other than VLC, which can help in the streaming from PC to i.MX5X ?
Hi Rodrigue, thanks a lot for your reply.
Hi Diaine,
I did not get VLC accelerated by the VPU. The only thing I succeeded to do was to stream from QSB to my PC. PC to QSB works with very resolution/framerate ( because not HW accelerated).
AFAIK, VLC uses its own implemented codecs and we can therefore not link it with our codec libraries (at least in its current state, we do not have this freedom).
Rodrigue,
How did you get VLC accelerated (by VPU)?
Plarti,
Can you movie be played locally by vpudecoder? (is its codec supported?)
Hi Plarti,
I am using VLC as streaming platform and I can say it works perfect when the QSB is streaming data outward to a PC.
But I still have issues to stream in FullHD from a PC to the QSB (using VLC on both QSB & PC). I suceeded only with a very low resolution, low framerate mp4 file.
Using gstreamer, I get error as well with mfw_vpudecoder. Did you try another decoder?