General > General Technical Chat
Need to create a h.264/or/h.265 video of a giant timer.
BrianHG:
And my project continues...
A need to create 4 videos of a 480p .mp4 or .mkv video of a giant timer. The giant timer will have +/- minutes, seconds with one decimal point tenths of a second. The 4 videos will need to contain:
1) A 15 second countdown in blue with the last 5 seconds in red, then a 3 minute count up in yellow with the last minute in red, then a 2 minute count down in blue.
2) Same as #1, but replace the 3 minutes count up with 4 minutes.
3) Same as #1, but replace the 3 minutes count up with 5 minutes.
4) Same as #1, but replace the 3 minutes count up with 6 minutes.
The timer will be full screen sized, with a smaller title printed above.
Now, none of my computers are fast enough for screen capture or any real-time video encoding. I guess what I am looking for is something like video titling software which can be setup to create a customized stop-watch with just a black background and render and encode a video for me. I already have utility which can take my h.264/265 videos and replace the audio track with the sound samples I created to finish the video.
Is there any public domain/free text video presentation programs which can do this in windows 7?
mariush:
You can use virtualdub - this improved version : https://sourceforge.net/projects/vdfiltermod/ - to capture the desktop using a low cpu usage / lossless compression codec like MagicYUV (the free version is fine ) and then resize and compress to h264
You could "generate" the video in Virtualdub by creating a blank video with the duration you desire and you could create a "subtitle" file with your timer and use a subtitle filter to put the timer on the blank video. Then you could compress it.
srt subtitles are very easy to programatically make
BrianHG:
--- Quote from: mariush on October 06, 2023, 04:21:36 am ---You can use virtualdub - this improved version : https://sourceforge.net/projects/vdfiltermod/ - to capture the desktop using a low cpu usage / lossless compression codec like MagicYUV (the free version is fine ) and then resize and compress to h264
You could "generate" the video in Virtualdub by creating a blank video with the duration you desire and you could create a "subtitle" file with your timer and use a subtitle filter to put the timer on the blank video. Then you could compress it.
srt subtitles are very easy to programatically make
--- End quote ---
Hmmm. I wonder if .srt can display a font as large as the screen. Maybe. What I would have to do is made a blank video, Create a .srt. Then play that back to be re-transcoded so that I convert the soft-subtitle to a hard-sub-title and re-encode so that my final video does not have any subtitle stream, but the text as part of the video picture.
This will take more than a day of fidling to get it to function right. I'll reserve your idea as a last resort while I hope someone offers me a better solution over the next day.
Thanks mariush, at least I have an all else fails solution as I have used virtualdub & FDDShow with avisynth scripts, so at least I know my way around.
mariush:
You can use Virtualdub to capture a 640x480 region of your screen, a black rectangle, your desktop or black something in an application (or whatever color). Then load that video in Virtualdub and cut it to your length and put the subtitle filter on it.
There's also filters for just placing text on the movie, or you can put the text as a logo with transparent background.
Alternatively, you could use Python or PHP or whatever to generate one bitmap picture for every second and then load the image sequence in virtualdub as a 1fps movie , and tell virtualdub to resize it to 30-60 fps for every bitmap loaded. ( if you want decimals after seconds you'd probably want to generate 10 bitmaps per second so you'd treat it as a 10fps movie and from settings change it to generate 3-6 frames for every input bitmap, to get 30-60 fps movie)
in php this is a 10-15 minute job ... create true color bitmap, select font that's monospaced (so that digits don't move all over the screen horizontally) , print timer at position in picture, print your title text with another font if you desire , save picture as bitmap or png or gif, close bitmap , repeat with next frame.
Whales:
Generate the frames as still images, then use ffmpeg to convert them into the final video file. This way the output is completely predictable, you can use any method of generating the source images and you and don't need to run a screencap in realtime.
For generating the images: use whatever language you're familiar with. I'd go for shell scripts and ImageMagick. Other people will prefer python libs. I'm sure the Windows-centric options of visual basic and dotnet will let you save pngs of a GUI.
Navigation
[0] Message Index
[#] Next page
Go to full version