video-encoding

python image frames to video

夙愿已清 提交于 2020-01-14 09:09:16
问题 I am writing a python/django application and it needs to do image manipulation and then combine the images into a video (each image is a frame). Image manipulation is easy. I'm using PIL, but for the convert to video part, I'm stuck. I've found pyffmpeg but that just seems to do decoding of videos to frames, not the other way around. Although I may have missed something. I've also heard that pythonMagick (imagemagick wrapper) can do this, but I can't seem to find anything about encoding in

.h264 sample file

本秂侑毒 提交于 2020-01-13 06:53:27
问题 I'm currently using files here, but I get some errors while testing my program. I just want to see if it fails only with this one or with all other .h264 files. So, are there any other sources where I can download (standard) .h264 sample files for test ? Thanks. 回答1: Option 1: make your own with x264. These are not standard sample files, but you can control which parts of H.264 they use, for example different profile/level/etc, make them I-frame-only, make them have only a particular

iPad Doesn't Render H.264 Video with HTML5

元气小坏坏 提交于 2020-01-12 07:18:14
问题 I have some H.264-encoded videos which render in HTML5 correctly in the web browser, but do not render correctly on the iPad. When I use a H.264 video I downloaded off the internet, my video renders correctly on the iPad, so it is not an HTML problem. Here is the ffmpeg info about my videos -- My original .mov video: Seems stream 1 codec frame rate differs from container frame rate: 6000.00 (6000/1) -> 30.00 (30/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a_video.mp4': Metadata: major_brand :

How can I create an H.264 encoded movie from a set of images in c#?

旧时模样 提交于 2020-01-10 19:42:14
问题 I have been doing a lot of searching today for C# libraries which will allow me to create H.264 encoded video files. Does anyone know if any such libraries or 3rd party components exist? 回答1: Use ffmpeg. I suggest to run a ffmpeg process directly, like in this sample: http://jasonjano.wordpress.com/2010/02/09/a-simple-c-wrapper-for-ffmpeg/ While the sample doesn't deal with the operation you need, I suggest to adapt it to your needs. 回答2: ffmpeg-sharp is probably a good starting point. 来源:

Set Video playback speed in Unity

狂风中的少年 提交于 2020-01-07 04:35:06
问题 My general problem is that I need to play and control the speed of a video (no sound) inside a Unity3D world and probably need to control the decoding myself and I have absolutely no idea how to do that efficiently. So any hints in the right direction are welcome. I need to play a video projected on a Material in Unity and I need to control the speed of that video at runtime. As I target mobile devices I cannot use MovieTexture. There are alternatives like e.g. Easy Movie Texture but they do

DCT based Video Encoding Process

南笙酒味 提交于 2020-01-06 07:56:12
问题 I am having some issues that I am hoping you will be able to clarify. I have self taught myself a video encoding process similar to Mpeg2. The process is as follows: Split an RGBA image into 4 separate channel data memory blocks. so an array of all R values, a separate array of G values etc. take the array and grab a block of 8x8 pixel data, to transform it using the Discrete Cosine Transform (DCT). Quantize this 8x8 block using a pre-calculated quantization matrix. Zigzag encode the output

How to create IMFSample from D11 texture for Intel MFT encoder

故事扮演 提交于 2020-01-02 15:27:42
问题 I want to encode video using the "Intel® Quick Sync Video H.264 Encoder MFT". If I create IMFSample from system buffers, it works well. Just like following: IMFMediaBuffer *pBuffer = NULL; MFCreateMemoryBuffer(cbSize, &pBuffer); BYTE *pData = NULL; pBuffer->Lock(&pData, NULL, NULL); memcpy(pData, bufferIhaveinYYYYUV format, buffer size); pBuffer->Unlock(); IMFSample *pSample = NULL; MFCreateSample(&pSample); pSample->AddBuffer(pBuffer); Now I'm investigating whether I can feed it

Correctly Allocate And Fill Frame In FFmpeg

巧了我就是萌 提交于 2020-01-02 13:29:36
问题 I am filling a Frame with a BGR image for encoding, and I am getting a memory leak. I think I got to the source of the problem but it appears to be a library issue instead. Since FFmpeg is such a mature library, I think I am misusing it and I would like to be instructed on how to do it correctly. I am allocating a Frame using: AVFrame *bgrFrame = av_frame_alloc(); And later I allocate the image in the Frame using: av_image_alloc(bgrFrame->data, bgrFrame->linesize, bgrFrame->width, bgrFrame-

Correctly Allocate And Fill Frame In FFmpeg

我们两清 提交于 2020-01-02 13:28:10
问题 I am filling a Frame with a BGR image for encoding, and I am getting a memory leak. I think I got to the source of the problem but it appears to be a library issue instead. Since FFmpeg is such a mature library, I think I am misusing it and I would like to be instructed on how to do it correctly. I am allocating a Frame using: AVFrame *bgrFrame = av_frame_alloc(); And later I allocate the image in the Frame using: av_image_alloc(bgrFrame->data, bgrFrame->linesize, bgrFrame->width, bgrFrame-

Cannot play certain videos

心不动则不痛 提交于 2020-01-02 03:50:29
问题 I'm trying to play movies on the Android device from our server. It is not a media server, just a regular Apache server. We use the same API to access the videos on the iPhone and it works fine. On the Android device, certain videos work, and others do not. They were all created the same way, except the majority of the ones that don't work are composed of still images and audio. We have tried re-encoding them with Videora, and tried hinting them with MP4Box. All of the videos play perfectly