Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = "C:\\files\\";
- $files = array();
- // game is http://nlds25.cdnl3.neulion.com/nlds_vod/nfl/vod/2010/09/12/2_2010091200_CLE_TB_2010_20100912_home_whole_3000.mp4/02/0824.mp4
- // equals 2 hours 8 mins 24 seconds long.
- // grab each 2 seconds of footage.
- // $i is seconds.
- $accum = 0; // accum counter for totals files - dont want this too high or we bottleneck
- $curfile = 0;
- echo "echo \"\" > total".$curfile.".h264\r\n";
- for( $i = 0; $i < (2*60 + 8)*60 + 25; $i+=2 )
- {
- $dir = sprintf("%02d", ($i / 3600) );
- $str = sprintf( "%02d%02d", ($i % 3600) / 60, ($i % 60) );
- $url = "http://nlds25.cdnl3.neulion.com/nlds_vod/nfl/vod/2010/09/12/2_2010091200_CLE_TB_2010_20100912_home_whole_3000.mp4/$dir/$str.mp4";
- /* echo "wget \"".$url."\"\r\n";
- echo "move $str.mp4 $dir$str.mp4\r\n";
- echo "C:\Users\dan\AppData\Roaming\Yamb\MP4Box.exe -raw 1 $dir$str.mp4\r\n";
- echo "C:\Users\dan\AppData\Roaming\Yamb\MP4Box.exe -raw 2 $dir$str.mp4\r\n";
- echo "copy /B total".$curfile.".h264 +".$dir.$str."_track1.h264 total".$curfile.".h264\r\n";
- $accum++;
- if( $accum > 200 ) { $accum = 0; $curfile++; echo "echo \"\" > total".$curfile.".h264\r\n"; }
- */
- echo $dir.$str." ".substr( $files[$i/2], 0, -4 )."<br>";
- }
- echo "copy /B total0.h264 ";
- for( $i = 1; $i <= $curfile; $i++ )
- {
- echo "+total".$i.".h264 ";
- }
- echo "all.h264\r\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement