Make two videos exactly the same size

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
UncleWalter
New User
Posts: 1
Joined: Mon Nov 18, 2019 11:46 pm

Make two videos exactly the same size

Post by UncleWalter »

Description of problem or question:
There are any number of ways to make a video smaller, but for some reason I can't seem to find any that will let me make a video smaller by a certain amount of run time. One video runs 1hr 32m, the other 1hr 36m, and I'd like to have them play side-by-side both starting and ending at the same time (at least a lot less than a 4m difference). Yes, I understand that there are lots of parameters I can change to reduce the size of the 1h:36m video, but there doesn't seem to be a good way to control the shortening to go to a certain run time. (Or match the run time of a second video)
Perhaps I'm missing something very basic, but I can't seem to find a way to do what I'd like to do.




Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.3.0):




Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.

Woodstock
Veteran User
Posts: 3680
Joined: Tue Aug 27, 2013 6:39 am

Re: Make two videos exactly the same size

Post by Woodstock »

There is a SLIM chance you can trim a video exactly where you want in handbrake, but it depends on the video, and where your trim points are in relation to key frames. Very hit-and-miss.

What you're looking to do is more properly done in a video editor that allows you to view multiple video streams. The export from the editor will create a starting key frame even if the source doesn't have one where you want it.

mduell
Veteran User
Posts: 7151
Joined: Sat Apr 21, 2007 8:54 pm

Re: Make two videos exactly the same size

Post by mduell »

You should be able to get the difference down to a lot less than 4 minutes by using the point to point encoding options in HB. Pick the length you want encoded and HB will approximate it.

andrewk89
Regular User
Posts: 59
Joined: Thu Jun 13, 2013 4:29 pm

Re: Make two videos exactly the same size

Post by andrewk89 »

By "size" you mean seconds (length), not bytes????

Avidemux has time resolution down to individual frames. If the frames line up on keyframes, the cut can be lossless ("Copy" mode). If not, it has to transcode. HuffYUV is lossless (HUGE files). Maybe x264 with Quality=0 is, too. (The older 2.5 series, which you can still get, would do "Copy" mode between key frames by transcoding the frames between the start and first keyframe. Not technically lossless, but pretty darn close. They had to remove that capability in 2.6 to meet other goals.)

musicvid
Veteran User
Posts: 3610
Joined: Sat Jun 27, 2009 1:19 am

Re: Make two videos exactly the same size

Post by musicvid »

Download the trial of VideoRedo. That's what was made for -- frame accurate cuts without re-encoding, but with structural integrity.

There are other utilities, but gollies, how would we know what to suggest in absence of your required encode logs, which would at least tell us what kind of files you have, something you also neglected to do.

Please, if you care about your GOPs (and you should), avoid advice that relies on DOS commands, which is essentially crash editing.

Post Reply