Questions tagged [h.264]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

h264/hevc: non-integer frame rates

I'm having a hard time understanding how non-integer frame rates are implemented in h264 and hevc. For example, I just stepped through a 23.976fps video frame by frame using Shotcut, and looking at ...
user avatar
0 votes
0 answers
6 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 ...
user avatar
  • 101
0 votes
0 answers
61 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% ...
user avatar
  • 313
0 votes
1 answer
22 views

Idea validation - CRF's as a service

I was looking for validation for my startup idea. Please flag if this is off-topic. Idea: CRF's as a service - When encoding h.264 and libvpx videos, I tend to guess good Constant Rate Factors(CRF's) ...
user avatar
0 votes
0 answers
137 views

H264 AVC codec Baseline@L3.1 vs High@L4.2

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 : Baseline@L3.1 ...
user avatar
  • 313
0 votes
1 answer
53 views

How do I verify that the H264 video stream is encoded with a single slice per frame?

I'm a software tester and I need to test a certain requirement for a vehicle camera that I'm not sure on how to test. As in the title it's to verify that each frame is encoded with a single slice. ...
user avatar
  • 3
0 votes
0 answers
12 views

How can I export this video to 1242x2688 res with H.264 or any format?

So I'm trying to make a live wallpaper for my iPhone XS Max, made the clip and now I need to export it. But for some reason I clearly don't know, I can't change the resolution to the one I want, the ...
user avatar
  • 1
0 votes
0 answers
10 views

Packet loss in video steam - losing part of I frame

This is a bit of study question, looking for ways to work in RF environment with ~5% packet loss first question if for video configured for: Codec H265 Res 640x480 bit rate 300Kbps what is the ...
user avatar
  • 1
2 votes
1 answer
20 views

Concatenate H.264 raw but basic streams without reencoding or quality loss

How does one go about concatenating several H.264 raw streams into one without reencoding or quality loss? The streams lacked any advanced features and represented contuous recording. There is no ...
user avatar
  • 200
1 vote
1 answer
48 views

HEVC vs H264 video file size

I am doing some experiments on the file size of recorded videos in HEVC vs the ones recorded in H264 using a simple Android app that I developed. My impression was that videos recorded in HEVC should ...
user avatar
  • 313
0 votes
0 answers
24 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, ...
user avatar
  • 101
1 vote
0 answers
280 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....
user avatar
0 votes
0 answers
88 views

How to identify slice type from NAL unit in RTP?

I'm trying to understand how to identify NAL slice types in a H264 stream over RTP. I've found the following table of values for slice_type within the ITU standard. When I look into some RTP streams ...
user avatar
0 votes
0 answers
46 views

Change video codec when capturing video in Android

I trying to write a simple app in Android that captures video and then sends it over the network. Looking at the recorded videos on my device, apparently it uses H264 AVC1 by default. I know my ...
user avatar
  • 313
0 votes
0 answers
33 views

How does the bitrate option affect 2-pass h264 encoding?

I am trying to understand how 2-pass (h264) encoding works in more detail than "first pass analyzes, second pass encodes". Most tutorials I found online use the -b:v option on the first and ...
user avatar
  • 101
0 votes
0 answers
7 views

Adapt video recording and playback according to the device

We have a prototype that records video and shares it to other devices to play. How can we customize the video recording and playback experience, considering mobile vs. desktop and the bandwidth ...
user avatar
  • 313
0 votes
0 answers
49 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-...
user avatar
1 vote
0 answers
244 views

Fragmented MP4, speed up initial image (change fragmentation on-the-fly)

I need to remux a live stream from an RTSP container to framgented MP4. Video stream is a h264 baseline one. I can have a very good results with ffmpeg, however, I'm struggling with one key thing: I ...
user avatar
  • 121
2 votes
1 answer
209 views

How to get VLC like screen recording performance with FFmpeg?

I had initially used VLC to record the screen of computer using the following script: /Applications/VLC.app/Contents/MacOS/VLC -I rc screen:// --sout-keep --screen-fps=7.0 --screen-index=0 --sout #...
user avatar
  • 123
3 votes
0 answers
57 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 ...
user avatar
1 vote
0 answers
61 views

Why does a h264 encoded video recorded with HTML MediaRecorder on an Intel macbook not play on an m1 macbook with hardware acceleration enabled? [closed]

I've reproduced this issue in a simple sandbox: https://codesandbox.io/s/practical-driscoll-veyc2 (you'll have to open https://veyc2.csb.app/ in a new tab to have the screen recording functionality to ...
user avatar
  • 111
1 vote
0 answers
163 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: ...
user avatar
  • 121
0 votes
1 answer
54 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 ...
user avatar
2 votes
1 answer
2k views

ffmpeg vf scale shifts colors to washed out

Im trying to scale video down. No matter what I do the colors are always washed up as a result. original: After scaling: Code I run for it ffmpeg -i input.mkv -vf scale=1028:-1 output.mkv log: log ...
user avatar
  • 23
3 votes
1 answer
947 views

How to manage colour in After Effects to get precisely a desired colour in h264 output

I am working on a video for the web only. It is going to be on a webpage (never on broadcast), delivered as an h264 file. The web page background is hex code FFF1E5 (RGB 255, 241, 229). My background ...
user avatar
  • 6,398
3 votes
1 answer
1k views

Resuming a partially-completed encode with FFmpeg

Summary Given a partially completed encode that: Was encoded using h264 in the Matroska container Was cut short by manually stopping FFmpeg by typing 'q' in the console ...what are the ways to ...
user avatar
  • 181
0 votes
1 answer
385 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 ...
user avatar
0 votes
1 answer
4k views

Video artifact removal and restoration - How can it be done? (Really?)

I have been researching this for the past couple of days, and all I could find on the subject were a bunch of research papers, a demonstration video of a model that isn't publicly available, and a ...
user avatar
  • 11
0 votes
1 answer
41 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:...
user avatar
  • 101
2 votes
1 answer
524 views

Can ffmpeg calculate a new starting keyframe when being asked to split/copy on a non-keyframe?

I understand from a question here that keyframes can (and do) occur anywhere in an h.264 stream, so I'm wondering why most of the advice I see where users want to cut on a specific time or frame (that ...
user avatar
2 votes
1 answer
2k views

How to convert 10-bit H.265 videos to H.264 without losing quality

I have a MPEG-H Part2/HVEC (H.265) .mkv file (Planar 4:2:0 YUV 10-bit LE). Since my LG PF 1500 beamer does not read H.265 but H.264 I would like to convert it (HVEC -> H.264). I think handbrake is a ...
user avatar
  • 123
0 votes
0 answers
103 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 ...
user avatar
  • 101
1 vote
1 answer
67 views

Edit small portion of a compressed video without losing quality

I have a one hour h264-encoded video. The unedited footage can't be found. My goal is to edit a small portion of it. The scenario looks like this. I have to blur out some persons appearing let's say: ...
user avatar
0 votes
1 answer
221 views

ffmpeg with h264 produces smaller file sizes for veryfast preset

I am experimenting with ffmpeg and x264 codec. And I have found some unexpected behaviour. I am encoding video with parameters CRF 23, high profile and changing preset. Documentation says: for ...
user avatar
  • 111
4 votes
2 answers
4k views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
user avatar
  • 43
1 vote
3 answers
6k views

Is there a way to improve h264_nvenc output quality?

I'm compressing some videos for archiving, and I came to this configuration which gives me a nice overall quality on a small size: ffmpeg -threads 4 -y -hide_banner -i input.mp4 -vf scale=-2:480 -c:v ...
user avatar
2 votes
1 answer
3k views

Intra-frame H.264 / H.265 compared to DNxHR or Prores as intermediate codecs for editing

IMPORTANT: ISSUE SOLVED (STILL A COUPLE OF QUESTIONS, THOUGH), I POSTED SOME INFO BELOW THE ORIGINAL POST AS AN UPDATE IF SOMEONE FINDS THIS USEFUL: Quick question: what are the advantages of using ...
user avatar
0 votes
0 answers
955 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 ...
user avatar
1 vote
0 answers
152 views

Hardware Acceleration Compression (ffmpeg H264 .mov files)

I'm looking for a (preferably hardware) solution for quickly compressing ffmpeg H264 .mov files. The setup I have has several Edgertronic cameras that are controlled through an API (start, stop, ...
user avatar
  • 11
0 votes
1 answer
883 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/...
user avatar
0 votes
0 answers
25 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 ...
user avatar
1 vote
1 answer
384 views

Smallest Possible Video File in H.264 Format

I am writing some unit-tests for a software that does some work with videos. To do so, I need a programmatically generated video file that is both small and legitimate in that it is actually a ...
user avatar
1 vote
0 answers
208 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 ...
user avatar
  • 111
0 votes
0 answers
158 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. ...
user avatar
  • 101
1 vote
0 answers
407 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 ...
user avatar
0 votes
1 answer
203 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 ...
user avatar
  • 1
2 votes
0 answers
295 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 ...
user avatar
  • 121
1 vote
1 answer
8k views

h264 (Constrained Baseline)/(h264 (native) vs h264 (libx264)

I am recording a video using OBS Studio with the following settings: With these settings, OBS is consuming 55 to 60 MB storage for a minute long recording. Considering that my recordings span across ...
user avatar
  • 55
0 votes
1 answer
1k views

What happens if you uncheck key frame distance in Premiere Pro CS6

The default is 72 which is in frames I suppose. However what happens if I simply uncheck it? Does it work like AVC Intra where key frames doesnt exist and every pixel in every frame is processed like ...
user avatar
0 votes
2 answers
2k views

How to 2-pass h264 with CRF and maximum bitrate with ffmpeg?

Based on CRF Guide (Constant Rate Factor in x264, x265 and libvpx), quoting: Streaming nowadays is done a little more cleverly. YouTube or Netflix are using 2-pass or even 3-pass algorithms, ...
user avatar
  • 145