codec

OpenCV/FFMpeg image capture problems

时光总嘲笑我的痴心妄想 提交于 2019-12-21 13:00:02
问题 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

screen capture and lossless codec, .net

北城以北 提交于 2019-12-21 06:25:40
问题 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,

Best way to enumerate all available video codecs on Windows?

倖福魔咒の 提交于 2019-12-20 14:36:49
问题 I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine. I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like Available Decoders DiVX Version 6.0 XVID Motion JPEG CompanyX's MPEG-2 Decoder Windows Media Video **Available Encoders** DiVX Version 6.0 Windows Media Video The problem that I am running into is that there is no reliable way to to capture all of the decoders available

Android Media Codec video decoding

时光总嘲笑我的痴心妄想 提交于 2019-12-20 10:24:17
问题 This is my first question so please let me know if I missed anything! Using Android API 16's new Media Codec implementation to try and decode a video so that I can send frames to be applied as a texture (the texture part is already done). So I have come up with the following code with some help off stack but in runOutputBuffer() my outputBufIndex is coming back -1 (or in an infinite loop as I have provided -1 as a timeout) can anyone help with this, and/or provide any advice on where to go

Python library to modify MP3 audio without transcoding

百般思念 提交于 2019-12-20 10:14:10
问题 I am looking for some general advice about the mp3 format before I start a small project to make sure I am not on a wild-goose chase. My understanding of the internals of the mp3 format is minimal. Ideally, I am looking for a library that would abstract those details away. I would prefer to use Python (but could be convinced otherwise). I would like to modify a set of mp3 files in a fairly simple way. I am not so much interested in the ID3 tags but in the audio itself. I want to be able to

X264 Error message when capturing video

强颜欢笑 提交于 2019-12-20 03:57:12
问题 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

Display Emoji in Python's console

坚强是说给别人听的谎言 提交于 2019-12-19 08:55:18
问题 I wonder if it's possible to print Emojis in a Python 3 console on Windows. Actually, to avoid the following error: codec can't encode character '\U0001f44d' in position 10: character maps to <undefined> I've used: import emoji as moji print(moji.emojize('Python is :thumbsup:', use_aliases=True).encode('unicode- escape')) which is, as expected , printing the right character:U0001f44d without any exception . 回答1: The Windows command prompt has a lot of limitations with regards to Unicode

Is re-encoding JPEG images an idempotent operation?

僤鯓⒐⒋嵵緔 提交于 2019-12-19 06:41:03
问题 I am aware that JPEG compression is lossy. I have 2 questions: Given an operation T: 1. Take a JPEG-80 image 2. Decode it to a byte buffer 3. Encode given byte buffer as JPEG-80 Is T an idempotent operation in terms of visual quality? Or will the quality of the image keep degrading as I repeat T? Does the same hold true for the JPEG-XR codec? Thank you! Edit : Since there have been conflicting answers, it would be great if you could provide references! 回答1: It's not guaranteed, but it may

Is re-encoding JPEG images an idempotent operation?

独自空忆成欢 提交于 2019-12-19 06:40:29
问题 I am aware that JPEG compression is lossy. I have 2 questions: Given an operation T: 1. Take a JPEG-80 image 2. Decode it to a byte buffer 3. Encode given byte buffer as JPEG-80 Is T an idempotent operation in terms of visual quality? Or will the quality of the image keep degrading as I repeat T? Does the same hold true for the JPEG-XR codec? Thank you! Edit : Since there have been conflicting answers, it would be great if you could provide references! 回答1: It's not guaranteed, but it may

What to do with the incompatibilities in HTML 5 audio across browsers?

☆樱花仙子☆ 提交于 2019-12-18 16:50:58
问题 I need to use HTML 5 audio to play sounds. However, the codec support is very irritating: Firefox: Ogg, Wav Safari: Mp3, Wav Chrome: Ogg, Mp3 Opera: Wav I basically need to encode in Wav and Ogg/Mp3. However, Wav's are terrible in size and that is very crucial point for me. So, I guess I should go for Mp3 + Ogg leaving Opera and IE out? 回答1: According to: http://my.opera.com/core/blog/2009/12/31/re-introducing-video, Opera 10.5 (still in alpha/beta) supports Vorbis and PCM Wav for audio. I