Questions tagged [h.264]
The h.264 tag has no usage guidance.
175
questions
1
vote
1
answer
289
views
h264 compression keeps same number of frames?
I'm trying to understand how h.264 compression works. So far I have clear what I, P, and B frames are and how are they used. But I'm unsure of is if after this process the number of original input ...
1
vote
1
answer
728
views
In FFMPEG's H.265 encoder, which CRF value leads to "visually lossless" results?
I am trying to shrink some videos from 1920x1080 to 1280x720 and to achieve a reasonable compromise between video quality and file size. I have decided to give FFMPEG's H.265 encoder a try, and now ...
1
vote
1
answer
77
views
Edit small portion of a compressed video without losing quality
I have a one hour h264-encoded video. The unedited footage can't be found.
My goal is to edit a small portion of it.
The scenario looks like this. I have to blur out some persons appearing let's say: ...
0
votes
1
answer
27
views
FFmpeg is encoding at a lower bitrate than what is specified
I'm fairly new to FFmpeg, I'm using this command: ffmpeg -i "C:\FFmpeg\Handbrake\Trackmania\Trackmania.mp4" -c:v libx264 -preset veryslow -b:v 10000 -fps_mode passthrough "C:\FFmpeg\...
0
votes
1
answer
539
views
ffmpeg - Slow down video and loop/repeat audio
I am trying to use ffmpeg to slow down a video speed by 25% (75% speed) without changing the audio speed.
ffmpeg -i input_video.mkv -filter:v "setpts=1.3*PTS" "SlowVideo25.mp4"
On ...
1
vote
2
answers
10k
views
Does Youtube accept 10bit uploads? If so, what codec should I use?
I am launching a series of videos to Youtube. These videos have a black background and lots of colored gradient changes. 4k, 60fps.
Unfortunately this picture style is causing terrible banding ...
0
votes
1
answer
32
views
What improvements can I make to my FFMPEG script?
I am trying to create an FFMPEG script for some of my emulated game captures. I normally use Virtualdub2 (formerly Virtualdubmod) to upscale and trim my game captures for YouTube. With my laptop gone ...
0
votes
1
answer
931
views
FFmpeg raspberry pi OMX hardware encoder with inline_headers enabled = Increasing latency over the time
I managed to enable inline header on the OMX H.264 hardware encoder. inline header(SPS/PPS) are mandatory to play an already launched stream.
https://github.com/Serveurperso/FFmpeg/commit/...
0
votes
1
answer
75
views
Do modern devices support decoding 4:4:4 pixel formats?
I am recording and distributing relatively low motion screen content (not games). Using h264, fine text often appears very blurry due to the poor subsampling with 4:2:0 and 4:2:2 pixel formats. With 4:...
0
votes
1
answer
290
views
Premiere Pro export black screen on mobile, just audio
I exported a 9:16 video (vertical, for Instagram stories) from Premiere Pro 2018, encoded with H.264 and AAC audio, VBR 2 pass.
However, the video shows nothing but black screen on both my Samsung ...
0
votes
2
answers
52
views
Lossless masking of MP4/h.264
I am familiar with the UNIX command jpegtran which supports the wipe (1) command line option for JPEG (ITU.81) format.
Using ffmpeg one can losslessly encode a jpg image sequence to a MJPEG video.
I ...
0
votes
0
answers
88
views
FFMPEG Trying to make a 8K 30 FPS MP4 video out of several hundred 8K PNG images
I have been trying to make an 8K MP4 video @ 30 FPS out of a few hundred 8K PNG images using FFMPEG since forever, but to no avail. The PNG images are serially numbered, starting from 000000 and going ...
0
votes
1
answer
755
views
H.264 video packet duration missing
I have H.264 files that, when I run FFprobe on them, like this:
ffprobe -i h264_file.ts -show_packets -select_streams v
...it shows that each video packet has no values for duration, and no value ...
0
votes
1
answer
72
views
h264 Settings for Motion Tracking & Analysis (technical photography)?
I'm trying to do "scientific" video motion analysis. Right now I'm using a Raspberry Pi camera, which records natively in h264, which then needs to be converted/wrapped as MP4.
Is h264 an ...
0
votes
1
answer
46
views
Encoding to the same H.264 size as YouTube
I am unable to re-encode an H.264 video that I downloaded from Youtube back to its original size. The MediaInfo is pasted below. The size of the video stream is 20 MB.
I decoded the video into raw YUV ...
1
vote
1
answer
3k
views
ffmpeg rtsp over http not working
I put this conf on ffserver
HTTPPort 1234
RTSPPort 1235
<Stream live.h264>
Format rtp
Feed feed1.ffm
VideoCodec libx264
VideoFrameRate 24
VideoBitRate 100
VideoSize 480x272
AVOptionVideo flags ...
1
vote
1
answer
168
views
ffmpeg seek position options not working with h264
I can use ss and sseof parameters with mp4 files and stream the result, but I get errors when I use same commands on h264 file (checked that it also works without seek parameters)
here are the ...
0
votes
1
answer
6k
views
Video artifact removal and restoration - How can it be done? (Really?)
I have been researching this for the past couple of days, and all I could find on the subject were a bunch of research papers, a demonstration video of a model that isn't publicly available, and a ...
0
votes
0
answers
43
views
Converting MTS to MP4 gives strange artefacts
I am converting video taken with various personal cameras in .MTS format to mp4 in order to reduce the file size. I am getting some strange artefacts and I wonder what simple mistake I am making?
...
0
votes
0
answers
345
views
ffmpeg error with device when transcoding from HEVC to H.264 on GPU using NVENC and CUDA
I wanted to transcode my videos that have hevc encoding into h.264 using ffmpeg with Nvidia CUDA acceleration.
Basically I've followed the guide provided in the official documentation and read through ...
0
votes
0
answers
14
views
During h264 -> h265 conversion (single-pass), can I somehow eliminate these artifacts?
I'm trying to transcode a h264 stream to h265 for better bandwidth utilization, but I got massive artifacts on h265, which were not presented on h264:
I'm using ffmpeg to do this, on a live stream (...
0
votes
1
answer
32
views
Different decode performance in two similar H.264 videos
I have two, at first glance very similar mp4 files (A & B), each of them created by different capture software.
File
Captured using
codec
resolution
fps
bitrate
A.mp4
Elgato 4K Capture Utility
h....
0
votes
0
answers
131
views
Is it possible to avoid washed out colors when converting from H.265 yuv420p10le to H.264 yuv420p?
I have an H.265 video clip file which I am unable to play on my device because the device only support H.264. So I am trying to transcode it to H.264 but I am having issues getting a good H.264 ...
0
votes
1
answer
597
views
ffmpeg-converted video file won't play in Windows Media Player or Movies & TV
I am using ffmpeg-python to convert an hevc mkv file to an h264 mp4. This is the relevant code:
ffmpeg.input(video_file).output(out_name, vcodec='libx264', **{'pix_fmt': 'yuv420p'}).run()
Yet after ...
1
vote
0
answers
756
views
Copy timecode from SEI Picture Timing to MXF Timecode Stream with FFmpeg
I am receiving an HEVC encoded live stream that contains SMPTE 12-1 timecode in the SEI picture timing, as it is recommended in ITU-T Rec-H.265-202108 Annex D.3.3 Picture timing SEI message semantics....
1
vote
1
answer
2k
views
FFmpeg only and only change H264 profile and level?
I am use FFmpeg v4.1 . I want to change H264 profile and level but I want other settings to stay the same. I just want to change the profile of H264.
I'm using this code, but I'm getting the error.
-...
0
votes
0
answers
36
views
Could someone please explain significance VIF and ADM metrices in VMAF?
I've been studying about video quality assessment metric VMAF and I know VMAF score is calculated based on VIF, DLM and Motion. I want to know in layman terms how is VIF and DLM calculated and then ...
0
votes
0
answers
69
views
FFMPEG Highest quality without highering bitrate
I need the highest possible quality without needing to raise the bitrate or changing the codec (h264).
I came up with this command
ffmpeg -c:v h264_cuvid -i input.mp4 -preset placebo -b:v 1400k -b:a ...
0
votes
1
answer
178
views
YUV420 to losseless
I am using Raspberrypi HiQ camera to capture High Speed(120fps) videos of planets for astronomy purposes.
Using libcamera-vid I can record h264 upto 4.2 but I saw h264 has limitation of 60fps. I ...
3
votes
1
answer
2k
views
How to manage colour in After Effects to get precisely a desired colour in h264 output
I am working on a video for the web only.
It is going to be on a webpage (never on broadcast), delivered as an h264 file.
The web page background is hex code FFF1E5 (RGB 255, 241, 229).
My background ...
0
votes
0
answers
16
views
Why do identical video conversions produce different bit rate results?
Using Hadbrake I converted the same input video twice with the exact same H.264 settings.
As expected they are mostly identical, but why do they differ in bit rate?
From a logical perspective the ...
0
votes
0
answers
219
views
How to use/download FFmpeg LGPL build with the LGPL h246/libx246 (not Open H246)?
I am exploring all the different license options of distributing a commercial Desktop software that uses FFmpeg.
From what I understand, there are two versions of FFmpeg full builds that can be ...
104
votes
6
answers
245k
views
Repeat/loop Input Video with ffmpeg?
I just want to loop a mp4 video with ffmpeg and keep the current settings and codec.
For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
0
votes
1
answer
94
views
h264/hevc: non-integer frame rates
I'm having a hard time understanding how non-integer frame rates are implemented in h264 and hevc. For example, I just stepped through a 23.976fps video frame by frame using Shotcut, and looking at ...
2
votes
3
answers
2k
views
Does HDR content have anything to do with codecs?
I am new to video codec(encoding/decoding) stuff. I am trying to understand the difference between H.264(AVC) and H.265(HEVC) HDR video content. I thought HDR video 'means' it has 10 bit color depth ...
0
votes
0
answers
11
views
How can I make a smaller video when it has limited unique frames?
I'm currently editing a podcast that is mainly audio with only three unique images shown on screen. However, using h264 encoding gives me a massive file, how can I leverage the limited number of ...
1
vote
0
answers
370
views
FFmpeg 5.0 vs 3.4 performance
I was trying to compare ffmpeg 5.0 vs version 3.4.6 in how much performance improvements I would get while transcoding a simple 720p video into a H264 video. On my laptop, I noticed around 5-10% ...
0
votes
3
answers
2k
views
How do I convert H.264 Rec709 ("SRGB") to H.265 HEVC 10-Bit Rec2020 ("Wide Gamut")?
I'm looking to convert a standard colour gamut video to a wide gamut video. For example, I have a 1080p, 2K or 4K H.264 8-bit mp4. This is normally (eg. from YouTube) in Rec709 or "SRGB" colour space.
...
0
votes
1
answer
23
views
Idea validation - CRF's as a service
I was looking for validation for my startup idea. Please flag if this is off-topic.
Idea: CRF's as a service - When encoding h.264 and libvpx videos, I tend to guess good Constant Rate Factors(CRF's) ...
0
votes
0
answers
992
views
H264 AVC codec Baseline@L3.1 vs High@L4.2
When I convert a video with ffmpeg, and use mediaInfo to review the metadata, I see the followings for the video codec:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1 ...
0
votes
1
answer
422
views
How do I verify that the H264 video stream is encoded with a single slice per frame?
I'm a software tester and I need to test a certain requirement for a vehicle camera that I'm not sure on how to test.
As in the title it's to verify that each frame is encoded with a single slice. ...
1
vote
1
answer
4k
views
How to concatenate MPEG-4 and AVC/h.264?
I would like to use ffmpeg, mencoder or still something free.
I cannot concatenate two videos because of different video codecs:
$ mkvmerge -o merged.mkv 1.mkv \+ 2.mp4
mkvmerge v19.0.0 ('Brave ...
2
votes
1
answer
25k
views
Encoding videos for MPEG-DASH
I read this article on encoding for MPEG-DASH, which has helped me a little and then follow up article.
My end goal is to create a batch file that can read in a directory of MP4 files, and then ...
2
votes
1
answer
88
views
Concatenate H.264 raw but basic streams without reencoding or quality loss
How does one go about concatenating several H.264 raw streams into one without reencoding or quality loss?
The streams lacked any advanced features and represented contuous recording. There is no ...
0
votes
0
answers
58
views
Pillarboxing AVC/h.264 video with minimal re-encoding?
I have 1440x1080 AVC/h.264 video that should be displayed with a 4:3 aspect ratio (which would correspond to square pixels). I'd like to burn it to a Blu-ray disc to be playable in Blu-ray players, ...
1
vote
1
answer
182
views
HEVC vs H264 video file size
I am doing some experiments on the file size of recorded videos in HEVC vs the ones recorded in H264 using a simple Android app that I developed. My impression was that videos recorded in HEVC should ...
1
vote
3
answers
8k
views
Is there a way to improve h264_nvenc output quality?
I'm compressing some videos for archiving, and I came to this configuration which gives me a nice overall quality on a small size:
ffmpeg -threads 4 -y -hide_banner -i input.mp4 -vf scale=-2:480 -c:v ...
0
votes
2
answers
3k
views
How to 2-pass h264 with CRF and maximum bitrate with ffmpeg?
Based on CRF Guide (Constant Rate Factor in x264, x265 and libvpx), quoting:
Streaming nowadays is done a little more cleverly. YouTube or Netflix
are using 2-pass or even 3-pass algorithms, ...
4
votes
2
answers
13k
views
FFMPEG: Loop video to the length of audio
E.g. if video is 1 minute, but audio is 1 hour. Make video loop throughout for 1 hour of the audio track.
I use this solution to loop image through the lenght of the audio
ffmpeg -y -loop 1 -r 6 -i ...
0
votes
0
answers
187
views
ffmpeg libx264 core 157 vs core 164
For a while I have been using a build of ffmpeg from 2019:
ffmpeg version N-94150-g231d0c819f Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190621
configuration: --enable-...