▲ | pdyc 3 days ago | ||||||||||||||||
u can do it with this command, it will just copy audio and video ffmpeg -i input.mp4 -ss 00:00:00 -to 0:30:00 -c:v copy -c:a copy chapter1.mkv u can just copy paste it 10 times in your text editor, than adjust ss, to times using any video player that can play vhs file. | |||||||||||||||||
▲ | drewp 3 days ago | parent [-] | ||||||||||||||||
That's where I am now. I'd like to optimize out the retyping and duplication of time strings. I want the player ui (I'm using mpv) to have a command that: 1. Remembers the last end time to use as this chapter's start time 2. Gets the current time to use as chapter-end. 3. Accepts the name (e.g. 'chapter1'). 4. Runs the ffmpeg copy command. Perhaps mpv+lua can already handle this. I see commands for setting a loop range and for calling a subprocess. Not sure how I'd input the chapter name. Maybe I'll have an LLM name the chapters for me :) | |||||||||||||||||
|