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

Jorrit’s picture

Have you setup FFmpeg correctly?

jlea9378’s picture

Ok 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.

Jorrit’s picture

It only checks the path on submit. You probably did not change it after you installed the video module, right?

jlea9378’s picture

yah, 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

Jorrit’s picture

Status: Active » Fixed

I 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.

jlea9378’s picture

Ok thanks.

Status: Fixed » Closed (fixed)

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