VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. i need to delete from my video aa.mkv (duration less than 1 hour) unwanted part from 00:01:00 to 00:05:00
    then i've make this bat file:
    Code:
    @echo off
    ffmpeg -ss 00:00:00 -to 00:01:00 -i "aa.mkv" -c copy "aa_cut_start.mkv"
    ffmpeg -ss 00:05:00 -to 01:00:00 -i "aa.mkv" -c copy "aa_cut_end.mkv"
    
    ffmpeg -i "concat:aa_cut_start.mkv|aa_cut_end.mkv" -c copy aa_final.mkv
    
    del "aa_cut_start.mkv"
    del "aa_cut_end.mkv"
    
    pause
    but ffmpeg show many error like:
    Code:
    [vost#0:0/copy @ 000000000280c840] Non-monotonic DTS; previous: 60083, current: 60042; changing to 60083. This may result in incorrect timestamps in the output file
    so, play aa_final.mkv joined part snap for few seconds, then play correctly
    joined aa_cut_start.mkv and aa_cut_end.mkv with amazing Clever FFmpeg Gui (thanks to ProWo) final file play without snap

    so, my command to joined files is wrong ? how to join fine ?
    Quote Quote  
  2. great. finally with some search on google, i've discover this wonderful explanation on stackoverflow.com and this solve my issue
    Code:
    (echo file 'aa_cut_start.mkv' & echo file 'aa_cut_end.mkv' )>list.txt
    
    ffmpeg -safe 0 -f concat -i list.txt -c copy aa_final.mkv
    
    del "aa_cut_start.mkv"
    del "aa_cut_end.mkv"
    del "list.txt"
    Quote Quote  
  3. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Originally Posted by whs912km View Post
    great. finally with some search on google, i've discover this wonderful explanation on stackoverflow.com and this solve my issue
    Code:
    (echo file 'aa_cut_start.mkv' & echo file 'aa_cut_end.mkv' )>list.txt
    
    ffmpeg -safe 0 -f concat -i list.txt -c copy aa_final.mkv
    
    del "aa_cut_start.mkv"
    del "aa_cut_end.mkv"
    del "list.txt"
    Remember that such a cut will only be made on keyframes.
    Quote Quote  



Similar Threads

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