codec

OpenCV VideoCapture with H264 CODEC

╄→гoц情女王★ 提交于 2019-12-02 11:31:26
问题 I am using new logitech camera c920 for my project to do object recognition . My camera can support H264 codec and can display H264 HD output. But How I can set CODEC type as H264 in my below code to get out put as H264 DECODED STREAM by using OpenCV instruction . I am capturing video by using below logic : ref:this link #include "opencv2/opencv.hpp" using namespace cv; int main(int, char**) { VideoCapture cap(0); // open the default camera if(!cap.isOpened()) // check if we succeeded return

X264 Error message when capturing video

旧时模样 提交于 2019-12-02 06:33:52
I'm writing a program to save some webcam video to a file. I'm using the x264 codec found here x264 When I try writing frames to a file I get this error message poping up. x264vfw [warning]: Few frames probably would be lost. Ways to fix this: x264vfw [warning]: -if you use VirtualDub or its fork than you can enable 'VirtualDub Hack' option x264vfw [warning]: -you can enable 'File' output mode x264vfw [warning]: -you can enable 'Zero Latency' option I found this VirtualDub Hack but then I'm not using virtual dub. I'm not sure what the File output mode and zero latency mean. I think the problem

OpenCV VideoCapture with H264 CODEC

萝らか妹 提交于 2019-12-02 05:29:38
I am using new logitech camera c920 for my project to do object recognition . My camera can support H264 codec and can display H264 HD output. But How I can set CODEC type as H264 in my below code to get out put as H264 DECODED STREAM by using OpenCV instruction . I am capturing video by using below logic : ref: this link #include "opencv2/opencv.hpp" using namespace cv; int main(int, char**) { VideoCapture cap(0); // open the default camera if(!cap.isOpened()) // check if we succeeded return -1; for(;;) { Mat frame; cap >> frame; // get a new frame from camera imshow("display", frame); if

Simple frame by frame video decoder library

梦想与她 提交于 2019-12-02 00:05:26
问题 I'm looking for a simple c/c++ lib that would allow to extract the first frame of a video as a uchar array. And have a simple fonction to access the next one. I know of FFMPEG but it requiere to play with packet and things like that, and i'm surprised that nowhere on the net i can find a lib that allow something like : Video v = openVideo("path"); uchar* data = v.getFrame(); v.nextFrame(); I just need to extract frames of a video to use it as a texture...no need for reencoding after or

Simple frame by frame video decoder library

邮差的信 提交于 2019-12-01 21:19:46
I'm looking for a simple c/c++ lib that would allow to extract the first frame of a video as a uchar array. And have a simple fonction to access the next one. I know of FFMPEG but it requiere to play with packet and things like that, and i'm surprised that nowhere on the net i can find a lib that allow something like : Video v = openVideo("path"); uchar* data = v.getFrame(); v.nextFrame(); I just need to extract frames of a video to use it as a texture...no need for reencoding after or anything... of course something that would read the most format than possible would be great, something built

Get supported Codec for Android device

社会主义新天地 提交于 2019-12-01 14:06:09
问题 Is there a way to ask an Android device what audio and video Codecs it supports for encoding? I found devices that do not support some of the codecs listed as mandatory in http://developer.android.com/guide/appendix/media-formats.html and there seem to be devices supporting additional codec not listed there. 回答1: That could be interesting for you: private static MediaCodecInfo selectCodec(String mimeType) { int numCodecs = MediaCodecList.getCodecCount(); for (int i = 0; i < numCodecs; i++) {

AR Drone 2 and ffserver + ffmpeg streaming

旧城冷巷雨未停 提交于 2019-12-01 08:07:48
I want to be able to restream the video feed of the AR Drone 2 from a Debian Server to Flash. I am aware that the AR Drone uses the codec p264. I'm totally green when it comes to video codecs, so I don't know what will be suitable for the goal I want to achieve? I have been able to stream the video feed from the AR Drone but with very high latency and extremely low quality, compared to when I directly connect to the AR Drone using ffplay. I currently use the .swf example in the standard ffserver.conf: <Stream test.swf> Feed feed1.ffm Format swf VideoFrameRate 30 VideoIntraOnly NoAudio </Stream

codecs.open(utf-8) fails to read plain ASCII file

三世轮回 提交于 2019-12-01 05:49:43
I have a plain ASCII file. When I try to open it with codecs.open(..., "utf-8") , I am unable to read single characters. ASCII is a subset of UTF-8, so why can't codecs open such a file in UTF-8 mode? # test.py import codecs f = codecs.open("test.py", "r", "utf-8") # ASCII is supposed to be a subset of UTF-8: # http://www.fileformat.info/info/unicode/utf8.htm assert len(f.read(1)) == 1 # OK f.readline() c = f.read(1) print len(c) print "'%s'" % c assert len(c) == 1 # fails # max% p test.py # 63 # ' # import codecs # # f = codecs.open("test.py", "r", "utf-8") # # # ASC' # Traceback (most recent

.NET GDI+ image size - file codec limitations

那年仲夏 提交于 2019-12-01 04:58:55
Is there a limit on the size of image that can be encoded using the image file codecs available from .NET? I'm trying to encode images > 4GB in size, but it simply does not work (or does not work properly i.e. writes out an unreadable file) with .bmp, .jpg, .png or the .tif encoders. When I lower the image size to < 2GB it does work with the .jpg but not the .bmp, .tif or .png. My next attempt would be to try libtiff because I know tiff files are meant for large images. What is a good file format for large images? or am I just hitting the file format limitations? (All of this is being done on