VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Nov 2008
    Location
    Russian Federation
    Search Comp PM
    Hello, I have a problem

    I have like 1500 video files, in mpeg format

    I need to trim 2 minute fragments from very fist second of each video and save the files with same names in mpeg format

    How can I do that ? Is there any solution?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Try mencoder,
    Code:
    mencoder -ss 00:02:00 -ovc copy -oac copy source.mpg -o result.mpg
    Use -ss to set start position (and -endpos to set end position)

    and then if that works make a .bat file in the folder with all mpgs run it like

    Code:
    FOR %%F IN ("*.mpg") DO mencoder -ss 00:02:00 -ovc copy -oac copy %%F -o new-%%F

    see also https://forum.videohelp.com/topic346473.html

    edit: I see that you are in mac so the bat file wont work but there should be some similar methods for it also.
    Quote Quote  
  3. Member
    Join Date
    Nov 2008
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by Baldrick
    Try mencoder,
    Code:
    mencoder -ss 00:02:00 -ovc copy -oac copy source.mpg -o result.mpg
    Use -ss to set start position (and -endpos to set end position)

    and then if that works make a .bat file in the folder with all mpgs run it like

    Code:
    FOR %%F IN ("*.mpg") DO mencoder -ss 00:02:00 -ovc copy -oac copy %%F -o new-%%F

    see also https://forum.videohelp.com/topic346473.html

    edit: I see that you are in mac so the bat file wont work but there should be some similar methods for it also.
    Thanks! IN FACT, IT HELPED VERY MUCH!

    This is the final code for .bat file:

    Code:
    FOR %%F IN ("*.mpg") DO mencoder -ovc copy -oac copy -of mpeg -endpos 00:02:00 %%F -o done/%%F -mpegopts tsaf:vbitrate=5800:muxrate=7500 -noskip -mc 0
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Great! And thanks for posting the final working solution.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!