hello guys,
I was just curious if there is a way to tell MPC-HC to always skip the last 30 seconds of a video?
I have a playlist of hundrets of videos and the last 30 seconds of each video is always an annoying commercial.
So it would be awesome if there would be ab easy way to skip those rather than going through the pain of re-encoding everything again.
thanks in advance for your help
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 6 of 6
Thread
-
-
Likely not.
But you don't need to re-encode, simply cut/remux with ffmpeg.
https://forum.videohelp.com/threads/398507-Top10-Commands-for-Lossless-Video-manipulat...eg-%28Guide%29
It's more complicated because ffmpeg doesn't have an endtrim command.
from https://superuser.com/questions/657492/cut-last-30-seconds-off-ends-of-videos-using-ff...le-in-windows:
Code:for i in *.mp4; do ffprobe -show_format -i "%i" REM get duration, then need to somehow subtract 30 seconds, and marry these two commands ffmpeg -ss 0 -i "$i" -t %duration% "${i%.mp4}-cut.mp4
-
thanks and this will work for all mp4 files in the folder automatically without me having to rename them or excecute for one file at the time? will try it out later
-
You need to read the linked superuser post and see if the provided bat files work.
It's quite easy to do manually with ffmpeg, but it's a bit tricky to automate because you need to know the duration of each file.
Maybe other tools have an endtrim command (mkvtoolnix / mkvmerge ?). -
if I have to insert the duration for then I would have to do it for each file individually which would take too much time. I was looking for a fast end trim solution which is able to process multiple files. As far as I know it also doesn't work in toolnix. You would have to select the keyframe for the cut on each file. Every file has a different duration. The only duration which is always the same is the lenghth of the commercial at the end of each clip.
thanks anyways for your effort, mate -
It's doable. it may or may not be simple to automate.
Similar Threads
-
MPC-HC How to Skip non audio files?
By mpcfun in forum Software PlayingReplies: 1Last Post: 1st Oct 2020, 02:48 -
Way to skip frames without cutting video?
By Travillion in forum EditingReplies: 7Last Post: 2nd Sep 2020, 01:45 -
ffmpeg cut off first 10 seconds of video then add intro 15 seconds in
By PeterWall in forum Newbie / General discussionsReplies: 2Last Post: 30th Jul 2020, 06:18 -
Video skip-muting-bookmark conversion files
By dlmassey in forum Latest Video NewsReplies: 0Last Post: 23rd Mar 2020, 20:12 -
Video stops playing after a few seconds
By PowerFalcon in forum Newbie / General discussionsReplies: 3Last Post: 12th Jun 2019, 19:33