Questions tagged [h.264]

Also known as MPEG-4/AVC, an advanced video encoding standard, widely used in Blu-ray and streaming video.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 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
24 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
2 answers
4k views

FFMPEG encoding issue with "mp42" video (conversion to H264 mp4)

I am having problems encoding an "mp42" file to mp4 (H264) with the encoding options: -vcodec libx264 -bufsize 32M -b:v 2800k -maxrate 3800k -g 63 -vf "scale=1280:720" -acodec aac -ab 192k -ar 44100 -...
32 votes
5 answers
44k views

Using FFmpeg to locate moov atom

I have a library of videos, all of which should have been adjusted for web-streaming by putting the moov atom ahead of the rest of the video. This allows playback to begin before the client has ...
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 ...
7 votes
1 answer
6k views

VLC (Server) re-stream Security Camera Feed

I purchased a Swann Home Security DVR system and was hoping for some help on how to duplicate the streaming video on my server. In order to get their web view (streaming video in the browser) to work,...
3 votes
3 answers
6k views

How can I convert raw h264 file from IP camera to something playable on a PC?

My security camera (Victure PC730) stores short videos on the SD card if it detects any motion. The files are named xx.h264. No player (VLC, MPlayer, …) is able to play it. It seems to be a some ...
2 votes
1 answer
10k views

H.264 decoding error log from RTSP stream

I am getting the following H264 error log. This log comes while decoding an RTSP video stream with help of FFMPEG. The picture displayed is blurred after 5/6 seconds. The picture would recover it from ...
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'...
3 votes
2 answers
3k views

Can I enable H.264 video in Chrome on the Mac?

I left Chrome for a while because I was annoyed about Google taking away H.264 support. I won't go into my reasons why, but I'm considering using Chrome more as my default browser again. The problem ...
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
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
298 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 ...
6 votes
2 answers
13k views

FFMPEG encoding settings for 1080/60fps/h264 - framedrops

I want to use latest ffmpeg to encode set of JPG frames to 1920x1080 60fps h.264 movie. I'm looking for set of parameters that will allow smooth playback of encoded video on fairly strong PC machines ...
0 votes
1 answer
651 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, ...
20 votes
3 answers
64k views

How can I re-encode H.264 video with minimal quality loss?

I have a lot of MPEG-TS files (.TS container but H.264 video) and playback is fine except that when you skip forward/backward or fast forward it's very sluggish and gets pixelated, etc. I've been ...
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
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
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
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 ...
3 votes
2 answers
9k views

ffmpeg not working using h264_vaapi

I'm trying to transcode a video using ffmpeg with hardware acceleration using the following command: sudo ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi \ -vaapi_device /dev/dri/renderD128 -i ...
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
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
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 ...
65 votes
4 answers
211k views

Best settings for FFMpeg with NVENC

I'm using my FFMPEG with the suport of my GPU (NVENC) to convert files from my satelite receiver (SD, mpeg2 .TS-Files) into h264 .mp4-files Here is the line i'm using ffmpeg -i "e:\input.ts" -vcodec ...
5 votes
2 answers
17k 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 ...
2 votes
3 answers
6k views

v4l2 issues with webcam encoded to H.264

I am trying to send a H.264 webcam video feed over wifi to another computer using gstreamer. I am using this tutorial as a guide. I am using a Creative Live! Cam Connect HD as my webcam. The website ...
14 votes
1 answer
12k views

What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?

What list of commands should I do in ffmpeg/mencoder/some_other_CLI_app to get a video in all the right formats to use Video for Everybody? i.e. Is there a subtlety that prevents there being a ...
0 votes
2 answers
1k 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 <...
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
561 views

ffmpeg synchonization of libfdk_aac (or libfacc) and libx264

How to synchronize libfdk_aac and libx264 streams? ffmpeg -i pipe_libfdk_aac.fifo -i pipe_libx264.fifo -c copy -f flv flv_stream_pipe_or_rtmp.output I'm always receiving the same asych in all cases: ...
6 votes
2 answers
27k views

ffmpeg: how to create an interlaced h.264 video?

I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be ...
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 ...
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 ...
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
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 ...
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 ...
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
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 ...
98 votes
1 answer
255k views

What are the differences between H.264 Profiles?

I was rendering a video in After Effects CS5 and when I was formatting it I chose the H.264 codec and in that format, it had a profile with Baseline, Main and High. So I did a little test – rendering ...
8 votes
1 answer
17k 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 ...
5 votes
1 answer
4k views

Encoding H264 with windows ffmpeg results in first few seconds being "blocky"

I am using the following code to transcode a 10mbps high quality 1280x720 H264 mp4 into a lower quality H264 mp4 with our logo watermarked on the video. ffmpeg.exe -i test.mp4 -i watermark.png -...
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 ...

1
2 3 4 5 6