Getting Started
In this tutorial, you'll create a simple terminal recording that outputs a GIF. You'll install VCR#, write a basic tape file, and run your first recording. This takes about 5 minutes.
By the end, you'll have a working animated GIF showing "Hello, VCR#!" appearing in a terminal.
Prerequisites
You'll need:
- .NET 9 SDK installed
- Windows, macOS, or Linux
- A terminal/command prompt
Installing FFmpeg
FFmpeg is required for encoding videos and GIFs.
choco install ffmpeg
brew install ffmpeg
sudo apt update
sudo apt install ffmpeg
Verify installation:
ffmpeg -version
Installing ttyd
ttyd (>= 1.7.2) is required for terminal emulation.
choco install ttyd
brew install ttyd
sudo apt update
sudo apt install ttyd
Verify installation:
ttyd --version
Installation
Install VCR#
Install VCR# globally using the .NET CLI:
dotnet tool install --global vcr
Verify Installation
Confirm all dependencies are installed correctly:
# Check VCR#
vcr --version
# Check FFmpeg
ffmpeg -version
# Check ttyd
ttyd --version
All three commands should display version information. If any command fails, revisit the Prerequisites section above.
Your First Recording
Create a Tape File
Create a new file called hello.tape with this content:
Output hello.gif
Set Cols 80
Set Rows 20
Set Theme Dracula
Type "echo 'Hello, VCR#!'"
Enter
Sleep 1s
Let's look at what each line does:
Output hello.gif- Names your output fileSet Cols/Rows- Sets terminal size (80 columns × 20 rows)Set Theme- Chooses the Dracula color schemeType- Simulates typing text character-by-characterEnter- Presses the Enter keySleep 1s- Pauses for 1 second
Run the Recording
Now run VCR# with your tape file:
vcr hello.tape
You'll see VCR# start a browser, execute your commands, and encode the video. This takes 10-20 seconds.
Watch for the message: ✓ Recording complete: hello.gif
View Your Output
Open hello.gif in your browser or image viewer. You should see:
- An empty terminal appears
- Text is typed:
echo 'Hello, VCR#!' - The command executes
- Output appears:
Hello, VCR#! - The terminal pauses briefly
Notice how the typing appears character-by-character, just like a real terminal session. This creates the animated effect that makes your recordings look realistic.
What's Next?
Congratulations! You've created your first terminal recording.
Ready to build something more interesting? Try the Typing Demo tutorial to learn how to create realistic terminal interactions with navigation and editing.