Questions tagged [h.264]

H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is a standard for video compression

H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is a standard for video compression, and is currently one of the most commonly used formats for the recording, compression, and distribution of high definition video. The final drafting work on the first version of the standard was completed in May 2003.

H.264/MPEG-4 AVC is a block-oriented motion-compensation-based codec standard developed by the ITU-T Video Coding Experts Group (VCEG) together with the ISO/IEC Moving Picture Experts Group (MPEG). It was the product of a partnership effort known as the Joint Video Team (JVT). The ITU-T H.264 standard and the ISO/IEC MPEG-4 AVC standard (formally, ISO/IEC 14496-10 - MPEG-4 Part 10, Advanced Video Coding) are jointly maintained so that they have identical technical content.

H.264 is perhaps best known as being one of the codec standards for Blu-ray Discs; all Blu-ray players must be able to decode H.264. It is also widely used by streaming internet sources, such as videos from Vimeo, YouTube and the iTunes Store, web software such as the Adobe Flash Player and Microsoft Silverlight, broadcast services for DVB and SBTVD, direct-broadcast satellite television services, cable television services, and real-time video conferencing.

More information at http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC

Official ITU specifications: http://www.itu.int/rec/T-REC-H.264/en

2531 questions
33
votes
5 answers

MediaCodec and Camera: colorspaces don't match

I have been trying to get H264 encoding to work with input captured by the camera on an Android tablet using the new low-level MediaCodec. I have gone through some difficulties with this, since the MediaCodecAPI is poorly documented, but I've gotten…
gleerman
  • 1,711
  • 4
  • 24
  • 35
32
votes
4 answers

How to get h264 video info?

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?
Zelenov
  • 863
  • 1
  • 9
  • 15
31
votes
1 answer

convert H264 video to raw YUV format

Is it possible to create a raw YUV video from H264 encoded video using ffmpeg? I want to open the video with matlab and access Luma, Cb and Cr components frame by frame.
Necip Onur Uzun
  • 1,085
  • 3
  • 12
  • 16
31
votes
5 answers

Encoding H.264 from camera with Android MediaCodec

I'm trying to get this to work on Android 4.1 (using an upgraded Asus Transformer tablet). Thanks to Alex's response to my previous question, I already was able to write some raw H.264 data to a file, but this file is only playable with ffplay -f…
gleerman
  • 1,711
  • 4
  • 24
  • 35
30
votes
4 answers

How to encode Bitmaps into a video using MediaCodec?

I would like to encode a set of Bitmaps that I have into an h264. Is this possible via MediaEncoder? I have written some code in order to do it, but the output cannot be played in any media player I have tried. Here's some of the code that I…
BVB
  • 5,140
  • 8
  • 37
  • 60
30
votes
3 answers

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

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…
jstol
  • 801
  • 2
  • 12
  • 27
29
votes
3 answers

What h.264 format loads on android AND IOS?

Theoretically both IOS and ANDROID will play h.264 files, but I can't figure out a setting to encode them so they actually work cross platform. Does anybody know how to encode for both Android and IOS using one file? p.s. I know all about html5…
JKirchartz
  • 15,862
  • 7
  • 54
  • 82
28
votes
2 answers

Decode android's hardware encoded H264 camera feed using ffmpeg in real time

I'm trying to use the hardware H264 encoder on Android to create video from the camera, and use FFmpeg to mux in audio (all on the Android phone itself) What I've accomplished so far is packetizing the H264 video into rtsp packets, and decoding it…
joebobfrank
  • 945
  • 9
  • 13
28
votes
3 answers

Thread count option in FFmpeg for FASTEST conversion to h264?

I need to maximize speed while converting videos using FFmpeg to h264 Any input format of source videos User's machine can have any number of cores Power and memory consumption are non-issues Of course, there are a whole bunch of options that can…
S B
  • 7,463
  • 9
  • 49
  • 101
28
votes
4 answers

Fetching the dimensions of a H264Video stream

I am trying to fetch the dimensions (Height and width) from a H264 stream. I know that to fetch the same details from a mpeg2 stream you have to look at the four bytes following the sequence header start code ((01B3)). Will the same logic work for…
DRT
  • 281
  • 1
  • 4
  • 4
24
votes
2 answers

How to use MediaCodec without MediaExtractor for H264

I need to use MediaCodec without the MediaExtractor and I'm reading the file using a FileInputStream. Currently it is not working, it is showing a greenish scrambled image on the screen. This is the whole source code: FileInputStream in = new…
thiagolr
  • 6,703
  • 6
  • 37
  • 59
24
votes
4 answers

What does this H264 NAL Header Mean?

0000 0109 1000 0001 6742 0020 e900 800c 3200 0001 68ce 3c80 0000 0001 6588 801a As far as I know, 0000 01 is the start prefix code to identify a NAL Unit. What does "09 .... " mean? Is it the header type byte?
ablmf
  • 3,681
  • 7
  • 33
  • 53
23
votes
3 answers

Best video format for HTML5?

I've got a set of videos that are going to be posted on a new site I'm developing, using our new html5 player. I know Firefox only supports .ogg format, whereas most others (including eventually IE9) support h264. I'm looking to tap into the…
CodeMoose
  • 2,697
  • 4
  • 29
  • 51
23
votes
2 answers

Convert mp4 to maximum mobile supported MP4 using FFMPEG

I would like to use ffmpeg to convert an mp4 to 'low size' mp4 ... I need an mp4 file with h263 video and aac audio (or some other settings supported by low cost mobile.) My main concern is that the video be playable on most devices. What would be…
Notepad
  • 1,602
  • 1
  • 12
  • 14
22
votes
2 answers

Is there a downside to putting the MOOV atom at the beginning of an MP4 file?

I see tons of questions about relocating the moov atom from the end of a MP4 video container to the beginning, to make the video "web optimized" or easier to stream. It seems like most tools require an explicit option to do this when first encoding…
Coderer
  • 21,290
  • 22
  • 71
  • 124