codec

How can I add new codecs for matlab?

折月煮酒 提交于 2019-12-10 14:44:22
问题 Is there any way to load new codecs for matlab? It only supports basic codecs and filters. I need to use uncompperessed videos in matlab 回答1: On Linux, you can use all GStreamer plugins. On Windows, you can use DirectShow codecs, including ffdshow. Alternatively, you can use ffmpeg to transcode video or write the frames of a video into a series of images. 回答2: The short answer is NO, you cannot add new codecs. I presume you wish to use these codecs with the Matlab functions avifile and

HEX decoding in Python 3.2

我的梦境 提交于 2019-12-10 12:59:18
问题 In Python 2.x I'm able to do this: >>> '4f6c6567'.decode('hex_codec') 'Oleg' But in Python 3.2 I encounter this error: >>> b'4f6c6567'.decode('hex_codec') Traceback (most recent call last): File "<pyshell#25>", line 1, in <module> b'4f6c6567'.decode('hex_codec') TypeError: decoder did not return a str object (type=bytes) According to the docs hex_codec should provide "bytes-to-bytes mappings". So the object of byte-string is correctly used here. How can I get rid of this error to be able to

Open and read avi files with OpenCV - Ubuntu

若如初见. 提交于 2019-12-10 10:19:18
问题 I have just read this in the book OpenCV 2 Computer Vision Application Programming Cookbook by R. Laganiere : It is important to note that in order to open the specified video file, your computer must have the corresponding codec installed, otherwise cv::VideoCapture will not be able to understand the input file. Normally, if you are able to open your video file with a video player on your machine (such as the Windows Media Player), then OpenCV should also be able to read this file.

MongoDB Scala Driver - Rendering BSON Documents

大憨熊 提交于 2019-12-10 09:57:35
问题 We currently have a Type-Safe query language at work, this custom DSL allows us to easily write database queries that are interpreted and converted into Mongo Queries. We recently swapped over from Casbah to the new Mongo Scala Driver and rewrote our interpreter. I am however having some issues when dealing with optional values. This is an example query: dao.headOption(Order.id === orderId.some) The type stored on the Order Object is an Option so we lift the provided id into an option as well

How to execute command line ffmpeg commands programatically in android?

人盡茶涼 提交于 2019-12-10 09:26:22
问题 I have successfully built ffmpeg for android using the bambuser . Now I have to build a sample converter application like mp4 to 3gp. I know there are command line commands ffmpeg -i video_origine.avi video_finale.mpg . But I don't know how to execute these commands programatically. I have sample code like jint Java_com_example_ndklearning1_MainActivity_logFileInfo(JNIEnv * env, jobject this, jstring filename) { av_register_all(); AVFormatContext *pFormatCtx; const jbyte *str; str = (*env)-

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

时光毁灭记忆、已成空白 提交于 2019-12-09 15:07:59
问题 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

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

感情迁移 提交于 2019-12-09 13:39:55
问题 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

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

独自空忆成欢 提交于 2019-12-09 08:27:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . 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

Find out the Codec for a Quicktime Movie

有些话、适合烂在心里 提交于 2019-12-08 10:45:28
问题 I´ve been wondering if it is possible to find out which Codec is used to Decompress a Quicktime Movie (like h.264, motion jpeg.. ), preferable as NSString . I searched through the Quicktime and QTKit api and all gettable attributes with no success, but I am sure there must be a way to do this, but how? 回答1: I think you're having this difficulty because you're misunderstanding the nature of a Quicktime movie - it doesn't make sense to ask what the codec of a movie is, and that's why you're not

Best video codec to encode analog graph information / AVI

时光怂恿深爱的人放手 提交于 2019-12-08 08:14:41
问题 I have an application that captures analog measurements several times a second - to give you an idea how it looks like - here is a sample frame (obviously the curve changes as the measurements chage): alt text http://img829.imageshack.us/img829/3692/curve.png I need this application to record these frames into an AVI or any other video file that would be playable on windows without a custom codec. I've thought of just creating a huge animated GIF file but rewind/pause capability is a must.