Composite video to .264 using gstreamer issue

kartik natarajan kartik8n8 at gmail.com
Mon Aug 20 02:25:03 PDT 2012


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 at 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 -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 ...


Awaiting your reply.
Thanks
N.Kartik
On Mon, Aug 20, 2012 at 2:30 PM, kartik natarajan <kartik8n8 at gmail.com>wrote:

> 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 at 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 <david at rothlis.net>wrote:
>
>> On 20 Aug 2012, at 08:34, Ruben Gonzalez Uvigo wrote:
>> >
>> > 2012/8/20 kartik natarajan <kartik8n8 at gmail.com>:
>> >> -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
>>
>>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120820/2b4abf98/attachment-0001.html>


More information about the gstreamer-devel mailing list