Questions tagged [encoding]
The process and techniques used when storing moving images, sound, metadata and other streams as a digital file.
354
questions
0
votes
0
answers
8
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 ...
0
votes
0
answers
29
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 ...
0
votes
0
answers
16
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 ...
1
vote
1
answer
23
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 ...
1
vote
2
answers
30
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 ...
1
vote
1
answer
21
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 ...
0
votes
1
answer
23
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 &...
0
votes
0
answers
19
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 ...
0
votes
0
answers
10
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 ...
0
votes
0
answers
23
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 ...
1
vote
1
answer
153
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 ...
0
votes
0
answers
60
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 ...
0
votes
0
answers
34
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 ...
0
votes
1
answer
29
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....
0
votes
0
answers
26
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, ...
0
votes
0
answers
59
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 ...
0
votes
0
answers
208
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 ...
0
votes
2
answers
124
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 ...
0
votes
0
answers
7
views
Suitable codec and settings to encode videos that can be scrubbed back and forth for making transcripts
For scientific purpose, I'm encoding videos that are going to be transcripted. Since in the process of transcription the person who does the transcription needs constantly to jump back and forth in ...
1
vote
1
answer
537
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 '...
0
votes
0
answers
142
views
How output multiple stats file for multiple output?
I'm launching encoding ffmpeg using GPU with 2 outputs: one using H264_NVENC and one using HEVC_ENV.
To enable video stats output I'm putting -vstats before input file. To specify output of video ...
0
votes
0
answers
49
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 ...
0
votes
1
answer
78
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 ...
0
votes
1
answer
273
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.
...
2
votes
1
answer
172
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?
0
votes
1
answer
179
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 ...
0
votes
0
answers
18
views
Recording dozens of videostreams simultaneously - software & hardware stack advice required
I have a task to record multiple web-based (HLS) streams simultaneously; we're talking about ~20 streams with possible scaling to ~50 in the future. Each stream comes as an individual link, 1080p, no ...
0
votes
0
answers
44
views
ffmpeg demuxer file size
I have used ffmpeg to concatenate two MKV containers with both files having AV1 codec like so:
ffmpeg -f concat -i input.txt -c copy "out.mkv"
Interestingly enough, the first file has ...
0
votes
1
answer
33
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....
0
votes
0
answers
257
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 ...
0
votes
0
answers
629
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 ...
0
votes
0
answers
27
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 ...
0
votes
1
answer
150
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 ...
0
votes
1
answer
161
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
231
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 ...
1
vote
0
answers
418
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% ...
0
votes
1
answer
597
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. ...
1
vote
1
answer
278
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:
...
0
votes
0
answers
87
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 ...
1
vote
1
answer
34
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 ...
2
votes
1
answer
54
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 ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
261
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 ...
0
votes
0
answers
73
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, ...
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 ...
1
vote
1
answer
544
views
FFmpeg Optimized File Size Video Loop
I am attempting to create a video loop by merging a 15 second video with about 4 minutes of audio. After finding a similar question, I found a command that loops the input video for the length of the ...
2
votes
1
answer
173
views
Combining multiple commands to render out different formats, while also resyncing the original file, and not have to render that one out first
After recording a live show, there are several tasks I need to do before I can render out the video file to different formats. I need to trim the file, and then resync the audio as well. After this I ...
0
votes
0
answers
265
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-...
0
votes
1
answer
236
views
What x264 encoder is better for upscaling pixel art? Is it x264 8bit or 10bit?
I mostly use Virtualdub2 to upscale my videos (although I am looking for other methods) via two resize filters, Nearest Neighbor and Lanzcos3. Recently I am looking at the x264 encoder to encode my ...