2013年9月6日星期五

Using Qt under linux video capture and recording problems

 This post last edited by the q496713258 on 2011-09-29 10:57:07
recently done under linux video capture project using Qt to develop

has been successfully invoked v4l2 collected a camera to capture images, but camera support the video format is YUYV , the collected images can not be directly saved as jpg image .

now wants to collect real-time image display in Qt program , while recording a video file , how to convert to RGB before YUYV display and video files compressed into it or can be displayed directly , recording into a video ?
In addition to format conversion, save pictures and record video files using any more good ? Ffmpeg? xvid? phonon ( This can not ) ?
Which is more convenient and simple to use it ?

best to use only linux or Qt comes with the library, because this project has been finally to arm platform , ffmeg seemingly want to install some stuff ? Transplantation is not good ?

Which experts had studied ah , seeking guidance ah ~ ~ ~ ~

thank

------ Solution - -------------------------------------------
this project should be online there is information - a lot of ARM development boards comes with the program, but the code is not publicly available.
landlord search "V4L2 QT webcam" these keywords , see if I can find a point of information .

I had also thought so, but limited capacity , can only use SDL to display images. But I was out of the camera MJPEG format . Saved directly is jpg images.

QT seems to have Image class is the RGB , YUV and RGB conversion do not understand .
I have never written a program to record video , but used the ffmpeg command line tried.

I did transfer MJPEG format JPEG AVI video files , it simply is in accordance with the AVI file format to write data.
------ Solution ---------------------------------------- ----
cgi done before the students displayed
------ Solution -------------------------- ------------------
bmp image formats like RGB , and should be the first to add a bmp bmp pictures.
jpg format , then use this library libjpeg try.

- above all not personally practiced .

record video not understand , ffmpeg has this feature , but the code is not easy to understand ah.
If converted to jpeg format , use I said earlier , made mjpeg encoded AVI video files, but the bottleneck is IO speed and camera capture speed.

PS: I also want to look at this time LCD display pictures and camera images are initially learn a variety of image formats, libraries, in the slow progress.


------ Solution ------------------------------------ --------
I only know how to save it as a jpeg encoded video files, if you 've got the picture jpeg encoding , write files directly ( reference AVI file format ) , but ffmpeg does not understand . Not help.
------ For reference only -------------------------------------- -
can say specific? or to the point of information ah

brother , I'm white, ah ~ ~ ~ seeking enlighten ~ ~ ~ ~ ~ ~
------ For reference only --------- ------------------------------
now is YUYV converted to RGB , and ask how to save as a picture file and record video it ?
I tried the next, seemingly still not directly saved as jpg or bmp images

Which heroes know, come quickly appeared, brother in this waiting a long time ~ ~ ~
Continue to seek guidance ~ ~ ~ ~
------ For reference only --------------------------- ------------
so long still no one to it ? ? ?
------ For reference only -------------------------------------- -
Thank you upstairs brother wow ~ ~ ~
recent picture has been kept well, next step is to begin storing video files

recorded video files need to be encoded , how does this encoder to install it ? A lot of people say that when you install ffmpeg will take , but I see how my system already encoder it ? I wanted to make sure the encoder in the end it exists or not . Such recording problems , then you can exclude encoder piece , to find other reasons.
Upstairs Brother
hope to give some guidance ~ ~ ~
------ For reference only ------------------------ ---------------
Oh, thank
------ For reference only ----------------- ----------------------
landlord do ? Can share what you do for you ? I also do ! Now have no idea ! Seeking advice ! Thank you !
------ For reference only -------------------------------------- -
others have shared you have to do it , what IQ
------ For reference only ---------------------- -----------------
format conversion , also did not succeed
------ For reference only ------------ ---------------------------


You mean what color space conversion ? Many online source Yeah
------ For reference only ---------------------------- -----------
color space conversion is very CPU intensive way , especially in the arm platform, super slow !
------ For reference only -------------------------------------- -
this issue for the landlord , is there a viable option too , know a friend , pointing ah

1 条评论:

  1. Hi are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and set up my own. Do you require any coding expertise
    to make your own blog? Any help would be really appreciated!


    My web page - Le Papillon On The Park

    回复删除