Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:video:archiving_mini_dv [2011/02/02 20:59] – created 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]] or [[#ffmpeg]] | + | - 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 10: | Line 12: | ||
- Save the project and close iMovie | - Save the project and close iMovie | ||
- | ===== mpeg streamclip | + | ===== MPEG Streamclip |
- | FIXME | + | - create a preset with the following: |
+ | * MPEG-4 container | ||
+ | * H.264 video encoding | ||
+ | * AAC audio encoding, stereo, 128 kbps | ||
+ | * 60% Quality | ||
+ | * Multipass | ||
+ | * Limit Data Rate to 1000 Kbps | ||
+ | * Deinterlace Video | ||
+ | * 640 x 480 (4:3) frame size (or 854 x 480, 16:9 for widescreen) | ||
+ | - if encoding many files | ||
+ | - go to List -> Batch List | ||
+ | - click the Add Files... button | ||
+ | - select "All Files" from the filter at the bottom | ||
+ | - go to where your iMovie project is and expand to the Media folder (or open any folder with the files you want to encode if you didn't use iMovie) | ||
+ | - select all files and click "To Batch" | ||
+ | - select Export to MPEG-4 as the task and click OK | ||
+ | - click Presets... | ||
+ | - select your preset and click Load | ||
+ | - click To Batch | ||
+ | - click start to begin encoding all files in the batch | ||
+ | - if encoding one file | ||
+ | - open a single file | ||
+ | - go to File -> Export to MPEG-4... | ||
+ | - click Presets... | ||
+ | - select your preset and click Load | ||
+ | - click Make MP4 | ||
+ | |||
+ | ====== rename files ====== | ||
+ | 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]] | ||
- | ===== ffmpeg ===== | ||
- | FIXME |