Open cytopia opened 7 years ago
Hi,
I just saw your script, it's nice. I did a similar script but it's really basic, only for casual usage.
After read your code, I thing that a better way to read arguments is something like:
while getopts f: option
do
case "${option}" in
f) FILE=${OPTARG} ;;
esac
done
Which branch are you using for this topic?
There is no branch available yet. I can create a long living feature branch if you want to do some work and help out on the rewrite.
Sounds silly, rather than break apart linux / mac installations, have you considered using something like nodejs which can handle this cross platform with process.platform
and it'll become more readable and maintain-able code overall (scalable most importantly). you can use something like yargs
to parse the arguments and child_process to spawn all the processes. Nodejs also has a very nice piping mechanism you could use to write to file or server or any output you like. You could also look at js-ffmpeg
for some inspiration. Also you can make this into an npm package and that's very easy to install, also you would have a package versioning system too.
ffscreencast 2.0 rewrite and brainstorm
I have noticed that there are quite some limitations on the existing
ffscreencast
implementation, some bugs that are hard to fix, options that are not as self-explanatory as I have hoped and the code is currently hard to maintain.That is the reason I will do a complete rewrite from scratch.
What must be done?
I will first work on the linux version
ffscreencast-linux
and once done start with osxffscreencast-osx
. Furthermore I hope I can finally also get theBSD
version done afterwards.Get involved and give feedback
I will address features and commandline arguments below as far as I have thought them through. Nothing is fix yet, so I rely on your feedback to suggest improvements.
The goal is to have a really easy-to-use command line version of a screen-recorder with many options that are compatible with other GUI implementations.
So if you like this idea, do comment and let me know.
I want the rewrite to be completely thought through and planned, before I am going to start working on it.
ffscreencast-linux proposal
Features
This is the current feature list that I have thought about. Let me know about anything else you want to be added to the list.
Command line options
This is a first draft showing the possible command line arguments:
1. Input arguments
1.1 Video
1.2 Audio
1.3 Camera
2. Output encoding
2.1 Video
2.2 Audio
3. Output
4. Config arguments
5. Misc arguments
I will also include the current arguments for: