Changeset c1d881f21b141fb2f7e119a80670ac76774dcf2e
- Timestamp:
- 12/03/07 21:22:45
(1 year ago)
- Author:
- Jason Michalski <armooo@armooo.net>
- git-committer:
- Jason Michalski <armooo@armooo.net> 1196738565 -0600
- git-parent:
[5b28e1c0764cb417669a19ef08b2757615918467]
- git-author:
- Jason Michalski <armooo@armooo.net> 1195449644 -0600
- Message:
S3 mpeg settings
All mpeg going to S3 will not be transcoded
Please report mpeg files that will not play on your S3 They will be
so they can be transcoded.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc887ec1 |
rc1d881f |
|
| 35 | 35 | |
|---|
| 36 | 36 | def output_video(inFile, outFile, tsn=''): |
|---|
| 37 | | if tivo_compatable(inFile): |
|---|
| | 37 | if tivo_compatable(inFile, tsn): |
|---|
| 38 | 38 | debug_write(['output_video: ', inFile, ' is tivo compatible\n']) |
|---|
| 39 | 39 | f = file(inFile, 'rb') |
|---|
| … | … | |
| 208 | 208 | return settings |
|---|
| 209 | 209 | |
|---|
| 210 | | def tivo_compatable(inFile): |
|---|
| | 210 | def tivo_compatable(inFile, tsn = ''): |
|---|
| 211 | 211 | suportedModes = [[720, 480], [704, 480], [544, 480], [480, 480], [352, 480]] |
|---|
| 212 | 212 | type, width, height, fps, millisecs = video_info(inFile) |
|---|
| … | … | |
| 221 | 221 | debug_write(['tivo_compatible: ', inFile, ' is not mpeg2video it is ', type, '\n']) |
|---|
| 222 | 222 | return False |
|---|
| | 223 | |
|---|
| | 224 | if tsn[:3] in ('648', '652'): |
|---|
| | 225 | debug_write(['tivo_compatible: ', inFile, ' you have a S3 skiping the rest of the tests', '\n']) |
|---|
| | 226 | return True |
|---|
| 223 | 227 | |
|---|
| 224 | 228 | if not fps == '29.97': |
|---|
| r5b28e1c |
rc1d881f |
|
| 46 | 46 | return transcode.video_info(full_path)[4] |
|---|
| 47 | 47 | |
|---|
| 48 | | def __est_size(self, full_path): |
|---|
| | 48 | def __est_size(self, full_path, tsn = ''): |
|---|
| 49 | 49 | #Size is estimated by taking audio and video bit rate adding 2% |
|---|
| 50 | 50 | |
|---|
| … | … | |
| 124 | 124 | def QueryContainer(self, handler, query): |
|---|
| 125 | 125 | |
|---|
| | 126 | tsn = handler.headers.getheader('tsn', '') |
|---|
| 126 | 127 | subcname = query['Container'][0] |
|---|
| 127 | 128 | cname = subcname.split('/')[0] |
|---|