h.264

H264 Encoders other than ffmpeg x264

寵の児 提交于 2019-12-18 21:56: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

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

爱⌒轻易说出口 提交于 2019-12-18 17:14:13
问题 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.

H264 NAL unit prefixes

你离开我真会死。 提交于 2019-12-18 12:39:02
问题 I need some clarification on H264 NAL unit delimiter prefixes ( 00 00 00 01 and 00 00 01 ), I am using Intel Media SDK to generate a H264 and pack it into RTP. The issue is that so far I was looking only for 00 00 00 01 as a unit separator and basically was able to find only AUD,SPS,PPS and SEI units in the bitstream. Looking at the memory I saw that after the SEI there was a byte sequence 00 00 01 25 that could be a start of an IDR unit, but my search algorithm did not detect it because of a

h264 RTP timestamp

孤街浪徒 提交于 2019-12-18 12:33:17
问题 I have a confusion about the timestamp of h264 RTP packet. I know the wall clock rate of video is 90KHz which I defined in the SIP SDP. The frame rate of my encoder is not exactly 30 FPS, it is variable. It varies from 15 FPS to 30 FPS on the fly. So, I cannot use any fixed timestamp. Could any one tell me the timestamp of the following encoded packet. After 0 milisecond encoded RTP timestamp = 0 (Let the starting timestamp 0) After 50 milisecond encoded RTP timestamp = ? After 40 milisecond

ffmpeg::avcodec_encode_video setting PTS h264

江枫思渺然 提交于 2019-12-18 12:26:40
问题 I'm trying to encode video as H264 using libavcodec ffmpeg::avcodec_encode_video(codec,output,size,avframe); returns an error that I don't have the avframe->pts value set correctly. I have tried setting it to 0,1, AV_NOPTS_VALUE and 90khz * framenumber but still get the error non-strictly-monotonic PTS The ffmpeg.c example sets the packet.pts with ffmpeg::av_rescale_q() but this is only called after you have encoded the frame ! When used with the MP4V codec the avcodec_encode_video() sets the

How to use Android MediaCodec encode Camera data(YUV420sp)

偶尔善良 提交于 2019-12-18 12:19:35
问题 Thank you for your focus! I want to use Android MediaCodec APIs to encode the video frame which aquired from Camera, unfortunately, I have not success to do that! I still not familiar with the MediaCodec API。 The follow is my codes,I need your help to figure out what I should do. 1、The Camera setting: Parameters parameters = mCamera.getParameters(); parameters.setPreviewFormat(ImageFormat.NV21); parameters.setPreviewSize(320, 240); mCamera.setParameters(parameters); 2、Set the encoder: private

Need to convert h264 stream from annex-b format to AVCC format

一世执手 提交于 2019-12-18 11:43:36
问题 I need to convert h264 stream from annex-b format to AVCC format. I tried this to convert from h264 annex-b to AVCC: I extracted the SPS and PPS from the annex stream and created the Extra data. I then looked in the stream for 0x00 0x00 0x00 0x01 (which should be the start of each Nal) and continue looking for another 0x00 0x00 0x00 0x01 (which will be the end of the Nal) then did minus to get the Nal length, then replace the first 0x00 0x00 0x00 0x01 to 0x00 0x00 0x00 [NulSize] but seems

How AVSampleBufferDisplayLayer displays H.264

不羁的心 提交于 2019-12-18 10:26:27
问题 I want to share my knowledge which I worked out in some days about it. There isnt a lot to find about it. I am still fizzeling about the sound. Comments and tips are welcomed. ;-) 回答1: here my code snippets. Declare it @property (nonatomic, retain) AVSampleBufferDisplayLayer *videoLayer; at first setup the video layer self.videoLayer = [[AVSampleBufferDisplayLayer alloc] init]; self.videoLayer.bounds = self.bounds; self.videoLayer.position = CGPointMake(CGRectGetMidX(self.bounds),

How to embed .h264 video file in html webpage using video tags

谁都会走 提交于 2019-12-18 02:48:01
问题 I am trying to play .h264 file in browser, Trying to accomplish this using html video tags. The result is always an empty frame. I did check some links on web, They recommend to play the video in .mp4 container. Can someone help me to accomplish this? UPDATED CODE: <video width="560" height="340" preload controls> <source src="hh.h264" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <!--<source src="hh.mov" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <source src="hh.ogv" type=

How to embed .h264 video file in html webpage using video tags

拈花ヽ惹草 提交于 2019-12-18 02:47:43
问题 I am trying to play .h264 file in browser, Trying to accomplish this using html video tags. The result is always an empty frame. I did check some links on web, They recommend to play the video in .mp4 container. Can someone help me to accomplish this? UPDATED CODE: <video width="560" height="340" preload controls> <source src="hh.h264" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <!--<source src="hh.mov" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <source src="hh.ogv" type=