Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:video:archiving_mini_dv [2011/02/02 21:23] – billh | docs:video:archiving_mini_dv [2011/02/02 21:35] (current) – billh | ||
---|---|---|---|
Line 3: | Line 3: | ||
- rip footage to [[#iMovie]] | - rip footage to [[#iMovie]] | ||
- | - re-encode .dv files with [[#MPEG Streamclip]] | + | - re-encode .dv files with [[#MPEG Streamclip]] |
+ | - [[#rename files]] according to my archive scheme | ||
+ | - I then use MediaTomb to automatically read certain directories and make these videos available for my PS3 to stream | ||
===== iMovie ===== | ===== iMovie ===== | ||
Line 38: | Line 40: | ||
- click Make MP4 | - click Make MP4 | ||
- | ===== ffmpeg | + | ====== |
- | FIXME | + | All of my dv tapes are numbered, such as 001, 013, 021, etc... |
+ | |||
+ | **rename_home_movies.php** | ||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | /* usage: php rename_home_movies.php < | ||
+ | * | ||
+ | * all files in < | ||
+ | * " | ||
+ | */ | ||
+ | |||
+ | if( !isset($argc) || $argc < 2 ) | ||
+ | exit(basename(__FILE__) . " < | ||
+ | |||
+ | if( !is_dir($argv[1]) || !is_readable($argv[1]) ) | ||
+ | exit(" | ||
+ | |||
+ | $dirpath = $argv[1]; | ||
+ | |||
+ | chdir($dirpath); | ||
+ | $dh = opendir($dirpath); | ||
+ | $dirname = str_replace(realpath(" | ||
+ | |||
+ | $noFilesRenamed = true; | ||
+ | |||
+ | while( $file = readdir($dh) ){ | ||
+ | if( preg_match("/ | ||
+ | continue; | ||
+ | |||
+ | $newName = " | ||
+ | |||
+ | $result = rename($file, | ||
+ | // $result = true; // use this line to test | ||
+ | |||
+ | if( !$result ){ | ||
+ | echo " | ||
+ | }else{ | ||
+ | echo " | ||
+ | $noFilesRenamed = false; | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | closedir($dh); | ||
+ | |||
+ | if( $noFilesRenamed ) | ||
+ | echo "no files were found to rename\n"; | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== See Also ===== | ||
+ | * [[ffmpeg]] | ||
+ | * [[Quicktime]] |