Questions tagged [h.264]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Synchronize 2 IP camera RTSP Streams

So we have 2 IP camera RTSP streams that we are saving to disk. At some point we stop the recording on both streams and go back to N frames in each video. The problem that we are facing is that the ...
Marib Sultan's user avatar
0 votes
0 answers
15 views

Best mac processor for single core processing, video editing performance

I've been searching around for a way to improve my editing experience as an editor on Premiere Pro. I have a 6-core Mac Pro, with 64GB graphics, but I'm a long form documentary editor, I don't care ...
James Stephen Brown's user avatar
0 votes
0 answers
7 views

Which will have better quality, an H.264 encoded video with higher bitrate or an H.265 with lower bitrate?

I got a cheap action camera that allows me to choose the encoding of the video being recorded between H.264 and H.265. When I set it to H.264, the video's bitrate is set to around 10,000+ kbps. When I ...
user9564371's user avatar
0 votes
1 answer
28 views

Why do different libx264 encoding presets yield different H264 profiles? For same video: Same source, same target dimension + framerate + CRF

Original Issue ffmpeg -i macos-sreenrecording-2560x1600-h264-FPS60.mov -movflags faststart -an -c:v libx264 -crf 18 -preset veryslow 2560x1600-CR18-FPS60.mp4 Yields an MP4 with H.264 at High@L6 (aka ...
porg's user avatar
  • 151
1 vote
1 answer
102 views

How to encode scenes with different CRF into a H.264 MP4 video with a variable frame rate?

Source Material Having many scenes which essentially are still frames (for many seconds) Commonly found in: Slideshows, Screen Recording or Software Mockup/Prototype ✅ This kind of source material ...
porg's user avatar
  • 151
1 vote
1 answer
67 views

ffmpeg h264 to mp4 conversion from multiple files fails to preserve in-sequence resolution changes

This will be a long post, so I thank you in advance for your patience in digesting it. Context I have different sources that generate visual content that eventually need to be all composed into a ...
LB2's user avatar
  • 111
0 votes
1 answer
67 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
122 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
99 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
44 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
334 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
67 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
75 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
2 votes
1 answer
2k 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
  • 131
0 votes
0 answers
489 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
28 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
  • 111
0 votes
1 answer
33 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
180 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
929 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
1 answer
236 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
1 answer
130 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
12 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
405 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
  • 353
0 votes
1 answer
25 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
1k views

H264 AVC codec [email protected] vs [email protected]

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 : [email protected] ...
Tina J's user avatar
  • 353
0 votes
1 answer
543 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
114 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
235 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
  • 353
0 votes
0 answers
67 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
2 votes
0 answers
891 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
232 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-...
joejoejoejoe4's user avatar
3 votes
1 answer
585 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
78 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
98 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
325 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
76 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
3 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
  • 33
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,525
4 votes
1 answer
3k 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
  • 311
0 votes
1 answer
596 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
7k 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
82 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
813 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
261 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
79 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
509 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
2 votes
3 answers
9k 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