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
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 ...
0 votes
1 answer
58 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 &...
2 votes
1 answer
282 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
63 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 ...
0 votes
1 answer
37 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 ...
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 ...
1 vote
0 answers
10 views

How can I convert H.264 to NTSC for analog video transmission?

For a UAV project we're using an Nvidia Jetson Nano as our mission computer on a fixed wing for object recognition purposes and we agreed that analog video transmission, widely popular with fpv drones,...
0 votes
1 answer
495 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
731 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 ...
0 votes
0 answers
27 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 ...
0 votes
1 answer
273 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
115 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
4k 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 ...
2 votes
1 answer
4k 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 ...
1 vote
1 answer
377 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 ...
4 votes
2 answers
317 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
1 answer
494 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
255 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
0 answers
93 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: ...
0 votes
1 answer
780 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 ...
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
48 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....
-1 votes
1 answer
268 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 ...
7 votes
2 answers
4k 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 ...
3 votes
1 answer
404 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
620 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 ...
3 votes
1 answer
301 views

MPEG - the maximum range for R,G,B?

There are sentences: For analog video or MPEG (including DVD) output, the maximum range for R,G,B is [16, 235] (8-bit). For YUV, the maximum range for intensity (Y) is [16, 235] (8-bit). Is this ...
1 vote
1 answer
298 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:...
4 votes
1 answer
864 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 -...
4 votes
3 answers
3k views

What is the correct MPEG-2 FourCC?

In my attempts to encode a video to MPEG-2 in an MOV (which seems to be a valid combination, at least according to Wikipedia), using ffmpeg (-vcodec mpeg2video) and other tools, I have become ...
0 votes
1 answer
424 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 ...
0 votes
0 answers
40 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 ...
1 vote
2 answers
143 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 ...
0 votes
0 answers
115 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 ...
12 votes
1 answer
7k 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 ...
0 votes
0 answers
32 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
79 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
57 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
1 answer
63 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 ...
4 votes
1 answer
3k 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
0 answers
38 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
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 ...
0 votes
0 answers
79 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
136 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 -...
9 votes
7 answers
114k 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
340 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
1 answer
6k 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: ...

1
2 3 4 5
8