Since the next unchecked feature is about automatic upload (see below) I think we may start to gather information on what we need and how (by the way the point after this one about desktop may be checked isn't it?).
After a record/stream I enter the desired publication date and title in a file so I have them ready when I upload the video. This is helping me enter the good command line quickly, but if it could be interpreted by Prismedia directly it could be a welcomed help.
To do this we need to think about quite a lot of things, try to know how people are using Prismedia and how this function may or may not be integrated in their workflow.
Format of the file
There are a lot of standardized file format, a good one should be understood and easily/naturally by most peoples (and easy to parse/modify from Python):
|Known Parser (quick search)
|I think it is the format use for the NFO
|Same format => easier for the users, only one parser
|Almost the same as the INI format with an actual spec: https://github.com/toml-lang/toml
|Easy for the user, strongly specified for the language
|Maybe replace the NFO format with this one since they are close to each other.
|Well known by programmer, good hierarchy
|Not that easy for lambda users, may be a bit too strict to use easily
|A formal format with hierarchy
|Like JSON but more user friendly
|Easy to write by hand
|An easy format which can be created with a spreadsheet (Exel/LibreOffice Calc)
|Usable from source or spreadsheet
|No hierarchy, no unicode reading by default
|Other? I don't know all the format so if you know any that may be interesting please share with us.
Info needed in the file
We need to define all the information needed in this file and how to structure them hierarchically. We also need to define if some info need to be duplicated from the NFO or not.
Global info to a channel
- OPTIONAL Platform (already in the NFO)
Global info to a playlist
- OPTIONAL Playlist name (already in the NFO)
Local info to a video
- OPTIONAL Publish date
- OPTIONAL Is it already uploaded on Peertube (Prismedia will change this on successful upload, if not present prismedia consider it to not be uploaded)
- OPTIONAL Is it already uploaded on Youtube (Prismedia will change this on successful upload, if not present prismedia consider it to not be uploaded)
Daemon/Service or task called regularly (cron job)
We can create a daemon to watch if a file is modified / when a new video is present.
=> We need to make sure the video is fully synced on disk before uploading. It may be syncing to a server, or being recorded when we detect the changes.
=> Linux use Daemons and systemd/initd/... to start them. Windows use services. I don't know for Mac. => It start to look a lot of work/special tuning for each platform.
The other choice is to have an "auto" option with the file discussed above as parameter:
The user can then either launch the command manually when ready or create a cron job (use the task scheduler on Windows) so the upload is done in background.
=> If we tell people to setup cron/task scheduler we have the same problem as with the daemon: we need to check that the files are fully synced on drive.
I hope everything is clear (It's late right now and I've taken a long time writing it in bg task). Sadly I was only able to create an issue for this and not a Milestone.
Now it's your time to shine by bringing your ideas, needs and requests !