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
2answers
41 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
1answer
36 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
1answer
42 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
0answers
47 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
1answer
88 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 ...
1
vote
0answers
57 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 ...
5
votes
1answer
610 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 ...
0
votes
0answers
150 views

FFMPEG: Error splitting the input into NAL units / Timestamps are unset in a packet for stream 0 when changing from avi to mp4

I am trying to change the container of a video acquired from an NVR using ffmpeg, but the output video is not playable by VLC or QuickTime. The output video stays still. In detail, using the following ...
0
votes
0answers
50 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 ...
0
votes
0answers
15 views

Hardware and networking issues while video streaming using nano pi neo core 2

I am developing a video streaming device that streams video to youtube. For this, I am using NanoPi NEO Core2 as an SBC. It runs on "Base on UbuntuCore, Kernel: Linux-4.14" os version as mentioned ...
2
votes
2answers
213 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 ...
0
votes
1answer
163 views

FFMpeg No such file or directory

I'm trying to convert a MP4 file to H264 using FFMPEG. Unfortunately, it get a file/directory each time "No such file or directory". I've followed the steps within this link https://video....
1
vote
0answers
24 views

How can I tell if my TV will support a video based on its tech description [closed]

I'm new to this stuff and a bit confused. Based on Samsung's documentation their TVs(I have relatively new 2019 model) support most video and audio formats. Since I know that they work best with H.264,...
0
votes
1answer
60 views

Slideshow with ffmpeg results in stuttery, unseekable, incorrect length file

I'm using ffmpeg to show images for different durations in a video: (command taken from example on this page) ffmpeg -f concat -i input.txt -vsync vfr -pix_fmt yuv420p output.mp4 Here what input....
0
votes
1answer
141 views

Cannot remove audio from video in FFMPEG (-an or -map doesnt work)

the following dont work ffmpeg -i <input> -an <output>.mp4 ffmpeg -i <input> -map 0:0 -v:c copy <output> The output returns the converted video WITH the audio still included....
0
votes
0answers
16 views

How does H264 encoding speed scale with concurrent video streams?

I am planning to buy a J3455B-ITX system with Intel HD 500 graphics (Apollo Lake), which is listed as being able to do real-time H264 encoding at 4kx2k/60p. I have a number of cameras running at ...
0
votes
1answer
91 views

How to extract original images from a lossless compressed video which is composed from a sequence of images?

I am trying to compress a sequence of images using h.264 with ffmpeg. ffmpeg -f image2 -r 5 -i ori/binary%03d.jpg -vcodec libx264 -preset veryslow a.mp4 ffmpeg -i a.mp4 -q 2 rec/output_%03d.jpg but ...
0
votes
0answers
22 views

Colour change occurs when exporting png/jpeg compared to h.264 in after effects

when I'm exporting an animation in after effects the colour seems far darker than when I'm exporting a still frame. Using PNG/JPEG for frame and H.264 for the animation. Any way I can make them come ...
0
votes
1answer
149 views

5k player 4k movie H264 codec isn't using hardware acceleration on GTX970 GPU

The machine I am using: OS Windows 10, 6Gb Ram, NVidia 970GTX and AMD FX6300 CPU, the media player is the latest 5k player display is 4k TV and I am trying out 4k movies, but they lag really badly. I ...
1
vote
2answers
1k views

Checking for GPU and H264 hardware decoding support

I want to run on a backend server a program that decodes video, applies filters on it using OpenGL and then encodes the video to a new file using h.264. In order to verify that the process is as fast ...
0
votes
0answers
95 views

How to debug h.264 playback issues in Chrome

I'm having an issue with AVC/H.264 playback in Chrome, but cannot seem to get any information on what is wrong with my video. First, a quick overview of my setup: I have a service that will use the ...
0
votes
0answers
151 views

LIBVLC RTSP stream not playing

I am trying to take snapshots of an RTSP stream on dotnet core running on Ubuntu. I have done this before and didn't have any issues. But, this time the Player_TimeChanged event is never executed and ...
2
votes
1answer
538 views

Using ffmpeg to add presentation timestamp

I'm trying to add presentation timestamp given a known frame rate. While this does work it does seem to be deprecated. I'm running the command: ffmpeg -r 24 -i input.h264 -codec copy output.mp4 The ...
0
votes
0answers
82 views

How to extract an elementary video stream from Avigilon .ave container?

I would like to figure out how to extract a H.264 video stream from an Avigilon .ave custom container. Unlike with here where they are using ffmpeg to extract the elementary video stream, when I try ...
0
votes
1answer
44 views

Are JPEG snapshots of H.264 / MP4 videos lossless?

I have noticed that some apps (namely Firefox and, in default configuration, mpv) save snapshots of MP4 videos in JPEG format. Is this because individual frames can be losslessly extracted as JPEGs or ...
0
votes
0answers
48 views

Problems capturing desktop video encoded by h264 with ffmpeg

I cannot get ffmpeg to capture a video of X11 desktop, encoded by h264. I can capture the desktop without specifying an encoder, with ffmpeg -y -f x11grab -s wuxga -r 5 -i :1 output.avi -loglevel ...
0
votes
0answers
22 views

“drift is too high” messages in VLC

Trying to pull an h264 stream and transcode via VLC, but video continues to cut out. When I tail the log for that stream I see a ton of messages stating "drift is too high, resetting master sync", ...
1
vote
1answer
217 views

ffmpeg save images with frame type

I'm trying to get the frames of a video file as images, together with tags that if the frame is a I, P or B frame. I know that ffmpeg can output only a specific type of frame using select For I-...
1
vote
0answers
156 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 ...
1
vote
0answers
288 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/...
1
vote
1answer
1k 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 ...
1
vote
1answer
115 views

Debugging H264 video issues in Firefox

I have a video stream encoded in H264 video format. The video stream is sent using RTP to the Kurento relay server. From Kurento it is sent to the browser using WebRTC. I adjusted the Kurento ...
-1
votes
1answer
96 views

Generate mpeg 4 file with specific format with h.264 codec

I need a specific format in my .mp4 video file: 1. Only I and P frames 2. Each P frame based on only the previous (temporally) I frame 3. An I frame every second or so Is it possible to generate ...
1
vote
0answers
112 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]: ...
0
votes
0answers
219 views

ffmpeg transcode HEVC to H.264 video and AAC audio always works in chrome but never in chromium

Here is my command ffmpeg -i test.mkv -c:v libx264 -c:a aac -movflags +faststart test.mp4 -hide_banner I've been trying to figure out the reason why higher profile H.264 media sometimes has problems ...
1
vote
1answer
725 views

gstreamer using h264 encoding with small video size

I need to record a video using my usb webcam in my linux based pc. I found gstreamer with h264 encoding for lower the cpu percentage. But i am new to gstreamer so i had errors when running some ...
3
votes
0answers
2k 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 ...
3
votes
1answer
1k views

Video encoded in FFmpeg using the libx264 codec won’t play back as expected on mobile devices

I'm currently on a project to grab an IP camera video and streaming it to a website. This camera is located in the beach, so the idea is to send the streaming signal to a server and from the server to ...
0
votes
1answer
639 views

When do you need to use the extension h264ify to force H264 Encoding, over YouTube's default VP9 Encoding?

There's an extension for Google Chrome and Mozilla Firefox called h264ify, the extension forces YouTube to use h264 encoding over VP9 and similar encodings. In 2019 is this still necessary? Most GPUs ...
1
vote
0answers
394 views

How to Encode or Decode 3D mvc Videos, Using ffmpeg/x264

1.I have downloaded a half SSB 3D video from YouTube. I want to extract 2 videos (Both Left & Right View Separately) from Source File. How can I do that? I intend to use ffmpeg or x264 libraries. ...
0
votes
1answer
709 views

ffmpeg h264_vaapi video encoding

it look like ffmpeg and h264_vaapi codec are broken in the newest version 4 because they don’t honor the -qp setting. -qp with any value don’t change the bitrate which is terrible high. Only setting ...
2
votes
1answer
1k 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 ...
0
votes
1answer
4k views

Most efficient way to re encode H.264 10-Bit to High profile or HEVC 10-Bit

For an odd reason my OLED TV can play HEVC 10-Bit files but only H.264 non-10-Bit. This output (video stream) from ffmpeg is played fine with HEVC 10-Bit: Stream #0:0: Video: hevc (Main 10), ...
3
votes
0answers
251 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 ...
2
votes
1answer
1k views

FFMPEG h.264 stream to VLC from raw YUV444 produces black screen and audio noise

I am piping raw YUV444 640x480 frames to ffmpeg from inside a C++ program using stdout (Pipe format: pipe<-Y<-U<-V whole frames each). ffmpeg encodes them using h.264 and streams the video ...
0
votes
1answer
109 views

Deinterlacing failed when encoding a file with h264

Tried using several different h264 encoders but all of them make it have this problem where there are horizontal glitches near movement. I tried using ffmpeg but couldn't figure out how to do it ...
1
vote
1answer
6k views

How to increase video's FPS and speed correctly with ffmpeg?

I have a 5 fps video with keyint 120 2.5 hours long that I want to speed up 6 times, making its fps=30 I did it with this command that I found somewhere on this website ffmpeg -i "...local_Record....
0
votes
1answer
69 views

Decode/encode 4:2:2 with a 4:2:0 decoder/encoder

Similar to Reinterpret AVC bitstream as HEVC. Some hardware codecs support 4:2:0 for 4k but not don't support 4:2:2 even for SD, with far less data. Can you trick a codec to encode 1920x1080 4:2:2 ...
1
vote
0answers
77 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 ...
0
votes
3answers
294 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 ...

1
2 3 4 5 6