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:
but ffmpeg show many error like: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
so, play aa_final.mkv joined part snap for few seconds, then play correctlyCode:[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
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 ?
+ Reply to Thread
Results 1 to 3 of 3
-
-
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"
-
Similar Threads
-
ffmpeg IF .bat condition on channel count and language
By geextah_2 in forum Video ConversionReplies: 3Last Post: 18th Mar 2024, 06:04 -
Right way to join two different video files using ffmpeg?
By yetanotherlogin in forum EditingReplies: 15Last Post: 25th Jun 2021, 02:25 -
FFMpeg Auto output Name on .bat Script file
By Daringbaaz in forum Newbie / General discussionsReplies: 10Last Post: 6th Dec 2020, 08:44 -
ffmpeg in bat file
By windranger in forum Video ConversionReplies: 5Last Post: 25th Jul 2020, 02:27 -
ffmpeg bat to mux multible audio and video
By alkoon in forum Newbie / General discussionsReplies: 3Last Post: 5th Jun 2020, 11:20