I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean interaction like this.
Any aid appreciated.
On Nov 12, 2020, gtr wrote
(in article <rojmhs$eqc$1@dont-email.me>):
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
Any aid appreciated.
You haven’t mentioned the type of video file, or the source (recording device, sometimes the manufacturer provides proprietary editing
software).
Since you have a Mac you already have something which will do the job,
but not quite as simply as "*type in a starting time code and and
ending time code*” You will have to do a bit of editing.
Quicktime Player (Edit->Trim, etc.)
iMovie
...and if you want to up your game a tad there is the free *DaVinci
Resolve* which does require climbing a learning curve.
I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time code*, and have it spit out the clip into separate file.
ffmpeg -i input.mov -ss 00:15:12 -t 00:00:30 -acodec copy -vcodec copy output.mov
I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean interaction like this.
Any aid appreciated.
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file.
ffmpeg is your friend.
ffmpeg -i input.mov -ss 00:15:12 -t 00:00:30 -acodec copy -vcodec copy
output.mov
Only difference is that you specify start time (ss) and duration (t)
instead of end time. It is the swiss army knife of handling video files
and formats.
It is open source and there are binaries available for OS-X (sorry don't
have link handy).
You can then use bash to create a script to process the list of files
you need.
(I think it is able to concatenate 2 video files but not sure).
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file.
ffmpeg is your friend.
ffmpeg -i input.mov -ss 00:15:12 -t 00:00:30 -acodec copy -vcodec
copy output.mov
Only difference is that you specify start time (ss) and duration (t)
instead of end time.
On 2020-11-12, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file.
ffmpeg is your friend.
ffmpeg -i input.mov -ss 00:15:12 -t 00:00:30 -acodec copy -vcodec
copy output.mov
Only difference is that you specify start time (ss) and duration (t)
instead of end time.
The -to switch lets you specify an end time.
On 2020-11-12, gtr <xxx@yyy.zzz> wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
Any aid appreciated.
Sounds like a job for a script to me.
You can use the -ss and -to switches with the ffmpeg command-line tool
to trim video files with time codes. Read the manual for details and examples. There are also plenty of tutorials on the web about it.
It would relatively trivial to write a little script (AppleScript, Ruby, Perl, shell, whatever) that reads a list of video names/paths along with
the appropriate time codes from a text file and then invoke ffmpeg with
the right parameters to do the splicing.
I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean interaction like this.
I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time code*, and have it spit out the clip into separate file. I need to feed
it 30 or more such files, culling 4 portions of video from each, all of
them at different times, so it has to be a realitively clean interaction like this.
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
Handbrake does that - perhaps not to "time code" level, but at least to seconds or frames in whatever range you need.
In message <rojmhs$eqc$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
I do this via the command line with ffmpeg
#v+
ffmpeg -i infile.mp4 -ss START -to END outfile.mp4
#v-
On 2020-11-13 10:22:07 +0000, Lewis said:
In message <rojmhs$eqc$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
I do this via the command line with ffmpeg
#v+
ffmpeg -i infile.mp4 -ss START -to END outfile.mp4
#v-
I heard that upstream and appreciate it. There the command is somewhat different from yours:
ffmpeg -i input.mov -ss START -t LENGTH -acodec copy -vcodec copy output.mov
On 2020-11-13, gtr <xxx@yyy.zzz> wrote:
On 2020-11-13 10:22:07 +0000, Lewis said:
In message <rojmhs$eqc$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
I'm looking for an app or utility, that will allow me to do the following: >>>
Feed it a video file, *type in a starting time code and and ending time >>>> code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
I do this via the command line with ffmpeg
#v+
ffmpeg -i infile.mp4 -ss START -to END outfile.mp4
#v-
I heard that upstream and appreciate it. There the command is somewhat
different from yours:
ffmpeg -i input.mov -ss START -t LENGTH -acodec copy -vcodec copy output.mov
You can choose which to use based on your needs:
* The -t switch is for specifying the length of the clip.
* The -to switch is for specifying the end time.
The "-*codec copy" switch just enables this optional feature:
---
Stream copy
Stream copy is a mode selected by supplying the "copy" parameter to the -codec option. It makes ffmpeg omit the decoding and encoding step for
the specified stream, so it does only demuxing and muxing. It is useful
for changing the container format or modifying container-level metadata.
The diagram above will, in this case, simplify to this:
_______ ______________ ________
| | | | | |
| input | demuxer | encoded data | muxer | output |
| file | ---------> | packets | -------> | file |
|_______| |______________| |________|
Since there is no decoding or encoding, it is very fast and there is no quality loss. However, it might not work in some cases because of many factors. Applying filters is obviously also impossible, since filters
work on uncompressed data.
---
Reference: ffmpeg manual
On 2020-11-13 16:36:11 +0000, Alan Browne said:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the
following:
Feed it a video file, *type in a starting time code and and ending
time code*, and have it spit out the clip into separate file. I need
to feed it 30 or more such files, culling 4 portions of video from
each, all of them at different times, so it has to be a realitively
clean interaction like this.
Handbrake does that - perhaps not to "time code" level, but at least
to seconds or frames in whatever range you need.
I thought it did too! But I can't seem to find it. Can you point me there?
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to feed >> it 30 or more such files, culling 4 portions of video from each, all of
them at different times, so it has to be a realitively clean interaction
like this.
Handbrake does that - perhaps not to "time code" level, but at least to seconds or frames in whatever range you need.
On 2020-11-13 10:22:07 +0000, Lewis said:
In message <rojmhs$eqc$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
I'm looking for an app or utility, that will allow me to do the following: >>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each,
all of them at different times, so it has to be a realitively clean
interaction like this.
I do this via the command line with ffmpeg
#v+
ffmpeg -i infile.mp4 -ss START -to END outfile.mp4
#v-
I heard that upstream and appreciate it. There the command is somewhat different from yours:
ffmpeg -i input.mov -ss START -t LENGTH -acodec copy -vcodec copy output.mov
On 2020-11-13 15:24, gtr wrote:
On 2020-11-13 16:36:11 +0000, Alan Browne said:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>>>
Feed it a video file, *type in a starting time code and and ending time >>>> code*, and have it spit out the clip into separate file. I need to
feed it 30 or more such files, culling 4 portions of video from each, >>>> all of them at different times, so it has to be a realitively clean
interaction like this.
Handbrake does that - perhaps not to "time code" level, but at least to >>> seconds or frames in whatever range you need.
I thought it did too! But I can't seem to find it. Can you point me there?
Google (whatever) "Handbrake". Can't miss it.
Ah, what the hell: https://handbrake.fr/
In message <0CyrH.662407$%p.518313@fx33.iad> Alan Browne <bitbucket@blackhole.com> wrote:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to feed >>> it 30 or more such files, culling 4 portions of video from each, all of
them at different times, so it has to be a realitively clean interaction >>> like this.
Handbrake does that - perhaps not to "time code" level, but at least to
seconds or frames in whatever range you need.
I believe that Handbrake *always* re-encodes the video. ffmpeg can be
made to copy exactly what you want without degrading it.
Ah, what the hell: https://handbrake.fr/
I have the program, I've looked for the option. I can't see it.
On 2020-11-14 00:59:50 +0000, Lewis said:
In message <0CyrH.662407$%p.518313@fx33.iad> Alan Browne
<bitbucket@blackhole.com> wrote:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>>>
Feed it a video file, *type in a starting time code and and ending time >>>> code*, and have it spit out the clip into separate file. I need to feed >>>> it 30 or more such files, culling 4 portions of video from each, all of >>>> them at different times, so it has to be a realitively clean interaction >>>> like this.
Handbrake does that - perhaps not to "time code" level, but at least to
seconds or frames in whatever range you need.
I believe that Handbrake *always* re-encodes the video. ffmpeg can be
made to copy exactly what you want without degrading it.
And yet I continue looking for a way to cull a subset by time code.
In message <0CyrH.662407$%p.518313@fx33.iad> Alan Browne <bitbucket@blackhole.com> wrote:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following: >>>
Feed it a video file, *type in a starting time code and and ending time
code*, and have it spit out the clip into separate file. I need to feed >>> it 30 or more such files, culling 4 portions of video from each, all of
them at different times, so it has to be a realitively clean interaction >>> like this.
Handbrake does that - perhaps not to "time code" level, but at least to
seconds or frames in whatever range you need.
I believe that Handbrake *always* re-encodes the video. ffmpeg can be
made to copy exactly what you want without degrading it.
On 2020-11-14, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
note: I have found that by using -vcodec h264 and -acodec ac3 or aac
with ffmpeg will used up mega CPU and is slower.
That's because you are instructing ffmpeg to re-encode with those codecs rather than "-*codec copy" which streams the content as-is and is much
faster as a result.
On 2020-11-14 10:35, Jolly Roger wrote:
On 2020-11-14, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
note: I have found that by using -vcodec h264 and -acodec ac3 or aac
with ffmpeg will used up mega CPU and is slower.
That's because you are instructing ffmpeg to re-encode with those codecs
rather than "-*codec copy" which streams the content as-is and is much
faster as a result.
Opposite
On 2020-11-14 10:35, Jolly Roger wrote:
On 2020-11-14, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
note: I have found that by using -vcodec h264 and -acodec ac3 or aac
with ffmpeg will used up mega CPU and is slower.
That's because you are instructing ffmpeg to re-encode with those codecs
rather than "-*codec copy" which streams the content as-is and is much
faster as a result.
Opposite: I found that by forcing the re-encode, I got the output video
to start 100% OK at the time mark. When you don't do this via the
"copy", it starts to copy frame information at the right frane, but the output video contains "out of context" compressed data for the first
frames because it doesn't start with a keyframe.
On 2020-11-14 01:46, gtr wrote:
Ah, what the hell: https://handbrake.fr/
I have the program, I've looked for the option. I can't see it.
After you open a movie, look near the top of the movie pane for:
Angle Range Chapters 1 xx Duration nn:nn:nn
Change chapters to Seconds and you can then specify start and end
seconds. You'll need to convert a time value into seconds though.
On 2020-11-14 01:46, gtr wrote:
On 2020-11-14 00:38:26 +0000, Alan Browne said:
On 2020-11-13 15:24, gtr wrote:
On 2020-11-13 16:36:11 +0000, Alan Browne said:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the following:
Feed it a video file, *type in a starting time code and and ending time >>>>>> code*, and have it spit out the clip into separate file. I need to >>>>>> feed it 30 or more such files, culling 4 portions of video from each, >>>>>> all of them at different times, so it has to be a realitively clean >>>>>> interaction like this.
Handbrake does that - perhaps not to "time code" level, but at least to >>>>> seconds or frames in whatever range you need.
I thought it did too! But I can't seem to find it. Can you point me there?
Google (whatever) "Handbrake". Can't miss it.
Ah, what the hell: https://handbrake.fr/
I have the program, I've looked for the option. I can't see it.
Where it says "Range". You can set it to "Chapters", "Seconds",
"Frames" and then enter the appropriate info for that option.
V 1.2.2 is what I have.
V 1.3.3 is the latest.
V 1.0.7 contains a trojan. Do not run it if you have it.
On 2020-11-14 14:56:33 +0000, Alan Browne said:
On 2020-11-14 01:46, gtr wrote:
On 2020-11-14 00:38:26 +0000, Alan Browne said:
On 2020-11-13 15:24, gtr wrote:
On 2020-11-13 16:36:11 +0000, Alan Browne said:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the >>>>>>> following:
Feed it a video file, *type in a starting time code and and
ending time code*, and have it spit out the clip into separate
file. I need to feed it 30 or more such files, culling 4
portions of video from each, all of them at different times, so >>>>>>> it has to be a realitively clean interaction like this.
Handbrake does that - perhaps not to "time code" level, but at
least to seconds or frames in whatever range you need.
I thought it did too! But I can't seem to find it. Can you point >>>>> me there?
Google (whatever) "Handbrake". Can't miss it.
Ah, what the hell: https://handbrake.fr/
I have the program, I've looked for the option. I can't see it.
Where it says "Range". You can set it to "Chapters", "Seconds",
"Frames" and then enter the appropriate info for that option.
V 1.2.2 is what I have.
V 1.3.3 is the latest.
V 1.0.7 contains a trojan. Do not run it if you have it.
I have 1.3.3 as well. Why do you hang with 1.2.2?
On 2020-11-15 11:46, gtr wrote:
On 2020-11-14 14:56:33 +0000, Alan Browne said:
On 2020-11-14 01:46, gtr wrote:
On 2020-11-14 00:38:26 +0000, Alan Browne said:
On 2020-11-13 15:24, gtr wrote:
On 2020-11-13 16:36:11 +0000, Alan Browne said:
On 2020-11-12 11:06, gtr wrote:
I'm looking for an app or utility, that will allow me to do the >>>>>>>> following:
Feed it a video file, *type in a starting time code and and
ending time code*, and have it spit out the clip into separate >>>>>>>> file. I need to feed it 30 or more such files, culling 4
portions of video from each, all of them at different times, so >>>>>>>> it has to be a realitively clean interaction like this.
Handbrake does that - perhaps not to "time code" level, but at
least to seconds or frames in whatever range you need.
I thought it did too! But I can't seem to find it. Can you point >>>>>> me there?
Google (whatever) "Handbrake". Can't miss it.
Ah, what the hell: https://handbrake.fr/
I have the program, I've looked for the option. I can't see it.
Where it says "Range". You can set it to "Chapters", "Seconds",
"Frames" and then enter the appropriate info for that option.
V 1.2.2 is what I have.
V 1.3.3 is the latest.
V 1.0.7 contains a trojan. Do not run it if you have it.
I have 1.3.3 as well. Why do you hang with 1.2.2?
I had no reason to upgrade it. It's no different under the hood. But
due to this discussion I have updated it to 1.3.3 and so far all I see
is a better queue display with the information on a particular clip in
the right pane whereas before you had to click-open from the queue line.
I've never been one to update s/w just because. There has to be a compelling reason. A bug. An important security fix. A desirable feature.
For that matter on a large conversion project I wrote a program to drive HandbrakeCLI and manage the backup of the resulting files.
In message <ybdsH.541482$HY4.453352@fx37.iad> Alan Browne <bitbucket@blackhole.com> wrote:
I had no reason to upgrade it. It's no different under the hood. But
due to this discussion I have updated it to 1.3.3 and so far all I see
is a better queue display with the information on a particular clip in
the right pane whereas before you had to click-open from the queue line.
I've never been one to update s/w just because. There has to be a
compelling reason. A bug. An important security fix. A desirable feature.
Quite a lot of updates in 1.3.0
<https://handbrake.fr/news.php?article=43>
Python 3 was enough of a reason for me to update as I could remove
python 2 from one system, but there are definite fixes in moving from
1.2.x to 1.3.x
For that matter on a large conversion project I wrote a program to drive
HandbrakeCLI and manage the backup of the resulting files.
I used to used Handbrake CLI a lot, but I've mostly been using ffmpeg recently since it supports the h.265 hardware encoding without too much
hoop jumping.
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 790 |
Nodes: | 20 (0 / 20) |
Uptime: | 39:44:11 |
Calls: | 12,115 |
Calls today: | 5 |
Files: | 5,294 |
D/L today: |
72 files (9,959K bytes) |
Messages: | 564,927 |