Dear all,
I'm in the middle of migrating a D6 site with lots of videos. Used BlueDroplet/Storage and have to migrate the videos.
I now try to understand how the module works and got the following questions:

1) in my (video-) field table a find the FID that connects to the files (video and thumb) in the file_managed table. So far I understand that. But- WHERE does the converted/transcoded video get connected to it's entity? Can't imagine this is done by the filename containing the timestamp of the original file?

2) I now wonder how to programmatically migrate my existing videos. I can provide the path to the original file, transcoded file and thumbnail. My plan was to write the correct data into the mentioned tables with a script (or is there a better way). But how could I trigger re-transcoding
Any hint appreciated!
Tom

Comments

thommyboy created an issue. See original summary.

thommyboy’s picture

Title: Programatically add videos to entities » Programatically add videos to entities / thumbs generation

Ok, I managed to get most of it to work. I can now add videos to existing nodes with a script via VBO. One thing though is missing:
- The video gets queued for encoding and encoding works correctly
- The THUMBS are NOT assigned to the node. They are generated and visible in node/edit but not yet managed files. One NEED to edit/save the node again to make it happen, it's not triggered on programmatical entity_save()

thommyboy’s picture

Status: Active » Closed (works as designed)

This needed some deep diving into the module. Some code regarding thumbnails is executed on form display so I had to extract the functions an put together a VBO script. In case someone needs something like me (having nodes and bulk-assigning videos e.g. while doing a D6-D7 upgrade, contact me ;)