h.264

What does Elementary Stream mean in Terms of H264

我与影子孤独终老i 提交于 2019-12-05 05:02:31
问题 I read what an Elementary Stream is on Wikipedia. A tool i am using "Live555" is demanding "H.264 Video Elementary Stream File". So when exporting a Video from a Video Application, do i have to choose specific preferences to generate a "Elementery Stream" ? 回答1: If you're using ffmpeg you could use something similar to the following: ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -vcodec libx264 -f h264 test.264 You'll have to adapt the command line for the file type you're exporting the

How to detect I/P/B frame from H264 RTP packet

旧时模样 提交于 2019-12-05 04:45:47
问题 I got H264 RTP packet from RTSP stream. So I want to detect whether the frame is I frame or not. And below is the first packet I got from the first time open stream. So I believe that it is a I-frame (I show you 160 bytes first). packet: 00 00 00 01 67 4D 00 1F 95 A8 14 01 6E 40 00 00 00 01 68 EE 3C 80 00 00 00 01 06 E5 01 33 80 00 00 00 01 65 B8 00 00 08 52 90 9F F6 BE D6 C6 9C 3D F6 D4 2F 49 FB F7 13 F2 A9 C7 27 2D A4 75 59 6C DB FF 35 27 A4 C7 B6 E7 69 A2 E0 FB 0E FF 2D 0E E0 6F 25 43 78

Converting .mkv to h.264 FFmpeg

不羁岁月 提交于 2019-12-05 04:42:02
问题 I would like to convert my .mkv files to .mp4 using FFmpeg. I have tried the following code: ffmpeg -i input.mkv -c:v libx264 -c:a libvo_aacenc output.mp4 But I get the error: Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height. Is there any way to get around this? I have tried setting the bitrate of the audio but the problem seems to persist. 回答1: I suggest you first check whether your .mkv file already has H.264/AAC streams

How to extract elementary video from mp4 using ffmpeg programmatically?

被刻印的时光 ゝ 提交于 2019-12-05 03:33:02
问题 I have started learning ffmpeg few weaks ago. At the moment I am able to transcode any video to mp4 using h264/AVC codec. The main scheme is something like that: -open input -demux -decode -encode -mux The actual code is below: #include <iostream> #include <math.h> extern "C" { # ifndef __STDC_CONSTANT_MACROS# undef main /* Prevents SDL from overriding main() */ # define __STDC_CONSTANT_MACROS# endif # pragma comment(lib, "avcodec.lib")# pragma comment(lib, "avformat.lib")# pragma comment(lib

H.264 Frames Memory Leak With Some Decoders

柔情痞子 提交于 2019-12-05 02:58:47
I'm receiving an H.264 stream from a DVR using its SDK. There were memory leaks and i thought it was the SDK causing all the leaks. But when i recorded the stream and played the frames one by one reading from the disk (without any 3rd party dlls involved), i noticed that the problem is not the dll but the stream itself. Strange enough, DivX H264 Decoder is the only codec which doesn't cause a memory leak but when the stream runs for a long time, sometimes DivX decoder crashes as well. I'd prefer to use Microsoft DTV-DVD Video Decoder but it causes huge memory leaks and drops a lot of frames.

H264 RTP packet parsing [closed]

强颜欢笑 提交于 2019-12-05 02:13:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for source code of RTP Payload Format for H.264 Video according to RFC(3984). It would be great if someone can point out it. Also I am looking for wireshark plugin which can show me the packet decoding of h264. Thank you guys in advance. 回答1: You can start with FFMpeg's source code (under LGPL); the

Live streaming H.264 in DirectShow

僤鯓⒐⒋嵵緔 提交于 2019-12-05 01:45:32
问题 Does anyone know which filters in DirectShow I have to use in order to stream H.264 LIVE stream over http? (especially what kind of source filter I have to use) Any code suggestion will be helpful. Thanks! 回答1: Do you mean HTTP tunneling or the chunk-based methods of apple (MPEG-TS) and MicroSoft (MP4) ? If you are looking for a tunneling solution, the following might be helpful: One (typical) option is to use an RTSP source filter. However there is no stock RTSP source filter in windows. You

h264 packetization mode for FUA

一个人想着一个人 提交于 2019-12-05 01:16:55
问题 We have got into couple of interop issues where, The video mode that is required by couple of endpoints in market are little different and only understands H.264 packetization modes (FUA type) (i.e) FU -A NAL unit type.(while others do not play the video on receiving a fu-a nal type payload) Does anyone know what is this FUA type of packetization mode? How is it different from packetization modes 0,1,2 as defined in RFC3984? Is the video encoder/decoder supports it, how can it be

Count frames in H.264 bitstream

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 01:04:36
问题 How to count/detect frames (pictures) in raw H.264 bitstream? I know there are 5 VCL NALU types but I don't know how to rec(k)ognize sequence of them as access unit. I suppose detect a frame means detect an access unit as access unit is A set of NAL units that are consecutive in decoding order and contain exactly one primary coded picture. In addition to the primary coded picture, an access unit may also contain one or more redundant coded pictures, one auxiliary coded picture, or other NAL

Developing H264 hardware decoder Android - Stagefright or OpenMax IL?

拜拜、爱过 提交于 2019-12-04 23:56:59
问题 I am developing H264 H/W accelerated video decoder for android. So far, I've come around with some libraries MediaCodec , Stagefright , OpenMax IL , OpenMax AL and FFmpeg . After a bit research, I've found that - I found a great resource of using stagefright with FFmpeg, but I can not use FFmpeg as for its license, it is quite restrictive for distributed software. (Or possible to discard FFmpeg from this approach?) I can not use MediaCodec as its a Java API and I have to call it via the JNI