LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-22-2011, 02:59 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

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


Hi,
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, 03:43 AM   #2
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
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 .
 
  


Reply


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 06:26 PM
playing video files veera1904 Linux - Software 2 04-17-2006 09:40 AM
playing video files saipraveen Linux - Newbie 10 08-12-2005 02:23 AM
playing rm video files rakesh_em Slackware 3 10-05-2004 03:50 PM
I'm guessing my video card is going bad? Linux~Powered Linux - Hardware 3 04-28-2004 06:32 PM


All times are GMT -5. The time now is 05:04 PM.

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