RECOMMEND? best way 2 extract interval slices of media/events/timeline

RedRob-CandlelightProdctns wrote on 1/31/2018, 11:38 PM

Hi -- can anyone recommend a simple way to extract N-frames of video, ever "I" seconds?

I know Excalibur's "Assets" could take "Media Snapshots" but only DV AVI format which won't cut the mustard anymore (does anyone really cut mustard???) And don't see anything native or in Vegasaur either.

Ideally, this could:
a) perform this across a track
b) perform this for each event, with the interval starting at the beginning of each event
c) Besides "interval" and "snapshot length", also have "starting offset"

My scenario: I shoot 100 7-minute performances at a dance show. I'd like to create a quick "day in review". With method (b) and (c) I could tell it to start 30-seconds in (when I know the dancing would have begun), and could tell it, for each clip, extract say 10 frames every 2 minutes.

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

Comments

Grazie wrote on 2/1/2018, 12:48 AM

Do you want 10 Frames of Video or 10 separate consecutive Stills? Why do you think Excalibur will only do DV AVI? I didn’t know that.

Anyways, great question/wishes.

BTW: The mustard company makes its profits from what’s left on th plate.

RedRob-CandlelightProdctns wrote on 2/1/2018, 1:37 AM

10 (or 15 -- should be user-definable) frames of video, every N minutes. (see examples above).
This should allow me to quickly drop a day's clips onto a timeline, run the script, and have a pretty short "day in review" video roughed out, which includes multiple samples from each performance.

I just wrote a quick batch file using FFMPEG which gets close. Although it doesn't cross-fade the videos when concatenating them. If there aren't any elegant scripts that can do this natively in Vegas (hmm.. that wouldn't be too difficult to write.. I might just do that!), I may:

  1. use ffmpeg batchfile to create the small performance video chunks (samples)
  2. load them into Vegas and use Excaliber to overlap/crossfade, add an opening title and possibly lower 3rd
  3. generate royalty-free music (e.g. via SmartSound) based on the new length
  4. render and be done

Better flow/methods? I'd love to find one! (I love efficiency and automation!)

:-)

set matchfile=%1
set newdir=%2
set duration=%3
set newsuffix=mp4

if '%newdir%'=='' set newdir=.
if '%duration%'=='' set duration=00:00:00.15
REM 15 frames default

REM try making seven slices at 1-minute intervals, starting 1 minute into the video
for %%G in (%matchfile%) do ffmpeg -ss 00:01:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG001.%newsuffix%"
for %%G in (%matchfile%) do ffmpeg -ss 00:02:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG002.%newsuffix%"
for %%G in (%matchfile%) do ffmpeg -ss 00:03:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG003.%newsuffix%"
for %%G in (%matchfile%) do ffmpeg -ss 00:04:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG004.%newsuffix%"
for %%G in (%matchfile%) do ffmpeg -ss 00:05:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG005.%newsuffix%"
for %%G in (%matchfile%) do ffmpeg -ss 00:06:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG006.%newsuffix%"
for %%G in (%matchfile%) do ffmpeg -ss 00:07:00 -i "%%G" -t %duration% -q:v 3 "%newdir%\%%~nG007.%newsuffix%"

rem for %%G in (%matchfile%) do ffmpeg -ss 00:01:00 -i "%%G" -t %duration% -vcodec copy -acodec copy "%newdir%\%%~nG001.%newsuffix%"
rem NOTE.. I stopped using -vcodec copy (best quality) because 
rem I ran into problems with stuttered frames and different-lengthed audio, probably due to A-frame locations?


@rem ------------------------
@REM merge them together
@rem ------------------------

@rem first, create the merge-list
for %%G in (%newdir%\*.%newsuffix%) do @echo file '%%G' >> %newdir%\mergelist.txt

@REM second, concat them
ffmpeg -f concat -i %newdir%\mergelist.txt %newdir%\allchunks.%newsuffix%

Oh.. and on the Excaliber thing... see screen-shot..

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

Grazie wrote on 2/1/2018, 2:35 AM

@RedRob-CandlelightProdctns

Wow! Way above my technical understandings. You’re a real power User. 😏

Thanks for the Excalibur information.

RedRob-CandlelightProdctns wrote on 2/1/2018, 9:12 AM

"Power user"? :-) There are others way more proficient than I, but I do like coding and all things tech, it's true!

 

Excalibur.. love love love the tool.. alas I think it's author Ed may have decided to discontinue development. Its multicam workflow is far more flexible than Vegas's built-in implementation . I also have found immense help from Vegasaur.

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

jetdv wrote on 2/2/2018, 1:17 PM

Rob, I haven't discontinued it and have certainly updated it as needed for new versions of VEGAS as they have been released. And that's definitely something that could be updated/changed.

RedRob-CandlelightProdctns wrote on 2/2/2018, 1:31 PM

@jetdv  *applauds loudly* That's great to hear! You're work continues to be part of my daily life -- and my beloved wife/partner and I are immensely grateful for what you've done.

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio