Here's what I'm doing:

1. Harvest video file from CCK upload field
2. Convert to MP4
3. Move (not copy) converted file to sites/default/files/media/video
4. Add converted file to empty CCK field of original node. (Filefield Paths has the destination folder properly set as in Step 3.)

Looks like everything works great save for the last step - after processing, the file doesn't appear in the CCK field.

I had this working properly in v.1 of MM - I had to move to MM v.2 because in v.1 I ended up with files all over the place!

There's no error message generated; MM reports everything as having been successfully executed.

Unfortunately, I don't have the PHP skills to investigate why the last step fails, nor can I generate a patch, obviously. But I thought reporting this could be of some use. .v2 looks like a great improvement - hopefully I'm just a step or two away from HTML5 video! Thanks for all the good work here...

Comments

bcobin’s picture

More details...

It looks like Save to Node works to put the processed file in the CCK field, so for me, this is a workaround for now. As far as I can tell at the moment, Save to CCK field doesn't do anything. Delete Source Material also doesn't seem to work (I tried with both the checkbox activated and not), so regardless of what I do, there is at least one "extra" file for each converted video.

Still, this is a big improvement over v.1 and should at least get me through the night - I will keep checking in here!

arthurf’s picture

Any information in the logs that mentions a failure to delete the original content? Line 249 of mm_node.content.inc is where that file should be deleted.

bcobin’s picture

Thanks, arthurf - I actually am getting nothing in the logs at all, save for a message like this: "Run control: mm_utlities: This configuration Connvert to OGG does not run on cron"

This is as it should be - I'm running the processes manually as I'm debugging things, so none of the processes are scheduled to run on cron at the moment. There are no other log entries related to MM.

Update: I also notice now that the Delete source checkbox doesn't save - in other words, if checked and saved, it comes back as unchecked. This is in the delete source process, not Delete when source is deleted in the file selection step.

darrick’s picture

I've been updating the code a bit lately. I've talked to arthur about merging the "store file back to CCK field" into the "save to a node" step. Since they both do the same thing.

As for the "Delete source checkbox" can you file a separate issue for that?

bcobin’s picture

I've talked to arthur about merging the "store file back to CCK field" into the "save to a node" step. Since they both do the same thing.

Aha! Nice to know I'm not "losing it..."

As for the "Delete source checkbox" can you file a separate issue for that?

Yes - I'd be happy to, but I'd rather not just yet. I'm trying to work this through systematically and I'd rather make sure each step is working correctly (or not) before I proceed to the next. I had been testing using a very short video file (only about 5 seconds) and now things don't seem to be working with a longer (30 second) video file. (For example, cron doesn't seem to start the process at all - I have to run it manually - and the process now stops after transcoding with a file status of "locked.")

Insofar as delete source would likely be the last step in the chain, I'd rather go through things sequentially and file well-documented reports; this would include what I mention above - or not!

I'm focused now on getting this working, so it shouldn't take too long - especially if I get timely responses like this... thank you!