Questions tagged [h.264]
Also known as MPEG-4/AVC, an advanced video encoding standard, widely used in Blu-ray and streaming video.
287
questions
1
vote
0
answers
20
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
60
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
384
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
91
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
221
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
38
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
339
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 "%...
1
vote
2
answers
835
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
610
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
108
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
4k
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
241
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
223
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
189
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
3k
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
3k
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
377
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
679
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 ...
0
votes
0
answers
1k
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
4k
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
2k
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
200
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
2k
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
342
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
79
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
219
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 ...
3
votes
1
answer
5k
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
916
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
51
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
434
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
115
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
521
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 ...
3
votes
1
answer
4k
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
413
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
785
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
908
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
117
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
85
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 ...
5
votes
1
answer
17k
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
3k
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 ...
0
votes
2
answers
789
views
Measure / Remove H.264 Video Delay
I have an IP camera that sends an H.264 video stream that is supposed to be mixed / muxed with a separate audio stream.
On direct mixing
ffmpeg -i <video> -i <audio> -map 0:v -map 1:a <...
-1
votes
1
answer
899
views
ffmpeg - losslessly compress upscaled video
I cannot seem to find a good answer to this. I have a video file, h264, 1280x720, 251.2 MB.
However the video is upscaled, the actual quality is 1024x576. And not just the numbers are different, there ...
1
vote
1
answer
894
views
Is it possible to cut an h.264 stream anywhere, without re-encoding?
Note: I'd originally erroneously referred to an h.264 stream by the more common parlance of being an MP4 file, sorry
I'm aware of the usual need to start splitting an h.264 on a keyframe, so that the ...
8
votes
2
answers
21k
views
ffmpeg: How do I re-encode a video to H.264 video and AAC audio?
I'm trying to re-encode a video produced with "TechSmith Screen Capture Codec" in WinUAE to use H.264 video and AAC audio, with the latest "ffmpeg" (20200510-fc99a24) 64-bit, but when I use the ...
1
vote
1
answer
734
views
Why does QuickTime not play a video with CRF of 0, but is happy with 10?
I'm experimenting with video compression using ffmpeg (version 4.2.2), and used this command:
ffmpeg -i old.mp4 -c:v libx264 -crf 0 -preset fast newCrf0.mp4
but the resulting video would not play on ...
0
votes
1
answer
3k
views
Transcoding 1080p h264 to h265 w/ FFmpeg - Unexpectedly Extreme Reduction In Size
I have a collection of h264 videos from a digital camera that I'm re-encoding to h265 (HEVC). The FFmpeg options I'm using are:
-c:v libx265 -preset medium -x265-params crf=20:keyint=30 -c:a copy -...
0
votes
0
answers
8k
views
ffmpeg encoding requested yuv420p but got yuvj420p
When I encode with ffmpeg on Ubuntu 18, the default encoder h264 (libx264) uses by default the pixel format yuvj420p.
But https://ffmpeg.org/doxygen/trunk/pixfmt_8h_source.html says that ...
1
vote
1
answer
20k
views
H.264 video support in Chromium, missing codec?
Been using Chromium for a while, but it occurred to me that most video content does not work. YouTube does, but Vimeo does not, and most video streaming sites as well as random webpages with embedded ...
5
votes
2
answers
12k
views
Cannot play video stream from FFMPEG to VLC
I'm trying to stream my local webcam using FFMPEG. For test purposes, I'm doing this locally and try to open the stream using VLC (3.0.8, Windows 10). This is how I stream from FFMPEG:
ffmpeg -f ...
7
votes
1
answer
13k
views
Windows 10 Remote Desktop With RemoteFX and Hardware h.264 Using Nvidia NVENC
I have Windows 10 Pro as a server and Windows 10 Pro as a client. Server has a GTX 1070 card with the latest driver and is fully NVENC capable of h.264 / AVC 444 hardware encoding. Steam streaming ...