how to use vpuenc

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

how to use vpuenc

dedsx
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

anjojohn
From the imx6 pipeline i am guessing you are using a webcam, since on-board mipi/parallel camera needs mxcv4l2 capture plugin. For v4l2src device the webcam will be /dev/video1, /dev/video0 will always be on-board camera. So In your pipeline add location of device in v4l2src.
For vpuenc check the codec type
codec               : The codec type for encoding
                        flags: readable, writable
                        Enum "vpuenc_codec" Default: 0, "mpeg4"
                           (0): mpeg4            - video/mpeg, mpegversion=(int)4, systemstream=(boolean)false
                           (5): h263             - video/x-h263
                           (6): avc              - video/x-h264
                           (12): mjpg             - image/jpeg

vpuenc doesn't take rgb format , only YUV is supported. Change the video caps filter after videorate or add videoconvert
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

dedsx
changed like ur instruction still not working

gst-launch -e v4l2src  device=/dev/video2! capsfilter caps= video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate ! video/x-raw-yuv,width=320,height=240,framerate=25/1 ! jpegenc ! avimux ! filesink location=/home/video.avi​
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

anjojohn
You are using jpegenc now, not vpuenc. Use "export GST_DEBUG=2" or gst-launch -vvv to show some logs.

On Tue, Mar 14, 2017 at 3:48 PM, ronitzagade [via GStreamer-devel] <[hidden email]> wrote:
changed like ur instruction still not working

gst-launch -e v4l2src  device=/dev/video2! capsfilter caps= video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate ! video/x-raw-yuv,width=320,height=240,framerate=25/1 ! jpegenc ! avimux ! filesink location=/home/video.avi​


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/how-to-use-vpuenc-tp4682206p4682210.html
To unsubscribe from how to use vpuenc, click here.
NAML



--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 

Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

dedsx
This post was updated on .
still get could not negotiate format  check your filter caps if any  

error is failed to activate pad

gst-launch -e v4l2src  device=/dev/video2! capsfilter caps= video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate ! video/x-raw-yuv,width=320,height=240,framerate=25/1 ! vpuenc ! avimux ! filesink location=/home/video.avi​
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

anjojohn
run the pipeline with -vvv option for debug messages and post them.

gst-launch -vvv -e v4l2src  device=/dev/video2! capsfilter caps=
video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee
name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate !
video/x-raw-yuv,width=320,height=240,framerate=25/1 ! vpuenc ! avimux !
filesink location=/home/video.avi​

On Tue, Mar 14, 2017 at 3:58 PM, ronitzagade <[hidden email]> wrote:
still get could not negotiate format  check your filter caps if any

gst-launch -e v4l2src  device=/dev/video2! capsfilter caps=
video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee
name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate !
video/x-raw-yuv,width=320,height=240,framerate=25/1 ! vpuenc ! avimux !
filesink location=/home/video.avi​



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-to-use-vpuenc-tp4682206p4682212.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

dedsx
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

anjojohn
check the capabilities of the webcam. From the log i can see the v4l2src is unable to negotiate the caps. check the capabilities with v4l2-ctl --list-formats-ext -d /dev/video0 (change the video node to yours) in ubuntu. Also check the frame-rate and  resolutions supported by webcam for the format.

On Tue, Mar 14, 2017 at 4:46 PM, ronitzagade [via GStreamer-devel] <[hidden email]> wrote:



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/how-to-use-vpuenc-tp4682206p4682215.html
To unsubscribe from how to use vpuenc, click here.
NAML



--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 

Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

dedsx
hi

gst-launch -e v4l2src device=/dev/video2 num-buffers=-1 ! capsfilter caps= video/x-raw-yuv,width=704,height=576,framerate=15/1 ! tee name="splitter" ! queue ! ffmpegcolorspace ! ximagesink sync=false splitter. ! queue ! videorate ! video/x-raw-yuv,width=704,height=576,framerate=25/1 ! vpuenc ! avimux ! filesink location=/home/video.avi​

now is working but i want two capsfilter  are diffrent in height and width...they taking only same height width as mention in command if i changed in first capsfilter height width then its not  working
 
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

anjojohn
use videoconvert for converting to required resolution before caps filter. But videoconvert is software intensive, you can use the hardware scaler/converter of imx6. imxipuvideotransform (this is in gstreamer-1.0, you have version gstreamer-0.10). update the gstreamer to version 1. (Since your build is yocto, only few chnages are needed)

On Wed, Mar 15, 2017 at 11:29 AM, ronitzagade [via GStreamer-devel] <[hidden email]> wrote:
hi

gst-launch -e v4l2src device=/dev/video2 num-buffers=-1 ! capsfilter caps= video/x-raw-yuv,width=704,height=576,framerate=15/1 ! tee name="splitter" ! queue ! ffmpegcolorspace ! ximagesink sync=false splitter. ! queue ! videorate ! video/x-raw-yuv,width=704,height=576,framerate=25/1 ! vpuenc ! avimux ! filesink location=/home/video.avi​

now is working but i want two capsfilter  are diffrent in height and width...they taking only same height width as mention in command if i changed in first capsfilter height width then its not  working
 


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/how-to-use-vpuenc-tp4682206p4682223.html
To unsubscribe from how to use vpuenc, click here.
NAML



--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 

Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

dedsx
HI Anjo ,

i Did All with GStreamer which i want but  i face new issue i am giving pipeline(sink) output to window (QML) to see live streaming and  i just show and hide window .it working fine on 13FPS with CPU rate 60% but i want 25 FPS then that case CPU is taken around 200%   so is  there any option to decrees CPU rate .so my live streaming and recording work with 25 FPS ..to show output on window is mandatory 

OR you have any option for rendering video
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

anjojohn
Use hardware modules of imx6 like v4lsink,imxeglvivsink, imxg2dvideosink for sinking video. CPU usage of 60% says you are using software for displaying and recording.

On Thu, Mar 16, 2017 at 10:46 AM, ronitzagade [via GStreamer-devel] <[hidden email]> wrote:
HI Anjo ,

i Did All with GStreamer which i want but  i face new issue i am giving pipeline(sink) output to window (QML) to see live streaming and  i just show and hide window .it working fine on 13FPS with CPU rate 60% but i want 25 FPS then that case CPU is taken around 200%   so is  there any option to decrees CPU rate .so my live streaming and recording work with 25 FPS ..to show output on window is mandatory 

OR you have any option for rendering video



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/how-to-use-vpuenc-tp4682206p4682242.html
To unsubscribe from how to use vpuenc, click here.
NAML



--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 

Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

dedsx
am already  using  v4lsink
Reply | Threaded
Open this post in threaded view
|

Re: how to use vpuenc

Carlos Rafael Giani
In reply to this post by dedsx
As a sidenote, please consider moving to GStreamer 1.0. GStreamer 0.10
is no longer supported - neither are the NXP 0.10 plugins.


On 2017-03-14 10:32, ronitzagade wrote:

> its working fine in ubantu i5 processor
>
>   gst-launch -e v4l2src ! capsfilter caps=
> video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee
> name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate !
> video/x-raw-rgb,width=320,height=240,framerate=25/1 ! jpegenc ! avimux !
> filesink location=/home/video.avi​
>
> but after replacing jpegenc to vpuenc didnt work
>
>   gst-launch -e v4l2src ! capsfilter caps=
> video/x-raw-yuv,width=320,height=240,framerate=15/1 ! ffmpegcolorspace ! tee
> name="splitter" ! queue ! ximagesink sync=true splitter. ! videorate !
> video/x-raw-rgb,width=320,height=240,framerate=25/1 ! vpuenc ! avimux !
> filesink location=/home/video.avi​
>
>
> not working what is pipeline for imx6 board
>
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-to-use-vpuenc-tp4682206.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel