Changeset 092f92ac9b90b3a323a59c05b95730e3378a0fea
- Timestamp:
- 12/19/06 01:05:53
(2 years ago)
- Author:
- Jason Michalski <armooo@armooo.net>
- git-committer:
- Jason Michalski <armooo@armooo.net> 1166511953 +0000
- git-parent:
[cd5239d94142323404481601f56fb999acc3a768]
- git-author:
- Jason Michalski <armooo@armooo.net> 1166511953 +0000
- Message:
pyTivo
- Play some other videos I did not like
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4db5c7a |
r092f92a |
|
| 27 | 27 | |
|---|
| 28 | 28 | def transcode(inFile, outFile): |
|---|
| 29 | | |
|---|
| | 29 | |
|---|
| | 30 | print select_aspect(inFile) |
|---|
| | 31 | |
|---|
| 30 | 32 | cmd = [FFMPEG, '-i', inFile, '-vcodec', 'mpeg2video', '-r', '29.97', '-b', '4096'] + select_aspect(inFile) + ['-ac', '2', '-ab', '192', '-f', 'vob', '-' ] |
|---|
| 31 | 33 | ffmpeg = subprocess.Popen(cmd, stdout=subprocess.PIPE) |
|---|
| … | … | |
| 46 | 48 | elif (rheight, rwidth) in [(16, 9), (20, 11), (40, 33), (118, 81), (59, 27)]: |
|---|
| 47 | 49 | return ['-aspect', '16:9', '-s', '720x480'] |
|---|
| 48 | | else: |
|---|
| | 50 | elif rwidth > rheight: |
|---|
| 49 | 51 | settings = [] |
|---|
| 50 | 52 | settings.append('-aspect') |
|---|
| … | … | |
| 69 | 71 | |
|---|
| 70 | 72 | return settings |
|---|
| | 73 | else: |
|---|
| | 74 | #hope for the best |
|---|
| | 75 | return ['-aspect', '4:3', '-s', '720x480'] |
|---|
| 71 | 76 | |
|---|
| 72 | 77 | def tivo_compatable(inFile): |
|---|