I have a bunch of blog posts from an old site, some of which have .flv videos. I'm using the Migrate module to migrate all of these blog posts and the videos are the only piece left. I'm using the Video module for the embedded videos in my blog posts.

How do I use the Migrate module to import those videos into drupal?

1 Answer 1


I had to migrate a few thousand flv and mp4 videos. I ended up just migrating the file name into a field, uploading the videos files to s3 and then using a custom node.tpl.php to render the player:

  //display legacy videos
  $mediaid = $content['field_mediaid']['#items'][0]['value'];
  if ($mediaid != '') {
      $video2 = '<a href="http://mydomain.s3.amazonaws.com/videos/ka/'.$mediaid.'.mp4" id="player" class="flowplayer"></a>';
              flowplayer_add('#player', array(
                'clip' => array(
                  'autoPlay' => TRUE
        print $video2;
 //hide the mediaid field from display

Not very elegant but it got the job done. I used migrate 7.x-2.2 back then, maybe 2.5 has better video and/or file import features.

  • I'm specifically looking for a Migrate solution. I'd like to avoid non-Migrate answers b/c they might discourage actual answers. Can you move this answer over to my other, more general question? drupal.stackexchange.com/questions/50616/… Nov 29, 2012 at 6:24
  • I can accept it as the answer over there, but I'd rather not accept it as the answer here. Nov 30, 2012 at 2:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.