Questions tagged [h.264]

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

106 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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,...
Aaron's user avatar
  • 71
6 votes
0 answers
8k views

Stream video with FFMPEG, "Output file does not contain any stream"

I would like to stream an H.264 encoded elementary stream wrapped in RTP headers to a port using FFMPEG. I have tried the following command lines to no avail... ffmpeg -i 1080p_1.h264 -f rtp -vcodec ...
Steve Mead's user avatar
4 votes
0 answers
10k views

How to use libx264 ffmpeg in conda environment?

I tried to convert an avi video file into an h264 processed mp4 file, but I ran into the following error: $ ffmpeg -i sa1-video-fram1.avi -c:v libx264 -crf 19 -c:a libfdk_aac -b:a 192k -ac 2 out.mp4 ...
Jay Xiong's user avatar
4 votes
1 answer
1k views

mix audio with h264 mp4 video with ffmpeg

I have 2 files : Input #0, wav, from '105426_1.wav': Duration: 00:00:09.98, bitrate: 1312 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 41000 Hz, stereo, s16, 1312 kb/s and: ...
user avatar
4 votes
0 answers
3k views

optimise FFMPEG live stream THUMBNAIL

After testing many possibilities, I have a perfect command line for creating thumbnails from a live stream: ffmpeg -i rtmp://srvIp/h264.stream -r 1 -an -updatefirst 1 -y thumbnail.jpg It refreshes a ...
Asain Kujovic's user avatar
4 votes
0 answers
9k views

How to convert a mpeg4-aac video to mpeg-ts using MEncoder?

I know this can be done using FFMpeg and I have done it. The only problem here was that FFMpeg actually tries to "encode" the file while converting to mpeg-ts which I don't want. i.e. I just want to ...
Mahendra Liya's user avatar
3 votes
1 answer
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 ...
Binarus's user avatar
  • 1,805
3 votes
0 answers
507 views

ffmpeg does not produce smooth videos from mkv h265

It's kind of subjective, but I'm not able to produce 100% smooth videos with ffmpeg. As input I use https://www.libde265.org/hevc-bitstreams/tos-1720x720-cfg01.mkv as a example.This is a h264 mkv ...
user3776738's user avatar
3 votes
0 answers
921 views

Why is the first frame timestamp 0.066667 and not 0?

I have a stream of TGA files created on disk and I programmaticaly build a h264 video using the x264vfw codec. Options CRT 23, medium preset, Fast Decode, keyint 30 (video is 60 fps), no cut scenes, ...
Proviste's user avatar
3 votes
0 answers
13k views

FFMPEG Lossless Video Output Options

I am looking for lossless video output options from FFMPEG that can be viewed without any special codecs or special players such as VLC. I want a basic use to be able to open up the video with a ...
Nicholas Ng's user avatar
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 ...
Doug S.'s user avatar
  • 31
2 votes
0 answers
697 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 ...
Ema's user avatar
  • 21
2 votes
0 answers
649 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 ...
13steinj's user avatar
  • 121
2 votes
0 answers
893 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 ...
miran80's user avatar
  • 237
2 votes
2 answers
3k views

ffmpeg reducing frame rate doesn't decrease file size

My goal is to reduce the overall file size of a video without quality loss. The source video is at 30fps with keyframes every 90 frames. For our purposes we only need the video to be at 3fps and ...
Gcoop's user avatar
  • 121
2 votes
1 answer
3k views

Viewing H.264 bitstream in browser using ffmpeg to ffserver

This is a followup to https://raspberrypi.stackexchange.com/questions/93254/stream-usb-webcam-with-audio?noredirect=1#comment150507_93254 I, like many other brave tinkerers before me, thought it ...
BobtheMagicMoose's user avatar
2 votes
0 answers
325 views

How to smooth out jaggy lines with AviSynth?

I have a quite crappy quality video in 480p, I then transcode it with AviSynth and MeGUI. I use a few scripts to enhance the quality, as well as upscaling the video to 720p. As you can see in the ...
Happy Face's user avatar
2 votes
0 answers
759 views

Does h.264 levels affect the quality of the output?

According to Wikipedia, the example for high resolution of level 4.0 is 2048x1024@30fps. But the resolution of the video ready to encode is 1280x960, which is about level 3.2. Is it better to set the ...
Happy Face's user avatar
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 ...
Tariq's user avatar
  • 121
2 votes
0 answers
3k views

Failed to convert a wmv file to mp4 with ffmpeg

i need a help with this command FFMPEG COMMAND: ffmpeg -y -i /input.wmv -vcodec libx264 -acodec libfaac -ac 2 -bufsize 20M -sameq -f mp4 /output.mp4 Output: ffmpeg version 1.0 Copyright (c) 2000-...
Olaf Erlandsen's user avatar
2 votes
0 answers
403 views

H.264 encoder with clearer options for specifying minimum & maximum video bitrate?

I almost never get stuck with things like this and kinda figure things out myself... but I'm at a complete loss here. I've used Handbrake, X-Media Recode, and lots of other encoders and they're ...
Cyber-Logic's user avatar
1 vote
0 answers
314 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 ...
mlika's user avatar
  • 11
1 vote
2 answers
404 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 ...
Jon G's user avatar
  • 307
1 vote
0 answers
75 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 ...
dcJ's user avatar
  • 11
1 vote
0 answers
511 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, ...
Arch Stanton's user avatar
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 ...
MarcNBarrett's user avatar
1 vote
0 answers
325 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 ...
Max Ehrlich's user avatar
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 ...
Top Talent's user avatar
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 ...
McGuireV10's user avatar
1 vote
0 answers
11k 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 ...
Camille Goudeseune's user avatar
1 vote
0 answers
849 views

Inserting SPS NAL Units into h.264 stream

I'm currently using FFmpeg to convert a Youtube livestream HLS into a H.264 UDP stream. For it to work correctly with the device I'm using, the stream needs to have SPS NAL units inserted every so ...
Julien Moreau's user avatar
1 vote
0 answers
753 views

Nvidia hardware H.264 decoder (nvdec with Gstreamer) is crashing

I have created an Azure virtual machine Nc6s_v3 which provide Nvidia V100 GPU card. I have set up the drivers following the instructions here https://docs.microsoft.com/en-us/azure/virtual-machines/...
Raju's user avatar
  • 111
1 vote
0 answers
537 views

x264 Is giving this error: x264_encoder_open failed, are the input file parameters wrong?

I'm having some trouble getting x264 to work. I'm using x264 t_mod_New version r2970. x264 keeps giving this error though: x264 [error]: can't open file '0' x264 [error]: x264_encoder_open failed ...
Markus29's user avatar
1 vote
0 answers
123 views

Reinterpret AVC bitstream as HEVC

I understand HEVC to be a superset of AVC. HEVC allows more 'tools' to extract more compression out of a video sequence. Is there a tool that converts an AVC stream to HEVC, completely ignoring the ...
Bruno Martinez's user avatar
1 vote
3 answers
1k views

Pixalation Issue in mp4

We are using below ffmpeg command for mp4 creation. output showing the pixalation. I have alter multiple parameter in command but pixalation not getting reduce. I want to kept bitrate constant to ...
Dinesh Gaikwad's user avatar
1 vote
0 answers
809 views

Why a MP4 H.264 video looks fuzzy on Google Chrome but sharp on Firefox?

This is the file I am trying to open directly into Chrome (It happens on websites but it seems the problem is with the rendering engine) http://wikisend.com/download/914020/pipe-handbreak.mp4 It ...
Daniel Vianna's user avatar
1 vote
1 answer
258 views

Reduce h264 mp4 video size without recoding (like dvdshrink used to do this for DVDs)

I have a large bunch of MP4 files which I need to reduce in size to roughly half. I can recode them all of course, but I remember having used dvdshrink quite some time ago which had an option to ...
user2707001's user avatar
1 vote
1 answer
1k views

FFmpeg+NVENC encoding: strange aspect ratio

My source video is MPEG-2, 720x576, DAR=16:9. Using FFmpeg and the h264_nvenc encoder, I convert it to H.264. The problem: The output AR is strange/wrong/incosistent. Command line: >ffmpeg -i "d:\...
user avatar
1 vote
0 answers
957 views

How to play .h264 file from IP Camera?

My security camera https://www.aliexpress.com/item/High-Quality-HD-720P-Wireless-IP-Camera-Wifi-Night-Vision-Camera-IP-Network-Camera-CCTV-WIFI/32270499536.html?spm=2114.13010608.0.0.0ptGKR stores ...
user7265059's user avatar
1 vote
0 answers
806 views

Media Encoder - H.264 with CRF setting?

I have recently started using Adobe After Effects and use Adobe Media Encoder to render my H.264 videos (with Quicktime installed). I am familiar with ffmpeg and have always been using CRF based ...
beefframe's user avatar
1 vote
0 answers
2k views

Converting H265 to H264 causes artifacts in dark areas

I'm not sure if this is the right place to ask this, but I'll try anyways. I'm trying to convert a lot of HEVC (H265) videos to AVC (H264) and I'm getting all these nasty artifacts in dark areas. Does ...
Jordan Harris's user avatar
1 vote
0 answers
330 views

MS Expression Studio Fails to Detect MP4 Video

I have imported a H.264 MP4 video file into Microsoft Expression Encoder 4, however when I convert the video to the IIS Smooth Streaming VC-1 format, it only has audio with a green screen. How do I ...
PeterX's user avatar
  • 5,271
1 vote
1 answer
3k views

how to convert a video to a MOV file with h264 yuvj420p and pcm u8

I want to convert some videos to be playable on a Canon digital camera. The videos from the Canon PowerShot camera have the following specifications: Video: h264 (Constrained Baseline) (avc1 / ...
erik's user avatar
  • 1,968
1 vote
0 answers
1k views

Which audio codec is preferable to use for mp4 video?

I use standart codec for encoding and i don't like the quality of audio even if there is larger audio bitrate. ffmpeg -y -i input.avi -i watermark.png -filter_complex \"scale=-2:'min(360,ih)',overlay=...
nurmat's user avatar
  • 111
1 vote
0 answers
650 views

Getting same quality with "baseline profile"?

I have a couple of videos taken in H.264 using the high profile and I want to convert them into a baseline profile while keeping the same quality and size so, that they can be easily played on an ...
user125221's user avatar
1 vote
0 answers
500 views

MPEG DASH with H264 + H265

I've tried to build an MPEG-DASH stream coding some bitrates in H264 and some others in H265. In a nutshell I'm trying to code the same video with ffmpeg for the lower bitrates in H264 and the highest ...
José Valerdi's user avatar
1 vote
0 answers
2k views

How to multicast live H264 without transcoding?

I have a live H264 stream (hardware encoded from the webcam) and I'd like to stream it over the network using multicast on a Linux platform. Because the platform has limited CPU power, and the data ...
Malvineous's user avatar
  • 2,661
1 vote
1 answer
541 views

Capture and encode HDMI signal on FreeBSD

I am looking for a capture PCI-e card to encode HDMI source and stream on network. I want to "share" my HDMI sources to my Raspberry sinks in the LAN. I have found many PCI-e cards, but most of them ...
netmano's user avatar
  • 183
1 vote
0 answers
204 views

H.264 Pro Recorder Files not closed properly

I have several files that were recorded using a BlackMagic Design H.264 Pro Recorder. It would appear that somewhere in the process, the recorder did not close out the file properly when the ...
John's user avatar
  • 11
1 vote
0 answers
3k views

how to reduce h264 annex B NAL unit sizes to avoid IP fragmentation?

I'm trying to stream a video over to a terminal using RTP. The video is coded in h.246. I'm using ffmpeg to extract the byte stream according to h.264 annex B : ffmpeg -i test.h264 -vcodec copy -vbsf ...
Nicolas Emiliani's user avatar