Skip to content
Newer
Older
100644 111 lines (80 sloc) 3.65 KB
16c0680 @Vhati added GUI and logging
authored Oct 2, 2012
1 CompileSubs v3.00
604bf42 @Vhati first commit
authored Sep 9, 2012
2
3 Author:
4 David Millis (tvtronix@yahoo.com)
5
6
7 About
8
9 This takes a text transcript of datestamped commentary, made by
10 multiple people watching copies of the same video independently, and
4d7e682 @Vhati revised readmes
authored Sep 9, 2012
11 transforms it into another format. The time of each person's
12 comments can be shifted to correct for buffering, pausing, starting
13 early/late, etc.
604bf42 @Vhati first commit
authored Sep 9, 2012
14
15 It can read from the following sources:
16 Html MockTM event transcripts from the LousyCanuck blog.
17 Logs from TweetSubs, an app that collects comments live from Twitter.
18 A Twitter search for tweets from an account and @replies to it.
19 Tabbed text.
20
21 And it can write:
22 SubRip subtitles.
23 Tabbed text.
24 Html transcripts.
25 Html transcripts, posted directly to a Wordpress blog.
26
27 More parser and exporter modules can be added fairly easily.
28
29
30
31 Usage
32
33 Edit config.py.
34
35 Double-click compilesubs.py
36 (Linux and OSX should set permissions to make it executable)
37 OR
38 From a terminal, run: python compilesubs.py
39
40
16c0680 @Vhati added GUI and logging
authored Oct 3, 2012
41 There's also compilesubs_gui.py, which makes it easy to
42 timeshift individual users. But it doesn't have the dialogs
43 yet to assign its own settings, so it reads config.py too.
44 Use it to watch the video, "grab" any comment that's
45 out of sync, and "place" it at the current time.
46 In case of a crash, the GUI auto-saves an alternate
47 config file with any changes it made.
48
49
50 If config.py ever gets mangled somehow, there's a copy of
51 the stock one in the ./share/ directory.
52
604bf42 @Vhati first commit
authored Sep 9, 2012
53
54 Changes
55
16c0680 @Vhati added GUI and logging
authored Oct 3, 2012
56 3.00 - Added a GUI for setting per-user fudges.
57 Added logging.
da54afa @Vhati added ignore_users
authored Sep 15, 2012
58 2.51 - Added ignore_users config setting.
604bf42 @Vhati first commit
authored Sep 9, 2012
59 2.50 - Broke up the monolithic code into parser/exporter modules.
60 Updated transcript_lousycanuck parser's snark_ptn regex.
61 Tweaked the tweetsubs_log parser to include tweets that had expired.
62 Added pickled_snarks parser/exporter.
63 Added twitter_search parser.
64 Added tabbed_text parser and exporter.
65 Added transcript_html exporter.
66 Added transcript_wordpress exporter.
67 Added an end_time setting to truncate at an in-movie time.
68 Added prompting at runtime for sensitive config settings.
69 Added this readme.
70 Added logging.
71 Renamed project from "MockTM Subtitles" to "CompileSubs".
72 2.40 - Added a parser for TweetSubs logs (the live script).
73 Added support for multiline snarks in write_srt(), if sources provide them.
74 Added a color demo subtitle at 0:00:01 to check the random palette mixture.
75 2.30 - Fixed a bug that broke filtering out negative times.
76 Reworked delta_str() to use formatted math instead of scraping.
77 Adjusted reply_ptn to leave a space when @MockTM appears mid-sentence.
78 Updated the tail_ptn regex that stops parsing blog articles.
79 Added an apostrophe variant to asciify().
80 2.20 - Moved blog-fetch code to a func, room for alternate sources (fetch_snarks_from_somewhere(...)).
81 Moved srt writing into a func.
82 Added color.
83 Wrote docstrings for funcs.
84 2.10 - The 1st unskipped tweet's "date" decides the 0:00 movie "time" for the rest,
85 even if negative "time" delays would drop that msg from the subtitles.
86 2.00 - Added per-user fudging.
87 Added negative time checking.
88
89
90
91 Requirements
92
16c0680 @Vhati added GUI and logging
authored Oct 3, 2012
93 The commandline interface only needs Python, and should run well
94 on any os. The GUI is more demanding... it will run on Windows
95 and Linux; no idea about OSX.
96
604bf42 @Vhati first commit
authored Sep 9, 2012
97 Python 2.6 or higher, but not 3.x.
98 http://www.python.org/getit/
16c0680 @Vhati added GUI and logging
authored Oct 3, 2012
99
100 VLC 2.x.x
101 http://www.videolan.org/vlc/
102
103 wxPython 2.8
104 http://www.wxpython.org/download.php
105
106
107
108 Sources
109
110 VLC Bindings (2012-09-28) http://wiki.videolan.org/Python_bindings
Something went wrong with that request. Please try again.