Upon loading the Add Preset page I received a bunch of errors/warnings:
Warning: Invalid argument supplied for foreach() in TranscoderAbstractionFactoryFfmpeg->getCodecs() (line 340 of /var/www/html/drupal_test/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc).
Warning: uasort() expects parameter 1 to be array, null given in TranscoderAbstractionFactoryFfmpeg->getCodecs() (line 353 of /var/www/html/drupal_test/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc).
Warning: uasort() expects parameter 1 to be array, null given in TranscoderAbstractionFactoryFfmpeg->getCodecs() (line 354 of /var/www/html/drupal_test/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc).
Warning: Invalid argument supplied for foreach() in TranscoderAbstractionFactoryFfmpeg->getAvailableFormats() (line 373 of /var/www/html/drupal_test/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc).
Warning: array_keys() expects parameter 1 to be array, null given in TranscoderAbstractionFactoryFfmpeg->getPixelFormats() (line 399 of /var/www/html/drupal_test/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc).
I'm using the latest version of the module (7.x-2.9) and Drupal (7.19).
Comments
Comment #1
Jorrit commentedHave you setup FFmpeg correctly?
Comment #2
jlea9378 commentedOk I didn't have it installed. I thought I did since the Transcoders tab had FFMPEG selected and gave a path to it. However the path to FFMPEG was invalid -- I typed it on the command line and it said File Not Found. It would be good if you could change that tab so that it would have a notice appear if the path to FFMPEG isn't targeting a valid file.
I did a yum install ffmpeg and now the errors are gone.
Thanks.
Comment #3
Jorrit commentedIt only checks the path on submit. You probably did not change it after you installed the video module, right?
Comment #4
jlea9378 commentedyah, that's probably correct. Can you default it to "No Transcoder" then? That way it doesn't appear like it's set up correctly? =p
Comment #5
Jorrit commentedI have fixed the notices and errors. For now, I don't want to change the default value for the transcoder. Maybe I will change this in the future.
Comment #6
jlea9378 commentedOk thanks.