Questions tagged [h.264]
The h.264 tag has no usage guidance.
178
questions
1
vote
1
answer
153
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 ...
1
vote
1
answer
113
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 ...
0
votes
0
answers
6
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 ...
0
votes
1
answer
304
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
1
answer
834
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
80
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
0
answers
16
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 \
...
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 ...
0
votes
1
answer
89
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:~$ ...
1
vote
1
answer
4k
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
320
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 ...
0
votes
0
answers
13
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 ...
0
votes
0
answers
17
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 ...
10
votes
2
answers
33k
views
H.264 Max Resolution
I was trying to find the technical reasons for why H.264 is limited for 4K.
Obviously that in terms of bit-rate it becomes less efficient but the encoding itself is limited and for some reason, I ...
0
votes
1
answer
628
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
11k
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
49
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 ...
0
votes
1
answer
49
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
947
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
86
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
0
answers
10
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 ...
1
vote
1
answer
88
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
83
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
2
answers
124
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
134
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
78
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
442
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
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 ...
0
votes
0
answers
98
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
553
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
38
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
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....
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 ...
2
votes
0
answers
964
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
3k
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
1
answer
259
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 ...
110
votes
6
answers
259k
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
151
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 ...
3
votes
3
answers
3k
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
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 ...
1
vote
0
answers
418
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
27
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
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] ...
0
votes
1
answer
598
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
129
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
73
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, ...