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 07-19-2010, 10:08 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Rep: Reputation: 48
watch subtitle in mplayer


I had a video whose subtitle file was out of sync.
Let us say in movie subtitle 'b' should come 4 seconds after 'a'.
But in my srt file 'b' comes one second after 'a'.
I tried to use y(to move to next subtitle), g(to go to previous subtitle) but
What if 'b' appears just after 'a' then I have to press 'key g' again & again till time for 'b' has come.
I wish there was a way that when I press a key then next dialogue in subtitle file comes else no subtitle on screen ?
Is that possible ?
 
Old 07-19-2010, 10:16 AM   #2
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
I don't completely understand what you want to do. Do you mean that the subtitles lag behind the audio? Do you mean that the audio lags behind the subtitles? If so, MPlayer has commands to adjust for that.

Code:
mplayer --help
. . .
Basic keys: (complete list in the man page, also check input.conf)
 <-  or  ->       seek backward/forward 10 seconds
 down or up       seek backward/forward  1 minute
 pgdown or pgup   seek backward/forward 10 minutes
 < or >           step backward/forward in playlist
 p or SPACE       pause movie (press any key to continue)
 q or ESC         stop playing and quit program
 + or -           adjust audio delay by +/- 0.1 second
 o                cycle OSD mode:  none / seekbar / seekbar + timer
 * or /           increase or decrease PCM volume
 x or z           adjust subtitle delay by +/- 0.1 second
 r or t           adjust subtitle position up/down, also see -vf expand

 * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
I sincerely hope that this information will help you.

Last edited by Telengard; 07-19-2010 at 10:19 AM. Reason: bold tags, code tags
 
Old 07-19-2010, 10:34 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
sometimes subtitle leads audio & sometimes lags. So it would be better if I press a key & next dialogue appears rather than following time line .
Is that possibke ?
 
Old 07-19-2010, 11:03 AM   #4
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by sumeet inani View Post
What if 'b' appears just after 'a' then I have to press 'key g' again & again till time for 'b' has come.
I wish there was a way that when I press a key then next dialogue in subtitle file comes else no subtitle on screen ?
I tried the 'g' and 'y' keys in MPlayer, but they didn't seem to do anything at all. When I tried them in SMPlayer they seemed to work for a few lines, but then I could not get the subtitles to reliably advance beyond a certain point.
 
Old 07-19-2010, 05:08 PM   #5
brserek
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 1
I'd like to suggest a completely different thing. It looks like Sumeet has .srt file that was created for different .avi file. So first thing to do is to download new subtitles with SMPlayer, or trying to adjust subtitles in Gaupol, SubtitleEditor or another editor.
 
Old 07-19-2010, 05:20 PM   #6
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by brserek View Post
I'd like to suggest a completely different thing. It looks like Sumeet has .srt file that was created for different .avi file. So first thing to do is to download new subtitles with SMPlayer, or trying to adjust subtitles in Gaupol, SubtitleEditor or another editor.
I actually thought of this, but would not know where to begin much less suggest how.
 
Old 07-19-2010, 05:41 PM   #7
doriama
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Smile SMPlayer rocks!!!

I have to agree that SMPlayer is the easiest way to play your movies and be able to tweak a variety of player settings. You're still using Mplayer, but this added UI extends it with added features and functionality. I often use the "download subtitles from subtitles.org" feature and find my .srt. How awesome is that?
Doriama
 
Old 07-20-2010, 01:25 AM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
I think with subtitle editor we can adjust subtitles to appear at desired time but there are many people who watch movies only once. Also synchronised subtitles are hard to find if they did not came packed with source of your video.There are people who don't want to bother about adjusting the subtitles first then watch that movie again , If they are not into business of uploading for others to see.
I propose in that case the best option is
Quote:
it would be better if I press a key & next dialogue appears rather than following time line . If I don't press a key then current dialogue remains put. I agree this method disregards the time info present in subtitle file. But what is its use when it does not hold for the video ?
 
Old 07-20-2010, 03:47 AM   #9
brserek
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 1
I still think that Gaupol is better solution. You don't have to adjust every subtitle separately. You may change frame rate, push all subtitles forward or backward, set time for first and last subtitle and all other will be autoadjusted. It's no more than few minutes of work.
 
Old 07-20-2010, 04:09 AM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
You are right , brserrek
Provided viewer knows that subtitle file is for a video with 25 (or 30) frame per second.
I get my subtitles from www.opensubtitles.org .
Even in the nfo file attached with srt there was no indication about video characteristic which befits the srt.
 
Old 07-21-2010, 04:57 AM   #11
brserek
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 1
What I meant is, that you have to try. Just check if subtitles are to slow or to fast, is synchronisation getting worse with time or not? The best Gaupol's feature is setting correct time for first and last subtitle - everything in between is set automatically.
Just try it.
 
1 members found this post helpful.
Old 07-21-2010, 05:31 AM   #12
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
I will try gaupol.
in my subtitles were a bit slower because the delay at begining was few seconds & by the end it of movie reached more than hundred seconds late.
 
Old 07-21-2010, 09:54 AM   #13
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
Thank you brserek
What a great application gaupol is.
I would recommend to viewers to get your subtitles (if you didn't got synchronised ones with the video) from www.opensubtitles.org with highest subtitle rating then use gaupol to set start & end time .
It is almost eggjact !


I have noticed that 24-30 frame per second conversion make subtitle come early.

Last edited by sumeet inani; 07-23-2010 at 06:05 AM.
 
  


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
mplayer subtitle problem vipin_jss Linux - Software 3 10-04-2008 12:52 AM
Mplayer subtitle crash... Elric of Grans Linux - Software 0 01-20-2007 08:24 PM
how can i do hebrew subtitle in MPlayer ? SlackwareMan Linux - Software 1 07-29-2004 12:08 PM
mplayer subtitle problem perdesiz Linux - Software 5 06-03-2004 05:11 PM
mplayer subtitle problems GT_Onizuka Linux - Software 1 10-26-2003 01:35 AM


All times are GMT -5. The time now is 03:59 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