When I navigate to this page, I get two textfields with Path: One says: "Please provide the full path to the program. Examples(/usr/bin/convert, C:\Program Files\ffmpg\bin\ffmpeg.exe)." The other says "Path to the ffmpeg which is installed on the system". This is a bit vague and confusing to me. Is one for imagemagick and the other for ffmpeg?

Comments

djorn’s picture

Category: bug » support
djorn’s picture

After grokking the code a bit, it seems that ffmpeg.inc defines $form['path'] which gets inserted under $form['programs'] in admin.inc which also defines $form['path']. Since the validation and submit routines aren't defined, I can't really guess what you have in mind.

If you explain in more detail what you have in mind for this, I'd be happy to take a stab at a patch. Let me know.

rhys’s picture

Ok, so the programs section is a section I haven't really worked on all that much yet.
However, the basic ideas is that the option 'form', is what will be displayed in the admin/settings/media/programs/{program_name} section.
The details in this form are then validated under option 'validate', and are stored in the database to be
used by the {program_name}.inc file.
These special options I haven't really thought about, but could apply to defaults for audio compression, etc that need to be passed to the program, in this case ffmpeg....

The second form item requesting the path, is a left-over an older version of the API I was working on, and I hadn't got around to removing it.

If you have some ideas on how the ffmpeg section could work more specifically, I'd be more than happy to incorporate patches, etc, to the whole process.

rhys’s picture

Status: Active » Fixed

Ok, so this was fixed with the current uploaded version of the MAPI and MMEDIA modules.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.