Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | 1000806.patch | 9.21 KB | darrick |
#6 | mm_custom_command.module.txt | 3.84 KB | armyofda12mnkeys |
Comments
Comment #1
sreevidya CreditAttribution: sreevidya commentedI am using this module to convert PDF to swf files and not using ffmpeg media mover modules
Comment #2
anantagati CreditAttribution: anantagati commentedYou can choose Custom Command actions under 'process configuration', 'storage configuration' and 'complete configuration'.
Comment #4
armyofda12mnkeys CreditAttribution: armyofda12mnkeys commentedI 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).
Comment #5
anantagati CreditAttribution: anantagati commentedI will look at it after the weekend.
Comment #6
armyofda12mnkeys CreditAttribution: armyofda12mnkeys commentedCool, 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.
Comment #7
anantagati CreditAttribution: anantagati commentedThank you. Let me know how it went with test, if you will find some time.
Comment #8
darrick CreditAttribution: darrick commentedI'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.
Comment #9
bcobin CreditAttribution: bcobin commentedI'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!
Comment #10
darrick CreditAttribution: darrick commentedPatch 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
Comment #11
bcobin CreditAttribution: bcobin commentedThanks, 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!
Comment #12
darrick CreditAttribution: darrick commentedRead the instructions: http://drupal.org/node/344796/git-instructions/6.x-2.x
For media_mover this will work: http://ftp.drupal.org/files/projects/media_mover-6.x-2.x-dev.tar.gz
Comment #13
bcobin CreditAttribution: bcobin commentedThank 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!
Comment #14
carvalhar CreditAttribution: carvalhar commenteddev isn1t working, same error.
#6 code worked.
Comment #15
darrick CreditAttribution: darrick commentedI 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.