VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. I use Adobe Premiere Pro and I'm looking for a solution to create a custom on screen video counter - using minutes and seconds in this format 1:00 . I'd like to the actual time running as my video clip is playing. Is there a plug-in I can get to create this? If anyone knows of anything I can use, please share it.

    Thanks!
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    If you can take Avisynth input:

    ShowSMPTE(x=100,y=120)


    See the help for details.

    Note that after the seconds it shows frames, eg if you're using 25fps, it will count to 24 then 0 each second.
    Quote Quote  
  3. I'm going to be exporting my timeline to an AVI file and then converting it to a flash FLV file for the final product. Will this still work?
    Quote Quote  
  4. Originally Posted by foochuck
    I'm going to be exporting my timeline to an AVI file and then converting it to a flash FLV file for the final product. Will this still work?
    If you are creating a Flash file, why not use ActionScript to generate the counter?

    Have a look at http://www.enosoft.net/products/enodvdec/enodvdec.htm

    There is a Flash object with a counter etc. In this case, there is just a single still image but you can do the same thing with a movie. (The ActionScript also uses your computer's clock to display the time and date).

    The ActionScript is:

    Code:
    function updateTimecode() {
    	timecode.text = "";
    	var milliseconds = getTimer();
    	var seconds = int(milliseconds / 1000);
    	milliseconds = milliseconds - seconds * 1000;
    	var minutes = int(seconds / 60);
    	seconds = seconds - minutes * 60;
    	var hours = int(minutes / 60);
    	minutes = minutes - hours * 60;
    	var frames = int(milliseconds / 33);
    	if (hours < 10){
    		timecode.text = timecode.text + "0";
    	}
    	timecode.text = timecode.text + String(hours) + ":";
    	if (minutes < 10){
    		timecode.text = timecode.text + "0";
    	}
    	timecode.text = timecode.text + String(minutes) + ":";
    	if (seconds < 10){
    		timecode.text = timecode.text + "0";
    	}
    	timecode.text = timecode.text + String(seconds) + ";";
    	if (frames < 10){
    		timecode.text = timecode.text + "0";
    	}
    	timecode.text = timecode.text + String(frames);
    	updateAfterEvent();
    }
    function updateRectime() {
    	rectime.text = "";
    	recdate.text = "";
    	now = new Date();
    	var seconds = now.getSeconds();
    	var minutes = now.getMinutes();
    	var hours = now.getHours();
    	var day = now.getDate();
    	var month = now.getMonth() + 1;
    	var year = now.getYear();
    	if (hours < 10){
    		rectime.text = rectime.text + "0";
    	}
    	rectime.text = rectime.text + String(hours) + ":";
    	if (minutes < 10){
    		rectime.text = rectime.text + "0";
    	}
    	rectime.text = rectime.text + String(minutes) + ":";
    	if (seconds < 10){
    		rectime.text = rectime.text + "0";
    	}
    	rectime.text = rectime.text + String(seconds);
    
    	if (year < 110){
    		recdate.text = recdate.text + "0";
    	}
    	recdate.text = recdate.text + String(year - 100) + "/";
    	if (month < 10){
    		recdate.text = recdate.text + "0";
    	}
    	recdate.text = recdate.text + String(month) + "/";
    	if (day < 10){
    		recdate.text = recdate.text + "0";
    	}
    	recdate.text = recdate.text + String(day);
    	updateAfterEvent();
    }
    
    setInterval( updateTimecode, 33 ); 
    setInterval( updateRectime, 1000 ); 
    _root.createTextField(timecode, 1, 50, 50);
    _root.createTextField(rectime, 1, 50, 50);
    _root.createTextField(recdate, 1, 50, 50);
    updateTimecode();
    updateRectime();
    Quote Quote  
  5. Good idea. I'm gonna test out this code. Thanks
    Quote Quote  
  6. Originally Posted by foochuck
    Good idea. I'm gonna test out this code. Thanks
    You'll probably need to change the event timing. I suspect ActionScript may be able to trigger events when a movie changes frame - but I'm not sure since I haven't tried it with a movie.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!