In an effort to rid myself of my many duplicate video files yesterday (both in original and converted!!) I pruned off the original directory best I could, moved the converted directory and set all my videos to status 1.

I figured this would re-encode everything and I could start fresh.

However, I'm seeing today that I now have a slew of duplicate files again in my converted directory, with matching file sizes and new dates. I see they were created a few minutes apart. Maybe I'm doing something wrong.

-rw-r--r-- 1 root root 13347918 Mar 14 20:54 a.flv
-rw-r--r-- 1 root root 13347918 Mar 14 20:57 a_0.flv
-rw-r--r-- 1 root root 13079618 Mar 14 20:46 b.flv
-rw-r--r-- 1 root root 13079618 Mar 14 20:55 b_0.flv

My crontab looks like this. Am I supposed to have both lines? Is it maybe calling it twice because I did this? Maybe the videos are taking too long to encode, and after 10 minutes it's grabbing the same video again, because the first encode hasn't finished? I don't always have duplicates, probably 50/50 ratio.

*/10 * * * * cd /var/www/sites/all/modules/video; php video_scheduler.php
*/10 * * * * cd /var/www; php cron.php

Comments

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

You don't need to have two cron jobs when the main Drupal cron job also converts the videos. I would also put more time between cron runs. Also, I usually run cron via the webserver, so call wget -O- -q http://www.yoursite.com/cron.php.

Please let me know if it works.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closed because of lack of response.