All Questions
Tagged with ffmpeg compression
80
questions
0
votes
1
answer
341
views
Ffmpeg decompress xz/gz/zip in memory
I have a xz compressed y4m raw video file (sintel-4k.y4m.xz) and I would like to transcode it using ffmpeg, decompressing in memory. I do not have enough disk space to decompress the file to disc and ...
1
vote
0
answers
111
views
OBS settings for recording presentation (still screen) with mouse cursor in low size and good quality?
How could I reproduce these settings with OBS Studio FFmpeg recorder?
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42)
Format : AVC
Format profile : [email protected]
Format ...
0
votes
1
answer
156
views
Compressing an MTS file to MP4 gives error in QuickTime
I have a long video file that I want to trim, resize, and compress with H264:
ffmpeg -y -ss 1.2 -to 2:03.800 -i long.MTS -vcodec libx264 -vf scale=320:-1 -vb 500k short.mp4
The file plays in VLC and ...
0
votes
0
answers
901
views
Auto-Transcode/Compress .mkv to .mp4 on Qnap TS-251+
I rip my DVDs with MakeMKV in order to be able to watch them on my TV, as I do not have a DVD-player that supports any output connector that fit into my TV as the TV is relatively new whereas the DVD-...
1
vote
1
answer
543
views
Piping Unrar Output to FFMPEG
I have a password protected .rar file. It's large, so using unrar e large.rar is time consuming. Once extracted, the file will be large.avi
Then I have to do ffmpeg -i large.avi large.mp4
I was hoping ...
-1
votes
1
answer
1k
views
ffmpeg - losslessly compress upscaled video
I cannot seem to find a good answer to this. I have a video file, h264, 1280x720, 251.2 MB.
However the video is upscaled, the actual quality is 1024x576. And not just the numbers are different, there ...
1
vote
1
answer
609
views
ffmpeg add picture to audio without reduction in quality
I am trying to combine a picture and an audio file without any quality loss. I am currently using the following command:
ffmpeg -r 1 -loop 1 -i ./pic.JPG -i ./audio.wav -acodec copy -r 1 -shortest ...
69
votes
3
answers
73k
views
Why does preset "veryfast" in FFmpeg generate the most compressed file compared to all other presets?
The FFmpeg wiki says that the best compression rate is by preset "veryslow".
But when I am trying it with my video then preset veryfast provides the best compression in my case.
The following is the ...
0
votes
1
answer
885
views
FFMPEG, resize, watermark and compress a video
I can't quite combine a couple of commands in FFMPEG.
I'm trying to
Burn in an external subtitle file
map all other streams since the file contains many audio and subtitle tracks i don't wish to ...
1
vote
2
answers
3k
views
How can you decompress a videofile in ffmpeg?
Example 1:
ffmpeg -i input.avi -c:v libxvid output.mp4
The code that I get as output is:
ffmpeg -i input_1.avi -c:v libxvid output_1.mp4
ffmpeg version git-2020-02-16-8578433 Copyright (c) 2000-2020 ...
2
votes
1
answer
640
views
Is it possible to compress alpha and RGB channels of PNG sequence separately with FFmpeg?
Suppose I have a sequence of 32-bit (RGBa) PNG files. Is it possible to compress the RGB channel with one codec and the alpha channel with another? For example, if I had the RGB and alpha as separate ...
2
votes
1
answer
3k
views
Compressing Grayscale 8-bit PNG Sequences with ffmpeg
I typically deal with many high-resolution PNG sequences, many of which are RGB (24-bit) or entirely grayscale (8-bit). Because adjacent frames in the sequences are very similar, it is important that ...
0
votes
1
answer
1k
views
How to extract original images from a lossless compressed video which is composed from a sequence of images?
I am trying to compress a sequence of images using h.264 with ffmpeg.
ffmpeg -f image2 -r 5 -i ori/binary%03d.jpg -vcodec libx264 -preset veryslow a.mp4
ffmpeg -i a.mp4 -q 2 rec/output_%03d.jpg
but ...
6
votes
1
answer
8k
views
ffmpeg video compression: Desaturating colors / losing color information
I'm trying to compress some 4K videos (resolution: 3840x2160) that I've recorded with my Nexus 5X (running LineageOS).
My first attempt:
./ffmpeg -i VID_20190908_145514.mp4 -c:a copy -crf 23 -vf "...
3
votes
1
answer
2k
views
How to compress gif effectively to reduce size?
We use gifs for our blog extensively. We used to embed tenor nano gifs(90px height maintaining aspect ratio, used for GIF previews and shares on mobile) in it. Now we wanted to create our own gifs and ...