h.264

H264 Encoders other than ffmpeg x264

爱⌒轻易说出口 提交于 2019-11-30 19:35:45
The iPhone app I am working on captures images in series within certain user-defined time interval, I am looking for a way to combine these images into H264 encoded videos. I have done some research on Google, it looks like I will have to use something like ffmpeg/mencoder on iPhone? (Also found someone ported ffmpeg to iPhone, ffmpeg4iPhone) However, I found that x264 is under GPL license, and requires me to open source my project if I use ffmpeg. Also found some people suggested to use Ogg Theora, but I will need to port it to iPhone if I use it. (Which I am not sure how to do it now). Is

Using VLC imem to play an h264 video file from memory but receiving error “main stream error: cannot pre fill buffer”

本秂侑毒 提交于 2019-11-30 16:17:35
I have an h264 video file that is loaded into memory, and I attempt to play it with imem using the parameter "imem-cat=4" so that vlc will use an access module to demux the video, and vlc starts and receives my imem parameters successfully: [0x7f38a0000e28] access_imem demux debug: Using get(0x404e1d), release(0x404e91), data(0x7fff5b4a9430), cookie("IMEM") This category also means I don't have to provide DTS and PTS. The imem module for VLC isn't well documented, but I've found hints in several places e.g. https://forum.videolan.org/viewtopic.php?t=111917 https://forum.videolan.org/viewtopic

H264 video works using src attribute. Same video fails using the MediaSource API (Chromium)

拈花ヽ惹草 提交于 2019-11-30 15:29:27
http://www.youtube.com/html5 indicates that Google Chrome is compliant with MediaSource Extensions & H.264. I make a simple test checking that my video is supported by Chromium, using the <video id='player' autoplay='true'> <source src='/test.mp4' type='video/mp4' /> </video> The video plays smoothly. A second alternative that also works fine consists in loading through AJAX the byte chain and converting the buffer to a URI object. Then asigning such URI to the (video) source.src attribute. Finally I try to load the same video through AJAX and inject it into a MediaSource Buffer. It fails with

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

半腔热情 提交于 2019-11-30 14:21:18
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? 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. ffmpeg-sharp is probably a good starting point. 来源: https://stackoverflow.com/questions/2509648/how-can-i-create-an-h-264-encoded-movie-from-a-set-of-images-in-c

ffmpeg generate higher quality images for MJPEG encoding [duplicate]

痞子三分冷 提交于 2019-11-30 13:58:07
问题 This question already has answers here : How can I extract a good quality JPEG image from an H264 video file with ffmpeg? (2 answers) Closed 10 months ago . I have a bunch of mov / H.264 files, that I'd like to encode into mov/MJPEG. However I'm getting very low quality output. Here's what I tried: ffmpeg -i a.mov -an -crf 11 -preset slower -pix_fmt yuv420p -vcodec mjpeg -f mov -y b.mov For H.264 encoding the -crf and -preset flags generate higher quality. But that doesn't seem to work for

How to get h264 video info?

跟風遠走 提交于 2019-11-30 12:57:24
问题 How can I get specific h264 video information from video file? I need to know profile (Baseline/Main/High) and is there B-Frames in movie? 回答1: I've found out that the best way for this is using FFprobe with -show_streams parameter. It shows both h.264 profile and B-frames usage for video streams of the movie. ffprobe -show_streams -i "file.mp4" [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=High codec_type=video codec_time_base=1001/48000

Embedding a live RTSP stream of H.264 video in a webpage

你。 提交于 2019-11-30 11:49:59
问题 I have a server providing live H.264 video over a network via RTSP (rtsp://...), and I've been trying to find a way to display the stream to users in their browser (on at least Windows and OS X - Linux is a bonus). I currently have VLC Player embedded and have it working in both IE9 and Mozilla Firefox 12.0, but it would be ideal if, at most, the user just has to install a plugin for their browser or something similar (as opposed to a whole program). I am able to use Open Source solutions,

Extracting h264 from CMBlockBuffer

自古美人都是妖i 提交于 2019-11-30 10:41:41
问题 I am using Apple VideoTool Box (iOS) to compress raw frames captured by the device camera. My callback is being called with a CMSampleBufferRef object that contains CMBlockBuffer. The CMBlockBuffer object contain the H264 elementary stream but I didn't find any way to get a pointer to the elementary stream. When I printed into the console the CMSampleBufferRef object I got: (lldb) po blockBufferRef CMBlockBuffer 0x1701193e0 totalDataLength: 4264 retainCount: 1 allocator: 0x1957c2c80

Re-encoding h.264 content with a different bit rate using Android MediaCodec

橙三吉。 提交于 2019-11-30 10:11:35
I'm attempting to re-encode a h.264 mp4 file with a different bit rate using the Android MediaCodec API's introduced in 4.2. I am able decode and play the content (prior to changing the bit rate) using the MediaCodec API but if I attempt to re-encode the content with a different bit rate prior to decoding it I get garbled out put (a green screen with grey pixelation). The code I am using is based on the Android Test Case android.media.cts.DecoderTest Android Test Case android.media.cts.DecoderTest : public void encodeDecodeVideoFile(AssetFileDescriptor assetFileDescriptor) { int bitRate =

ffmpeg generate higher quality images for MJPEG encoding [duplicate]

倖福魔咒の 提交于 2019-11-30 09:15:05
This question already has an answer here: How can I extract a good quality JPEG image from an H264 video file with ffmpeg? 1 answer I have a bunch of mov / H.264 files, that I'd like to encode into mov/MJPEG. However I'm getting very low quality output. Here's what I tried: ffmpeg -i a.mov -an -crf 11 -preset slower -pix_fmt yuv420p -vcodec mjpeg -f mov -y b.mov For H.264 encoding the -crf and -preset flags generate higher quality. But that doesn't seem to work for MJPEG. Use -q:v to control (M)JPEG quality The effective range is a linear scale of 2-31, and a lower value will result in a