codec

OpenCV/FFMpeg image capture problems

核能气质少年 提交于 2019-12-04 07:17:34
I'm trying to capture images from an IP camera in real time. The stream works perfectly well in VLC, but OpenCV's cvQueryFrame() seems to jumble and corrupt the incoming images to the point of no recognition. Again, capturing from file works fine, but not a live stream. In case it makes a difference, I'm using an rtsp connection URL; I've also tried this with two different camera models (different brands), and the problem remains. Besides, the (I'm assuming) codec is outputting several errors of the following kind: Error at MB: 1746 and concealing 6000 DC, 6000 AC, 6000 MV errors . What can I

How to convert g729 encoded byte array to .WAV in C#?

删除回忆录丶 提交于 2019-12-04 05:16:44
I have been working on a VoIP Application in C sharp language. The purpose of the project is VoIP Call Recording. It uses g729 Codec. I can extract the voice part from RTP payload. How to convert this Byte array to .wav format? Please help me. You can try to use ffmpeg.exe and work with it via command line 来源: https://stackoverflow.com/questions/13468240/how-to-convert-g729-encoded-byte-array-to-wav-in-c

AR Drone 2 and ffserver + ffmpeg streaming

二次信任 提交于 2019-12-04 01:42:36
问题 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

Why does mp4 video plays fine on iPad, not on iPhone?

烈酒焚心 提交于 2019-12-04 01:42:27
I'm quite stumped on this issue. I have a large library of H.264 mp4 video files that I need to have play on iOS. Originally, I was targeting only iPad, but requirements have changed and now I need to include iPhone. But I've noticed that my iPod Touch, which has exactly the same OS version and build id as my iPad, won't play the same files that I've been successfully using on the iPad. I've confirmed this with a colleague who also has an iPhone and iPad with the same version & build. I've also seen the exact same behavior in the iPad simulator, but until now I figured it was a quirk of the

screen capture and lossless codec, .net

倾然丶 夕夏残阳落幕 提交于 2019-12-03 21:45:57
There is a system written in c#/.net. The client make screen shots (1-3 times/sec) and sends the screen shots to a high performance server for processing. I want to reduce network traffic. previously I sent Png images data. now I just check the important regions, and send these regions only if changes. Now I wondering what would happen if you use lossless codecs. There is a few exiting lossless video codecs. But how can I use it from c#/.net , and send the stream? I found a few AVI wrappers, like AForge.AVIWriter , but all save the result into file. (it's not possible to save it to a temporary

How can I get codec information for a quicktime video in Objective C/Cocoa? (Without FFMPEG)

谁说胖子不能爱 提交于 2019-12-03 21:24:29
Hello and thanks for your time, I am creating an application that moves video files around to be processed by other applications. In the past, I have used mediainfo, and ffmpeg, in ruby to obtain codec information about each file. I would however like to transfer all of this into one beautiful cocoa app. I have searched and searched and still can't find a solution (without using ffmpeg) on how to do this. I am basically looking for the exact same info you get in the quicktime video inspector window (apple + i). Any help would be greatly appreciated, sample code, even more so. Thanks. You can

How to extract PCM samples from MediaCodec decoder's output

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 13:29:48
问题 I'm trying to obtain the PCM samples for further processing from a decoded mp4 buffer. I'm first extracting the audio track from a video file recorded with the phone's camera app, and I've made sure the audio track is being selected when I get the 'audio/mp4' mime key: MediaExtractor extractor = new MediaExtractor(); try { extractor.setDataSource(fileUri.getPath()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } int numTracks = extractor.getTrackCount();

Planar YUV420 data layout

不打扰是莪最后的温柔 提交于 2019-12-03 13:00:20
问题 In my project I use OpenH264 codec, which is said to output data in the YUV 4:2:0 planar format. After decoding I get one array with width * height * 1.5 elements, which, when displaying, looks like this image: http://o3d.googlecode.com/svn/trunk/samples_webgl/assets/shaving_cream.png Why there are four areas below the main one (which contains Y - responsible for grayscale - elements ), instead of two, like on my second picture? Is that mean that the format is different or am I wrong and my

HTML5 video codec support

你。 提交于 2019-12-03 11:42:53
问题 What codecs will be supported with the HTML5 video tag? Will it vary by browser, or is there a spec of specific codec that will be supported? 回答1: According to wikipedia: The current HTML5 draft specification does not specify which video formats browsers should support in the video tag. User agents are free to support any video formats they feel are appropriate. HTML5 is in draft format though and this may change. There is an ongoing debate about the suitability of various algorithms and it

Java: Guide to write a custom video codec [closed]

匆匆过客 提交于 2019-12-03 10:41:07
I have quite a weird question, but here it is: Is it possible, and are there any guides for writing a custom video codec in C++ or Java? Here's the weird part: I don't need to dive into those tons of info about audio and motion picture I don't understand. What I actually need is the technical stuff behind how to make a software layer between a movie player and a movie file. Here's why: I would like to create a library or ultimately 2 functions - encode / decode - in C++ / Java, which will take the RAW binary input of any type of file and encode / decode it according to a given password or