Skip to main content

Questions tagged [encoding]

The process and techniques used when storing moving images, sound, metadata and other streams as a digital file.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Same FFmpeg command produces different Matroska MKV output file checksum

The following exemplary FFmpeg command takes an MP4 file, doesn't do any re-encoding, but simply writes the output to an MKV file: ffmpeg -i input.mp4 -c copy output.mkv If I run the same command ...
finefoot's user avatar
  • 141
0 votes
0 answers
17 views

Impact of reencoding an HEVC file: How much loss if I do it in two steps, vs. going directly to a lower bitrate?

My scenario is as follows: Working with large original 8K file, captured at 100Mb/sec with hvec (h265) codec The file was reencoded at 50Mb/sec for a reasonable balance between size and quality Now ...
Cahit's user avatar
  • 51
0 votes
0 answers
40 views

ffmpeg copy some audio streams and re-encode some audio streams

The Problem I have a mkv file that contains audio in a format that not all my devices support. To get full support, I want to copy that audio and convert it while retaining the original audio. Input: ...
not_anyone's user avatar
0 votes
0 answers
37 views

How to change resolution without compromising video quality using ffmpeg?

I'm trying to develop a simple video transcoding system. When you upload a video, After extracting the video and audio separately, I want to encode them at 360, 720, and 1080p resolutions respectively ...
blake banker's user avatar
-1 votes
1 answer
127 views

AV1 hardware encoding vs software encoding

This is not so much a hardware enquiry as academic curiosity. AV1 encoding is extremely resource demanding and using HW encoding can reduce encoding time considerably. However, a lot of people seem to ...
Arete's user avatar
  • 176
1 vote
1 answer
174 views

Setting the default subtitles

I managed to create the subtitle file, using different language with one single FFMPEG command: ffmpeg -y -loglevel "repeat+info" -i "file:Intervista.mp4" -i "file:...
Nicola Lepetit's user avatar
0 votes
1 answer
235 views

ffmpeg Config to Produce H.264 Constrained Baseline Profile

It all begins with Plex and appears to end at ffmpeg as the easiest possible solution. I love ffmpeg! I use Plex running on Linux to stream over home network to a Roku. I've used this for years ...
Dave Gutz's user avatar
0 votes
0 answers
30 views

How to stitch two videos side by side using ffmpeg?

I want to create a video that consists of same video encoded at 2 different quality levels, half of each stitched side by side. Basically, like this image, right half of the video is the right half of ...
angel_30's user avatar
  • 353
0 votes
0 answers
92 views

ffmpeg able to use cuda, Vulkan and opencl at the time?

I am using ffmpeg with a lot of filters. I am currently using one gpu for using cuda filters like overlay_cuda and the encoding with: -hwaccel_output_format cuda -hwaccel_device 3 -hwaccel cuda. I am ...
Michael Ciesielczyk's user avatar
0 votes
0 answers
31 views

How to crop iteratively and export new video in original resolution? (ffmpeg/cv2)

Let there exist some function process_frame that takes in the current frame from a video and crops it to some new dimensions X2 x Y2. This can be accomplished by slicing the frame to the new ...
Vlad's user avatar
  • 1
0 votes
0 answers
69 views

ffmpeg: preserve quality in trimmed video from a HEVC (h.265) source video

I've have some screen recorded video with OBS software using the video codec "NVIDIA NVENC HEVC" (which is h.265 via GPU hardware) using CQP level 17. Full encoder options in OBS were: The ...
40detectives's user avatar
1 vote
1 answer
48 views

Is smpte170m Color Space Compatible with 10 bit yuv420p10le? Color Space choice(x265)

I need to encode a smpte170m color space MPEG-2 ("mpeg2video") video to 10 bit x265 (libx265, with FFMPEG). Hoping to use yuv420p10le, but any suggestions are welcome. Source video is in ...
strider's user avatar
  • 11
1 vote
2 answers
96 views

Can I reencode losslessly from yuv422p10 to yuv444? Or into a different format?

I have a 10-bit XAVC-HS file encoded with yuv422p10le pixel format and would like to render it out of my NLE, but my GPU does not support this. It does, however, support yuv444p and yuv444p16. Can I ...
Betta George's user avatar
1 vote
1 answer
51 views

Should this audio file have ogg or opus as file name extension?

bash $ mediainfo myaudio.opus General Complete name : /Users/qaz/myaudio.opus Format : Ogg File size : 3.52 ...
qazwsx's user avatar
  • 133
0 votes
1 answer
52 views

After adding subtitles the second audio track gone

I have a video with 2 audio tracks. After using the following command line the other audio track is gone ffmpeg -i "movie.mkv" -i "subtitles.ass" -c:v copy -c:a copy -c:s copy &...
Natsu07's user avatar
0 votes
0 answers
31 views

libx265 set 1 i_frame per x seconds and force all other frames to be b_frames

I'm trying to compress my content while preserving quality. I'm measuring the quality using Netflix's VMAF. Only focusing on HEVC and tried different parameters available for libx265 such as crf, two ...
Purushottam Kumar's user avatar
0 votes
0 answers
16 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
0 answers
72 views

Jumping forward or backward in a .mp4 file takes a long time in VLC

Recently, I randomly played around a bit with the video encoder settings of my OBS Studio (29.1.2) and recorded a video playing in the browser. In this particular video (recorded with some settings I ...
pSycHEdELia's user avatar
1 vote
1 answer
321 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
0 votes
0 answers
82 views

unable to record desktop using latest gstreamer in ubuntu 22.04

I can broadcast my desktop to a rtmp server successfully using gst-launch-1.0 ximagesrc use-damage=0 show-pointer=false ! video/x-raw,framerate=30/1 ! videoconvert ! queue ! x264enc ! queue ! flvmux ...
tapas kundu's user avatar
0 votes
0 answers
41 views

Replace MP4 I-Frames with a placeholder

I have an MP4 file which I want to manipulate on a hex basis, without re-encoding. More specifically I want to replace the I-Frames of the MP4 file with a kind of placeholder code. What I want to do ...
kavofa's user avatar
  • 1
0 votes
1 answer
41 views

Handbrake Output Visually Freezes on Interstitial

I downloaded an m3u8 stream using a Chrome plugin, and it created an mp4 file which I can play fully in VLC. Next, I am attempting to use Handbrake to encode this file to be played on an old iPod Nano....
Matt Mc's user avatar
  • 101
0 votes
0 answers
34 views

Why is my rendered video output larger than imported files?

I have imported multiple video files (roughly 3h30min / roughly 11GB). I have stripped out the Audio and reduced my total cuts to roughly 2m12sec. I have tried multiple render video output formats, ...
Mark's user avatar
  • 1
0 votes
0 answers
71 views

FFprobe not showing frames data

As a beginner I don't know much about ffprobe and other video editing command line tools. Please guide me here. I am trying to download a video with yt-dlp and trim it to the nearest key-frame of my ...
Aniket Bose's user avatar
0 votes
0 answers
326 views

FFmpeg recover_mp4 help

ive been using ffmpeg and recover mp4 to try and restore a dashcam video from a car accident. im a beginner using this method/ software and im running into this issue. not sure how to "increase ...
taylor thomas's user avatar
0 votes
2 answers
190 views

ffmpeg max resolution surpassed

I'm creating a sprite sheet for my website which will be used as an animated background mask on a button hover. The only issue I'm having is creating the sprite sheet mask I have 297 720p images I ...
InterPixel's user avatar
1 vote
1 answer
837 views

Can you fix videos with "error: more than 5 seconds of late video" without re-encoding with ffmpeg?

I have obtained a video, ffprobe for it shows: $ ffprobe test-000000.mp4 ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers ... Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...
sdbbs's user avatar
  • 141
0 votes
0 answers
58 views

Why, in FFmpeg with libx265 the timestamp tbn parameter is always 1k even when it seems not logical?

I encode with ffmpeg and noticed that when I encode a y4m video in 29,97 FPS into a h265 video with libx265, the parameter of the two videos are the following : original y4m : 29.97 fps, tbc : 29.97 ...
Nils Beaussé's user avatar
0 votes
1 answer
107 views

Encoding to the same H.264 size as YouTube

I am unable to re-encode an H.264 video that I downloaded from Youtube back to its original size. The MediaInfo is pasted below. The size of the video stream is 20 MB. I decoded the video into raw YUV ...
er0's user avatar
  • 111
0 votes
1 answer
574 views

How to re-encode leaving only every Nth frame in?

I have several hours of CCTV footage that I'd like to reasonably quickly skim. If there was a way to take every say 60th frame from it and put together a video from those frames that would be perfect. ...
Greendrake's user avatar
2 votes
1 answer
259 views

How to know which ffmpeg encoders are hardware accelerated?

On any given build of ffmpeg, ffmpeg -encoders will list which encoders can be used for encoding video. Of the encoders listed, how can I tell which ones use hardware acceleration?
Running Man's user avatar
0 votes
1 answer
230 views

Understanding YouTube Video Color

When I upload a video to YouTube, the white areas become grey and the colors seem a bit washed out. This is how it looks locally: And this is how it looks on YouTube (Screenshot from Firefox): This ...
AyCe's user avatar
  • 101
0 votes
1 answer
45 views

Different decode performance in two similar H.264 videos

I have two, at first glance very similar mp4 files (A & B), each of them created by different capture software. File Captured using codec resolution fps bitrate A.mp4 Elgato 4K Capture Utility h....
Wilhelm Olejnik's user avatar
0 votes
0 answers
308 views

Issues in trimming a video with FFmpeg

I have a .webm video captured through a web browser. Using ffmpeg, I want to trim it into its first 30s without re-encoding and quality degradation. But I have issues doing it and ffmpeg complains ...
angel_30's user avatar
  • 353
0 votes
0 answers
791 views

Export a video to 4k or 2k with FFMPEG and without lag (UPSCALE VIDEO)

how do I upscale a video to 4k or 2k with ffmpeg? youtube encodes the videos which results in some quality loss of the video. So to make youtube use VP09 encoder on my videos, I have to export the ...
siduck's user avatar
  • 23
0 votes
0 answers
41 views

Sony PXW-Z280V AVC strange Long GOP pattern

I have video shot using a Sony PXW-Z280V using AVC_3840_2160_HP@L51 with 29.97 frame rate. Upon analyzing the MXF file structure, I notice that the Index Entry Array seems incorrect. In particular the ...
swami's user avatar
  • 101
0 votes
1 answer
191 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 ...
ACz's user avatar
  • 103
0 votes
1 answer
187 views

Suitable alternative to Quicktime RLE for alpha-containing non-cartoon videos?

I'm producing a product that involves a composition of several videos, over alpha layers, and there are surprisingly few options aside from image lists. Quicktime's RLE (Run-Length Encoding) codec ...
Michael Macha's user avatar
1 vote
1 answer
2k views

Parallel throughput of Intel QuickSync (QSV) for real time streams

I'm using Intel QuickSync to lower CPU loading of real time video transcode with FFmpeg. Specifically, qsv is used to deinterlace and decode the input video. A special HW module is used for the ...
Danny's user avatar
  • 115
0 votes
1 answer
318 views

How can I build a MOV (QT-rle) file with minimal unnecessary features?

I understand that my title requires further specification, so allow me to elaborate. I recently finished a model in Blender and rendered 1000 frames to PNG with alpha. The total size was roughly 2 GB ...
Michael Macha's user avatar
1 vote
0 answers
433 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
0 votes
1 answer
752 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. ...
Bivas's user avatar
  • 3
1 vote
1 answer
304 views

How to move all video files with mp3 audio?

My folder has some video files with mp3 audio and some video files with aac audio. I want to move all files which have mp3 audio to another folder. When I asked my friend, he gave me this script: ...
Kalyani's user avatar
  • 25
0 votes
0 answers
97 views

FFMPEG: Why can't I work in frames instead of HH:MM:SS?

I have a video-only stream that I removed the audio from without re-encoding. The video information is as follows. hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608 Frame ...
user69136's user avatar
1 vote
1 answer
35 views

Possible reasons of choppy video

I have a very specific goal: there is a device which is advertised to be able to playback my own media files from USB-pendrive, and I'm intended to do so. Further details are not disclosed about ...
Daniel's user avatar
  • 111
2 votes
1 answer
58 views

What is the anatomy of a video file? [closed]

I am creating a software related to video editing. So, I need to understand what is a video file, how is it created and how does it work? One thing that I want to achieve is: I want to be able to add ...
Dron Bhattacharya's user avatar
1 vote
1 answer
2k views

Encode still image video effectively in FFMPEG

FFMPEG can make video from MP3 file and still image: ffmpeg.exe -loop 1 -i "img.png" -i "%1" -c:v libx264 -tune stillimage -shortest "%1.mp4" But it honestly encodes the ...
Paul's user avatar
  • 113
1 vote
1 answer
314 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 ...
angel_30's user avatar
  • 353
0 votes
0 answers
78 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
12 votes
1 answer
6k views

How is this .mp4 file 596523 hours long?

I came across this joke mp4 file online. (Warning: direct download link to an 8 mb file.) Media players as well as ffmpeg both list the file as having a length of 596523:14:07.00 (!). My first guess ...
margalo's user avatar
  • 223

1
2 3 4 5
8