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
619
votes
22 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
  • 9,035
  • 3
  • 25
  • 38
234
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
  • 25,283
  • 37
  • 95
  • 135
89
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
  • 895
  • 2
  • 7
  • 7
73
votes
6 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,312
  • 4
  • 23
  • 39
66
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,094
  • 3
  • 11
  • 19
64
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
  • 59,216
  • 102
  • 341
  • 614
57
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
  • 16,908
  • 50
  • 144
  • 206
52
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,349
  • 1
  • 22
  • 44
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,123
  • 6
  • 35
  • 60
41
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,573
  • 4
  • 28
  • 51
37
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,350
  • 2
  • 20
  • 26
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
  • 30,889
  • 14
  • 82
  • 151
35
votes
3 answers

Decoding Raw H264 stream in android?

I have a project where I have been asked to display a video stream in android, the stream is raw H.264 and I am connecting to a server and will receive a byte stream from the server. Basically I'm wondering is there a way to send raw bytes to a…
will
  • 721
  • 1
  • 9
  • 12
35
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,511
  • 3
  • 16
  • 26
35
votes
3 answers

How to use hardware accelerated video decoding on Android?

I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright (overview…
Glenn Yu
  • 603
  • 1
  • 7
  • 11
1
2 3
99 100