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
5 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, half of the video is from one video and ...
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
1 answer
2k views

ffmpeg showing "Thread message queue blocking" error while encoding (non real time)

Hope someone can help me. I'm using ffmpeg to extract the frames from an old video as images, batch enhancing and upscaling the images, then renecoding the images together with the original audio to a ...
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 ...
4 votes
2 answers
311 views

Free software for batch basic editing and down-sampling

I have a bunch of TV shows in HD that I want to down-sample to SD and at the same time strip out the titles and credits. Handbrake has great encoding and can handle batches, but I can't find a way to ...
0 votes
1 answer
3k views

How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?

I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable. The website is serving 2 M3U8 manifests: The first ...
0 votes
0 answers
9 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
1 answer
458 views

Adobe Media Encoder (Why is it not using all the available power)

System Spec: 16 core 3950x Nvidia rtx 3080 64gb of ram 1tb nvme 2tb ssd 4tb hdd Software AfterEffects - v17.5.1 (build 47) MediaEncoder - v14.7 (build 17) Problem: So I'm outputting a fairly complex ...
0 votes
1 answer
248 views

How to fix Encoding Overloaded in OBS Studio?

I want to record a programming tutorial with OBS Studio in 1080p 30FPS. I have never changed the encoder, the output format is MP4. Although my computer has very good hardware, I get Encoding ...
0 votes
1 answer
659 views

Which rate control algorithm best preserves quick movement?

I gathered the following rate control algorithms are commonly used when encoding modern video formats like h264, HEVC or VP9. With a constant quantizer (-qp in terms of ffmpeg) all frames are encoded ...
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 ...
5 votes
1 answer
2k views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
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
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
17 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
2 answers
3k views

FFMPEG: is it possible to offset output frames from a selection of specific frames?

I'm doing some ffmpeg (4.1.3) transcodings by extracting specific frames from the source, in this case, the source can be either a movie or an image sequence, all working fine with the following ...
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 ...
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 &...
1 vote
1 answer
22 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 ...
1 vote
1 answer
360 views

compare two video then cut the different

I have 2 video files with the same content, but coming from a different source. They have a slight difference in 'cut' and language dubbing, meaning one can be missing a shot compared to the other. I ...
0 votes
2 answers
539 views

Issues with transcoding to a MXF container

I'm new here, so hi to all :). I'm new to FFmpeg too, and I'm trying to transcode a HEVC file to a mxf file and I'm having some issues. The original file is a rip I made from a Bluray HDR movie a ...
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
627 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 ...
0 votes
1 answer
473 views

How can I change/reduce the bitrate of AVI files using Adobe Premiere Pro CC or other tools?

I'm using Eprime and Experiment Builder which requires files in AVI format (AVI-XVid). The files are quite small already (various 2 second clips under 1mb), but are still too large which crash the ...
1 vote
1 answer
587 views

Extract subtitles in time range using ffmpeg

I have original video (with subs) and cropped version of it (without subs). I need to add subtitles from original video into cropped in appropriate time range. I think the best way to do is: Extract ...
1 vote
2 answers
1k views

FFmpeg for m2t and Sony Bravia - not working

-f mp4 -c:v libx264 -preset veryslow -tune grain -profile:v high422 -flags +ildct+ilme I am preparing video to be streamed (DLNA) from my NAS to an older Sony Bravia. I have successfully created ...
4 votes
1 answer
669 views

How to fix the difference between duration of ffmpeg input and output?

I am trying to generate a video from a bunch of png images and audio using the command: /usr/bin/ffmpeg -y -framerate 30 -pattern_type glob -i 'images/*.png' -i audio.wav -c:v libx264 -b:v 0 -crf 18 -...
3 votes
1 answer
2k views

How to delete the very last frame of a video using ffmpeg / mencoder / transcode or any other?

I am trying to delete the very last frame of a video using ffmpeg / mencoder / transcode / or any other free linux application. Here is what I have so far, and it's only extracting it, it's not ...
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 ...
0 votes
1 answer
86 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:...
1 vote
1 answer
3k views

best way to publish low latency video on ffmpeg

I am trying to publish a stream of live video that need to get to the client side in under 3 sec in latency. I am using vMix to capture a 720p/50 stream from a camera, that by virtual camera letting ...
0 votes
0 answers
20 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
24 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
2 answers
129 views

FFMPEG 9600x1080 5 video

FFMPEG 9600x1080 5 video stitching outputs black video Hello everyone. I’m trying to merge 5 1920x1080 videos into a one big 9600x1080 clip. I’m using FFMPEG for it with the following script: ffmpeg -...
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 ...
9 votes
7 answers
113k views

How to force Adobe Media Encoder to use 100% CPU and memory?

On my machine, Adobe Media Encoder is very slow. It takes 12 hours to render 4 minutes of 1080p video for YouTube (the video is based on Adobe After Effects project with an original MOV file and four ...
0 votes
0 answers
212 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
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
1 answer
5k views

ffmpeg to convert .avi to .mp4 results in error: Could not find tag for codec dvvideo in stream #0, codec not currently supported in container

I'm trying to convert .avi files to .mp4 using ffmpeg, as lossless-ly as possible. I tried this command: ffmpeg -i filename.avi -c:v copy -c:a copy -y filename.mp4 and received this output: ...
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 ...
1 vote
0 answers
402 views

How to get ffmpeg/x264 to use same parameters as input?

I'm trying to accomplish a smart rendering workflow using ffmpeg/x264. In short, get ffmpeg to segment the input file. Locate the segment(s) with changes to be made. Re-encode altered segments with ...
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 ...
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 ...
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 ...
1 vote
1 answer
539 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
143 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
1 answer
274 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. ...

1
2 3 4 5
8