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

2748 questions
936
votes
31 answers

How to concatenate two MP4 files using FFmpeg?

I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into .ts files and then concatenating them and then trying to encode that concatenated .ts file. …
Mark L
  • 12,405
  • 4
  • 28
  • 41
338
votes
7 answers

FFMPEG (libx264) "height not divisible by 2"

I am trying to encode a .mp4 video from a set of frames using FFMPEG using the libx264 codec. This is the command I am running: /usr/local/bin/ffmpeg -r 24 -i frame_%05d.jpg -vcodec libx264 -y -an video.mp4 I sometimes get the following…
Andy Hin
  • 30,345
  • 42
  • 99
  • 142
102
votes
1 answer

Possible Locations for Sequence/Picture Parameter Set(s) for H.264 Stream

I'm working on a H.264 Decoder and I'm wondering where to find the SPS and PPS. My reference literature tells me that those are NAL Units encoded in the H.264-Stream, but when I look into an example-MP4-File with IsoViewer, it says that the SPS and…
bananenbär
  • 1,125
  • 3
  • 8
  • 7
94
votes
5 answers

ffmpeg usage to encode a video to H264 codec format

I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert this to a H264 video codec format(raw h.264 format) using ffmpeg on Linux(Version - FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard,) using…
goldenmean
  • 18,376
  • 54
  • 154
  • 211
78
votes
7 answers

How to use VideoToolbox to decompress H.264 video stream

I had a lot of trouble figuring out how to use Apple's Hardware accelerated video framework to decompress an H.264 video stream. After a few weeks I figured it out and wanted to share an extensive example since I couldn't find one. My goal is to…
Olivia Stork
  • 4,660
  • 5
  • 27
  • 40
70
votes
2 answers

What is the difference between H.264 video and MPEG-4 video?

Are these both the same? Is H.264 codec of MPEG-4? What if I need to convert flv to high definition H.264 video format? I want make online tv streaming and want to use PHP or Python.
Ravi Sharma
  • 1,162
  • 3
  • 11
  • 20
68
votes
3 answers

How does one encode a series of images into H264 using the x264 C API?

How does one use the x264 C API to encode RBG images into H264 frames? I already created a sequence of RBG images, how can I now transform that sequence into a sequence of H264 frames? In particular, how do I encode this sequence of RGB images…
Rella
  • 65,003
  • 109
  • 363
  • 636
54
votes
8 answers

h264 lossless coding

Is it possible to do completely lossless encoding in h264? By lossless, I mean that if I feed it a series of frames and encode them, and then if I extract all the frames from the encoded video, I will get the exact same frames as in the input, pixel…
cloudraven
  • 2,484
  • 1
  • 24
  • 49
50
votes
3 answers

errors when decode H.264 frames using ffmpeg

I am getting the following errors when decoding H.264 frames received from the remote end of a H.264 based SIP video call. Appreciate any help in understanding there errors. non-existing PPS 0 referenced decode_slice_header error non-existing PPS 0…
John Qualis
  • 1,663
  • 4
  • 33
  • 52
45
votes
4 answers

How to process raw UDP packets so that they can be decoded by a decoder filter in a directshow source filter

Long Story: There is an H264/MPEG-4 Source I can able to connect this source with RTSP protocol. I can able to get raw UDP packets with RTP protocol. Then send those raw UDP packets to a Decoder[h264/mpeg-4] [DS Source Filter] But those "raw" UDP…
Novalis
  • 2,265
  • 6
  • 39
  • 63
38
votes
5 answers

Suggested Compression Ratio with H.264?

Note bene: I realize this is an immensely complicated question with about a million levels of nuance that I'm trying to reduce to a single number... I'm about to undertake a large video encoding project using H.264 encoding. We are trying to create…
Nuby
  • 2,378
  • 2
  • 21
  • 26
38
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,380
  • 8
  • 41
  • 62
37
votes
4 answers

Convert videos from .264 to .265 (HEVC) with ffmpeg

I see that there are a few questions on this subject but I am still getting errors. All I want to do is convert videos in my library to HEVC so they take up less space. I've tried this: ffmpeg -i input.mp4 -c:v libx265 output.mp4 ffmpeg seems to…
John Terragnoli
  • 371
  • 1
  • 3
  • 4
37
votes
4 answers

Live streaming through MP4

I am working on an online TV service. One of the goals is for the video to be played without any additional browser plug-ins (except for Flash). I decided to use MP4, because it is supported by the majority of HTML5 browsers and by Flash (for…
Ivo
  • 1,673
  • 3
  • 19
  • 28
36
votes
2 answers

Raw H264 frames in mpegts container using libavcodec

I would really appreciate some help with the following issue: I have a gadget with a camera, producing H264 compressed video frames, these frames are being sent to my application. These frames are not in a container, just raw data. I want to use…
Ferenc Deak
  • 34,348
  • 17
  • 99
  • 167
1
2 3
99 100