my yocto have gstreamer ,but I don't know how to call these plugins. I play video by using glpay-1.0.Avi video is acquired through gst-launch-1.0.
But I can't change the rate.I wonder if I need to find the source code of this part?Is there anything about this in the yocto project?
thank you
you just use the demo image ,or build any image you want, then you can use gstreamer to play video or osd overlay,
for play video, you can use the command like "gplay-1.0 test.mp4" or "gst-launch-1.0 playbin file=uri:///", for alpha blending, you can set alpha value in the gstreamer, use the paramter like "alpha=xx" in the gstreamer command, fb0 is BG for alpha blending
tnank you
must be used gstreamer?
mxc_vpu_test can recored h264, can i use the h264 make avi? i want to know mxc_vpu_test is hard coded or soft coded?
gstreamer is hard coded or soft coded?
l look up information,Some people say that h264 can be encapsulated as avi. i don`t know how to do it.
i want to make sure can imax6 hardcode avi video?
thank you for your answer
but i can`f find gstreamer`s source code, i can only do it by command.so i want to know where is gstreamer`s source code i can use.
gstreamer`s command is to fetch data from camera,but i need to add OSD in data stream.
so i don `t know how to use gstreamer add OSD and capture video by command.
i thought i can use mxc_vpu_test to capture h264 ,after that, i use h264 to encapsulate avi video by myself.
after hearing you say, i think i am wrong. Neither gstreamer or mxc_vpu_test, all is hard coded? i thank gstreamer is soft coded.
but i think that can use h264 to encapsulate avi video in mxc_cpu_test through their own code.
i will try to capture avi with either way,
please,can you tell me that if i using gstreamer to capture avi ,what routines are available for reference in yocto project.not commmand such as gst-launch and so on.
thank you very much!!!
gstreamer includes many plugins, if you install x264 as encoding, yes this use software to encode, but if you use vpuenc as plugin to encode, which uses vpu (HW) to encode, so it depends on what plugin you use, but for imx6q board, of course we suggest customer to use vpu(HW)to encode, if the product don't have vpu, you need to use SW to encode, hope my explanaion is useful for you
thank you
my product have vpu.
i use the command gst-launch-1.0 imxv4l2src device=/dev/video1 num-buffers=300 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! queue ! vpuenc_h264 ! avimux ! filesink location=output.avi , please is it vpuenc plugin? i`m not sure. This is provided by yocto project.
i have another problem. i want to encoder avi video in the application layer, do i have to use the command that gst-launch-1.0 imxv4l2src device=/dev/video1 num-buffers=300 ! 'video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1' ! queue ! vpuenc_h264 ! avimux ! filesink location=output.avi ? can i use a routine like mxc_vpu_test? i want to add encoder avi video in the application.
thank you
1)for more detailed information about using gstreamer, pls refer the linux user guide, for example:
7.3.7 Audio/Video recording
This is an example of a command used to record audio and video together:
$GSTL –e imxv4l2src device=$DEVICE ! $INPUT_CAPS ! queue ! vpuenc_h264 ! queue
! mux. pulsesrc ! 'audio/x-raw, rate=44100, channels=2' ! imxmp3enc ! queue
! mux. $MUXER name=mux ! filesink location= output.$EXTENSION
• $INPUT_CAPS should be set to 'video/x-raw, format=(string)NV12, width=1920, height=1080,
framerate=(fraction)30/1’.
• $MUXER can be set as to qtmux, matroskamux, mp4mux, avimux, or flvmux.
Common parameters are as follws:
• -e indicates to send EOS when the user presses Ctrl+C to avoid output corruption.
• $EXTENSION is the filename extension according to the multiplexer type.
2)for how to build your own source code, pls refer to the yocto training
https://community.nxp.com/docs/DOC-94849
this is another topic
3) for mxc_vpu_test, as I mentioned before, you can use it encoder the video, then you use your own software to mux video and audio, but we don't have source code for this
thank you
In fact, I want to ask is I want to find a gstreamer routine in yocto project, can directly modify and compile the routine, now I seem to find the routine about gstreamer, but I do not know how to compile, just like the last picture. I don't want to use the instructions to complete the video recording. And by way of instructions I don't know how to set the rate, recorded video like Mosaic. I thought there would be a routine like this in yocto's project that I could use directly.
thank you very much
yes, you can encode by vpu, then mux by software by your own code, if you need gst1.0 plugin source code, pls find them from the link as below:
thank you
i find the gst1.0 plugin source code in my youcto project, but i don`t know how to compile it?
it`s my project directory.it dons`t have executable file. i don`t know how to compile it and how to execute this code?
i don't know if I'm making myself clear.do you understand me?
thank you