ShellCmd for personal use
I read the Спицын Андрей's script and the Phyllis' answer: https://lists.cinelerra-gg.org/pipermail/cin/2019-May/000754.html I was wondering if it was possible to include in ShellCmd some ffmpeg filters that do not work in CinnGG. The commands are as follows: EXTRACTPLANES ffmpeg -i video.avi -filter_complex 'extractplanes=y+u+v[y][u][v]' -map '[y]' y.avi -map '[u]' u.avi -map '[v]' v.avi ffmpeg -i video.avi -filter_complex 'extractplanes=r+g+b[r][g][b]' -map '[r]' r.avi -map '[g]' b.avi -map '[b]' b.avi ffmpeg -i [r][g][b]mergeplanes=0x001020:yuv444p output.avi ALPHAEXTRACT ffmpeg -i video_with_alpha.avi alphaextract video.avi alpha.avi ffmpeg -i video.avi alpha.avi alphamerge video_with_alpha.avi LENSFUN ffmpeg -i input.mov -vf lensfun=make=Canon:model="Canon EOS 100D":lens_model="Canon EF-S 18-55mm f/3.5-5.6 IS STM":focal_length=18:aperture=8 -c:v h264 -b:v 8000k output.mov I can't even write a single line in Bash. Does anyone know if this is possible?
Andrea, now this is "easy peasy"! Using the example you provided below, all you need is to create a file in a non-Cinelerra directory (so it does not get deleted). For example, I created /tmp/andrea.sh that only contains the one line (it is one line altogether but there is such a thing in linux for a continuation line if it gets too long): ffmpeg -i "$1" -filter_complex 'extractplanes=y+u+v[y][u][v]' -map '[y]' y.avi -map '[u]' u.avi -map '[v]' v.avi Also, in your 1 line above, keep in mind that y.avi, u.avi, and v.avi MUST have full pathnames or your output files will end up in whichever directory you are running in. And just as important, you must use "-y" to answer "yes" to overwrite the files or else it will prompt you in the Cinelerra startup window. Note the "$1" - that is the first argv and in Cinelerra, all you would have to do is go to the Resource window and highlight the "video.avi" file you used in your example and then go to the Shell Cmds icon and click on Andrea instead of Shortcuts, for example. Of course, you have to set up the Andrea command first in Settings-> Preferences, Interface tab "Shell Commands". I updated use of Shell Commands in chapter trouble here locally but have included it below. I will attempt to make an example. I was wondering if it was possible to include in ShellCmd some ffmpeg
filters that do not work in CinnGG.
The commands are as follows:
EXTRACTPLANES
ffmpeg -i video.avi -filter_complex 'extractplanes=y+u+v[y][u][v]' -map '[y]' y.avi -map '[u]' u.avi -map '[v]' v.avi
Demo of using Cinelerra Shell Commands to set up your own https://streamable.com/qye5s I HIGHLY suggest making a copy of $HOME/.bcast5/Cinelerra_rc with Cinelerra not running first, deleting the 12-18 lines that start with SHBTN first so that a new set is created the next time you start up Cinelerra. Once you add your own Shell Commands, they are also recorded in Cinelerra_rc.
Looks like I can make it work too! (although I don't know how useful it is). Thanks Phyllis, good demo for me. Is there any way to upload y.avi, u.avi and v.avi videos directly to the Resouces window? Il giorno dom 2 giu 2019 alle ore 17:36 Phyllis Smith <[email protected]> ha scritto:
Demo of using Cinelerra Shell Commands to set up your own
I HIGHLY suggest making a copy of $HOME/.bcast5/Cinelerra_rc with Cinelerra not running first, deleting the 12-18 lines that start with SHBTN first so that a new set is created the next time you start up Cinelerra. Once you add your own Shell Commands, they are also recorded in Cinelerra_rc.
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
Andrea: Is there any way to upload y.avi, u.avi and v.avi videos directly to
the Resouces window?
Not that we are aware of. When you initially start up Cinelerra, you can include file names on the command line as in {cinelerra path}/cin y.avi u.avi v.avi but that would not be helpful here.
participants (2)
-
Andrea paz -
Phyllis Smith