Skip to main content

Questions tagged [h.264]

The tag has no usage guidance.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
1 answer
4k views

In FFMPEG's H.265 encoder, which CRF value leads to "visually lossless" results?

I am trying to shrink some videos from 1920x1080 to 1280x720 and to achieve a reasonable compromise between video quality and file size. I have decided to give FFMPEG's H.265 encoder a try, and now ...
Binarus's user avatar
  • 141
3 votes
0 answers
81 views

editing video (overlaying text) using AVfoundation is resulting weird behaviour in video

Whenever I move the pointer you can see video getting weird pixelation. Complete video showing how it behaves in quicktime player: https://jmp.sh/TMaknmp I am just applying overlay using ...
n.arrow001's user avatar
2 votes
0 answers
1k views

Copy timecode from SEI Picture Timing to MXF Timecode Stream with FFmpeg

I am receiving an HEVC encoded live stream that contains SMPTE 12-1 timecode in the SEI picture timing, as it is recommended in ITU-T Rec-H.265-202108 Annex D.3.3 Picture timing SEI message semantics....
chris-kuhr's user avatar
2 votes
0 answers
481 views

Efficiently compressing a looping video with h264

I have a video that is initially 19 frames long and lasts for about 0.5 seconds, it's 432kB. I've looped it over three minutes and the resulting file is quite large (200MB). Using FFMPEG is there a ...
Baa's user avatar
  • 121
1 vote
1 answer
380 views

How to encode scenes with different CRF into a H.264 MP4 video with a variable frame rate?

Source Material Having many scenes which essentially are still frames (for many seconds) Commonly found in: Slideshows, Screen Recording or Software Mockup/Prototype ✅ This kind of source material ...
porg's user avatar
  • 151
1 vote
1 answer
214 views

ffmpeg h264 to mp4 conversion from multiple files fails to preserve in-sequence resolution changes

This will be a long post, so I thank you in advance for your patience in digesting it. Context I have different sources that generate visual content that eventually need to be all composed into a ...
LB2's user avatar
  • 111
1 vote
0 answers
439 views

FFmpeg 5.0 vs 3.4 performance

I was trying to compare ffmpeg 5.0 vs version 3.4.6 in how much performance improvements I would get while transcoding a simple 720p video into a H264 video. On my laptop, I noticed around 5-10% ...
angel_30's user avatar
  • 353
1 vote
0 answers
414 views

VLC doesn't play mp4v video converted with VLC to h264/h265

VLC reports the original video as: Codec: MPEG-4 Video (mp4v) Video resolution: 8192x8192 Frame rate: 7.549296 I am using the Convert / Save option to convert the video using the following profile: ...
Greg's user avatar
  • 121
1 vote
0 answers
419 views

How to calculate video file size for H.264

I need to estimate disk usage for a media project. In order to do that I need to calculate typical file sizes for different video duration and resolution. Example: Given a video with the properties ...
kev's user avatar
  • 111
1 vote
1 answer
340 views

h264 compression keeps same number of frames?

I'm trying to understand how h.264 compression works. So far I have clear what I, P, and B frames are and how are they used. But I'm unsure of is if after this process the number of original input ...
pplur's user avatar
  • 11
1 vote
0 answers
2k views

AMD support for ffmpeg? Can't get my dedicated GPU to work

I'd like to ask for your advice. Recently I got refurbished Dell Latitude E6540 with two GPUs: integrated Intel HD Graphics 4600 and external AMD Radeon HD 8790M: 00:02.0 VGA compatible controller: ...
stalker's user avatar
  • 21
1 vote
0 answers
1k views

ffmpeg convert H264 CFR + timestamps to VFR

I have a H264 video source that was recorded with variable framerate (VFR) and a text file with frame ID, timestamp pairs that looks like this: frameId,timestamp 1890413473,13792093 1890413474,...
Phoenix's user avatar
  • 111
1 vote
2 answers
12k views

Does Youtube accept 10bit uploads? If so, what codec should I use?

I am launching a series of videos to Youtube. These videos have a black background and lots of colored gradient changes. 4k, 60fps. Unfortunately this picture style is causing terrible banding ...
T1000's user avatar
  • 111
1 vote
1 answer
4k views

ffmpeg rtsp over http not working

I put this conf on ffserver HTTPPort 1234 RTSPPort 1235 <Stream live.h264> Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 24 VideoBitRate 100 VideoSize 480x272 AVOptionVideo flags ...
kooli's user avatar
  • 11
1 vote
0 answers
4k views

How can I repair a video file that became corrupt after a settings change during recording?

During a recent talk, I used a pass-through screen capture device to record a laptop's output to a projector. The capture went perfectly until about an hour into the talk, when the speaker switched ...
Arthur A. Gleckler's user avatar
1 vote
0 answers
227 views

Best possible quality setting for screen recording (not games) and web presentation

Screen videos have text and simple geometric shapes, which need to stay sharp, detailed and crispy. The color should also remain untouched. With screen grabs, I want e.g. IBM blue to show as IBM blue ...
MirekE's user avatar
  • 111
1 vote
0 answers
362 views

1080p videos encoded in H264 are not playing in Safari

I'm doing HTTP live streaming of 1080p video encoded in H264 with Main profile level 4.1. However Safari is unable to play the video. I can only hear the audio. The streaming is working fine with ...
adityav's user avatar
  • 141
1 vote
0 answers
2k views

gain the highest quality with H264 at a certain bit rate

I have encoded my videos using ffmpeg and H264, and this is my ffmpeg command (2 pass encoding): ffmpeg -y -i Edited\ Clips/arsenalVScristalPalas.mp4 -movflags faststart -c:v libx264 -x264opts '...
evan's user avatar
  • 21
1 vote
0 answers
741 views

ffmpeg H264 mp4 and AVCHD avc1 vs HDPR?

I am running the following command to get the stream data for mp4 and AVCHD video files. My goal is to understand the differences if any between the video streams. I used a JVC camcorder for the test. ...
Tim Turner's user avatar
1 vote
0 answers
961 views

MPC-HC is altering the colors

In order to test a lossless recording system, I have to verify that the input video is exactly the same than the output video. As a test source I have generated an ffmpeg's testsrc pattern, which is ...
RawBean's user avatar
  • 163
1 vote
0 answers
414 views

Losing audio in re-encoding with ffmpeg

I have some DVDs I want to save MP4s from. The video files are VOB files. I can play them if I change the extension to .mp4, but I can't use the seek bar in Windows Media Player. Also, the files are ...
abalter's user avatar
  • 145
1 vote
0 answers
2k views

Switching between H.264 video streams on the fly?

I have several H.264 encoded MP4 files, as well as still images. From these I want to generate a single video stream that I can broadcast. The stream will be composed of alternating still images and ...
feklee's user avatar
  • 131
0 votes
0 answers
27 views

Processing h264 video/audio stream

I have separate raw audio and video frames from a camera that I'm trying to merge to a single file. Video processing I have JVT NAL sequence, H.264 video, main @ L 31 data, I had the frames separated ...
Dinamo's user avatar
  • 1
0 votes
0 answers
189 views

Ffmpeg outputting empty mp4 files for video concatenation command

When I run the following Ffmpeg command it produces empty mp4 files as an output. The command takes segments of a video as inputs, crops each input at particular locations, and then concatenates them :...
nonsequiter's user avatar
0 votes
0 answers
24 views

Converting with ffmpeg a bunch of webinars that contains a lot of slides (still images) aside a webcam speaker/lecturer

I screen recorded a lot of webinars that now I have to compress in order to have less space occupied. The content of this webinars are mostly persons talking like in zoom, few pixels of them in webcam ...
user3450548's user avatar
  • 1,720
0 votes
0 answers
83 views

Synchronize 2 IP camera RTSP Streams

So we have 2 IP camera RTSP streams that we are saving to disk. At some point we stop the recording on both streams and go back to N frames in each video. The problem that we are facing is that the ...
Marib Sultan's user avatar
0 votes
0 answers
18 views

Best mac processor for single core processing, video editing performance

I've been searching around for a way to improve my editing experience as an editor on Premiere Pro. I have a 6-core Mac Pro, with 64GB graphics, but I'm a long form documentary editor, I don't care ...
James Stephen Brown's user avatar
0 votes
0 answers
23 views

Which will have better quality, an H.264 encoded video with higher bitrate or an H.265 with lower bitrate?

I got a cheap action camera that allows me to choose the encoding of the video being recorded between H.264 and H.265. When I set it to H.264, the video's bitrate is set to around 10,000+ kbps. When I ...
user9564371's user avatar
0 votes
1 answer
128 views

Why do different libx264 encoding presets yield different H264 profiles? For same video: Same source, same target dimension + framerate + CRF

Original Issue ffmpeg -i macos-sreenrecording-2560x1600-h264-FPS60.mov -movflags faststart -an -c:v libx264 -crf 18 -preset veryslow 2560x1600-CR18-FPS60.mp4 Yields an MP4 with H.264 at High@L6 (aka ...
porg's user avatar
  • 151
0 votes
0 answers
202 views

FFMPEG Trying to make a 8K 30 FPS MP4 video out of several hundred 8K PNG images

I have been trying to make an 8K MP4 video @ 30 FPS out of a few hundred 8K PNG images using FFMPEG since forever, but to no avail. The PNG images are serially numbered, starting from 000000 and going ...
edeafeam's user avatar
0 votes
1 answer
73 views

What improvements can I make to my FFMPEG script?

I am trying to create an FFMPEG script for some of my emulated game captures. I normally use Virtualdub2 (formerly Virtualdubmod) to upscale and trim my game captures for YouTube. With my laptop gone ...
GAP's user avatar
  • 51
0 votes
0 answers
178 views

Converting MTS to MP4 gives strange artefacts

I am converting video taken with various personal cameras in .MTS format to mp4 in order to reduce the file size. I am getting some strange artefacts and I wonder what simple mistake I am making? ...
beneix's user avatar
  • 1
0 votes
0 answers
12 views

How can I make a smaller video when it has limited unique frames?

I'm currently editing a podcast that is mainly audio with only three unique images shown on screen. However, using h264 encoding gives me a massive file, how can I leverage the limited number of ...
Connor's user avatar
  • 123
0 votes
0 answers
2k views

H264 AVC codec [email protected] vs [email protected]

When I convert a video with ffmpeg, and use mediaInfo to review the metadata, I see the followings for the video codec: Format : AVC Format/Info : Advanced Video Codec Format profile : [email protected] ...
angel_30's user avatar
  • 353
0 votes
0 answers
84 views

Pillarboxing AVC/h.264 video with minimal re-encoding?

I have 1440x1080 AVC/h.264 video that should be displayed with a 4:3 aspect ratio (which would correspond to square pixels). I'd like to burn it to a Blu-ray disc to be playable in Blu-ray players, ...
jamesdlin's user avatar
  • 101
0 votes
0 answers
340 views

ffmpeg libx264 core 157 vs core 164

For a while I have been using a build of ffmpeg from 2019: ffmpeg version N-94150-g231d0c819f Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.1.1 (GCC) 20190621 configuration: --enable-...
EllipticalInitial's user avatar
0 votes
1 answer
84 views

h264 Settings for Motion Tracking & Analysis (technical photography)?

I'm trying to do "scientific" video motion analysis. Right now I'm using a Raspberry Pi camera, which records natively in h264, which then needs to be converted/wrapped as MP4. Is h264 an ...
float13's user avatar
0 votes
1 answer
665 views

ffmpeg - Slow down video and loop/repeat audio

I am trying to use ffmpeg to slow down a video speed by 25% (75% speed) without changing the audio speed. ffmpeg -i input_video.mkv -filter:v "setpts=1.3*PTS" "SlowVideo25.mp4" On ...
user1534235's user avatar
0 votes
1 answer
116 views

Do modern devices support decoding 4:4:4 pixel formats?

I am recording and distributing relatively low motion screen content (not games). Using h264, fine text often appears very blurry due to the poor subsampling with 4:2:0 and 4:2:2 pixel formats. With 4:...
caesay's user avatar
  • 101
0 votes
0 answers
324 views

How do I get Windows Media Player and other tools that depend on system codecs to play this video file?

I have a video file that plays fine in VLC, but only shows 100% black frames in Windows Media Player, and in other applications that depend on system codecs (for example in MATLAB, which is where I ...
Brionius's user avatar
  • 101
0 votes
0 answers
1k views

FFmpeg: DNxHR 444 10 bits transcoding issue (HDR project). SMPTE2084 unsupported?

I have a couple of questions regarding intra-frame codecs for editing purposes (in Premiere Pro). UPDATE (01/24/20). More details of the original issue after this: I seem to have encountered a dead ...
Raulo1985's user avatar
0 votes
1 answer
957 views

FFmpeg raspberry pi OMX hardware encoder with inline_headers enabled = Increasing latency over the time

I managed to enable inline header on the OMX H.264 hardware encoder. inline header(SPS/PPS) are mandatory to play an already launched stream. https://github.com/Serveurperso/FFmpeg/commit/...
Serveurperso's user avatar
0 votes
0 answers
26 views

Video not playing in mac

I use a OnePlus 6 mobile for recording videos and so far I have never transferred the video to my Macbook Pro, however, I recently copied all my videos to learn video editing. All videos play ...
Sivasankar's user avatar
0 votes
0 answers
203 views

No Maximum Bitrate H264 codec

I am trying to export a video with a low bitrate. Regardless of what I set as the target bitrate, the video always is exported with the highest possible bitrate. This occurs whether I use VBR or CBR. ...
Sidereal's user avatar
  • 101
0 votes
0 answers
591 views

ffmpeg ProRes to MP4 Alters Colors Slightly

I cannot for the life of me figure out what is going wrong, but I have a ProRes MOV file with the following specifications: And I want to convert it to a 4:2:0 MP4 video file. Every time I attempt ...
EllipticalInitial's user avatar
0 votes
1 answer
905 views

H.264 video packet duration missing

I have H.264 files that, when I run FFprobe on them, like this: ffprobe -i h264_file.ts -show_packets -select_streams v ...it shows that each video packet has no values for duration, and no value ...
George Mari's user avatar
0 votes
0 answers
607 views

Reencode MKV (from DVD - Mpeg2) to h264

I have some old DVD that I already converted using MakeMKV, they seems to have the original mpeg stream, so I want to do this: Reencode the video stream to the more recommended settings for old-DVD ...
Braian's user avatar
  • 11
0 votes
1 answer
309 views

Premiere Pro export black screen on mobile, just audio

I exported a 9:16 video (vertical, for Instagram stories) from Premiere Pro 2018, encoded with H.264 and AAC audio, VBR 2 pass. However, the video shows nothing but black screen on both my Samsung ...
Alexander Starbuck's user avatar
0 votes
0 answers
2k views

Help decoding video from hardware encoder

I obtained this video from directly reading the memory of a hardware encoder. The encoder supposedly produces a HEVC (H.265) or H.264 video stream, but I can't accurately play or convert the file with ...
Telmo Marques's user avatar
0 votes
0 answers
324 views

Reduce CPU usage when downscaling HD>SD>Low on the same codec (H264)

I'm using ffmpeg over 3 years now mainly I'm doing live broadcasting on my site , currently I'm preparing to do 5 livebroadcast on the same time using my VPS server CPU E3-1240 v5 OpenVZ Since I'm ...
Salem F's user avatar
  • 131