codec

FFmpeg check channels of a 7.1 audio for silence

余生长醉 提交于 2019-12-04 22:06:10
This is a follow-up question from my previous question asked here , where I needed to look for silence within a specific audio track. Here is the ffmpeg life-saver solution where helps to get some metadata: ffmpeg -i file -map 0:a:1 -af astats -f null - But I have other type of input .mp4 files where they have one single track of 8 (i.e. 7.1) audio channels. Apparently these files are transcoded from an original file (somehow the 4 track stereos are squished into these files). Now similar to my previous, I need to know if the original file was 2-channel stereo or 5.1 (6) channel. How to know

VideoWriter not working on Win7-64Bit VM

我与影子孤独终老i 提交于 2019-12-04 20:24:40
I coded the below which tries to hold a picture and count number hundred and finally grab all them to a video with following codec MP42(MPEG4-V2) #include <stdAfx.h> #include <iostream> #include <opencv2\opencv.hpp> using namespace cv; using namespace std; int n=0; char a; int main(int, char** argv) { Mat image= imread("C:\\Users\\Metin\\Desktop\\images.jpg"); Mat newimage; VideoWriter vide ("Hopdedik.avi",CV_FOURCC('M','P','4','2'),30.0,image.size()); vide.open("Hopdedik.avi",CV_FOURCC('M','P','4','2'),30.0,image.size()); for(int n=0; n<100;n++){ cout<<n<<'\n'; std::string s= to_string(static

How to add a new video codec to Android?

不羁岁月 提交于 2019-12-04 19:15:04
I have to add a custom video codec to Android that pulls in a video stream that contains metadata such as location, time, and graphic and textual annotations. The information must be demuxed and then presented as a video with annotation overlays and also as a map (e.g. Google map) with annotations. How can this be done? I'm interested in any information, links, etc. that will get me closer. There appears to be good suggestions in this question: http://groups.google.com/group/android-porting/browse_thread/thread/4b961fe43cb29b18 This may be more work than you are looking for, and may be more

Is there any way for creating Mongo codecs automatically?

浪子不回头ぞ 提交于 2019-12-04 16:48:47
I'm willing to migrate my code from mongojack to something that supports the new async mongo driver. Yet I find that the new way of encoding/decoding is through Codec s and I don't see myself writing a Codec for every class in my model. That's why I'd rather write a lib that given a class creates a Codec . However I don't know how, nor do I know if there's already some effort out there trying to achieve the same. Are there some libs that achieve what I want? if not, what's the best approach to achieve it. (I know I should probably use CodecProvider somewhere in there, but I still don't know

Error while using a g729 codec in SipDroid

亡梦爱人 提交于 2019-12-04 15:58:02
问题 I am developing a SIP application to make and receive a calls. And i want that application to support g729 codec. First i have tried with SipDroid an open source project and i have followed the this steps (followed the comment from 149 to 160) to add g729 codec in SipDroid. But g729 codec is not negotiated in my application.i have removed other codecs and added only g729. In my Asterisk i have added the .so file of g729 codec and in peers account i disallowed all and allowed only g729 but i

Custom File Format And Codec?

走远了吗. 提交于 2019-12-04 14:08:42
I'm messed up with codec issue for days, and still couldn't see the big picture yet. It is my first time to deal with audio/video formats and codecs. So I really need some help about that. Here is the work. I'm writing several components that is responsible for encoding and decoding customized mpeg files. On top of standart de/compression process (for both audio and video) i will implement some custom de/encryption. Writing both codec and software libraries for this. Things i can't figure out are listed. For WMP, what is the codec locating policy. How do I differantiate my custom file format

android mediacodec: real time decoding h264 nals

别来无恙 提交于 2019-12-04 14:08:00
I'm trying to decode h264 nals in real time with android low level media api. Each nal contains one full frame, so i expect that after feeding input with my nal and calling dequeueOutputBuffer it would "immediatly" (with the litle delay of course) display my frame but it doesn't. I see the first frame and the dequeue returns the first buffer only afer feeding the decoder with the second one which at this time should render the second frame. Frames are encoded with zerolatency preset of x264 so no b-frame etc... I guess that there might be a way to set the encoder to render the frame immediatly

Opencv CV_FOURCC('F','L','V','1') not working?

被刻印的时光 ゝ 提交于 2019-12-04 14:06:39
I want to write .flv file from Opencv and spent so much time on it... OpenCv 2.3 Documentation says we can create flv file with this codec CV_FOURCC('F','L','V','1') but I am always getting this error . [flv @ 0x9bf5000] Tag FLV1/0x31564c46 incompatible with output codec id '22' Please help.... Currently I am using OpenCv 2.3 on Ubuntu 10.10 I know this is quite old, but I'll add my experience to this wall incase future people have this problem. I encountered this using the PIM1 fourCC for output - my problem was solved when I changed from video_output = cvCreateVideoWriter("disparity_output

How can I get the original capture timestamp from my home movie files:: AVI and MPG4?

北战南征 提交于 2019-12-04 11:37:28
问题 I have over a TB of home movies with horrible file names. Finding what you want is impossible. I would like to rename all files to the time they were originally recorded (not the file time they were placed on my computer). Some applications (like Ulead Video Studio) can access this information, which I believe is embedded in the CODEC. I would LOVE to find how how either I can write a .Net app to extract this information to rename my files so I can easily organize them OR find an application

Speex or nellymoser

房东的猫 提交于 2019-12-04 11:11:13
I am developing a voice application, I have 2 options speex and nellymoser .Why should I use speex instead of nellymoser in flex application. this should make it clear , Comparison of both codecs for flex: http://askmeflash.com/article/2/speex-vs-nellymoser Speex is open source, optimized for speech and seems to have lower bandwidth requirements. However, in Flash/AIR, Speex is always 16 kHz, which is not quite the Skype-like crispness of the sound. Because of that, we're currently contemplating switching to the "old" Nellymoser where we have an option of 22 and even 44 kHz. 来源: https:/