Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-22-2011, 01:59 AM   #1
sumeet inani
Registered: Oct 2008
Posts: 901
Blog Entries: 26

Rep: Reputation: 49
playing video files with gmplayer by default & guessing subtitle file

I am using debian 6.0.0
The video files are played by default in totem.
I like gmplayer.
Also I want to make script for intelligently guessing as follows
Get all the names of file in <folder-containing-video> . See which of them (among *.srt.*.sub.*.ssa) has maximum number of characters matching with video name. That file will be parameter for sub option .
I saw a desktop entry for gvim which is like
gvim -f %F -f means foreground
I can try
gmplayer -vo xv -sub what-should-I-write-here %F
Old 05-22-2011, 02:43 AM   #2
sumeet inani
Registered: Oct 2008
Posts: 901
Blog Entries: 26

Original Poster
Rep: Reputation: 49
Turns out that in file properties > open with tab I can change default application for corresponding type.
I thing the changes get noted in ~/.local/share/applications/mimeapps.list

I can drag the subtitle file into video or control frame of gmplayer.

Just that thought about intelligent guessing came to my mind. I can't find a way to accomplish that .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing 2 subtitle simultaneous for movies nima0102 Linux - Desktop 3 12-29-2009 05:26 PM
playing video files veera1904 Linux - Software 2 04-17-2006 08:40 AM
playing video files saipraveen Linux - Newbie 10 08-12-2005 01:23 AM
playing rm video files rakesh_em Slackware 3 10-05-2004 02:50 PM
I'm guessing my video card is going bad? Linux~Powered Linux - Hardware 3 04-28-2004 05:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration