Questions tagged [h.264]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 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\...
Lucas Soreau's user avatar
0 votes
0 answers
83 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 ...
edeafeam's user avatar
0 votes
2 answers
49 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 ...
malat's user avatar
  • 256
0 votes
1 answer
31 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 ...
GAP's user avatar
  • 51
1 vote
1 answer
156 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 ...
Aras's user avatar
  • 15
0 votes
1 answer
44 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 ...
er0's user avatar
  • 111
0 votes
0 answers
41 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? ...
beneix's user avatar
  • 1
1 vote
0 answers
669 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 ...
Binarus's user avatar
  • 121
0 votes
0 answers
334 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 ...
Slakter's user avatar
  • 101
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 (...
Daniel's user avatar
  • 121
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....
Wilhelm Olejnik's user avatar
0 votes
0 answers
128 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 ...
user8181050's user avatar
0 votes
1 answer
570 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 ...
Bob Smith's user avatar
  • 103
0 votes
0 answers
33 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 ...
manali0210's user avatar
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 ...
T0biasCZe's user avatar
0 votes
1 answer
171 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 ...
OuttaControl's user avatar
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 ...
Arete's user avatar
  • 169
0 votes
0 answers
212 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 ...
corgrath's user avatar
  • 101
0 votes
1 answer
92 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 ...
ACz's user avatar
  • 103
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 ...
Connor's user avatar
  • 123
1 vote
0 answers
362 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% ...
Tina J's user avatar
  • 343
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) ...
murage kibicho's user avatar
0 votes
0 answers
967 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 ...
Tina J's user avatar
  • 343
0 votes
1 answer
405 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. ...
Bivas's user avatar
  • 3
2 votes
1 answer
87 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 ...
tabdiukov's user avatar
  • 209
1 vote
1 answer
176 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 ...
Tina J's user avatar
  • 343
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, ...
jamesdlin's user avatar
  • 101
1 vote
0 answers
746 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....
chris-kuhr's user avatar
0 votes
0 answers
180 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-...
jippyjoe4's user avatar
1 vote
0 answers
530 views

Fragmented MP4, speed up initial image (change fragmentation on-the-fly)

I need to remux a live stream from an RTSP container to framgented MP4. Video stream is a h264 baseline one. I can have a very good results with ffmpeg, however, I'm struggling with one key thing: I ...
Daniel's user avatar
  • 121
3 votes
1 answer
521 views

How to get VLC like screen recording performance with FFmpeg?

I had initially used VLC to record the screen of computer using the following script: /Applications/VLC.app/Contents/MacOS/VLC -I rc screen:// --sout-keep --screen-fps=7.0 --screen-index=0 --sout #...
shashi's user avatar
  • 133
3 votes
0 answers
75 views

editing video (overlaying text) using AVfoundation is resulting weird behaviour in video

Whenever I move the pointer you can see video getting weird pixelation. Complete video showing how it behaves in quicktime player: https://jmp.sh/TMaknmp I am just applying overlay using ...
n.arrow001's user avatar
1 vote
0 answers
88 views

Why does a h264 encoded video recorded with HTML MediaRecorder on an Intel macbook not play on an m1 macbook with hardware acceleration enabled? [closed]

I've reproduced this issue in a simple sandbox: https://codesandbox.io/s/practical-driscoll-veyc2 (you'll have to open https://veyc2.csb.app/ in a new tab to have the screen recording functionality to ...
Tom's user avatar
  • 111
1 vote
0 answers
283 views

VLC doesn't play mp4v video converted with VLC to h264/h265

VLC reports the original video as: Codec: MPEG-4 Video (mp4v) Video resolution: 8192x8192 Frame rate: 7.549296 I am using the Convert / Save option to convert the video using the following profile: ...
Greg's user avatar
  • 121
0 votes
1 answer
71 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 ...
float13's user avatar
2 votes
1 answer
3k views

ffmpeg vf scale shifts colors to washed out

Im trying to scale video down. No matter what I do the colors are always washed up as a result. original: After scaling: Code I run for it ffmpeg -i input.mkv -vf scale=1028:-1 output.mkv log: log ...
Max's user avatar
  • 23
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 ...
tomh's user avatar
  • 7,450
3 votes
1 answer
2k views

Resuming a partially-completed encode with FFmpeg

Summary Given a partially completed encode that: Was encoded using h264 in the Matroska container Was cut short by manually stopping FFmpeg by typing 'q' in the console ...what are the ways to ...
Zach F.'s user avatar
  • 181
0 votes
1 answer
538 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 ...
user1534235's user avatar
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 ...
Rylan's user avatar
  • 11
0 votes
1 answer
73 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:...
caesay's user avatar
  • 101
2 votes
1 answer
716 views

Can ffmpeg calculate a new starting keyframe when being asked to split/copy on a non-keyframe?

I understand from a question here that keyframes can (and do) occur anywhere in an h.264 stream, so I'm wondering why most of the advice I see where users want to cut on a specific time or frame (that ...
Caius Jard's user avatar
2 votes
1 answer
3k views

How to convert 10-bit H.265 videos to H.264 without losing quality

I have a MPEG-H Part2/HVEC (H.265) .mkv file (Planar 4:2:0 YUV 10-bit LE). Since my LG PF 1500 beamer does not read H.265 but H.264 I would like to convert it (HVEC -> H.264). I think handbrake is a ...
captcoma's user avatar
  • 123
0 votes
0 answers
224 views

How do I get Windows Media Player and other tools that depend on system codecs to play this video file?

I have a video file that plays fine in VLC, but only shows 100% black frames in Windows Media Player, and in other applications that depend on system codecs (for example in MATLAB, which is where I ...
Brionius's user avatar
  • 101
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: ...
StackUnderflow's user avatar
0 votes
1 answer
445 views

ffmpeg with h264 produces smaller file sizes for veryfast preset

I am experimenting with ffmpeg and x264 codec. And I have found some unexpected behaviour. I am encoding video with parameters CRF 23, high profile and changing preset. Documentation says: for ...
Tomas's user avatar
  • 111
4 votes
2 answers
5k views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
Paolo's user avatar
  • 43
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 ...
user avatar
3 votes
1 answer
4k views

Intra-frame H.264 / H.265 compared to DNxHR or Prores as intermediate codecs for editing

IMPORTANT: ISSUE SOLVED (STILL A COUPLE OF QUESTIONS, THOUGH), I POSTED SOME INFO BELOW THE ORIGINAL POST AS AN UPDATE IF SOMEONE FINDS THIS USEFUL: Quick question: what are the advantages of using ...
Raulo1985's user avatar
0 votes
0 answers
1k views

FFmpeg: DNxHR 444 10 bits transcoding issue (HDR project). SMPTE2084 unsupported?

I have a couple of questions regarding intra-frame codecs for editing purposes (in Premiere Pro). UPDATE (01/24/20). More details of the original issue after this: I seem to have encountered a dead ...
Raulo1985's user avatar