Changeset a7deca61c6e276fb39dd64095673fb3274a936cb
- Timestamp:
- 11/26/06 22:30:39
(2 years ago)
- Author:
- Jason Michalski <armooo@armooo.net>
- git-committer:
- Jason Michalski <armooo@armooo.net> 1164601839 +0000
- git-parent:
[821e9b3c587bbe2bb9db659200d3483d5a164892]
- git-author:
- Jason Michalski <armooo@armooo.net> 1164601839 +0000
- Message:
pyTivo
-Removed some debugging
-Changed back to windows ffmpeg path
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re2bcd2e |
ra7deca6 |
|
| 2 | 2 | |
|---|
| 3 | 3 | SCRIPTDIR = os.path.dirname(__file__) |
|---|
| 4 | | FFMPEG = '/usr/bin/ffmpeg' |
|---|
| | 4 | FFMPEG = os.path.join(SCRIPTDIR, 'ffmpeg_mp2.exe') |
|---|
| 5 | 5 | |
|---|
| 6 | 6 | # XXX BIG HACK |
|---|
| … | … | |
| 28 | 28 | def transcode(inFile, outFile): |
|---|
| 29 | 29 | |
|---|
| 30 | | cmd = "%s -i \"%s\" -vcodec mpeg2video -r 29.97 -b 4096 %s -ac 2 -ab 192 -f vob -" % (FFMPEG, inFile, select_aspect(inFile)) |
|---|
| 31 | 30 | cmd = [FFMPEG, '-i', inFile, '-vcodec', 'mpeg2video', '-r', '29.97', '-b', '4096'] + select_aspect(inFile) + ['-ac', '2', '-ab', '192', '-f', 'vob', '-' ] |
|---|
| 32 | | |
|---|
| 33 | | print cmd |
|---|
| 34 | | |
|---|
| 35 | 31 | ffmpeg = subprocess.Popen(cmd, stdout=subprocess.PIPE) |
|---|
| 36 | 32 | try: |
|---|