I think the current design of ffmpeg_converter to store the original video and the converted video as well as the image snapshots in a single upload field (with number of values greater or equal to five) has some disadvantages. Firstly, with this design it is not easy to create a video gallery with a flexible number of videos. At least for me, it is not possible to use the Drupal functionality 'Add more items' to add more than one video to an upload field. Secondly, some effort has to be taken (e.g. in ffmpeg_converter_nodeform) to hide the conversion details (such as the fact that there exists a conversion at all) from the user.
What would you think about the following redesign:
- refactor the module ffmpeg_converter to a new module, say mediacache, which is an analogon to imagecache but for media files such as audio/video. This new module just creates the infrastructure to define presets how media files should be converted. Apart from that, this new module does the actual conversion (such as imagecache does it for images). By merging some of the code of imagecache with the code of ffmpeg_converter this should not be too complex.
- video upload fields are just regular filefields. It is only in the 'Display fields'-page of the video containing content type that the format of the output of this field can be defined, i.e. that a preset of mediacache can be chosen.
Of course there are some disadvantages of the two previous suggestions:
* there is no possibility to select a snapshot for a converted video since all the conversion process happens within mediacache automatically (without user interaction)
* the video conversion is only started when a user first tries to view the filefield containing the video. This is bad since a typical conversion takes a long time.
But these disadvantages might be eliminated by the following additional module:
- create a new cck type 'mediafield' (in analogon to imagefield). In edit mode, this field type can show snapshot images. To allow to queue media conversion jobs with the appropriate presets as soon as the user hits 'Save' in edit mode, I would suggest the following: In cck content type admin mode, the admin should have the possibility to attach a list of attached mediacache presets to a mediafield.
Thoughts?
Comments
Comment #1
zoo33 commentedWe're doing some work on changing the approach this module takes with regard to file fields etc. There is some more info here:
#393064: Use separate field to store converted video.
#531558: rules integration