I have added custom command module with dependent modules but unable to view the option to add custom command. i think it should be in 'add next step dropdown'. I didn't see any change even if i enable or disable mm_custom_command module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sreevidya’s picture

I am using this module to convert PDF to swf files and not using ffmpeg media mover modules

anantagati’s picture

Status: Active » Fixed

You can choose Custom Command actions under 'process configuration', 'storage configuration' and 'complete configuration'.

Status: Fixed » Closed (fixed)

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

armyofda12mnkeys’s picture

I think he may be talking about the media mover 2 development branch...
When i goto Media Mover configuration pages, i get this error:

warning: Missing argument 1 for mm_custom_command_media_mover() in /home/mysite/mysite.us/sites/all/modules/mm_custom_command/mm_custom_command.module on line 19.

It is not an option near the 'Add Next Step' in the new media mover 2 (which may go alpha sometime soon I read).

anantagati’s picture

Category: support » bug
Status: Closed (fixed) » Postponed

I will look at it after the weekend.

armyofda12mnkeys’s picture

Component: User interface » Code
FileSize
3.84 KB

Cool, i converted the mm_youtube plugin to new mm2 standard. shouldn't take more than 15m i think to convert.
I think possibly the code can be shortened to just a custom command to use in any step since actions can be added/layered in any step really ...
Ideas attached... Haven't tested, but it does show up in MM2. I can test later too.

anantagati’s picture

Thank you. Let me know how it went with test, if you will find some time.

darrick’s picture

Title: Unable to view Custom Command: Use custom command in Media mover configuration » Update to MM2
Status: Postponed » Needs review
FileSize
9.21 KB

I've taken @armyofda12mnkeys patch and tested it. I had to fix the issues with the media_mover tokens which have changed.

I just committed a fix for the media_mover tokens here: http://drupalcode.org/project/media_mover.git/commit/5e1279e

So this patch will work with the latest MM2 development code.

bcobin’s picture

I'm confused here - I came closest by using the patch in #8 against the production code, but 2 out of 4 hunks failed and I still get the "Missing argument 1" error message. (I'm using the 2.0 branch of MM.)

I'm looking to use a custom command to invoke ffmpeg2theora for .ogg encoding; the ffmpeg .ogg encoding is pretty poor and I suspect it's why I'm not successfully getting HTML5 video across all platforms. It looks to me that insofar as the ffmpeg command is automatically "built in" to MM transcoding, the only way to step out of the shell would be to use a custom command.

Any guidance here much appreciated - thank you!

darrick’s picture

Patch in #8 is against the 6.x-2.x mm_custom_command code:

git clone --branch 6.x-2.x http://git.drupal.org/project/mm_custom_command.git

You'll also want to pull down the latest 6.x-2.x media_mover code:

git clone --branch 6.x-2.x darrick@git.drupal.org:project/media_mover.git

bcobin’s picture

Thanks, darrick - I feel like a dope, though - the whole git thing confuses me.

I've downloaded the code from here as to the latter:

http://drupalcode.org/project/media_mover.git/blob_plain/5e1279e:/media_...

As to the former, http://git.drupal.org/project/mm_custom_command.git doesn't seem to be a valid page.

Thanks - standing by!

darrick’s picture

bcobin’s picture

Thank you, darrick.

After installing git via MacPorts (the installer just hung up on my system) and running "git clone --branch 6.x-2.x http://git.drupal.org/project/mm_custom_command.git" I get error: unknown option `branch'

After installing MM from the link in #12 and running the patch in #8 on 6.x-2.0 of mm_custom_command, I get the following:

File to patch: mm_custom_command.module
patching file mm_custom_command.module
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 60.
Hunk #3 succeeded at 98 (offset -1 lines).
Hunk #4 succeeded at 117 (offset -1 lines).
2 out of 4 hunks FAILED -- saving rejects to file mm_custom_command.module.rej

Not much more I can do here - let me know if you have any other ideas; I am more than willing to test this if I can get it running - thanks!

carvalhar’s picture

dev isn1t working, same error.
#6 code worked.

darrick’s picture

I probably should have been more clear. My patch in #8 is against the 6.x-2.x version of mm_custom_command. It doesn't work against the 6.x-3.x branch.