Trying to get a test video source fed into an H264 encoder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I am trying to test out the TI H264 video encoder for the OMAP.  I have managed to build the DVSDK and the GStreamer-TI plugins for my OMAP.

Now I am working on more general gstreamer issues, and (as a newbie to this package), I am flummuxed!

I wanted to create a video stream in YUV format and just test that I can get it generated and saved.  So, I used the following:

> gst-launch videotestsrc pattern=1 num-buffers=3600 !   "video/x-raw-yuv, format=I420, width=720, height=480" ! filesink location=sample.yuv

But, when I run this, I get:

root at overo:~/data/videos# gst-launch videotestsrc pattern=1 num-buffers=3600 !  
 "video/x-raw-yuv, format=I420, width=720, height=480" ! filesink location=sampl
e.yuv
WARNING: erroneous pipeline: could not link videotestsrc0 to filesink0

I removed the filter in the pipeline and it worked, but I don't think I have control over the format of the video this way.

root at overo:~/data/videos# gst-launch videotestsrc pattern=1 num-buffers=3600 ! f
ilesink location=sample.yuv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 158029663081 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root at overo:~/data/videos# ls
davincieffect_ntsc_1.264  davincieffect_ntsc_1.m4v
davincieffect_ntsc_1.m2v  sample.yuv
root at overo:~/data/videos# ls -l
total 676880
-rwxr--r-- 1 root root  19816460 Jan  1  2010 davincieffect_ntsc_1.264
-rwxr--r-- 1 root root  88925987 Jan  1  2010 davincieffect_ntsc_1.m2v
-rwxr--r-- 1 root root  30714281 Jan  1  2010 davincieffect_ntsc_1.m4v
-rw-r--r-- 1 root root 552960000 Dec 24 05:09 sample.yuv

So, what it the right way to filter the output of the testvideosrc?  Did I use the wrong syntax?

Thanks,

Charlie





[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux