Sponsored Content
Full Discussion: Synchronizing Subtitle track
Top Forums Shell Programming and Scripting Synchronizing Subtitle track Post 302561326 by ratheeshjulk on Monday 3rd of October 2011 10:33:02 PM
Old 10-03-2011
As you said, it was a movie subtitle. And as the movie subtitle says, 'your code 'It was great.
I have a pseudo-UNIX environment for Windows.Using which i can edit the subtitles to sync it with video ......
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Regarding Synchronizing 2 CVS.

Hi As a System Admin, I have to handle synchronzing 2 CVS. But I'm new to CVS & hardly have any knowledge of such tools. Please help me, is there any way, that can automatize the process for synchronizing the 2 remotely residing CVS database with out manual intervension. Ex:- CVA... (1 Reply)
Discussion started by: S.Vishwanath
1 Replies

2. Shell Programming and Scripting

Synchronizing files using an input file

Who wants a challenge? ;) I have a Multimedia station (Damn Small Linux) that plays Video files using MPlayer. I'm in desperate need of a Script that would be able to do the following: The Multimedia station should read, at boot or through a cron job, a "Playlist" file on a remote machine.... (1 Reply)
Discussion started by: mkoenders
1 Replies

3. Programming

synchronizing multiple threads in unix

hi all! I wanted to know how to synchronize multiple threads in unix It would be better if someone give some code samples Thanx (1 Reply)
Discussion started by: bankpro
1 Replies

4. UNIX for Dummies Questions & Answers

Possible to track FTP user last login? Last and Finger don't track them.

Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in. Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies

5. UNIX for Dummies Questions & Answers

Synchronizing primary and secondary name servers

Hello All, Does some one know how to synchronize the primary name server with the secondary without knowing the domains on which synchronization failed. I have just done /usr/sbin/ndc reload Alternatively how do i find out the domains on which synchronization failed? (4 Replies)
Discussion started by: a2z1982
4 Replies

6. Ubuntu

Synchronizing with HTC Fuze

I have been trying to synchronise my calendar and contacts using Ubuntu and Windows Mobile on my HTC smart phone. I have read who knows how many posts, threads, blogs but still can't get this to work. I have synce installed, when I plug in my phone it recognises the phone, and lets me view... (2 Replies)
Discussion started by: naiku
2 Replies

7. Programming

infinite loop, synchronizing gossip-based method

the following code runs, but it hangs somewhere, i don't know why, #include<iostream> #include<vector> #include<cstdlib> #include<ctime> #include<list> #include<pthread.h> #include<cstring> using namespace std; pthread_mutex_t listlock = PTHREAD_MUTEX_INITIALIZER;... (3 Replies)
Discussion started by: saman_glorious
3 Replies
SUBS(1p)						User Contributed Perl Documentation						  SUBS(1p)

NAME
subs - convert, join, split, and re-time subtitles FORMAT
subs [options] subfile [ subfile ... ] OPTIONS
-a coeff, -b time a and b coefficients in linear transformation u=at+b, where t and u are src and dest times ( default(identity transform) is [a=1,b=0] ). -a can be set as ratio, f.ex. 23.9/25 -c codec Use codec to write file. Run 'subs -h' for list of installed codecs. -d Try to prolong duration of quickly disappearing text. 'Quickly' is less than 0.8 second per line of text. -e command Run perl code for each line of text in file. On each run, the text and time variables are initialized, and new values, if any, written to the file. The variables are used for: $_ subtitle text line $b cue beginning $e cue end $i line number $n number of lines %p persistent data between runs The -e option can be specified several times -h Display help -i Edit files in place ( makes backup in .bak files ) -j sec Time interval between joins, seconds (default 2) -o file File to save processed subtitles (default out.sub) -O Separate overlapped lines -p t1 t2 or -P t2 t1 Set a control point, where t1 is time of a phrase spoken in the film and t2 is time when the same phrase as appears in the subtitle. Two points are required for deducing -a and -b coefficients; if only one point is specified, it is assumed that the other one is [0,0]. Times can be relative, f.ex. -p 01:00 +3.5 -p -20 1:00:00 Options -P and -p are the same except the argument sequence is reversed. -P is to be used when arguments to -p were typed manually and in wrong order. -q t1 t2 Restrict changes, if any, in time span t1-t2. Word 'end' can be used as an alias to the end of the file. Default values are '0' and 'end'. -r rate Force frame-per-second rate for frame-based subs -s time Split in two parts by time -v Be verbose -z file.sub Zip subtitle files so time information is read from file.sub, while text information is read from the input file(s). NOTES
The time format is either [[HH:]MM:]SS[.MSEC] or subtitle format-specific EXAMPLES
Warning: -i is a great feature, but use it with certain caution. If subtitles are shown too early ( 5 seconds): subs -i -b 5 file.sub If subtitles are for a movie in 25 fps, need to be for 24 ( actual for frame-based formats only ). subs -i -a 24/25 file.sub If subtitles start ok, but in 1 hour are late in 7 seconds: subs -i -p 0 0 -p 1:00:00 +7 file.sub Join two parts with 15-second gap subs -o joined.sub -j 15 part1.sub part2.sub Split in two after 50 minutes and half a second ( makes basename.1.sub and basename.2.sub ). subs -o basename.sub -s 50:00.5 toobig.sub Remove closed caption-specific comments such as '[Sneezing]' or '[Music playing]' subs -e 's/[s-]*[.*]s* *//gs' sub.sub BUGS
Subtitles written as ".smi" format may differ from original. SEE ALSO
Subtitles - backend module for this program AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. perl v5.14.2 2009-12-22 SUBS(1p)
All times are GMT -4. The time now is 12:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy