Home  >  Support  >  Support Forum  >  videotestsrc
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

videotestsrc

0 votes
OS : ubuntu12.04 32bit

Digi ESP for Embedded Linux
Version: 2.0 for Digi Embedded Linux 5.9.2.1
Build id: 20120709 DEL-5.9.2.1

A sound is output by the following command.
$ gst-launch-0.10 audiotestsrc ! alsasink

How should I do VIDEO?
$ gst-launch-0.10 videotestsrc ! ??????????????
asked May 22 in Linux by chung New to the Community (31 points)

Please log in or register to answer this question.

13 Answers

0 votes
You have an old version of DEL.

Latest is 5.9.6.x and you can update to 5.9.6.x only from 5.9.3.
Download it from
http://ftp1.digi.com/support/documentation/CC_i.MX53_Updates.htm
answered May 25 by tuxembb Seasoned Professional (244 points)
0 votes
Sorry, I was DEL-5.9.7.1.

Digi ESP for Embedded Linux
Version: 2.0 for Digi Embedded Linux 5.9.7.1
Build id: 20130211 DEL-5.9.7.1

How should I do VIDEO?
$ gst-launch-0.10 videotestsrc ! ??????????????
answered May 26 by chung New to the Community (31 points)
0 votes
What exactly are you trying to do? Capture? Stream? Playback?
for example to stream:

[1] Streaming between two ConnectCores MX5X

Client:

CAPS='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264'
gst-launch -v udpsrc port=5000 caps="$CAPS" ! rtph264depay ! ffdec_h264 ! autovideosink sync=false

Server:

IPADDR=127.0.0.1 (or client IP)
gst-launch -v mfw_v4lsrc device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480, \
framerate=30/1,format=(fourcc)UYVY' ! mfw_ipucsc ! 'video/x-raw-yuv,width=640,height=480,\
framerate=30/1,format=(fourcc)I420' ! queue ! mfw_vpuencoder codec-type=2 ! queue ! \
rtph264pay ! udpsink host=${IPADDR} port=5000


To capture from RGB565 configured sensors:
gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-rgb,width=640,height=480,framerate=30/1' ! mfw_v4lsink

And from YUV422 configured sensors:
gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1,format=(fourcc)UYVY' ! mfw_v4lsink

To capture from the primary camera device and display it in the LCD screen:
gst-launch mfw_v4lsrc device=/dev/video1 ! mfw_v4lsink

there those and many more examples of using gst-launch in DEL online help, just do search for gst-launch
answered Jun 5 by LeonidM Veteran of the Digi Community (454 points)
0 votes
thank you !
I try these.
answered Jun 5 by chung New to the Community (31 points)
0 votes
I was not able to do these.
I want to play mp4 file.

$ gst-launch-0.10 filesrc location=xxxx.mp4 ! ?????????
answered Jun 5 by chung New to the Community (31 points)
0 votes
Please see Multimedia chapter of the Digi Embedded Linux help. it has many examples of what you are trying to do.

Gplay is a command line application provided by Freescale that accepts a filename as parameter and will automatically chose the best codecs to play it with. For this, it uses the playbin element introduced in the next section. Gplay is the recommended way to reproduce media, although on occasions it can fail to play specific files. In such cases the gstreamer pipeline has to be manually created using gst-launch as explained in .

# gplay big_buck_bunny_480p_h264.mov

further down:
If you need more control you can use the gst-launch application directly which allows to create flexible pipelines using all available elements. Some examples follow.

The playbin2 element will automatically select elements for your pipeline:

# gst-launch playbin2 uri=file:///root/big_buck_bunny_480p_h264.mov

complete audio and video playback pipeline:



# gst-launch filesrc location=big_buck_bunny_480p_h264.mov ! 'video/quicktime' ! aiurdemux
name=demux demux. ! queue max-size-buffers=0 max-size-time=0 ! mfw_vpudecoder ! mfw_v4lsink demux. !
queue max-size-buffers=0 max-size-time=0 ! faad ! audioconvert ! 'audio/x-raw-int, channels=2' !
alsasink

This is all copy & paste from online help, please take a look for more info and example directly in to the multimedia chapter or even gstreamer documentation:
http://linux.about.com/library/cmd/blcmdl1_gst-launch.htm
answered Jun 6 by LeonidM Veteran of the Digi Community (454 points)
0 votes
Thank you.

I tried it in various ways.
This is simple and works well.

$ gst-launch filesrc location=xxxx.mp4 ! qtdemux name=demux \
demux. ! queue ! mfw_vpudecoder ! autovideosink \
demux. ! queue ! mfw_aacdecoder ! autoaudiosink
answered Jun 9 by chung New to the Community (31 points)
0 votes
and

$ gst-launch videotestsrc ! autovideosink

Thank you !
answered Jun 9 by chung New to the Community (31 points)
0 votes
I excluded GStreamer from configuration.
I build GStreamer from a source and, I installed it in /usr.

Audio worked normally.
# gst-launch-0.10 audiotestsrc ! autovideosink

Video did not display it.
# gst-launch-0.10 videotestsrc ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Resource not found.
Additional debug info:
gstautovideosink.c(313): gst_auto_video_sink_find_best (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0:
Failed to find a usable video sink
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

intervideosink does not work, too.
# gst-launch videotestsrc ! intervideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

Is any setting insufficient?
frame buffer etc..
answered Jun 23 by chung New to the Community (31 points)
0 votes
There was a typo.

Audio worked normally.
--
# gst-launch-0.10 audiotestsrc ! autoaudiosink
--
answered Jun 23 by chung New to the Community (31 points)
Contact a Digi expert and get started today! CONTACT US
...