codec

WIC WINCODEC_ERR_BADHEADER only for JPEG images

若如初见. 提交于 2020-01-16 19:28:26
问题 I have a simple encoding/ decoding application using Windows Imaging Component API. The issue I'm having is that when I use either the JPEGXR or BMP formats, everything works fine. However, when I use the JPEG codec - the encoder works fine and I can visually verify the generated JPEG image, but when I try to decode that stream, I get a WINCODEC_ERR_BADHEADER (0x88982f61) Here's the line that fails: hr = m_pFactory->CreateDecoderFromStream( pInputStream, NULL, WICDecodeMetadataCacheOnDemand,

Regarding G729 integration in pjsip

纵然是瞬间 提交于 2020-01-16 18:45:28
问题 I am querying on this because I am not a C expert .See if any one who has worked around it could help.I am integrating g729 in pjsip lib and I got g729 codec files from here.Here are I steps I have followed : First I have registered g729 in 'pjmedia/src/pjmedia-codec/audio_codecs.c' by putting this #if PJMEDIA_HAS_G729_CODEC /* Register G729 */ status = pjmedia_codec_g729_init(endpt); if (status != PJ_SUCCESS){ return status; } #endif Now I have two files 'pj_g729.c' and 'pj_g729.h' that I

Concat multiple video and audio files with ffmpeg

随声附和 提交于 2020-01-14 10:34:07
问题 I have an array of audio and video clips, where each audio clip has a 1:1 correlation with it's video clip. The encoding of each video and each audio clip are the same. How can I concat all of the audio clips, and all the video clips, then merge them together to output a video. As of now I only figured out how to merge 1 audio clip with 1 video clip: $ ffmpeg -i video_1.webm -i audio_1.wav -acodec copy -vcodec copy output.mkv Update I just came across mkvmerge would this possibly be a better

How to add a new video codec to Android?

若如初见. 提交于 2020-01-13 06:42:24
问题 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. 回答1: There appears to be good suggestions in this question: http://groups.google.com/group/android

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

谁都会走 提交于 2020-01-13 05:12:08
问题 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 回答1: 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

Adding new CODEC to ffmpeg

元气小坏坏 提交于 2020-01-11 01:41:27
问题 Is it possible to add new codec's to ffmepg? i searched a bit and was not able to find any concrete answer about this. If possible, Can i know the steps? 回答1: You have to add it to the library internally; the wiki linked to in that comment (not an answer?) is a good place to start, and also check https://ffmpeg.org/developer.html#New-codecs-or-formats-checklist. Most internal utilities aren't exported, so it's not as if external codec support would be useful. 来源: https://stackoverflow.com

Where is the documentation for the Mjpeg codec used in mencoder, VLC and FFMpeg?

白昼怎懂夜的黑 提交于 2020-01-06 10:20:23
问题 Mencoder has a lovely option for converting a mjpeg file into an avi file with an 'MJPG' codec that plays in VLC. The command line to do this is: mencoder filename.mjpeg -oac copy -ovc copy -o outputfile.avi -speed 0.3 where 0.3 is the ratio of the desired play framerate to the default 25 fps. All this does is make a copy of the mjpeg file, put an avi header on top and at the end, what seems to be an index of the frame positions in the file. I want to replicate this in my own code, but I can

Where is the documentation for the Mjpeg codec used in mencoder, VLC and FFMpeg?

自作多情 提交于 2020-01-06 10:20:21
问题 Mencoder has a lovely option for converting a mjpeg file into an avi file with an 'MJPG' codec that plays in VLC. The command line to do this is: mencoder filename.mjpeg -oac copy -ovc copy -o outputfile.avi -speed 0.3 where 0.3 is the ratio of the desired play framerate to the default 25 fps. All this does is make a copy of the mjpeg file, put an avi header on top and at the end, what seems to be an index of the frame positions in the file. I want to replicate this in my own code, but I can

Is it possible to check which video/audio `codec` supported by which browser using JS?

泄露秘密 提交于 2020-01-04 06:19:10
问题 More precisely, I would like to check which codecs I can use in a browser for video/audio elements in HTML5. (e.g. Safari supports H.264, but I also would like to know which codecs I can use) Since specification changes over-time I would like to do it somehow automaticaly, not based on browser-codec tables. I think, it can be written as a function in JS(if it is not written, yet). I have tried to Google it, but wasn't even close to find an answer. 回答1: Reference link : https://www.nomensa.com

Is there any way for creating Mongo codecs automatically?

我的梦境 提交于 2020-01-01 18:10:22
问题 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