Questions tagged [h.264]
Also known as MPEG-4/AVC, an advanced video encoding standard, widely used in Blu-ray and streaming video.
297
questions
0
votes
0
answers
9
views
Fail to convert png from 3gp
Here is the command I used to convert the video.
ffmpeg -skip_frame nokey -i input.3gp -vsync vfr -frame_pts true output.png
(The command can't be modified because this is a code section captured from ...
0
votes
0
answers
22
views
Remove B-Frames from H.264 stream without re-encoding
I am getting an h.264 video stream from twitch.tv, and forwarding it to Discord to watch it on there with friends. Problem is, the twitch.tv stream is encoded using h.264 Main profile, while Discord ...
0
votes
0
answers
49
views
Corrupted H.264 file: NAL unit header mystery
I'm currently facing a challenge for university with a corrupted H.264 file and could use some guidance.
As part of an exercise, I've been examining the H.264 stream, which is composed of NAL units. I'...
0
votes
0
answers
131
views
How do you create an MPTS file on ffmpeg with two h264 inputs?
I need to contain two h.264 files (same video, different resolutions) within the same MPTS container, but I can't quite figure out how to use two inputs to create one output.
I tried using ffmpeg -i (...
1
vote
0
answers
297
views
How to Speed Up Complex Text Overlay in FFmpeg
I'm using FFmpeg to overlay text on videos, and I find the process to be quite slow. The operation becomes especially slow when I add complex drawtext filters. I'm running this on a MacBook Pro with ...
0
votes
0
answers
127
views
h264_qsv is choppy when live streaming
I am trying to do live streaming of video games using h264_qvs, but is choppy when compared to libx264. Here are some variations of the ffmpeg command I am running:
Variation 1
ffmpeg.exe -y -hwaccel ...
0
votes
1
answer
648
views
Edit video h.264 metadata without encode
How can I edit these video (h264) parameters (on pic) without encode?
VUI parameters "video_signal_type_present_flag" and "colour_description_present_flag".
As far as I understand, ...
0
votes
0
answers
582
views
How to set H.264 metadata in ffmpeg (fixed_frame_rate_flag)
I would like to set the fixed_frame_rate_flag in the H.264 metadata so that MediaInfo will report a constant frame rate when scanning the file.
Supposedly I can set that flag using the bitstream ...
1
vote
1
answer
249
views
FFmpeg with Quicksync: unable to hardware decode file
I'm trying to convert a h264 video to h265 using hardware decoding/decoding of the iGPU (Quicksync). Decoding does not work throwing the error "Impossible to convert between the formats supported ...
1
vote
2
answers
376
views
Smart trimming long videos with FFmpeg
I want to be able to trim a little bit off the beginning and end of a long video with FFmpeg. I can do this with a command like:
ffmpeg -i input.mp4 -ss 13 -to 59 output.mp4
FFmpeg will seek ...
1
vote
0
answers
73
views
One IP camera playing, one isn't. Codec incompatibility?
I am new to video codecs and would like to understand my problem better.
I am using Siemens camera display in TIA V17 to display the RTSP streams of some IP cameras...
IP camera A: Supports H264 but ...
0
votes
1
answer
158
views
Replace video track in MKV with track from .h264
I want to replace only the video part in my existing mkv file with the video.h264 file I created externally, I don't want to interfere with other parts or features in my mkv file such as audio or ...
0
votes
1
answer
1k
views
Windows ffmpeg hardware accelerated video encoding FAILS using codec hevc_amf but works with codec h264_amf
I'm running ffmpeg on Windows 10 on a machine with an AMD Radion HD 7700. Hardware accelerated h.264 works fine while HEVC encoding fails. The version of ffmpeg is:
ffmpeg version 5.1.2-...
0
votes
1
answer
203
views
FFMPEG, producing stream, wish to write to disk while streaming, segmenting
)
I have fought the long battle of getting somehow familiar with this wonderful beast of a thing, FFMPEG. I have coped with several things, learned that I will never get old enough to at least master ...
1
vote
0
answers
1k
views
Preset "Slow" producing much bigger files than preset "Ultrafast" - Why?
Today I tried to find out which difference in file size the preset slow makes compared to the preset ultrafast when encoding a video (if all other parameters are the same). I took a video with ...
0
votes
1
answer
47
views
I don't know how to play this videos
This videos are from an IP camera but I don't know how or where I can play it. I tried with VLC using a demuxer for h.264 but it doesn't work.
I tried converting the videos to mp4 but it looks like ...
0
votes
1
answer
1k
views
Different outputs when encode to h265 using CPU only and GPU together
I'm using ffmpeg to convert .mp4,.mkv files with enconde h264 to h265 using CPU only, if using GPU together will outputs the same as using cpu only?
for %%a in (*.mkv, *.mp4) do (
ffmpeg -i "%...
2
votes
2
answers
2k
views
How to extrack motion vector data without decoding the whole video
I want to extract the motion vector from the encoded h264 stream without performing a full decode of the frame.
I'm using the FFmpeg library and am aware of extracting the information using the ...
0
votes
0
answers
1k
views
Why I do get "Segmentation fault (core dumped)" when using ffmpeg encoding AMD AMF H.264 in Ubuntu?
Hello I built ffmpeg with AMD AMF drivers on Ubuntu 22.04 and when I run this command:
ffmpeg -i video_sample.mp4 -c:v h264_amf output.mp4
I get this error:
ffmpeg version N-107316-gf9dd8fcf9b ...
0
votes
0
answers
216
views
DVR error: kex_exchange_identification: read: Connection reset by peer
My DVR is connected to internet but when ssh, the error is kex_exchange_identification: read: Connection reset by peer. It is port 22 and I cannot access the Linux terminal. The system cannot be ...
0
votes
1
answer
6k
views
ffmpeg command to convert from mp4 video to .h264 raw frame with avcc format
I want to convert my mp4 video (BigBuckBunny.mp4) to BigBuckBunny.h264 file. I used the following the command in ffmpeg.
ffmpeg.exe -i c:\BigBuckBunny.mp4 -c:v libx264 c:\Bunni2.h264
This command is ...
0
votes
1
answer
562
views
How do I find what bitrate a CPU/GPU can decode?
I'm exporting videos to play locally on a dedicated player with a CPU like this.
The integrated GPU supports up to 4096x2304@60Hz, I assume that's talking about uncompressed video, right?
I also see ...
1
vote
0
answers
494
views
ffmpeg - Redownload missing fragments to fix downloaded stream
I have dowloaded an H.264 video stream using ffmpeg -i <URL> -c copy <name>.mp4 but ffmpeg reports that it has skipped some fragments. Since the stream is still online (with, I suppose, ...
0
votes
0
answers
330
views
Losslessly reducing framerate of a 'video of a video'
I asked this yesterday but it was incorrectly closed as a dupe of question:Reduce video frame rate without dropping useful frames
The difference between that question and this question is - in that ...
0
votes
1
answer
4k
views
FFmpeg: h264_qsv slower than libx264 (real-time buffer too full)
I use configuration: Windows 10 IoT, Intel Celeron N3350E (with Intel HD Graphics).
Runing this line:
ffmpeg -f dshow -i video="USB Video":audio="USB Digital Audio" -c:v libx264 -...
0
votes
1
answer
5k
views
FFmpeg h264_qsv: Error initializing an internal MFX session: unsupported (-3)
Im using ffmpeg build for Windows from gyan.dev: release ffmpeg-5.0-full-build with hardware-support.
I need to capture a video from a USB video device, compress it and write it to a file.
I am using ...
0
votes
0
answers
709
views
Is a CRF of 1 overkill?
I am trying to save my collection of DVDs to my Mac to have in the TV app. I am using libx264 to encode from mpeg2video to h264. I want to maintain as much quality as possible and file size is not a ...
0
votes
0
answers
981
views
H265 10 bit to H264 8 bit through NVENC looks terrible
I'm currently using FFMPEG run with Sickbeard Mp4 Automator to convert H265 video to H264 since my phone chugs hard playing H265 10 bitvideo. I set it to use NVENC and it's unnoticeable for brighter ...
1
vote
0
answers
2k
views
I need FFMPEG command to convert some video files from h.265 to h.264 with Nvidia hardware
I have a decent Nvidia graphics card, capable of h.265 and h.264 encoding and decoding in hardware (Geforce RTX 2060), running on a Ubuntu installation. I have a whole bunch of video files that I need ...
3
votes
1
answer
7k
views
How to convince ffmpeg that input is raw H264?
I have a raw H.264 video stream (which starts with hex 00 00 01 FC ..., a 3-byte start code followed by a NAL unit). ffmpeg can process it but it really doesn't want to...
Let's test
Let's say the ...
1
vote
1
answer
3k
views
FFMPEG: “DLL amfrt64.dll failed to open” on Windows
I experienced the following issue.
I'm using ffmpeg to batch resize/compress photos and videos on Windows 10. I used a version 3 and since upgraded to ver 4.4 of ffmpeg the quality of outputs dropped. ...
1
vote
0
answers
305
views
FFMPEG Motion Vector Block Format
I'm trying to extract motion vectors from h264 videos using ffmpeg and the AVSideData API. I'm a little confused about the format as there are some subtleties that aren't well documented, and I'm ...
0
votes
1
answer
4k
views
Range of "global_quality" value for h264_qsv encoder?
What is the range of the -global_quality setting for ffmpeg's h264_qsv encoder (4.3.2-2021-02-27-full_build-www.gyan.dev, Windows)?
Ffmpeg's documentation for the encoder (archive) states:
The ...
0
votes
0
answers
488
views
ffmpeg can't change number of B-frames
When streaming from a source I keep receiving frames following the same pattern:
I-frame P-frame I-frame P-frame I-frame P-frame ....
I tried many options and read as many questions here as I found, ...
0
votes
1
answer
104
views
Newbie : using h264 to encode mp3 with static image higher quality?
I need to put an mp3 up on youtube and Odyssee with a static image that is shown from beginning to end. Needs to be h264 to go onto Odyssee. Works fine but the static image is of grainy low quality. ...
0
votes
0
answers
417
views
ffmpeg libx264 is noisy
After converting video with ffmpeg to H264, my video is noisy.
ffmpeg -i http://192.168.1.10:5530/bysid/106 -map 0:v:0 -map 0:a:0 -c:v libx264 -c:a mp2 out.mkv
Normal:
Noisy subtitle:
Same result ...
4
votes
1
answer
7k
views
Are HEVC and H265 same? In FFmpeg they give different results why?
Recently I re-encoded a H264 video to HEVC using FFmpeg and Intel hevc_qsv hardware acceleration and libx265. hevc_qsv results in higher sized video and libx265 results in 50% lower sized video.
I ...
2
votes
1
answer
1k
views
Remote Desktop AVC 444 Hardware Encoding with Super Ultrawide Display
As my daily driver workstation, I RDP from a Windows 10 desktop to a Windows 10 VM with a GTX 1080 passed through. I just upgraded my monitor from 3440x1440 to 5120x1440. I noticed recently that the ...
1
vote
0
answers
64
views
How to set the GOP(group of picture) of RDP on Windows Desktop?
I found that the GOP length of RDP is 2592000 when I use gfx AVC444. I want to decrease this value.
How can I decrease this value on windows?
Here is h264 parse data.
0xcb 0xb2 0x13 0x92 0x98 0x73 ...
0
votes
1
answer
822
views
ffmpeg not making the correct video size
I've been trying to join a bunch of .png files into an mp4. The .png files are all 1920x1080 but my output file is always smaller, i.e. 1920x1072. What silly mistake have I made here?
ffmpeg -...
1
vote
1
answer
153
views
ffmpeg creates large compressed files for tiny videos?
When compressing very small videos, there seems to be a large overhead in the video container itself.
Here are some examples using a single-frame 16x16-pixel all-black image:
ffmpeg -f lavfi -i color=...
2
votes
0
answers
691
views
ffmpeg lags when streaming video+audio from RPi Zero W with Logitech C920
I've been trying to setup a baby monitor with a Raspberry Pi Zero and a Logitech C920 webcam. It does work with VLC (cvlc) but it lags too much and gets worse over time.
So I am playing around with ...
4
votes
1
answer
6k
views
Set keyframe interval in ffmpeg when using nvenc
OBS uses nvenc when encoding live streams. In the guide "NVIDIA NVENC OBS Guide", an advanced option is listed as:
Keyframe Interval: Set to 2. Streaming platforms may limit what you can ...
2
votes
0
answers
628
views
How to get no-reference video quality metrics (or numerical quality score) for 1080p, h264 video?
For the life of me, I can't find a suitable way to do this.
I have 3 videos (all h264), which supposedly came encoded from the same source (they have the same content / offset by up to a second). I do ...
2
votes
0
answers
878
views
Maximum possible bitrate for HEVC videos with hardware encoding in Premiere Pro
I am trying to export a series of images as a 4K HEVC video (it is a long series) and I am using Premier Pro 2020 to do it. I found I can switch to High tier and this allows me to go over 25Mbit ...
1
vote
1
answer
2k
views
How to convert h.264 (MP4) to Theora (FFmpeg)
How to convert h.264 to Theora using FFmpeg.
I generally use all the -qscale commands etc, but the quality is hopeless anyway. The point is that the movie freezes after a few seconds and only ...
0
votes
1
answer
147
views
Compressing an MTS file to MP4 gives error in QuickTime
I have a long video file that I want to trim, resize, and compress with H264:
ffmpeg -y -ss 1.2 -to 2:03.800 -i long.MTS -vcodec libx264 -vf scale=320:-1 -vb 500k short.mp4
The file plays in VLC and ...
0
votes
0
answers
126
views
OpenH264 isn't downloading for Firefox for WebRTC
Environment:
Windows 10 IoT Enterprise 2019 LTSC - win64
Firefox ESR 78.3.1
The plugin OpenH264 isn't downloading properly, it is needed for Webex teams SDK to work. We have tried all the options ...
8
votes
1
answer
27k
views
What is the different of h264 and libx264
I notice there is argument available for
--enable-encoder=h264,libx264 suppose I am converting the video looselessly
Which one default ffmpeg will use? h264 or libx264?
And how about the quality ...
1
vote
1
answer
4k
views
ffmpeg h.264 options to pipe into VLC for MJPEG streaming
I am trying to get VLC to recognize ffmpeg libx264 h.264 output from a stdin pipe.
I have a source of raw RGB24 video (currently a file, but eventually realtime from an app) that I wish to h.264 ...