Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-10 Thread Bo Berglund
On Sun, 9 Jan 2022 14:40:44 + (UTC), Simon van Bernem via ffmpeg-user wrote: >___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >https://ffmpeg.org/mailman/listinfo/ffmpeg-user > >To unsubscribe, visit link above, or email

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Michael Koch
Am 09.01.2022 um 21:12 schrieb Steven Kan: On Jan 9, 2022, at 9:28 AM, Michael Koch wrote: Am 09.01.2022 um 18:14 schrieb Steven Kan: I’m a little late to this party, and it’s not strictly an ffmpeg solution, but have a look at Lossless Cut: https://mifi.no/losslesscut/ It does exactly

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Steven Kan
> On Jan 9, 2022, at 9:28 AM, Michael Koch wrote: > > Am 09.01.2022 um 18:14 schrieb Steven Kan: >> I’m a little late to this party, and it’s not strictly an ffmpeg solution, >> but have a look at Lossless Cut: >> >> https://mifi.no/losslesscut/ >> >> It does exactly what you want,

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Leo Butler via ffmpeg-user
Simon van Bernem via ffmpeg-user writes: > Those look very promising, but my version of ffmpeg doesn'tknow the segment > filter. I found it in the changelog for version5, but the website lets me > only download 4.4 and the github'slast release is 3.0 from 2016. Is the > segment filter not

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Michael Koch
Am 09.01.2022 um 18:14 schrieb Steven Kan: I’m a little late to this party, and it’s not strictly an ffmpeg solution, but have a look at Lossless Cut: https://mifi.no/losslesscut/ It does exactly what you want, graphically, with the option to cut at key frames (or not), Are you sure? I saw

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Rob Hallam
On Sun, 9 Jan 2022 at 17:15, Steven Kan wrote: > I’m a little late to this party, and it’s not strictly an ffmpeg solution, > but have a look at Lossless Cut: > https://mifi.no/losslesscut/ > It does exactly what you want, graphically, with the option to cut at key > frames (or not),

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Steven Kan
I’m a little late to this party, and it’s not strictly an ffmpeg solution, but have a look at Lossless Cut: https://mifi.no/losslesscut/ It does exactly what you want, graphically, with the option to cut at key frames (or not), includes audio, can concatenate, is free, and uses ffmpeg under

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Simon van Bernem via ffmpeg-user
Those look very promising, but my version of ffmpeg doesn'tknow the segment filter. I found it in the changelog for version5, but the website lets me only download 4.4 and the github'slast release is 3.0 from 2016. Is the segment filter not availablefor the general public yet? Regards,Simon

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Nicolas George
Simon van Bernem via ffmpeg-user (12022-01-08): > Hi, > I am trying to remove parts of a video (with audio) using the select > filter. I constructed this command to remove seconds 20-25: > > (newlines only for readability) > > ffmpeg -i input.mkv >   -vf "select='1-between(t,20,25)',

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Simon van Bernem via ffmpeg-user
Hi Stephen, I already know about this approach of doing it, but was specificallytrying to get the select filter working because its syntax is so muchsimpler. It seems like that isn't gonna work and solutions like thisare the goto, which makes me a little sad because that is quite acomplex

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Stephen Liu via ffmpeg-user
Hi Simon, Try the command on following document, using the trim filter; Commands to manipulate a video -> Remove video segments (without audio)

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Rob Hallam
On Sun, 9 Jan 2022 at 11:34, Michael Koch wrote: > Is it possible to re-encode only the beginning and the end, and use > -codec copy for the central part? How apropos! * I've been trying to do essentially this for years- it was the reason I subscribed to and posted to this list initially. It

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Simon van Bernem via ffmpeg-user
My specific usecase is removing multiple parts of a video. So e.g. I want to "remove the part from 0:10 to 0:15 and the part from 1:15 to 4:10 and the part from 10:00 to the end". How would that look like with this approach? Can you have multiple -ss and -to pairs? Can you express

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Stephen Liu via ffmpeg-user
Hi, I run following command on Terminal to trim a section of the video (for VCD video):- $ ffmpeg -i imput.VOB -target pal-vcd -ss 00:02:10 -to 00:03:18 -c:v copy -c:a copy output.VOB -ss starting time (hrs:min:sec) -to stop time (hrs:min:sec) This command line works for me seamlessly.

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread Michael Koch
Am 09.01.2022 um 11:43 schrieb MacFH - C E Macfarlane - News: On 08/01/2022 23:43, amindfv--- via ffmpeg-user wrote: On Sat, Jan 08, 2022 at 08:20:46PM +, MacFH - C E Macfarlane - News wrote: To select parts of a video, I use ... FFMPEG -ss -i -codec copy -to ... however it's

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-09 Thread MacFH - C E Macfarlane - News
On 08/01/2022 23:43, amindfv--- via ffmpeg-user wrote: On Sat, Jan 08, 2022 at 08:20:46PM +, MacFH - C E Macfarlane - News wrote: To select parts of a video, I use ... FFMPEG -ss -i -codec copy -to ... however it's tedious, because with this method the video will only break at

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-08 Thread amindfv--- via ffmpeg-user
On Sat, Jan 08, 2022 at 08:20:46PM +, MacFH - C E Macfarlane - News wrote: > On 08/01/2022 19:38, Simon van Bernem via ffmpeg-user wrote: > > > > ffmpeg -i input.mkv > >     -vf "select='1-between(t,20,25)-between(t,100,200) > >     -between(t,220,300)-between(t,400,600)-between(t,750,800)

Re: [FFmpeg-user] Removing parts of a video using the select filter

2022-01-08 Thread MacFH - C E Macfarlane - News
On 08/01/2022 19:38, Simon van Bernem via ffmpeg-user wrote: ffmpeg -i input.mkv     -vf "select='1-between(t,20,25)-between(t,100,200)     -between(t,220,300)-between(t,400,600)-between(t,750,800)     -between(t,820,860)-between(t,880,900)-between(t,1000,1200)     -gt(t,1500)'"     -af

[FFmpeg-user] Removing parts of a video using the select filter

2022-01-08 Thread Simon van Bernem via ffmpeg-user
Hi, I am trying to remove parts of a video (with audio) using the select filter. I constructed this command to remove seconds 20-25: (newlines only for readability) ffmpeg -i input.mkv   -vf "select='1-between(t,20,25)', setpts=N/FRAME_RATE/TB"   -af "aselect='1-between(t,20,25)',