Hello.
I have several videos rendered in 2 pass x264 that include still images shown for a long time (a background for audio). Is it possible to reduce video size while not affecting the quality (re-encoding) of the rest movie?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
x264 only codes difference to previous pictures so these are compressed very well already if they are shown for less than the keyframe interval (--keyint). If these span over a number of GOPs you could delete every repeating GOP (except one) and write a timecode file (for e.g. mkvmerge muxer) to extend the time of said GOP. But it's complicated and may not be worth it. Also, you can't expect all players to play and/seek properly.
-
There are several moments in a video with same still image (some of them overlapped by another image for a short - several seconds to several minutes - period of time) but different length. They can last 30 mins to 1+ hour. I have mkvtoolnix but don't know how to do difficult operations (like directly editing video stream in it) other than muxing/demuxing. Player support doesn't matter if VLC/MPC supports it.
Does mkv support several streams to be played in an order in a file seamlessly? If so, I can choose another codec for still image parts.Last edited by Mavrodi; 23rd Nov 2016 at 13:48.
-
Teaching you is too much work, sorry. Needs understanding of variable framerate and other basics. Maybe someone else can point you to a tutorial or sth.
Next time try --keyint infinite and/or reduce framerate when you are encoding only stills. -
It works with segment linking to some extend. If you already know how to split, re-encode certain parts and re-append you should be able to do it. Just re-encode the still parts using --keyint infinite. Then try re-appending. If re-appending produces errors try re-appending using ffmpeg cancat demuxer or use mkv segment linking.
-
Thinking about it, doing VFR is not so complicated. Just needs several splitting operations.
1. Split file into parts with still image (each image as separate file) and those without.
2. Then on all parts with still image:
- De-select audio track and split off only e.g. 1 frame
- re-merge with audio
(so only 1 GOP video with old audio)
3. Then re-append all parts
No deep knowledge required. Can all be done using MKVToolNix GUI. -
Try CRF instead of 2pass VBR, because maybe you set average bitrate too high and encoder forces a ceratain bitrate to those image areas even if it is not needed.
Similar Threads
-
x264 Mediainfo to MeGUI x264 Settings
By Arugen in forum Video ConversionReplies: 2Last Post: 13th Aug 2015, 02:14 -
x264 avi to x264 mkv
By deadman36g in forum Video ConversionReplies: 3Last Post: 17th Sep 2013, 11:13 -
show x264 command line output when using megui as x264 gui
By codemaster in forum Video ConversionReplies: 4Last Post: 12th Mar 2013, 11:35 -
Xvid vs x264 -- Bit Rate: 1900 kbps -- Same quality but smaller x264 file?
By kingaddi in forum DVD RippingReplies: 17Last Post: 2nd Sep 2012, 12:45 -
x264 Mediainfo to MeGUI x264 Settings
By shagratt71 in forum Video ConversionReplies: 0Last Post: 1st Jan 2012, 05:59