Hi, My requirement currently is to get continuous frames from a composite input and dump it into a .264 file using the gstreamer. I kept the gst-launch script to a minimum and ran it (see below) and the output was an error.
root@dm365-evm:/home# gst-launch -v v4l2src always-copy=FALSE num-buffers=800 in put-src=composite ! video/x-raw-yuv, format= (fourcc)NV12, width=720, height=480 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=/home/ gr8.264 -sh: syntax error: "(" unexpected
After a few trials I removed the (fourcc) and tried again. This is what I got (below)
root@dm365-evm:/home# gst-launch -v v4l2src always-copy=FALSE num-buffers=800 in put-src=composite ! video/x-raw-yuv,format=NV12,width=720,height=480 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=/home/gr8.264 WARNING: erroneous pipeline: could not link v4l2src0 to tividenc10
I believe this is preliminary stuff, but I am following one off examples from the ti wiki for gstreamer. Any help!
Thanks & Regards, N.Kartik Senior developer | Renu Electronics Pvt. Ltd.
Believe in your dreams, they have a strange way of coming true!!! _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi
Please try escaping the parentheses characters. \(fourcc\)NV12 2012/8/20 kartik natarajan <[hidden email]>: > > > > Hi, > > My requirement currently is to get continuous frames from a composite > input and dump it into a .264 file using the gstreamer. I kept the > gst-launch script to a minimum and ran it (see below) and the output was an > error. > > > > root@dm365-evm:/home# gst-launch -v v4l2src always-copy=FALSE > num-buffers=800 in > > put-src=composite ! video/x-raw-yuv, format= (fourcc)NV12, width=720, > height=480 > > ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink > location=/home/ > > gr8.264 > > -sh: syntax error: "(" unexpected > > > > After a few trials I removed the (fourcc) and tried again. This is what I > got (below) > > > > root@dm365-evm:/home# gst-launch -v v4l2src always-copy=FALSE > num-buffers=800 in > > put-src=composite ! video/x-raw-yuv,format=NV12,width=720,height=480 ! > TIVidenc1 > > codecName=h264enc engineName=codecServer ! filesink location=/home/gr8.264 > > WARNING: erroneous pipeline: could not link v4l2src0 to tividenc10 > > > > I believe this is preliminary stuff, but I am following one off examples > from the ti wiki for gstreamer. Any help! > > > > > > > > > > Thanks & Regards, > > N.Kartik > > Senior developer | Renu Electronics Pvt. Ltd. > > > > > > > -- > Believe in your dreams, they have a strange way of coming true!!! > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > -- Un Saludo Ruben Gonzalez Gonzalez _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 20 Aug 2012, at 08:34, Ruben Gonzalez Uvigo wrote:
> > 2012/8/20 kartik natarajan <[hidden email]>: >> -sh: syntax error: "(" unexpected > > Please try escaping the parentheses characters. > > \(fourcc\)NV12 Or quote the whole pipeline argument to gst-launch: gst-launch -v 'v4l2src always-copy=FALSE num-buffers=800 input-src=composite ! video/x-raw-yuv, format=(fourcc)NV12, width=720, height=480 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=/home/gr8.264' (Note the single quote before v4l2src and after gr8.264.) Assuming the shell you are using is "bash", the meaning of (unquoted) parentheses is: http://www.gnu.org/software/bash/manual/bashref.html#Command-Grouping Quoting is described here: http://www.gnu.org/software/bash/manual/bashref.html#Single-Quotes _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
David, Thanks a ton for your precise and prompt reply. Use of the ' ' makes the script work and I have just hit another roadblock. The input I want is the composite in from a camera, but here the input defaults to the highlight, a series of capture events follow to end in a segmentation fault. [SEE BELOW]
Please advice. N.Kartik root@dm365-evm:~# gst-launch -v 'v4l2src always-copy=FALSE mum-buffers=800 input -src=composite ! video/x-raw-yuv, format=(fourcc)NV12, width=720, height=480 ! T IVidenc1 codecName=h264enc engineName=codecServer !filesink location=/home/gr8.2 64' Setting pipeline to PAUSED ... davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124 davinci_previewer davinci_previewer.2: ipipe_set_preview_config vpfe-capture vpfe-capture: IPIPE Chained vpfe-capture vpfe-capture: Resizer present EVM: switch to tvp7002 HD video input vpfe-capture vpfe-capture: input information not found for the subdev tvp7002 1-005c: querystd, erorxxx, val = 1, val1 = 2 vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperlin e = 32, sizeimage = 64 vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2 . . . . vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesp erline = 4352, sizeimage = 6684672 vpfe-capture vpfe-capture: dma_alloc_coherent size 4763648 failed Segmentation fault
On Mon, Aug 20, 2012 at 1:16 PM, David Röthlisberger <[hidden email]> wrote: On 20 Aug 2012, at 08:34, Ruben Gonzalez Uvigo wrote: Believe in your dreams, they have a strange way of coming true!!! _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Ok, so now I have tried using the \(fourcc\)NV12, as Ruben suggested and without the single quotes.
I found more stuff happening on the console. The gr8.264 file got created as well but it seems corrupted. Somehow my camera is not being read is what I feel. Could you please help me with this. Here is the console snapshot
root@dm365-evm:~# gst-launch -v v4l2src always-copy=FALSE num-buffers=800 input- src=composite ! video/x-raw-yuv, format=\(fourcc\)NV12, width=720, height=480 ! TIVidenc1 codecName=h264enc engineName=codecServer !filesink location=/home/gr8. 264 Setting pipeline to PAUSED ... davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124 davinci_previewer davinci_previewer.2: ipipe_set_preview_config vpfe-capture vpfe-capture: IPIPE Chained vpfe-capture vpfe-capture: Resizer present tvp514x 1-005d: invalid control id -<a href="tel:2147483648" value="+912147483648" target="_blank" style="color:rgb(17,85,204)">2147483648 EVM: switch to tvp5146 SD video input tvp514x 1-005d: tvp5146 (Version - 0x03) found at 0xba (DaVinci I2C adapter) tvp514x 1-005d: invalid control id 9963780 tvp514x 1-005d: invalid control id 9963781 tvp514x 1-005d: invalid control id 9963782 . . tvp514x 1-005d: invalid control id 9963807 tvp514x 1-005d: invalid control id 9963808 tvp514x 1-005d: invalid control id 9963809 vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperlin e = 32, sizeimage = 64 vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2 vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesp erline = 4352, sizeimage = 6684672 vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 1 vpfe-capture vpfe-capture: adjusted width = 32, height = 2, bpp = 1, bytesperlin e = 32, sizeimage = 96 vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 1 vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 1, bytesp erline = 2176, sizeimage = 5013504 . . . vpfe-capture vpfe-capture: width = 720, height = 480, bpp = 1 vpfe-capture vpfe-capture: adjusted width = 720, height = 480, bpp = 1, bytesper line = 736, sizeimage = 529920 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: queue-size = 3 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv, f ormat=(fourcc)NV12, framerate=(fraction)30000/1001, width=(int)720, height=(int) 480 Pipeline is live and does not need PREROLL ... WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input de vice did not accept new frame rate setting. Additional debug info: v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2 Src:v4l2src0: system error: Invalid argument Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw- yuv, format=(fourcc)NV12, framerate=(fraction)30000/1001, width=(int)720, height =(int)480 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw -yuv, format=(fourcc)NV12, framerate=(fraction)30000/1001, width=(int)720, heigh t=(int)480 /GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:sink: caps = video/x-raw-y uv, format=(fourcc)NV12, framerate=(fraction)30000/1001, width=(int)720, height= (int)480 /GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:src: caps = video/x-h264, framerate=(fraction)30000/1001, width=(int)720, height=(int)480 /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-h264, f ramerate=(fraction)30000/1001, width=(int)720, height=(int)480
I entered ctrl C to terminate execution Caught interrupt -- handling interrupt. Interrupt: Stopping pipeline ... Execution ended after 7249803213 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = NULL
(gst-launch-0.10:1581): GStreamer-CRITICAL **: gst_mini_object_unref: assertion `mini_object->refcount > 0' failed /GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:src: caps = NULL /GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:sink: caps = NULL /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = NULL /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = NULL Setting pipeline to NULL ... Thanks N.Kartik
On Mon, Aug 20, 2012 at 2:30 PM, kartik natarajan <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks Guys for you help.
I just had to change the resolution. All works fine now with 640x480 and even 736x480 resolution Regards, N.Kartik Senior Developer | Renu Electronics Pvt. Ltd.
On Mon, Aug 20, 2012 at 2:55 PM, kartik natarajan <[hidden email]> wrote: Ok, so now I have tried using the \(fourcc\)NV12, as Ruben suggested and without the single quotes. Believe in your dreams, they have a strange way of coming true!!! _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |