Skip to main content

Questions tagged [h.264]

The tag has no usage guidance.

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

Processing h264 video/audio stream

I have separate raw audio and video frames from a camera that I'm trying to merge to a single file. Video processing I have JVT NAL sequence, H.264 video, main @ L 31 data, I had the frames separated ...
Dinamo's user avatar
  • 1
0 votes
0 answers
167 views

Ffmpeg outputting empty mp4 files for video concatenation command

When I run the following Ffmpeg command it produces empty mp4 files as an output. The command takes segments of a video as inputs, crops each input at particular locations, and then concatenates them :...
nonsequiter's user avatar
0 votes
0 answers
22 views

Converting with ffmpeg a bunch of webinars that contains a lot of slides (still images) aside a webcam speaker/lecturer

I screen recorded a lot of webinars that now I have to compress in order to have less space occupied. The content of this webinars are mostly persons talking like in zoom, few pixels of them in webcam ...
user3450548's user avatar
  • 1,680
0 votes
1 answer
57 views

verify lossless in H.264

i've transcoded an interlaced JPEG2000 video file to H.264 using ffmpeg. following the guidelines, i constructed the following command line: ffmpeg -hide_banner -i $input \ -vf tinterlace=0 \ ...
david furst's user avatar
0 votes
1 answer
845 views

restreaming rtsp using ffmpeg delay problem

I have ip and usb cameras. I try restream rtsp from camera using ffmpeg and mediamtx (rtsp simple server). For usb camera it works fine without any delay: mediamtx output: anton@anton:~$ ...
Anton's user avatar
  • 1
0 votes
0 answers
75 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
18 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
16 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
120 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
358 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
193 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
112 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
197 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
162 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
70 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
662 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
119 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
164 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
3 votes
1 answer
4k 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
  • 141
0 votes
1 answer
46 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
1 answer
1k 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
351 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
197 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
436 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% ...
angel_30's user avatar
  • 353
0 votes
1 answer
29 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
2k 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] ...
angel_30's user avatar
  • 353
0 votes
1 answer
786 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
171 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
316 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 ...
angel_30's user avatar
  • 353
0 votes
0 answers
82 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
1k 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
333 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-...
EllipticalInitial's user avatar
3 votes
1 answer
676 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
81 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
116 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
405 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
82 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
4k 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,898
5 votes
2 answers
4k 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
  • 341
0 votes
1 answer
661 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
8k 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
111 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
3 votes
1 answer
940 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
4k 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
313 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
98 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
581 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
6k 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