View Full Version : changing the font in a time stamp
benw
3rd October 2013, 02:55
I have an .avi file in which the time stamp is in a very delicate font. I would like to change it to a bolder font. Is that possible?
Thanks!
ben
Guest
3rd October 2013, 09:24
How did you render the timestamps on the AVI?
Worst case, re-encode from your original, rendering with a larger font.
benw
3rd October 2013, 13:23
The time stamp was placed on the original file by a dvr in a pripriotory ? codec labeled .psf. I cannot find any program that will play this except the one from the dvr seller. I have copied this with total recorder off the screen to an .avi file. I would guess that it would be impossible to do anything with the font in this copy!
It is also possible to obtain an .asf from the dvr. This does not have a time stamp. Is there any possiblity that one is present that could be render to this file?
If you have any other ideas, I would appreciate your help.
Thanks!
Ben
wadecurtis
16th October 2013, 07:57
Hey did u get the solution or still looking for it?
casinos para chilenos (http://casinoonlinechile.org/)
benw
16th October 2013, 15:11
I am still looking. Any help would be aprreciated.
Ben
raffriff42
16th October 2013, 19:23
Avisynth + ShowSMPTE (http://avisynth.nl/index.php/ShowSMPTE#ShowSMPTE). Just set the starting offset manually, then set size, color, position etc.
Ghitulescu
17th October 2013, 09:09
Maybe a snapshot will help people willing to help you :)
My opinion is that you can't without any video editing steps.
raffriff42
17th October 2013, 12:42
Maybe a snapshot will help people willing to help you :)See previous thread:
http://forum.doom9.org/showthread.php?t=168819
https://www.dropbox.com/s/6jwk0yzm392qdae/vmware%20vmax%20web%20viewer%2001%20ch2-01.png?raw=1
Actually looking at it again, you can do this: (EDIT deleted)
Ghitulescu
17th October 2013, 16:55
As I thought, the TC is "burnt in". It can be "delogoed" then re-added.
benw
17th October 2013, 20:54
http://www.shannonacres.org/lp-with-time-stamps.htm
The link above shows the frame from the .psf file copied with total recorder -That date/stamp is not masked and shows background video - , the same date/stamp with a smaller date/stamp overlayed at the bottom of the frame on a mask, and the original date/stamp that I am trying to replicate. The correct date/stamp has a different date format and a 24 hour time format. I am mainly at this time trying to make the white font of the middle frame as bright as that of the bottom frame. I would like to also try to match the date and time stamps but that may or may not be necessary.
I have not had enough time to try your code above will respond when I do.
Thanks!@
Ben
benw
18th October 2013, 01:19
http://www.shannonacres.org/image001.png
http://www.shannonacres.org/image002.png
http://www.shannonacres.org/image003.png
These are the three frames discussed above.
Ben
pandy
18th October 2013, 09:59
Perhaps kernel morphological operation http://stackoverflow.com/questions/5154282/dilate-erode-modify-kernel-option on enlarged video - later resized down (or crop selected area, pointresize, kernel op, bicubic/lanczos downresize).
benw
18th October 2013, 18:17
I have used raffriff42's script to crop, resize, mask,and overlay the date/time stamp from the top right of a frame to the bottom midldle of a frame which requires two avisynth runs in virtualdub once all the variables are tested and found to be correct. The frame below shows that result:
http://www.shannonacres.org/image004.png
It is the same as the second frame above which I accomplished using six available avisynth scripts and one vitualdub filter. The above script saves a tremendous amount of time and can be used again without any changes except the file name and location.
The three things that I mentioned previously that it does not do that I wanted was:
1. Change the date stamp to yyyy/mm/dd format.
2. Change the time stamp to 24 hrs.
3. Make the font brighter - without making it larger.
I guess these are all imposible.
Thanks!
Ben
Here is the script as used for the first run. The second run removes the three areas noted:
AviSource("C:\1. LP software\2. overlays\dwell-1-0-frames-640x480-1.avi")
main = Last
crop_left = 0 ## set your own numbers here!
crop_top = 12
crop_width = 126
crop_height = 15
crop_left = Round(crop_left)
crop_top = Round(crop_top)
crop_width = Round(crop_width)
crop_height = Round(crop_height)
crop_width = crop_width - (crop_width % 2)
crop_height = crop_height - (crop_height % 2)
#/*
## test #1: determine crop dimensions
return Crop(crop_left, crop_top, crop_width, crop_height)
## test crop; set 4 variables above as required;
## (suggest you choose the nearest *even* numbers)
## when done, comment out the above statement
#*/
new_width = crop_width * 1 ## or whatever *integer* you like
new_height = crop_height * 69/80
#/*
## test #2: determine new size:
return Crop(crop_left, crop_top,
\ crop_width, crop_height)
\ .PointResize(new_width, new_height)
## test size; set 2 variables as required;
## when done, comment out the above statement
#*/
new_left = 253
new_top = main.Height - new_height - 8
## (the above example puts the overlay bottom-left)
new_left = Round(new_left)
new_top = Round(new_top)
#/*
## test position and show final result:
return main.Overlay(
\ Crop(crop_left, crop_top,
\ crop_width, crop_height)
\ .PointResize(new_width, new_height),
\ x=new_left, y=new_top)
## ...Now go back and fine tune the numbers
#*/
## make white text over black background
## (to continue, comment out the above statement)
border_width = 2 ## or whatever you like
border_width = Round(border_width)
border_width = border_width - (border_width % 2)
background_overlay = BlankClip(main,
\ width=new_width + 2 * border_width,
\ height=new_height + 2 * border_width)
main_plus_background = Overlay(
\ background_overlay,
\ x=new_left-border_width, y=new_top-border_width)
## show *improved* final result:
return main_plus_background.Overlay(
\ Crop(crop_left, crop_top,
\ crop_width, crop_height)
\ .PointResize(new_width, new_height)
\ .Tweak(sat=0).Levels(220, 1, 255, 0, 255),
\ x=new_left, y=new_top,
\ mode="lighten")
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.