pyTivo/wmcbrine.git
15 years agoReorg -- eliminating tivo_compatible_mp4() and _vc1().
William McBrine [Thu, 19 Mar 2009 23:06:51 +0000 (19 19:06 -0400)]
Reorg -- eliminating tivo_compatible_mp4() and _vc1().

15 years agoMinor reorg, mostly to remove the duplicative "TRANSCODE=YES" text.
William McBrine [Thu, 19 Mar 2009 22:11:20 +0000 (19 18:11 -0400)]
Minor reorg, mostly to remove the duplicative "TRANSCODE=YES" text.

15 years agoAllow passthrough of MPEG-1 video, but force remuxing, since TiVos don't
William McBrine [Thu, 19 Mar 2009 18:03:45 +0000 (19 14:03 -0400)]
Allow passthrough of MPEG-1 video, but force remuxing, since TiVos don't
like the MPEG-1 container. (This should be handled by the container
check, but ffmpeg -i doesn't properly distinguish the VCD and VOB
containers.)

15 years agoMore like this.
William McBrine [Thu, 19 Mar 2009 09:46:02 +0000 (19 05:46 -0400)]
More like this.

15 years agoAllow remuxing and/or reencoding audio without reencoding video. Useful
William McBrine [Thu, 19 Mar 2009 08:12:34 +0000 (19 04:12 -0400)]
Allow remuxing and/or reencoding audio without reencoding video. Useful
for transport streams, DVR-MS files, and DVD rips with PCM audio tracks,
for example.

15 years agoA couple more common video extensions. This list needs work.
William McBrine [Wed, 18 Mar 2009 08:24:58 +0000 (18 04:24 -0400)]
A couple more common video extensions. This list needs work.

15 years agogetFormat() is also pointless.
William McBrine [Wed, 18 Mar 2009 07:57:31 +0000 (18 03:57 -0400)]
getFormat() is also pointless.

15 years agoCheck MPEG-2 compatibility based on the container type rather than the
William McBrine [Wed, 18 Mar 2009 07:55:05 +0000 (18 03:55 -0400)]
Check MPEG-2 compatibility based on the container type rather than the
extension. Should be more robust, but needs more testing.

15 years agoParse the container type from ffmpeg output; check for appropriate
William McBrine [Wed, 18 Mar 2009 07:32:15 +0000 (18 03:32 -0400)]
Parse the container type from ffmpeg output; check for appropriate
containers for mp4 and vc1 push.

15 years agogetVideoCodec() is pointless, since "mpeg2video" is the only valid
William McBrine [Mon, 16 Mar 2009 01:48:28 +0000 (15 21:48 -0400)]
getVideoCodec() is pointless, since "mpeg2video" is the only valid
value, and is hardwired elsewhere. The video_codec option was already
omitted from help.txt.

15 years agoThis test is redundant now.
William McBrine [Sun, 15 Mar 2009 07:44:23 +0000 (15 03:44 -0400)]
This test is redundant now.

15 years agoOnly these audio codecs can be passed through.
William McBrine [Sun, 15 Mar 2009 07:32:37 +0000 (15 03:32 -0400)]
Only these audio codecs can be passed through.

15 years agoBuffer for wfile. May improve performance, suppress 3-5-6 errors? Size
William McBrine [Sun, 15 Mar 2009 05:24:11 +0000 (15 01:24 -0400)]
Buffer for wfile. May improve performance, suppress 3-5-6 errors? Size
may need tuning; more testing needed.

15 years agoReformatted the Javascript portion of settings.tmpl... the rest will be
William McBrine [Sat, 7 Mar 2009 04:18:38 +0000 (6 23:18 -0500)]
Reformatted the Javascript portion of settings.tmpl... the rest will be
harder.

15 years agoSome obsolete comments in README. This file needs a lot of work yet.
William McBrine [Sat, 7 Mar 2009 00:45:36 +0000 (6 19:45 -0500)]
Some obsolete comments in README. This file needs a lot of work yet.

15 years agoChanged the examples to my preferred location -- a "bin" directory under
William McBrine [Fri, 6 Mar 2009 23:58:05 +0000 (6 18:58 -0500)]
Changed the examples to my preferred location -- a "bin" directory under
pyTivo/. Keeping ffmpeg in the video plugin directory is bad, especially
since it's also used by the music plugin.

15 years agoRemoving the Windows binary of ffmpeg from the git source. (This makes
William McBrine [Fri, 6 Mar 2009 23:47:40 +0000 (6 18:47 -0500)]
Removing the Windows binary of ffmpeg from the git source. (This makes
my master branch equivalent to the old "semi-clean" branch.)

15 years agoDon't have to click edit.
William McBrine [Fri, 6 Mar 2009 15:28:24 +0000 (6 10:28 -0500)]
Don't have to click edit.

15 years agoHighlight a section to edit it, instead of having to highlight it and
William McBrine [Fri, 6 Mar 2009 14:34:39 +0000 (6 09:34 -0500)]
Highlight a section to edit it, instead of having to highlight it and
then press the "Edit Section" button.

15 years agoReplace print statements with calls to the logging system. More to do
William McBrine [Thu, 5 Mar 2009 22:20:43 +0000 (5 17:20 -0500)]
Replace print statements with calls to the logging system. More to do
here.

15 years agoSingle quotes.
William McBrine [Thu, 5 Mar 2009 19:44:54 +0000 (5 14:44 -0500)]
Single quotes.

15 years agoSlightly neater.
William McBrine [Thu, 5 Mar 2009 19:42:10 +0000 (5 14:42 -0500)]
Slightly neater.

15 years agoInclude the timestamp and IP in the log messages.
William McBrine [Thu, 5 Mar 2009 19:34:54 +0000 (5 14:34 -0500)]
Include the timestamp and IP in the log messages.

15 years agoOverride sys.excepthook and server error handler so that tracebacks go to the log.
Bill Nottingham [Tue, 20 Jan 2009 04:46:30 +0000 (19 23:46 -0500)]
Override sys.excepthook and server error handler so that tracebacks go to the log.

15 years agoOverride log_message in the http server so messages go to the log instead of stderr.
Bill Nottingham [Tue, 20 Jan 2009 04:45:43 +0000 (19 23:45 -0500)]
Override log_message in the http server so messages go to the log instead of stderr.

15 years agoAnother tweak to the video bitrate finder, by alundeby.
William McBrine [Thu, 5 Mar 2009 02:51:17 +0000 (4 21:51 -0500)]
Another tweak to the video bitrate finder, by alundeby.

15 years agoSpacing.
William McBrine [Thu, 5 Mar 2009 02:47:42 +0000 (4 21:47 -0500)]
Spacing.

15 years agoRemove the ffmpeg comment (incompatible with recent versions of ffmpeg).
William McBrine [Thu, 5 Mar 2009 01:36:20 +0000 (4 20:36 -0500)]
Remove the ffmpeg comment (incompatible with recent versions of ffmpeg).

15 years agoSuppress traceback on unexpected socket close during video transfer, and
William McBrine [Wed, 4 Mar 2009 23:18:32 +0000 (4 18:18 -0500)]
Suppress traceback on unexpected socket close during video transfer, and
close the file.

15 years agoSupport for pushing VC-1 without transcoding.
William McBrine [Wed, 4 Mar 2009 23:07:16 +0000 (4 18:07 -0500)]
Support for pushing VC-1 without transcoding.

15 years agoAustralian TiVo HD TSN. Dunno if they'll work yet, but anyway.
William McBrine [Wed, 4 Mar 2009 15:57:35 +0000 (4 10:57 -0500)]
Australian TiVo HD TSN. Dunno if they'll work yet, but anyway.

15 years agoNo point showing "This feature is not available yet," just comment it
William McBrine [Tue, 3 Mar 2009 20:33:20 +0000 (3 15:33 -0500)]
No point showing "This feature is not available yet," just comment it
out for now.

15 years agoMake the selector/button wrap on the push menu in all browsers.
William McBrine [Tue, 3 Mar 2009 19:48:50 +0000 (3 14:48 -0500)]
Make the selector/button wrap on the push menu in all browsers.

15 years agoMade the info page a little more like the others. Much more to do here.
William McBrine [Mon, 2 Mar 2009 00:32:17 +0000 (1 19:32 -0500)]
Made the info page a little more like the others. Much more to do here.

15 years agoWeird punctuation.
William McBrine [Mon, 2 Mar 2009 00:30:53 +0000 (1 19:30 -0500)]
Weird punctuation.

15 years agoMade the push page look more like the ToGo page; darker alternate color
William McBrine [Sun, 1 Mar 2009 23:09:31 +0000 (1 18:09 -0500)]
Made the push page look more like the ToGo page; darker alternate color
for the ToGo page. More to do here.

15 years ago80 columns for container.xsl.
William McBrine [Sun, 1 Mar 2009 20:04:11 +0000 (1 15:04 -0500)]
80 columns for container.xsl.

15 years agoSet push subtitle to file_info['title'] if series and no episodeTitle.
William McBrine [Sun, 1 Mar 2009 18:42:27 +0000 (1 13:42 -0500)]
Set push subtitle to file_info['title'] if series and no episodeTitle.

15 years agoDon't show duplicate titles and episode titles in the XSL.
William McBrine [Sun, 1 Mar 2009 18:08:17 +0000 (1 13:08 -0500)]
Don't show duplicate titles and episode titles in the XSL.

15 years agoRestore seriesTitle checking for push.
William McBrine [Sat, 28 Feb 2009 20:59:56 +0000 (28 15:59 -0500)]
Restore seriesTitle checking for push.

15 years agoAllow grouping by seriesId instead of title in push.
William McBrine [Fri, 27 Feb 2009 22:29:33 +0000 (27 17:29 -0500)]
Allow grouping by seriesId instead of title in push.

15 years agoBoldface the directory names too, for consistency.
William McBrine [Fri, 27 Feb 2009 22:02:17 +0000 (27 17:02 -0500)]
Boldface the directory names too, for consistency.

15 years agoAdd episode title and description to the Push page.
William McBrine [Fri, 27 Feb 2009 22:00:10 +0000 (27 17:00 -0500)]
Add episode title and description to the Push page.

15 years agoMerge branch 'master' into mutagen-branch
William McBrine [Fri, 27 Feb 2009 08:58:15 +0000 (27 03:58 -0500)]
Merge branch 'master' into mutagen-branch

15 years agoCheck alternate tag names for AAC, WMA.
William McBrine [Fri, 27 Feb 2009 08:57:23 +0000 (27 03:57 -0500)]
Check alternate tag names for AAC, WMA.

15 years agoSlightly simpler music metadata handling.
William McBrine [Fri, 27 Feb 2009 00:41:16 +0000 (26 19:41 -0500)]
Slightly simpler music metadata handling.

15 years agoMore like this. D'oh!
William McBrine [Fri, 27 Feb 2009 00:26:10 +0000 (26 19:26 -0500)]
More like this. D'oh!

15 years agoh264 passthrough for the webvideo plugin. Not tested since I can't seem
William McBrine [Thu, 26 Feb 2009 21:54:10 +0000 (26 16:54 -0500)]
h264 passthrough for the webvideo plugin. Not tested since I can't seem
to connect right now.

15 years agoRounding error? Not sure which to use, but this matches the help.txt
William McBrine [Thu, 26 Feb 2009 20:15:50 +0000 (26 15:15 -0500)]
Rounding error? Not sure which to use, but this matches the help.txt
on video_fps, anyway.

15 years agoID correction.
William McBrine [Thu, 26 Feb 2009 16:40:43 +0000 (26 11:40 -0500)]
ID correction.

15 years agoEven more audio ids for AAC.
William McBrine [Thu, 26 Feb 2009 16:13:07 +0000 (26 11:13 -0500)]
Even more audio ids for AAC.

15 years agoMerge branch 'master' into mutagen-branch
William McBrine [Thu, 26 Feb 2009 15:20:17 +0000 (26 10:20 -0500)]
Merge branch 'master' into mutagen-branch

15 years agoThe "debug" option has not generated a "debug.txt" file for a long time.
William McBrine [Thu, 26 Feb 2009 11:40:54 +0000 (26 06:40 -0500)]
The "debug" option has not generated a "debug.txt" file for a long time.

15 years agoThis warning only confuses people. Let's suppress it.
William McBrine [Thu, 26 Feb 2009 11:04:53 +0000 (26 06:04 -0500)]
This warning only confuses people. Let's suppress it.

15 years agoMay as well explicitly close these, too.
William McBrine [Thu, 26 Feb 2009 10:49:25 +0000 (26 05:49 -0500)]
May as well explicitly close these, too.

15 years agoAdd libfaad as recognized codec for tivo_compatible_mp4().
William McBrine [Thu, 26 Feb 2009 10:19:47 +0000 (26 05:19 -0500)]
Add libfaad as recognized codec for tivo_compatible_mp4().

15 years agoAlso need to strip them.
William McBrine [Thu, 26 Feb 2009 07:49:16 +0000 (26 02:49 -0500)]
Also need to strip them.

15 years agoCorrect field to split for Various Artists.
William McBrine [Thu, 26 Feb 2009 07:32:13 +0000 (26 02:32 -0500)]
Correct field to split for Various Artists.

15 years agoRun the ffmpeg test only if no duration comes back from mutagen.
William McBrine [Thu, 26 Feb 2009 07:22:58 +0000 (26 02:22 -0500)]
Run the ffmpeg test only if no duration comes back from mutagen.

15 years agoMerge branch 'master' into mutagen-branch
William McBrine [Wed, 25 Feb 2009 19:06:35 +0000 (25 14:06 -0500)]
Merge branch 'master' into mutagen-branch

15 years agoUse POST instead of GET for saving settings from the web admin plugin.
William McBrine [Wed, 25 Feb 2009 19:04:45 +0000 (25 14:04 -0500)]
Use POST instead of GET for saving settings from the web admin plugin.
Avoids length limits in IE, perhaps others.

15 years agoDuration needs to be in milliseconds; formatting.
William McBrine [Wed, 25 Feb 2009 14:06:45 +0000 (25 09:06 -0500)]
Duration needs to be in milliseconds; formatting.

15 years agoFixing beginner mistakes. Justin
justine [Tue, 24 Feb 2009 22:26:07 +0000 (24 16:26 -0600)]
Fixing beginner mistakes. Justin

15 years agoRemoving eyeD3, adding mutagen, and modify music.py to use mutagen.
justine [Tue, 24 Feb 2009 19:08:19 +0000 (24 13:08 -0600)]
Removing eyeD3, adding mutagen, and modify music.py to use mutagen.

Justin Ellison

15 years agoWe were never setting the MIME type for video transfers; and, if set to
William McBrine [Wed, 25 Feb 2009 10:04:41 +0000 (25 05:04 -0500)]
We were never setting the MIME type for video transfers; and, if set to
video/x-tivo-mpeg, they don't work, except for .tivo files. video/mpeg
should be the default.

15 years agoPatch to the qt-faststart patch -- attempt to pass through if parse
William McBrine [Wed, 25 Feb 2009 09:43:30 +0000 (25 04:43 -0500)]
Patch to the qt-faststart patch -- attempt to pass through if parse
error. By KG.

15 years agoPatch by Keary Griffin to use qt-faststart automatically. Needs more
William McBrine [Tue, 24 Feb 2009 09:58:20 +0000 (24 04:58 -0500)]
Patch by Keary Griffin to use qt-faststart automatically. Needs more
testing.

15 years agoIt seems to me that there are many more invalid rates than valid ones.
William McBrine [Mon, 23 Feb 2009 19:42:16 +0000 (23 14:42 -0500)]
It seems to me that there are many more invalid rates than valid ones.
I'm not even sure all these are good. Should there be others?

15 years agoSupport for pushing (though not pulling) h264 files. If pushing to an HD
William McBrine [Mon, 23 Feb 2009 19:02:00 +0000 (23 14:02 -0500)]
Support for pushing (though not pulling) h264 files. If pushing to an HD
TiVo, the Push() function tests whether a file has h264 video and
mpeg4aac or ac3 audio; if so, it will (attempt to) send it without
transcoding it. This is limited right now, and can have false positives.
There's no testing of the container (must be MP4 AFAIK), nor that
"streaming" mode is set, for instance. If a push fails, it will not be
retried, but you can pull the file instead (in which case it will be
transcoded to MPEG-2).

15 years agoUse send_error() where appropriate.
William McBrine [Sun, 22 Feb 2009 14:59:41 +0000 (22 09:59 -0500)]
Use send_error() where appropriate.

15 years agoMore minor tweaks.
William McBrine [Sun, 22 Feb 2009 14:52:49 +0000 (22 09:52 -0500)]
More minor tweaks.

15 years agoPointful function.
William McBrine [Sun, 22 Feb 2009 14:15:08 +0000 (22 09:15 -0500)]
Pointful function.

15 years agoPointless function.
William McBrine [Sun, 22 Feb 2009 13:57:29 +0000 (22 08:57 -0500)]
Pointless function.

15 years agoSome missing MIME types, and an extra line for the XSL. Fixes the Push
William McBrine [Sun, 22 Feb 2009 13:31:35 +0000 (22 08:31 -0500)]
Some missing MIME types, and an extra line for the XSL. Fixes the Push
page for non-Firefox browsers (tested in IE 7, Opera and Safari).

15 years agoSynchronized with the wiki, plus minor corrections and changes for
William McBrine [Sat, 21 Feb 2009 14:13:20 +0000 (21 09:13 -0500)]
Synchronized with the wiki, plus minor corrections and changes for
consistency.

15 years ago80 columns for help.txt, and a few minor corrections. Much more to do.
William McBrine [Sat, 21 Feb 2009 11:07:58 +0000 (21 06:07 -0500)]
80 columns for help.txt, and a few minor corrections. Much more to do.

15 years agoPythonic.
William McBrine [Sat, 21 Feb 2009 10:35:58 +0000 (21 05:35 -0500)]
Pythonic.

15 years agoTypo.
William McBrine [Sat, 21 Feb 2009 05:24:19 +0000 (21 00:24 -0500)]
Typo.

15 years agoError in pyTivo.conf.dist -- should be ffmpeg_pram, not ffmpeg_prams.
William McBrine [Sat, 21 Feb 2009 00:51:57 +0000 (20 19:51 -0500)]
Error in pyTivo.conf.dist -- should be ffmpeg_pram, not ffmpeg_prams.

15 years agoSupport the "QueryFormats" command (for video only -- the only type it's
William McBrine [Fri, 20 Feb 2009 12:21:24 +0000 (20 07:21 -0500)]
Support the "QueryFormats" command (for video only -- the only type it's
requested for.) This doesn't really serve any purpose, except to get rid
of some 404's in the log. (I had hoped I could get the TiVo to request a
raw-tts file by including that format in the list, but it looks like
more is needed.) To Do: QueryItem; FlushServer?

15 years agoA buffer for the ffmpeg process in the music plugin, as in the video
William McBrine [Fri, 20 Feb 2009 05:52:21 +0000 (20 00:52 -0500)]
A buffer for the ffmpeg process in the music plugin, as in the video
plugin. Makes a huge difference on a Mac.

15 years agoUse mtime rather than ctime.
William McBrine [Fri, 20 Feb 2009 04:02:04 +0000 (19 23:02 -0500)]
Use mtime rather than ctime.

15 years agoDo the distance calculations in closest() only once.
William McBrine [Fri, 20 Feb 2009 03:15:06 +0000 (19 22:15 -0500)]
Do the distance calculations in closest() only once.

15 years agoSome more commonality for config.py.
William McBrine [Fri, 20 Feb 2009 02:35:08 +0000 (19 21:35 -0500)]
Some more commonality for config.py.

15 years agoPrefer seriesTitle over title for push, if available.
William McBrine [Thu, 19 Feb 2009 15:15:58 +0000 (19 10:15 -0500)]
Prefer seriesTitle over title for push, if available.

15 years agoUse the metadata episodeTitle as the push subtitle, if possible.
William McBrine [Thu, 19 Feb 2009 15:04:45 +0000 (19 10:04 -0500)]
Use the metadata episodeTitle as the push subtitle, if possible.
Part of the mods by "mathwiz".

15 years agoOmit the "subtitle" field from pushes if empty -- no more empty strings
William McBrine [Thu, 19 Feb 2009 14:26:44 +0000 (19 09:26 -0500)]
Omit the "subtitle" field from pushes if empty -- no more empty strings
in the description.

15 years agoGoodbye Stephanie.
William McBrine [Thu, 19 Feb 2009 13:39:46 +0000 (19 08:39 -0500)]
Goodbye Stephanie.

15 years agoTightened up the metadata parser a little.
William McBrine [Thu, 19 Feb 2009 13:07:11 +0000 (19 08:07 -0500)]
Tightened up the metadata parser a little.

15 years agojustintime's fallback method of parsing the video bitrate from the
William McBrine [Thu, 19 Feb 2009 12:00:10 +0000 (19 07:00 -0500)]
justintime's fallback method of parsing the video bitrate from the
ffmpeg output. (I haven't tested this myself, since I don't seem to have
a file that needs it.)

15 years agoAccomodate the absence of the '_tivo_HD' and '_tivo_SD' sections in the
William McBrine [Thu, 19 Feb 2009 11:48:56 +0000 (19 06:48 -0500)]
Accomodate the absence of the '_tivo_HD' and '_tivo_SD' sections in the
admin plugin, and allow for their creation. I _think_ this is
everything now...

15 years agoRestore the ability to define most options in the "Server" section. (The
William McBrine [Thu, 19 Feb 2009 11:24:06 +0000 (19 06:24 -0500)]
Restore the ability to define most options in the "Server" section. (The
new sections take precedence if present.)

15 years agoAccomodate the absence of the new sections; more compact.
William McBrine [Thu, 19 Feb 2009 10:51:25 +0000 (19 05:51 -0500)]
Accomodate the absence of the new sections; more compact.

15 years ago...but I don't agree with forcing their creation.
William McBrine [Thu, 19 Feb 2009 09:42:16 +0000 (19 04:42 -0500)]
...but I don't agree with forcing their creation.

15 years agoThese new sections should be documented in pyTivo.conf.dist (are there
William McBrine [Thu, 19 Feb 2009 09:39:24 +0000 (19 04:39 -0500)]
These new sections should be documented in pyTivo.conf.dist (are there
other options that aren't there?)...

15 years agoCredit.
William McBrine [Thu, 19 Feb 2009 09:37:42 +0000 (19 04:37 -0500)]
Credit.

15 years agonot needed with 20Mi
wgw [Sat, 31 Jan 2009 01:42:12 +0000 (30 19:42 -0600)]
not needed with 20Mi

15 years agoforgot to update the SD TiVo Settings in template
wgw [Sun, 25 Jan 2009 20:21:08 +0000 (25 14:21 -0600)]
forgot to update the SD TiVo Settings in template

15 years agoupdate audio_lang help recommended setting
wgw [Sun, 25 Jan 2009 19:56:12 +0000 (25 13:56 -0600)]
update audio_lang help recommended setting

15 years agosuggested settings for big screens
wgw [Sun, 25 Jan 2009 19:26:11 +0000 (25 13:26 -0600)]
suggested settings for big screens