PDA

View Full Version : Is there a limit on the files size uping pyTivo?


toddhutch
12-16-2007, 11:03 PM
I was thinking file size, because one of my videos (This first one I mention) is 1.5GB, the other is like 8GB. I'm using NTFS on all of my partions so that isn't the issue.


When I put in a MKV with this format-
Format : x264
Video Bitrate : 4190 kb/s
Resolution : 1280x720
Audio : English 5.1 ac3 @ 640

I'm able to transfer & view the video on the Tivo S3 fine.

When I put in a MKV file in my video folder with this format-

Video: 1920x800 OAR
Framerate: 23.976 fps
Bitrate: 11076 Kb/s
Audio: English DTS 5.1 ~1.5Mb/s

I get the following error.


192.168.1.52 - - [16/Dec/2007 19:47:56] "GET /TiVoConnect?Command=QueryContainer
&Container=%2F HTTP/1.0" 200 -
192.168.1.52 - - [16/Dec/2007 19:47:59] "GET /TiVoConnect?Command=QueryContainer
&Container=MyMovies&SortOrder=!CaptureDate&ItemCount=8&Filter=x-tivo-container%2
Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 2
00 -
----------------------------------------
Exception happened during processing of request from ('192.168.1.52', 2930)
Traceback (most recent call last):
File "C:\Python25\lib\SocketServer.py", line 464, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python25\lib\SocketServer.py", line 522, in __init__
self.handle()
File "C:\Python25\lib\BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "C:\Python25\lib\BaseHTTPServer.py", line 310, in handle_one_request
method()
File "C:\pyTivo\httpserver.py", line 64, in do_GET
method(self, query)
File "C:\Program Files\pyTivo\plugins\video\video.py", line 81, in QueryContai
ner
t.files, t.total, t.start = self.get_files(handler, query, VideoFileFilter)
File "C:\pyTivo\plugin.py", line 52, in get_files
files = filter(filterFunction, files)
File "C:\Program Files\pyTivo\plugins\video\video.py", line 75, in VideoFileFi
lter
return transcode.suported_format(full_path)
File "C:\Program Files\pyTivo\plugins\video\transcode.py", line 309, in suport
ed_format
if video_info(inFile)[0]:
File "C:\Program Files\pyTivo\plugins\video\transcode.py", line 246, in video_
info
kill(ffmpeg.pid)
File "C:\Program Files\pyTivo\plugins\video\transcode.py", line 318, in kill
win32kill(pid)
File "C:\Program Files\pyTivo\plugins\video\transcode.py", line 324, in win32k
ill
import ctypes
ImportError: No module named ctypes
----------------------------------------
192.168.1.52 - - [16/Dec/2007 19:48:23] "GET /TiVoConnect?Command=QueryContainer
&Container=%2F HTTP/1.0" 200 -

Nothing shows up on the Tivo when I browse to the pyTivo folder. Not really sure when to look to try to solve this.

The machine this is running on is a Vist64 machine. I'm running 208 pyTivo.

dlfl
12-16-2007, 11:30 PM
There may be a problem with ffmpeg due to the particular command line that pyTivo gave it in this case BUT your output indicates a more basic problem with your Python installation. It says it was unable to import the ctypes package.

From your start program start menu, select python then "Python (command line)". In the command window type:

import ctypes (hit <enter>)

Nothing should happen except another ">>>" prompt. If you get an error message, there is something wrong with your Python installation. Uninstall/reinstall it.

So you're running 64bit Vista. Do you have admin privileges? I wonder if Windows doesn't want you to have access to the stuff in ctypes, which does pretty powerful things, like kill processes. If you get an error message that suggests that, post it here. Or maybe there is a python problem with Vista64.

Edit:
The pyTivo code section where the failure to import occurred includes:

import ctypes
handle = ctypes.windll.kernel32.OpenProcess(1, False, pid)
ctypes.windll.kernel32.TerminateProcess(handle, -1)
ctypes.windll.kernel32.CloseHandle(handle)


All that kernel32 stuff looks suspicious to me if you're on running on a 64bit machine. I hope someone more familiar with python and Vista64 can help here.

toddhutch
12-16-2007, 11:34 PM
I'll try to reinstall the python. I installed python -- python-2.5.1.amd64.msi

Should I try the other python install that isn't for AMD64?


Python 2.5.1 (r251:54863, Apr 18 2007, 09:02:36) [MSC v.1400 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named ctypes
>>>

dlfl
12-16-2007, 11:47 PM
I'll try to reinstall the python. I installed python -- python-2.5.1.amd64.msi

Should I try the other python install that isn't for AMD64?


Python 2.5.1 (r251:54863, Apr 18 2007, 09:02:36) [MSC v.1400 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named ctypes
>>>

Did you see my edit above? I think the 64bit thing is the core of the probem but don't know what advice to give.

Does anyone know: can he just run the normal 32-bit windows python on his box?

toddhutch
12-16-2007, 11:52 PM
I have all of the "protection" turned off in Vista. I'm logged in as an Admin. I will try and install the 32 bit version of python.

toddhutch
12-17-2007, 12:08 AM
I have all of the "protection" turned off in Vista. I'm logged in as an Admin. I will try and install the 32 bit version of python.

The 32 bit worked.

Now instead of it hanging on not displaying anything it displays the files that work, while the MKV files that appear not to be compatible don't display.

I guess the question to ask is what files are compatible and which aren't.


-Todd

dlfl
12-17-2007, 12:19 AM
The 32 bit worked.

Now instead of it hanging on not displaying anything it displays the files that work, while the MKV files that appear not to be compatible don't display.

I guess the question to ask is what files are compatible and which aren't.


-Todd
I also transcode MKV/X264 files and some work, some don't. In my case the ones that don't work still transfer but the video runs at double speed while the audio is correct. So I have the same question! It's an ffmpeg issue of course.

Glad you got it working anyway.