Hi Jesse, Jesse Gordon <tojes...@gmail.com> writes: > Fascinating! I was actually thinking of writing a perl wrapper script > that would take a mildly structured text list of statements to make melt > extremely convenient. > Since I just found out about mlt a few days ago I haven't given it much > thought as to what that text list would be formatted like. > > I would be most interested in seeing an example of what you would like. > If it works seems intuitive for my small brain, then I could use that > syntax. > > Obviously a perl wrapper script is not ideal, but if a text user > interface were developed that was really great there's no particular > reason we couldn't convert it to a proper C/C++ application which > linked to mlt just like kdenlive does or whatever.
There is no need for any new syntax. melt already has a way of specifying the commands as command-line arguments. I think there used to be a way to write these commands into a file and reference this file as a command mlt:filename but this ability was probably removed when the xml format was invented. I simply write a shell script, something like: example.sh: melt \ -profile atsc_720p_25 \ color:black out=24 \ pic1.png out=115 \ -mix 25 -mixer luma \ vid1.mp4 in=5260 out=6775 \ -mix 25 -mixer luma \ vid2.mp4 in=7538 out=10210 \ -mix 50 -mixer luma -mixer mix:-1 \ -consumer avformat:output.mp4 f=mp4 acodec=aac vcodec=mpeg4 b=6000k and call it: $ bash example.sh It would be nicer, if I could create a file: example.melt: -profile atsc_720p_25 color:black out=24 pic1.png out=115 -mix 25 -mixer luma vid1.mp4 in=5260 out=6775 -mix 25 -mixer luma vid2.mp4 in=7538 out=10210 -mix 50 -mixer luma -mixer mix:-1 -consumer avformat:output.mp4 f=mp4 acodec=aac vcodec=mpeg4 b=6000k and call it: $ melt melt:example.melt with the ability to comment out things in the melt file and include other melt files, something like: example.melt: -profile atsc_720p_25 color:black out=24 pic1.png out=115 -mix 25 -mixer luma vid1.mp4 in=5260 out=6775 -mix 25 -mixer luma #vid2.mp4 in=7538 out=10210 # -mix 50 -mixer luma -mixer mix:-1 melt:example2.melt -consumer avformat:output.mp4 f=mp4 acodec=aac vcodec=mpeg4 b=6000k Then cli melt would be almost perfect:-) > Now I told it to -i mlt and it looks like it's going to create a brave > new world for me, looks like it's getting a new bash, a new binutils, > gcc, findutils, lots of things, so I'll have to give it some time and see > who my computer is when I come back! Hmm, it looks like it's trying to compile melt from scratch probably because it is not compiled by hydra and the binaries are not for download in the cache. In any case it should work. > It's not gonna convert my slackware to nixos is it? :D No, you can always delete /nix and ~/.nix* and remove your PATH changes to simply get rid of everything nix related. Tomas ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel