h.264

How to set MaxH264SliceBytes property of VTCompressionSession

点点圈 提交于 2019-12-06 09:22:11
问题 iOS VTCompressionSession has a property which is kVTCompressionPropertyKey_MaxH264SliceBytes . However, I cannot set the kVTCompressionPropertyKey_MaxH264SliceBytes property of VTCompressionSession . It returns a -12900 error code (kVTPropertyNotSupportedErr) and the description in VTCompressionProperties.h file says "If supported by an H.264 encoder, the value limits the size in bytes of slices produced by the encoder, where possible." So I understand that usage of this property is supported

H264 parsing - slice header detection

心不动则不痛 提交于 2019-12-06 08:48:41
I know that in h264 we can detect a NAL Unit by the bit pattern 0x000001 . Is there an equivalent method to detect a slice header in a NAL Unit? How does one handle multi-slice NAL units? Currently I'm using parsing code for h264 and get the slice header in a respective structure. The slice header syntax is discussed on page 36 (section 7.3.3) of the H.264 standard . It might be worth having a look at the reference software . 来源: https://stackoverflow.com/questions/10612893/h264-parsing-slice-header-detection

android mediacodec: real time decoding h264 nals

给你一囗甜甜゛ 提交于 2019-12-06 08:31:34
问题 I'm trying to decode h264 nals in real time with android low level media api. Each nal contains one full frame, so i expect that after feeding input with my nal and calling dequeueOutputBuffer it would "immediatly" (with the litle delay of course) display my frame but it doesn't. I see the first frame and the dequeue returns the first buffer only afer feeding the decoder with the second one which at this time should render the second frame. Frames are encoded with zerolatency preset of x264

Android MediaCodec appears to buffer H264 frames

China☆狼群 提交于 2019-12-06 07:37:04
I'm manually reading a RTP/H264 stream and pass the H264 frames to the Android MediaCodec. I use the "markerBit" as a border for the frames. The MediaCodec is tied to a OpenGL Texture (SurfaceTexture). In general everything works fine. But the Decoder appears to buffer frames. If I put a frame in the decoder it is not rendered immediately to the texture. After I put 2-3 frames more in the decoder the first frame is rendered to the texture. I'm implementing against Android 4.4.4. private static final int INFINITE_TIMEOUT = -1; private static final int TIMEOUT_OUTPUT_BUFFER_MEDIA_CODEC = 1000; .

Color_FormatSurface implementation

心不动则不痛 提交于 2019-12-06 07:30:50
问题 Is there any available documentation about Color_FormatSurface (AndroidOpaque) color format? My video encoder currently does not support this format, and I am supposed to add that feature, but I cannot find anything about it. Any help would be appreciated. 回答1: There is no documentation on it, because it is opaque. That's "opaque" in the programming sense, not the alpha-blending sense. The idea behind the "opaque" format is that it's whatever the device manufacturer decides is most

Embedding Metadata to H.264 encoded file

可紊 提交于 2019-12-06 07:28:14
问题 I am currently developing an application which produces certain metadata with respect to preview frames coming from the camera. I can see this metadata being produced properly and I have no problems here. However, I have to embed this metadata to these frames of interest (frames are processed by a native algorithm to produce this metadata). I am using ffmpeg with x264 to encode the frames into H.264. I have checked x264.h and some documentations but failed to find what I seek. My question is;

How to map a decoded buffer from ffmpeg into QVideoFrame?

筅森魡賤 提交于 2019-12-06 07:21:19
I'm trying to put by decoded ffmpeg buffer into a QFrame so I can put this frame into a QAbstractVideoBuffer and then put this buffer into a QMediaPlayer . Here's the code for the VideoSurface. According to QT's documentation, I just have to implement these two functions: constructor and bool present , which processes the frame into the QVideoFrame named frame QList<QVideoFrame::PixelFormat> VideoSurface::supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) const { Q_UNUSED(handleType); // Return the formats you will support return QList

Android: mpeg4/H.264 packetization example

安稳与你 提交于 2019-12-06 07:20:23
I need to split mpeg4 video stream (actually from android video camera) to send it through RTP. The specification is little large for quick reference. I wonder if there any example/open source code for mpeg4 packetization? Thanks for any help ! Mpeg4 file format is also called ISO/IEC 14496-14. Google it any you will find specifications. However, what you are trying to do (RTP publisher) will be hard for the following reasons: Mpeg4 has header at the end of the file. Which means header will be written out only when video stream is finished. Since you want to do real time video streaming you

Ardrone Video Stream decoding in Android

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 05:55:53
I'm working on an image processing project for the Parrot AR.drone, using opencv4Android, i'm so new to the whole thing! , does anyone have an idea about how to read in video streams from the ARDrone using OpenCV, the samples shows how to get video input from a webcam only the video is encoded in H.264 format,and the drone adds a proprietary header (called PaVE) to every video frame, apparently that's why Android fails to load the video stream.. thanks You need a PaVE parser that will strip the PaVE headers off the H.264 frames before you can decode them and feed them to OpenCV. There are some

How do i play H264 video?

本小妞迷上赌 提交于 2019-12-06 05:07:12
问题 I have received the following video file from a camera (from security camera) http://dl.dropbox.com/u/1369478/tmw/recording.264 How can i view the content? Based on extension i think that is a H264 file. Is there a way to play this on the browser with HTML5? Regards 回答1: Hmm.. From the looks of it it doesn't look like a H264 file.. Running it through MediaInfo, I got this: Video Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L2.0 Format settings, CABAC : No Format