codec

Opencv error on python

最后都变了- 提交于 2019-11-30 08:50:50
问题 no matter what "CV_FOURCC" I use I get this: OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file /usr/src/packages/BUILD/OpenCV-2.2.0/modules/highgui/src/cap_gstreamer.cpp, line 489 writer = cv.CreateVideoWriter( filename=file, fourcc=cv.CV_FOURCC('F', 'M', 'P', '4') , fps=iFps, frame_size=(800,600), is_color=1) cv.WriteFrame(writer, cv.LoadImage(frames[i])) Also /usr/src/packages

What do double parentheses mean in a function call? e.g. func(stuff)(stuff)?

此生再无相见时 提交于 2019-11-30 08:25:38
Original title: " Help me understand this weird Python idiom? sys.stdout = codecs.getwriter('utf-8')(sys.stdout) " I use this idiom all the time to print a bunch of content to standard out in utf-8 in Python 2.*: sys.stdout = codecs.getwriter('utf-8')(sys.stdout) But to be honest, I have no idea what the (sys.stdout) is doing. It sort of reminds me of a Javascript closure or something. But I don't know how to look up this idiom in the Python docs. Can any of you fine folks explain what's going on here? Thanks! .getwriter returns a function callable object; you are merely calling it in the same

what is the codec for mp4 videos in python OpenCV

一曲冷凌霜 提交于 2019-11-30 06:55:29
fourcc = cv2.cv.CV_FOURCC(*'XVID') The above line is used for avi video. In the same fashion, which codec do we use for mp4 videos in Ubuntu? rayryeng The codec is H.264. One of these should work for you: fourcc = cv2.cv.CV_FOURCC(*'H264') #or #fourcc = cv2.cv.CV_FOURCC(*'X264') However, I should warn you that you'll probably need to have ffmpeg and the x264 libraries installed so since you are in Ubuntu, try doing this command in the terminal : sudo apt-get install ffmpeg x264 libx264-dev Also, check out this link from OpenCV tutorials for more details as to the kinds of FourCC codes

FFmpeg fourcc Avi codec support list?

断了今生、忘了曾经 提交于 2019-11-30 05:13:35
A couple of similar questions are on stackoverflow, but I haven't been able to figure this exact problem out. I want to get a list of the fourcc s for the avi codecs that FFMpeg can decode. I know how to get all the formats ffmpeg -formats and codecs ffmpeg -codecs but neither list gives me an accessible list of fourccs . Neither does the documentation I can find. I need this list, so that my application can access the fourcc of an avi file and determine whether to use ffmpeg or VfW (or DirectX ) to try decode the file. Is there some ffmpeg command that can give me this list? I don't know if

What is a good lossless video codec?

倖福魔咒の 提交于 2019-11-30 04:46:17
I often have to write up specs for video conversion for some of the video production houses that my company's clients work with. Unfortunately, I am a programmer first and "video-guy" on the side, so I don't know too much about all the different codecs. I am looking for a good lossless codec that is both cross-platform (Win and Mac) and cross application (Adobe, Apple, etc). huffyuv is definitely the simplest solution and you will find several cross-platform implementations as C libraries for example. It is easily encapsulated in AVI files and readable by the major players. Format definition

Turn image sequence into video with transparency

人走茶凉 提交于 2019-11-29 21:23:20
I've got what seems like it should be a really simple problem, but it's proving much harder than I expected. Here's the issue: I've got a fairly large image sequence consisting of numbered frames (output from Maya, for what its worth). The images are currently in Targa (.tga) format, but I could convert them to PNGs or other arbitrary format if that matters. The important thing is, they've got an alpha channel. What I want to do is programatically turn them into a video clip. The format doesn't really matter, but it needs to be lossless and have an alpha channel. Uncompressed video in a

Which audio format can be recorded and played back by iPhone and Android?

偶尔善良 提交于 2019-11-29 17:50:49
问题 I am designing an app that can record short audio files on iPhone and Android that can be played back on both platforms, as well as hopefully any other smartphone. Right now I'm using *.caf with the iLBC codec, as I know the iPhone does not encode mp3. Is there a file format/codec that I should use in this case? 回答1: It used to be that there were no common audio encoding formats for Android and iPhone. iPhone: iPhone audio encoding supported formats Android: Android supported media formats

How to add g729 codec in Android application?

吃可爱长大的小学妹 提交于 2019-11-29 17:23:57
i am developing a SIP application for making and receiving a call and i want to add the G729 codec in my application. currently i am doing analysis on open source project SipDroid . if i want to make that application to support G729 codec how to do that? there is a different codecs configuration file in org.sipdroid.codecs package.how do create the this kind of .java file for G729 codec? Any suggestion and response will be appreciated. Log message of asterisk Found RTP audio format 101 Found audio description format telephone-event for ID 101 Found RTP video format 103 Found video description

Camera2 video recording without preview on Android: mp4 output file not fully playable

天涯浪子 提交于 2019-11-29 13:59:48
问题 I am trying to record video from the back camera (the one that faces the face) on my Samsung Galaxy S6 (which supports 1920x1080 at about 30 fps). I do not want to have to use any surface for previewing if I do not have to as this is to just happen in the background. I seem to have it working, but the output files are not playable in a way that actually is correct. On my Windows 10 PC, Windows Media Player will show the first frame and then play the audio, VLC will not show any of the frames.

What do double parentheses mean in a function call? e.g. func(stuff)(stuff)?

最后都变了- 提交于 2019-11-29 11:49:12
问题 Original title: " Help me understand this weird Python idiom? sys.stdout = codecs.getwriter('utf-8')(sys.stdout) " I use this idiom all the time to print a bunch of content to standard out in utf-8 in Python 2.*: sys.stdout = codecs.getwriter('utf-8')(sys.stdout) But to be honest, I have no idea what the (sys.stdout) is doing. It sort of reminds me of a Javascript closure or something. But I don't know how to look up this idiom in the Python docs. Can any of you fine folks explain what's