Gstreamer pipeline through OpenCV for H264 encoded video file
simo zz
simon.zz at yahoo.com
Fri Aug 25 11:10:20 UTC 2017
Hello Martin,
Thank you for your suggestion, however, it still fails, and no error is reported.
Regards,Simon
El Viernes 25 de agosto de 2017 12:13, Martin Vachovski <Martin.Vachovski at skytek.com> escribió:
#yiv9320546080 #yiv9320546080 -- p {margin-top:0px;margin-bottom:0px;}#yiv9320546080 Sorry... didn't mean to omit the autovideoconvert...
The pipeline I meant is to be read:
appsrc ! video/x-raw,format=YUY2,width=320,height=240,framerate=30/1 ! autovideoconvert ! v4l2video1h264enc ....
CheersMartin
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Martin Vachovski <Martin.Vachovski at skytek.com>
Sent: Friday, August 25, 2017 11:09 AM
To: gstreamer-devel at lists.freedesktop.org; simo zz
Subject: Re: Gstreamer pipeline through OpenCV for H264 encoded video file One quick thing I can suggest is to try to specify the CAPS before the autovideoconvert element.
Otherwise there might be problems with the negotiation and starting of the pipeline
something like:
appsrc ! video/x-raw,format=YUY2,width=320,height=240,framerate=30/1 ! v4l2video1h264enc ....
Or whatever format you're getting the videoframes in from the appsrc, try to specify as many details as possible
Cheers
Martin
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of simo zz <simon.zz at yahoo.com>
Sent: Friday, August 25, 2017 10:58 AM
To: gstreamer-devel at lists.freedesktop.org
Subject: Gstreamer pipeline through OpenCV for H264 encoded video file Hi all,
I am working on an IP application working with OpenCV and I need to generate an H264 encoded videos.OpenCV uses GStramer to for this task, initializing the OpenCVVideoWriter object with a GStramer pipeline. In turns it should passthe frames GStramer which should write the video..
The actual pipeline I am using for this task:
"appsrc ! autovideoconvert ! v4l2video1h264enc extra-controls=\"encode,h264_level=10,h264_profile=4,frame_level_rate_control_enable=1,video_bitrate=2000000\" ! h264parse ! rtph264pay config-interval=1 pt=96 ! filesink location=file.pm4"
But it's neither generating the video. I tried many pipelines without successful results..What is the correct pipeline I must use ?
Thank you in advance,Regards,Simon
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170825/5773550e/attachment-0001.html>
More information about the gstreamer-devel
mailing list