Please detail your question or problem in as much detail as possible:
Need to remove X seconds from beginning and end of video, in bulk (many videos). I know I can do this via the GUI, one-by-one and add them to the queue, but is there an easier way, perhaps via commandline?
Tell us about your environment. What version of HandBrake? What version of Windows are you running. etc.
HandBrake 1.07, 640bit, W10.
Removing X seconds of video at beginning and end... in bulk
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.
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.
Re: Removing X seconds of video at beginning and end... in bulk
If the videos are all the same overall length, it is simple; you specify the offset to start with --start-at and how long to encode with --stop-at on the command line.
It's calculating those numbers that is a pain for random-length videos.
It's calculating those numbers that is a pain for random-length videos.
Re: Removing X seconds of video at beginning and end... in bulk
Unless I'm mistaken, I think --stop-at is not required when using --start-at.
Re: Removing X seconds of video at beginning and end... in bulk
They aren't the same overall length........ but that gives me a good enough start methinks.
Re: Removing X seconds of video at beginning and end... in bulk
Of course --stop-at isn't required if you're not cutting off the end. But to trim both ends, you do need the duration.
Personally, I wish the way it worked was the way people THINK it works, though; --stop-at is "how long to encode", not "where to stop" in the original.
Personally, I wish the way it worked was the way people THINK it works, though; --stop-at is "how long to encode", not "where to stop" in the original.
Re: Removing X seconds of video at beginning and end... in bulk
Ah, I missed beginning and end. Another way to do it would be to parse the duration in the script and act on it. Yet another would be to use an intermediate lossless file, do the beginning cut first and and cut on the intermediate.