MANUALLY
Open the file in a media player that will frame by frame advance and play an AVISynth file with data such as:
DirectShowSource(("C:\Downloads\Video\Do you want him.flv"), Pixel_Type="yuy2").Crop(0,0,-0,-0)
Subtitle("C:\Downloads\Video\Do you want him.flv", font="Arial", size=24, text_color=$ff0000, align=3)
ShowFrameNumber(scroll=true, x=336, y=27, font="Arial", size=24, text_color=$ff0000)
ShowTime(x=398, y=44, font="Arial", size=24, text_color=$ff0000)
Then cut with the EXACT time format:
ffmpeg -i "Path\do you want him.flv" \
-ss 00:00:05.240 -to 00:00:08.360 \
-vcodec libx264 -acodec libvo_aacenc \
"Path\Do you want him1.flv"
and
ffmpeg -i "Path\do you want him.flv" \
-ss 00:00:10.240 -to 00:00:14.360 \
-vcodec libx264 -acodec libvo_aacenc \
"Path\Do you want him2.flv"
Now make a txt file with the video files with contents like:
file 'C:\Downloads\Video\Do you want him1.flv'
file 'C:\Downloads\Video\Do you want him2.flv'
Run ffmpeg:
ffmpeg -f concat -i FileList.txt -c copy "Path\NewName_joined.flv"
When used as an output option (before an output filename), stop writing the output after its duration reaches duration.`
– Do Not Track Me Aug 30 '16 at 02:52-ss 00:00:00.0after the-i <input.mp4>the output video was starting a few tenths of a second after the actual zero, while putting it before the-i <input.mp4>the output video started precisely at the "true zero". – Avio Oct 24 '23 at 16:11ffprobe -i test.mp4 -show_formatyou could see what it says after "start_time=" ? – barlop Oct 26 '23 at 04:41ffprobe version 4.4.2-0ubuntu0.22.04.1 ...Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':Metadata:major_brand : isomminor_version : 512compatible_brands: isomiso2avc1mp41encoder : Lavf58.76.100Duration: 00:00:53.13, start: 0.000000, bitrate: 25313 kb/sStream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 1920x1080, 25343 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)Metadata:handler_name : VideoHandlervendor_id : [0][0][0][0]– Avio Oct 27 '23 at 11:22[FORMAT]filename=test.mp4nb_streams=1nb_programs=0format_name=mov,mp4,m4a,3gp,3g2,mj2format_long_name=QuickTime / MOVstart_time=0.000000duration=53.134000size=168128007bit_rate=25313811probe_score=100TAG:major_brand=isomTAG:minor_version=512TAG:compatible_brands=isomiso2avc1mp41TAG:encoder=Lavf58.76.100[/FORMAT]– Avio Oct 27 '23 at 11:27