Questions tagged [h.264]
Also known as MPEG-4/AVC, an advanced video encoding standard, widely used in Blu-ray and streaming video.
301
questions
100
votes
1
answer
261k
views
What are the differences between H.264 Profiles?
I was rendering a video in After Effects CS5 and when I was formatting it I chose the H.264 codec and in that format, it had a profile with Baseline, Main and High.
So I did a little test – rendering ...
66
votes
4
answers
218k
views
Best settings for FFMpeg with NVENC
I'm using my FFMPEG with the suport of my GPU (NVENC) to convert files from my satelite receiver (SD, mpeg2 .TS-Files) into h264 .mp4-files
Here is the line i'm using
ffmpeg -i "e:\input.ts" -vcodec ...
61
votes
1
answer
190k
views
Convert AVI (Xvid) to MP4 (H.264) keeping the same quality
I want to compress an AVI file to MP4 using an h.264 codec. I could not get the same quality. How can I compress it?
Original Video:
Original Video Screen:
FFmpeg console output (ffmpeg -i input....
44
votes
5
answers
67k
views
Joining H264 *without* re-encoding
I have two halves of a single show in two .MP4 files, encoded in H264. I would like to join them without re-encoding.
Is this possible?
I managed to create a joined video as a Quicktime file (.mov) ...
35
votes
3
answers
43k
views
Convert from MOV to MP4 Container format
I have a digital camera that records nice 1080p H.264 format but unfortunately it uses the MOV container format. Basically I have nothing but the camera and VLC that play this format natively.
Is ...
32
votes
5
answers
45k
views
Using FFmpeg to locate moov atom
I have a library of videos, all of which should have been adjusted for web-streaming by putting the moov atom ahead of the rest of the video. This allows playback to begin before the client has ...
27
votes
8
answers
128k
views
Converting or playing a .264 video file?
I recently bought a Chinese brand DVR (to record security cams). The DVR exports the video files with a ".264" extension. This is my first time ever dealing with this video format.
Anyhow I've been ...
21
votes
1
answer
12k
views
FFmpeg/avidemux: fix packed B-frames
I'm transcoding some of my old mpeg4 videos (in avi containers) to h.264 with FFmpeg. Basically
ffmpeg -i input.avi -c:v libx264 [x264 settings] -c:a libfdk_aac [aac settings] output.mp4
When doing ...
20
votes
3
answers
64k
views
How can I re-encode H.264 video with minimal quality loss?
I have a lot of MPEG-TS files (.TS container but H.264 video) and playback is fine except that when you skip forward/backward or fast forward it's very sluggish and gets pixelated, etc.
I've been ...
15
votes
2
answers
100k
views
Using ffmpeg to encode a raw video to H.264 format
On a Ubuntu 10.04, I am trying to encode a raw video (YUV format) to a H.264 encoded video using below ffmpeg commands:
ffmpeg -i input.mp4 output.h264
but I get an error saying
Unsupported ...
15
votes
4
answers
52k
views
Can a GPU be used to Encode h264?
I am wondering if I get a better graphics card could it speed up h264 encoding on my machine using handbrake?
If so how can I tell what graphics card will support this?
I am aware that the GPU can ...
14
votes
1
answer
12k
views
What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?
What list of commands should I do in ffmpeg/mencoder/some_other_CLI_app to get a video in all the right formats to use Video for Everybody?
i.e. Is there a subtlety that prevents there being a ...
12
votes
1
answer
36k
views
how do I convert .iso to .mp4 without mounting with ffmpeg
The problem is - I want to convert .iso with dvd to .mp4 (h264/ac3), but I cannot mount it via mount -o loop, because I'm on a virtual machine that doesn't allow to do that.
Googling doesn't help.
...
12
votes
2
answers
16k
views
What parameters should I be looking at to reduce the size of a .MOV file?
My Canon 60D creates .MOV files when recording video and I've found out that the .MOV container has an H264 video stream and a PCM audio stream.
I've used ffmpeg and GSpot to look at some of my ...
12
votes
1
answer
20k
views
What H.264/H.265 video compression parameters provide DVD-equivalent quality with better compression?
I have got a box of DVD video disks that I seek to get rid of while I'd like to keep the videos by converting them into MP4 files to store them on a hard drive.
Considering superiority of the modern ...
11
votes
2
answers
34k
views
ffmpeg: How do I re-encode a video to H.264 video and AAC audio?
I'm trying to re-encode a video produced with "TechSmith Screen Capture Codec" in WinUAE to use H.264 video and AAC audio, with the latest "ffmpeg" (20200510-fc99a24) 64-bit, but when I use the ...
9
votes
1
answer
30k
views
What is the different of h264 and libx264
I notice there is argument available for
--enable-encoder=h264,libx264 suppose I am converting the video looselessly
Which one default ffmpeg will use? h264 or libx264?
And how about the quality ...
9
votes
4
answers
22k
views
Video encoding: How much does the video file size increase with fps?
Given that the next blockbusters of e.g. Peter Jackson (The Hobbit) and James Cameron (Avatar 2) are going to be shot with a frame rate of 48 fps (or even more) - i.e. more than the usual 24 fps - I ...
8
votes
1
answer
16k
views
Convert AVI into H.264 that works inside an HTML5 Video tag
I would like to convert an existing black and white AVI into an H.264 video that works inside an HTML5 video tag.
I'm currently using this ffmpeg command:
ffmpeg -i file.avi -y -c:v libx264 file....
8
votes
1
answer
11k
views
How do I check if a h264 video contains b-frames?
I'm using ffprobe right now but I don't if it supports showing whether the video contains b-frames and what could be the syntax. Can I do this with ffprobe and so, how, or is there any other free ...
8
votes
1
answer
39k
views
ffmpeg warning: "Timestamps are unset in a packet" when converting H264 to mp4
I am getting the following warning message when executing ffmpeg:
[mp4 @ 00000000025c00a0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. ...
8
votes
1
answer
18k
views
Windows 10 Remote Desktop With RemoteFX and Hardware h.264 Using Nvidia NVENC
I have Windows 10 Pro as a server and Windows 10 Pro as a client. Server has a GTX 1070 card with the latest driver and is fully NVENC capable of h.264 / AVC 444 hardware encoding. Steam streaming ...
8
votes
2
answers
9k
views
FFmpeg extract clip - stream frame rate differs from container frame rate (x264, aac)
Summary
H.264 video seems to have a really high frame rate that requires a scaling factor to the applied to the duration of video that I'm trying to extract (900x lower).
Body
I'm trying to extract a ...
7
votes
1
answer
6k
views
VLC (Server) re-stream Security Camera Feed
I purchased a Swann Home Security DVR system and was hoping for some help on how to duplicate the streaming video on my server.
In order to get their web view (streaming video in the browser) to work,...
6
votes
2
answers
29k
views
ffmpeg: how to create an interlaced h.264 video?
I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be ...
6
votes
2
answers
4k
views
In which format to store home made videos
TL;DR: my home videos are taking up too much space and are impractical to backup on Dropbox. Which format do you advice to convert them to?
Long version:
One year ago I bought a new compact camera (...
6
votes
1
answer
30k
views
H.264 video support in Chromium, missing codec?
Been using Chromium for a while, but it occurred to me that most video content does not work. YouTube does, but Vimeo does not, and most video streaming sites as well as random webpages with embedded ...
6
votes
3
answers
20k
views
Best Intel Quick Sync software for h.264 transcoding
I would like to know the best (fast) software for video encoding and transcoding video into h.264 that makes use of Intel Quick Sync.
I looked at Media Espresso by Cyberlink but it does not have many ...
6
votes
1
answer
7k
views
How to compile Chromium with MP3/AAC and H264 support
My question is similar to this one that was asked nearly 3 years ago.
I would like to compile Chromium with support for MP3, AAC, etc. on Mac OS X (I'm using 10.11.6 El Capitan). So far I managed to ...
6
votes
2
answers
4k
views
How do I make h.264 work on YouTube on Firefox on Windows 7 64 bit?
Various news articles state that Firefox supports h.264 on Windows since version 20. As of this writing the version is 24, yet Firefox still can't play most YouTube videos. I did the HTML5 opt-in and ...
6
votes
2
answers
13k
views
FFMPEG encoding settings for 1080/60fps/h264 - framedrops
I want to use latest ffmpeg to encode set of JPG frames to 1920x1080 60fps h.264 movie.
I'm looking for set of parameters that will allow smooth playback of encoded video on fairly strong PC machines ...
6
votes
1
answer
6k
views
ffmpeg minimal requirements configuration for encoding and decoding h264 files
I'm trying to compile ffmpeg with minimal requirements in order to encode/decode with h264.
So far my command line configuration is :
./configure --disable-yasm --disable-everything --enable-encoder=...
6
votes
0
answers
8k
views
Stream video with FFMPEG, "Output file does not contain any stream"
I would like to stream an H.264 encoded elementary stream wrapped in RTP headers to a port using FFMPEG.
I have tried the following command lines to no avail...
ffmpeg -i 1080p_1.h264 -f rtp -vcodec ...
5
votes
1
answer
650
views
What are the restrictions on h264 usage?
What do people mean when they say the h264 video codec is "patent encumbered"? What restrictions are there to the usage of h264? I've been using the free Handbrake transcoder to encode h264 videos and ...
5
votes
2
answers
18k
views
Cannot play video stream from FFMPEG to VLC
I'm trying to stream my local webcam using FFMPEG. For test purposes, I'm doing this locally and try to open the stream using VLC (3.0.8, Windows 10). This is how I stream from FFMPEG:
ffmpeg -f ...
5
votes
1
answer
4k
views
Encoding H264 with windows ffmpeg results in first few seconds being "blocky"
I am using the following code to transcode a 10mbps high quality 1280x720 H264 mp4 into a lower quality H264 mp4 with our logo watermarked on the video.
ffmpeg.exe -i test.mp4 -i watermark.png -...
5
votes
1
answer
4k
views
Video encoded in FFmpeg using the libx264 codec won’t play back as expected on mobile devices
I'm currently on a project to grab an IP camera video and streaming it to a website. This camera is located in the beach, so the idea is to send the streaming signal to a server and from the server to ...
5
votes
1
answer
2k
views
Properly fix videos which were encoded with old version of x264
Due to a bug in old versions of x264, h.264 video streams with the following three properties:
encoded with x264 build 150 or earlier
using 4:4:4 chroma subsampling
bitstream contains no x264 version ...
5
votes
1
answer
10k
views
Best Handbrake settings for encoding TV shows
Been using Handbrake since it's the fastest and easiest program for me to understand as I'm not a real A/V guy and I'm getting some under par results from it when it comes to TV shows.
I see episodes ...
4
votes
1
answer
7k
views
Are HEVC and H265 same? In FFmpeg they give different results why?
Recently I re-encoded a H264 video to HEVC using FFmpeg and Intel hevc_qsv hardware acceleration and libx265. hevc_qsv results in higher sized video and libx265 results in 50% lower sized video.
I ...
4
votes
3
answers
3k
views
How to apply audio track to a mute h264/mp4-video losslessly?
I have a MP4/h.264-video with no sound. With ffmpeg or similar, how can I apply an audio track to that MP4-file without degrading the quality of the video (i.e. without recoding the video-track)?
I'd ...
4
votes
1
answer
23k
views
How to increase video's FPS and speed correctly with ffmpeg?
I have a 5 fps video with keyint 120 2.5 hours long that I want to speed up 6 times, making its fps=30
I did it with this command that I found somewhere on this website
ffmpeg -i "...local_Record....
4
votes
2
answers
4k
views
Is there a way to enable H.264 video in Firefox?
I know that Mozilla has taken an ideological stance against H.264 video, but I don't agree with it. (And I think I paid for a hardware decoder inside my graphics card anyway?)
Is there any way I can ...
4
votes
1
answer
7k
views
Set keyframe interval in ffmpeg when using nvenc
OBS uses nvenc when encoding live streams. In the guide "NVIDIA NVENC OBS Guide", an advanced option is listed as:
Keyframe Interval: Set to 2. Streaming platforms may limit what you can ...
4
votes
1
answer
4k
views
FFMPEG HLS - Create playlist only or predict segment times before encoding
I'm using ffmpeg to create a video transcoding on demand system that serves the media through the HLS format.
Right now I can transcode the video and serve them as they are encoded, but I can't use ...
4
votes
1
answer
4k
views
Smart Trim an h.264 .MP4 Video file in ffmpeg
I would like to take live-captured h.264 video as an input and trim it to start in a fade up from black and end with a fade to black with as little encoding as possible. These fade in/out points may ...
4
votes
1
answer
3k
views
What tools should I use to edit H.264 MP4 GoPro videos?
I have recorded videos using a GoPro, which produces MP4 files containing H.264 encoded videos.
I would like to do some simple editing tasks on these videos without losing quality:-
Cut various ...
4
votes
4
answers
13k
views
How can I import h.264 encoded MOV files into windows movie maker?
I have a couple of digital camcorders that output .MOV files encoded in h.264 video/AAC audio. They won't load into Windows Movie Maker or Windows Media Player - I guess I need to install some codecs. ...
4
votes
2
answers
3k
views
How to rip Blu-Ray discs using open source software
How can one rip Blu-Rays that he or she owns via AnyDVD as the decoder? Open source would be prefer but not require. H.264 video codec is preferred.
Current Software: AnyDVD HD & Handbrake
...
4
votes
0
answers
10k
views
How to use libx264 ffmpeg in conda environment?
I tried to convert an avi video file into an h264 processed mp4 file, but I ran into the following error:
$ ffmpeg -i sa1-video-fram1.avi -c:v libx264 -crf 19 -c:a libfdk_aac -b:a 192k -ac 2 out.mp4
...