Skip to content

Conversation

@mojahid8238
Copy link
Contributor

Feature: Add Terminal Video Playback Option (--vo=tct)
Closes: #19

🚀 Summary of Changes
I noticed the discussion in Issue #19 and have implemented an option for terminal-based video playback.

This integration gives the user a choice after selecting a video:

Terminal Playback: Uses mpv --vo=tct to play the video directly in the terminal window.

External MPV Playback: Launches the video in the standard external MPV player.

💡 Notes on Quality
The visual quality of the terminal playback using the tct driver is significantly lower than the actual video quality rendered by the external MPV player.

However, this feature provides a lightweight alternative for users who need to:

Avoid launching a full graphical window.

Stay entirely within the terminal interface.

The feature adds a basic level of terminal video functionality which I believe is still a valuable option for GopherTube users.

⚙️ Implementation
Added a prompt to choose between [t]erminal and [m]pv.

Uses mpv --vo=tct --really-quiet for cleaner terminal output.

Corrected the argument handling to pass options to mpv individually (fixing the initial parsing error).

Please see the demonstration below showing the new [t]erminal playback prompt

Screenshot From 2025-11-21 01-45-16

@mojahid8238
Copy link
Contributor Author

The last commit changed the following: Unnecessary logs generated during video playback and downloading have been removed, and a download progress bar has been added for improved clarity and user experience.

@lmdamato
Copy link

lmdamato commented Nov 21, 2025

I'm unable to play videos at the moment. See video, I'm pressing t, but actually neither mode works.

Screen.Recording.2025-11-21.at.10.47.17.mov

@mojahid8238
Copy link
Contributor Author

This change adds checks to find two common problems: incompatible terminals for playback and outdated yt-dlp versions. It also helps with troubleshooting by adding error logs.

@mojahid8238 mojahid8238 requested a review from lmdamato November 22, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch videos directly in terminal

2 participants