TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Home Media Features & TiVoToGo
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 03-15-2007, 07:36 PM   #151
A@ron
Registered User
 
Join Date: Jul 2003
Posts: 113
well something isn't kosher... I get some fairly strange errors now with 173
Quote:
Exception happened during processing of request from ('127.0.0.1', 51551)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/SocketServer.py", line 463, in process_request_thread
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/SocketServer.py", line 521, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/pyTivo/httpserver.py", line 64, in do_GET
method(self, query)
File "/pyTivo/plugins/video/video.py", line 84, in QueryContainer
t.files, t.total, t.start = self.get_files(handler, query, VideoFileFilter)
File "/pyTivo/plugin.py", line 52, in get_files
files = filter(filterFunction, files)
File "/pyTivo/plugins/video/video.py", line 72, in VideoFileFilter
millisecs = transcode.suported_format(full_path)
File "/pyTivo/plugins/video/transcode.py", line 188, in suported_format
if video_info(inFile)[0]:
File "/pyTivo/plugins/video/transcode.py", line 135, in video_info
ffmpeg = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/subprocess.py", line 543, in __init__
errread, errwrite)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/subprocess.py", line 975, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

A@ron is offline   Reply With Quote
Old 03-15-2007, 08:25 PM   #152
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
That error is saying that your ffmpeg path is incorrect.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 03-15-2007, 08:54 PM   #153
A@ron
Registered User
 
Join Date: Jul 2003
Posts: 113
woops forgot to copy it in when I upgraded to 173. I've fixed that and it's no longer got those errors. I added those two lines of code to the transcode.py file within that one function and it never prints anything to the terminal. I don't think it's calling ffmpeg properly at all as a previous poster suggested... most likely just a mac thing. ffmpeg never runs as I could see it in the activity viewer and no videos are in the folder (but on a positive note the server shows up on the NPL with no videos). These files are valid video files most I ripped with handbrake as mp4 files and I know ffmpeg can handle them ok since they work with Tivo.Net.

updated to python 2.5 since it updated the way subprocess worked and it does now call ffmpeg upon starting the script... no videos still though.

moved that print output around and I can tell that ffmpeg works and it does go through the files but they do not show in the container file...
Quote:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/HD2/TiVoNet/You Me and Dupree.mp4':
Duration: 01:49:24.1, start: 0.000000, bitrate: 1021 kb/s
Stream #0.0(und), 23.98 fps(r): Video: h264, yuv420p, 640x352
Stream #0.1(und): Audio: aac, 48000 Hz, stereo
Must supply at least one output file
what could be going on?

Last edited by A@ron : 03-15-2007 at 09:20 PM.
A@ron is offline   Reply With Quote
Old 03-15-2007, 08:54 PM   #154
sabu
Registered User
 
Join Date: Jan 2002
Location: Harrisburg, PA
Posts: 17
Quote:
Originally Posted by dlfl
A simple experiment to see if it might be a problem with Build 8047 of ffmpeg:

Replace ffmpeg_mp2.exe with the version used in TiVo.Net (build 7215). The link you need to download this is given in this prior post (if you don't already have it via Tivo.Net). The download will be a zip and the only file you need from it is ffmpeg.exe. Either rename it to ffmpeg_mp2.exe (rename the existing ffmpeg_mp2.exe first to save it) or change your pyTivo.conf ffmpeg path.
Okay tried build 7215 from that link - same problem with the video being offset on the TiVo. Anything else I can try?

FFmpeg version SVN-r7215, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --extra-cflags=-I/static/include --extra-ldflags=-L/static/lib
--enable-memalign-hack --enable-mp3lame --enable-xvid --enable-a52 --enable-lib
ogg --enable-vorbis --enable-faac --enable-faad --enable-x264 --enable-pp --enab
le-amr_wb --enable-amr_nb --enable-avisynth --enable-dts --enable-libgsm --enabl
e-gpl
libavutil version: 49.1.0
libavcodec version: 51.25.0
libavformat version: 51.6.0
built on Dec 3 2006 00:27:56, gcc: 3.4.6
Input #0, avi, from 'c:\TiVo/Torchwood S01E01 Everything Changes.avi':
Duration: 00:50:45.0, start: 0.000000, bitrate: 962 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x368, 25.00 fps(r)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Output #0, vob, to 'pipe:':
Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 4096 kb/s, 29.97 fps
(c)
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
sabu is offline   Reply With Quote
Old 03-15-2007, 09:32 PM   #155
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
Quote:
Originally Posted by A@ron
woops forgot to copy it in when I upgraded to 173. I've fixed that and it's no longer got those errors. I added those two lines of code to the transcode.py file within that one function and it never prints anything to the terminal. I don't think it's calling ffmpeg properly at all as a previous poster suggested... most likely just a mac thing. ffmpeg never runs as I could see it in the activity viewer and no videos are in the folder (but on a positive note the server shows up on the NPL with no videos). These files are valid video files most I ripped with handbrake as mp4 files and I know ffmpeg can handle them ok since they work with Tivo.Net.

updated to python 2.5 since it updated the way subprocess worked and it does now call ffmpeg upon starting the script... no videos still though.

moved that print output around and I can tell that ffmpeg works and it does go through the files but they do not show in the container file...


what could be going on?
Your ffmpeg output is different that what I have seen from other versions. The current code is expecting the fps to come after "Video:" so it can't find the fps and says it is not a supported type.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 03-15-2007, 09:41 PM   #156
A@ron
Registered User
 
Join Date: Jul 2003
Posts: 113
Quote:
Originally Posted by armooo
Your ffmpeg output is different that what I have seen from other versions. The current code is expecting the fps to come after "Video:" so it can't find the fps and says it is not a supported type.
more recent builds do put the FPS after Video: sort of...
That build is from 2006

Quote:
FFmpeg version SVN-r8222, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-shared --disable-ffserver --disable-ffplay --enable-liba52 --enable-libfaac --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-x264 --enable-xvid --enable-gpl
libavutil version: 49.3.0
libavcodec version: 51.38.0
libavformat version: 51.10.0
built on Mar 11 2007 23:25:40, gcc: 4.0.1 (Apple Computer, Inc. build 5367)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/HD2/TiVoNet/You Me and Dupree.mp4':
Duration: 01:49:24.1, start: 0.000000, bitrate: 1021 kb/s
Stream #0.0(und): Video: h264, yuv420p, 640x352, 23.98 fps(r)
Stream #0.1(und): Audio: mp4a / 0x6134706D, 48000 Hz, stereo
Must supply at least one output file
will that work? or does it have to directly follow Video:?
A@ron is offline   Reply With Quote
Old 03-15-2007, 09:49 PM   #157
ocntscha
Registered User
 
Join Date: Oct 2003
Posts: 148
Quote:
Originally Posted by A@ron
more recent builds do put the FPS after Video: sort of...
That build is from 2006



will that work? or does it have to directly follow Video:?
That ffmpeg output looks like mine and pyTivo works for me, so I'd expect that yes, switch in that ffmpeg and you'll be good to go.
ocntscha is offline   Reply With Quote
Old 03-15-2007, 11:01 PM   #158
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Quote:
Originally Posted by sabu
Okay tried build 7215 from that link - same problem with the video being offset on the TiVo. Anything else I can try?
Stream #0.0: Video: mpeg4, yuv420p, 640x368, 25.00 fps(r)
hmm, this is very strange, because that is within the range i provide to fit into 16:9 without any mesing with padding or anything like that.

I think maybe we should try and convert it and view it on a computer first and verify that this is truly a ffmpeg issue. Run this command from the folder where ffmpeg resides:

ffmpeg -i ''c:\TiVo\Torchwood S01E01 Everything Changes.avi' -vcodec mpeg2video -r 29.97 -b 4096K -aspect 16:9 -s 720x480 -comment pyTivo.py -ac 2 -ab 192 -ar 44100 -f vob -t 60 'c:\TiVo\test.mpg'

That will transcode 60 seconds into a file named test.mpg. Try and play this file on a pc and tell me what happens. Additionally you should be able to play this file, test.mpg, from the TiVo too. But first I want to see what it looks like on the pc.

Thanks
Kevin
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-16-2007, 12:33 AM   #159
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,857
Quote:
Originally Posted by A@ron
more recent builds do put the FPS after Video: sort of...
That build is from 2006 .....
will that work? or does it have to directly follow Video:?
It doesn't have to directly follow "Video", just come later in the line.

I suspect the problem is worse than that though if you didn't get anything from the print statement in video_info as follows:

Code:
    output = ffmpeg.stderr.read()
    print output
This should print whatever ffmpeg prints regardless of how formatted. If you got nothing it must mean one of these things:
1. ffmpeg was never called.
2. ffmpeg was called but its printout wasn't piped into stderr
3. ffmpeg was called and timed out (4 secs per call)
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
dlfl is offline   Reply With Quote
Old 03-16-2007, 11:52 AM   #160
panacea
Registered User
 
Join Date: Jan 2007
Posts: 2
I downloaded and installed pytivo yesterday (latest version, Windows installer). I think it's fabulous(!), but I did have one issue.

My TV is 4:3, and my preferences on the Tivo are set to 4:3. I transferred an AVI file with the following specs:
Bit rate: 1151kbps
Format: mpeg4
Size: 512x288
Frame rate: 25.00fps

When viewing the file on the Tivo, the image is distorted. Switching the Tivo to 16:9 mode in preferences fixes the image, except that it's a little horizontally squished because the whole 16:9 image is displayed in the 4:3 space.

This is not a huge deal, but is there any way to tell pytivo to letterbox anything in 16:9? I'm using the version of ffmpeg distributed with the installer.

Thanks all for a great program!
panacea is offline   Reply With Quote
Old 03-16-2007, 01:15 PM   #161
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,857
aspect ratio

Quote:
Originally Posted by panacea
I downloaded and installed pytivo yesterday (latest version, Windows installer). I think it's fabulous(!), but I did have one issue.

My TV is 4:3, and my preferences on the Tivo are set to 4:3. I transferred an AVI file with the following specs:
Bit rate: 1151kbps
Format: mpeg4
Size: 512x288
Frame rate: 25.00fps

When viewing the file on the Tivo, the image is distorted. ......!
As I understand it (those are weasel words so you can't blame me if I'm wrong) some mpeg4 formats (e.g., Xvid, frequently found in an AVI container) have an aspect ratio specifier in the file and this may need to be changed to 4:3.

Try mpeg4modifier, a little (30kB) free program that can do things like change the aspect ratio. It will be quick -- you are not re-encoding the file.

I've experienced this encoding to AVI/XVID using AutoMKV but I didn't use mpeg4modifier to fix it. I just re-encoded using the feature in AutoMKV that allows you to specify the Xvid AR you want. Another handy small free program is mediaInfo. With it installed you can right click on a video and it will tell you the properties, including the AR in an Xvid video.
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by dlfl : 03-16-2007 at 06:28 PM.
dlfl is offline   Reply With Quote
Old 03-16-2007, 05:05 PM   #162
sabu
Registered User
 
Join Date: Jan 2002
Location: Harrisburg, PA
Posts: 17
Quote:
Originally Posted by KRKeegan
ffmpeg -i ''c:\TiVo\Torchwood S01E01 Everything Changes.avi' -vcodec mpeg2video -r 29.97 -b 4096K -aspect 16:9 -s 720x480 -comment pyTivo.py -ac 2 -ab 192 -ar 44100 -f vob -t 60 'c:\TiVo\test.mpg'

That will transcode 60 seconds into a file named test.mpg. Try and play this file on a pc and tell me what happens. Additionally you should be able to play this file, test.mpg, from the TiVo too. But first I want to see what it looks like on the pc.
Okay, both versions of ffmpeg convert that into a 16:9 aspect ratio file that plays fine on the PC.
sabu is offline   Reply With Quote
Old 03-16-2007, 07:48 PM   #163
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Quote:
Originally Posted by sabu
Okay, both versions of ffmpeg convert that into a 16:9 aspect ratio file that plays fine on the PC.
Ok give me a few minutes, let me see if I can encode something with those specs and figure out what is going on.

Kevin
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-16-2007, 10:13 PM   #164
CheezWiz
ReplayTV->S3 Tivo
 
CheezWiz's Avatar
 
Join Date: Dec 2006
Location: Middle Tennessee
Posts: 209
Sabu,

Are you playing to a 4:3 or 16:9 TV?
The reason I ask is that I too have come across an XVID that does exactly what yours is doing on a 4:3 TV , but works fine going to my 16:9 TV.

Here is what I am seeing:
Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
Input #0, avi, from 'R:\Video\/Movies/Jackass.Number.Two.UNRATED..XviD.avi':
Duration: 01:33:28.7, start: 0.000000, bitrate: 1042 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 624x336, 23.98 fps(r)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Output #0, vob, to 'pipe:':
Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 4096 kb/s, 29.97 fps(c)
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
__________________
CheezWiz
---------------
Tivo Series 3 @ 750GB Green Drive
Tivo HD @ 750GB Green Drive
Tivo Series 2 @ 200GB
pyTivo Windows Home Server @ 3TB
Onkyo TX-SR606 HDMI
Hitachi Ultravision Plasma

Last edited by CheezWiz : 03-16-2007 at 10:20 PM.
CheezWiz is offline   Reply With Quote
Old 03-16-2007, 10:34 PM   #165
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Quote:
Originally Posted by CheezWiz
Sabu,Are you playing to a 4:3 or 16:9 TV?
The reason I ask is that I too have come across an XVID that does exactly what yours is doing on a 4:3 TV , but works fine going to my 16:9 TV.
hmm it should still play fine on a 4:3 tv.

I made a new update. There is a minor fix to an error in the code i doubt it was causing your problem.

More importantly I added a debug feature. This will write a file in the base directory called debug.txt. I would not leave this on as it slows down pyTivo a lot and will make a huge file in on your drive.

To Activate debuging in version 174 and up:
Add the following line under the [Server] Block
debug=True

To deactivate debugging:
Delete that ENTIRE LINE

Sorry there is a mistake in my programming and if the option debug exists it will debug, so to stop it you must remove the line completely. Future versions will fix this.

SABU
if you could:
1. update to this version.
2. enable debugging as described above
3. start pytivo
4. try and load your video
5. stop pyTivo
6. post debug.txt from base folder to here
7. REMOVE debug line from pyTivo.conf
8. restart pytivo

Thanks
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-17-2007, 12:14 AM   #166
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,857
@KRKeegan, @armoo

Please review my prior post about handling 59.94 fps reported by ffmpeg for tivo compatible mpegs. The patch that is still in transcode.py in ver. 174 has two problems:

1. It doesn't work for the currently used build of ffmpeg (8047).
2. I don't believe it will work even for the build it was targeted at (7215) because the regular expression will not match 29.97. Am I wrong here?

Anyway, I would suggest at least removing or fixing the current patch, and why not use the patch I gave in the post, which covers both builds? I've been using it and it works fine. There are four VideoReDo-edited files in my archive that are allowed to transfer without re-encoding with this patch.
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
dlfl is offline   Reply With Quote
Old 03-17-2007, 01:59 AM   #167
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Quote:
Originally Posted by dlfl
Please review my prior post about handling 59.94 fps reported by ffmpeg for tivo compatible mpegs. The patch that is still in transcode.py in ver. 174 has two problems:

1. It doesn't work for the currently used build of ffmpeg (8047).
2. I don't believe it will work even for the build it was targeted at (7215) because the regular expression will not match 29.97. Am I wrong here?

Anyway, I would suggest at least removing or fixing the current patch, and why not use the patch I gave in the post, which covers both builds? I've been using it and it works fine. There are four VideoReDo-edited files in my archive that are allowed to transfer without re-encoding with this patch.
Whoa, easy there. Sorry I thought this problem had already been solved, no need to get upset.

Armooo added the following line:
rezre = re.compile(r'.*film source: (\d+).*')

I assumed this fixed your problem. You are right it does only return 29 and not 29.97. I will do my best to fix this in the next update.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-17-2007, 07:45 AM   #168
jacques
Registered User
 
Join Date: Jun 2000
Location: Fairport, NY USA
Posts: 334
I just wanted to post a thank you.

Thank you!

This is just the coolest thing for watching my MythTV recordings on my TiVo. I'm a linux newbie and getting it working on my KnoppMyth box was simple.

Thanks again!
jacques is offline   Reply With Quote
Old 03-17-2007, 08:44 AM   #169
sabu
Registered User
 
Join Date: Jan 2002
Location: Harrisburg, PA
Posts: 17
Quote:
Originally Posted by KRKeegan
SABU
if you could:
6. post debug.txt from base folder to here

Thanks
Here is the debug.txt file. The TiVo is a Dual Tuner SA attached to a 4:3 standard res TV and set to 4:3 output.

I found a 4:3 aspect ratio file and it transferred and played without any problems.

Thanks for all your help on this!
Attached Files
File Type: txt debug.txt (6.8 KB, 9 views)
sabu is offline   Reply With Quote
Old 03-17-2007, 10:36 AM   #170
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,857
@armooo

Couple of small suggested edits to your first post to make life easier for newcomers:

1. Make it clear there is a Wiki (I know the link is there but there is nothing to indicate it is a Wiki link.)

2. Correct the typo in: "type = vidwo"

Thanks
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
dlfl is offline   Reply With Quote
Old 03-17-2007, 10:43 AM   #171
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,857
I just added an item to the "Known Issues" section of the Wiki describing a NPL problem and a work-around. If this is happening to other TiVo models, the wording could be made more general. Or maybe other/better work-arounds could be added/substituted.

Anyway, take a look and have at it!
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
dlfl is offline   Reply With Quote
Old 03-17-2007, 03:02 PM   #172
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Ahhh, there are times I love microsoft. Ok I am attempting to figure out the video display problems some people are still seeing. I found a bunch of test files of different aspect ratios from Microsoft.

http://www.microsoft.com/windows/win...uarePixel.aspx
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-17-2007, 06:19 PM   #173
inthewoods
Registered User
 
Join Date: Feb 2005
Posts: 6
Fix for Shifted / Overlayed / Interlaced display

I have the display problem where the screen gets whacked like every other scanline is shifted and the picture ends up in 3 interlaced sections. Very strange looking.

I solved the problem on my Series-2 540 by changing from 720x480 to 544x480.

I also tried the newest ffmpeg I could find, r8310, but it still was screwing up. Only switching to 544 fixed it for me. I've had this problem in the past using Videora and VLC, so maybe it is a bug or hardware problem in some of the Series 2s.

Thanks for all the work on pyTivo, I like how clever yet simple it is! The code is a great intro to Python for me. I've been making some minor source code tweaks and I'd like to donate them to the cause.

Specifically:
* Configurable broadcast address to address beacon problems on multi-homed machines
* Configurable output resolution
* Uses "k" suffix for audio bitrate (needed for newer ffmpeg)

Where do I post patches?

-Tony
inthewoods is offline   Reply With Quote
Old 03-17-2007, 06:48 PM   #174
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Aspect Issues

Quote:
Originally Posted by inthewoods
...I solved the problem on my Series-2 540 by changing from 720x480 to 544x480.I also tried the newest ffmpeg I could find, r8310, but it still was screwing up. Only switching to 544 fixed it for me. I've had this problem in the past using Videora and VLC, so maybe it is a bug or hardware problem in some of the Series 2s.
Yeah I am starting to think there may be some minor differences out there with TiVo's.

Sabu I think this is where your problem is. I relooked over the code for 16:9 videos and how it functions. pyTivo is sending a 16:9 video to your TiVo even though your TiVo can only support 4:3. For the rest of us the TiVo just fixes this. A good way to test this out is change your TiVo settings to 16:9, all 16:9 videos that have been transfered will now be stretched vertically. But 4:3 videos will still look fine.

Sabu, I think the problem is possibly that your version of TiVo doesn't handle 16:9 gracefully like most of us. Don't worry though. I think pipakin solved this by allowing users to preselect their aspect ratios. I am working on recoding transcode.py to send files only in their preselected format. I am hoping this will solve your problems.

Quote:
Originally Posted by inthewoods
Where do I post patches?-Tony
You can post them here. And thanks for your help.

Kevin
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-17-2007, 07:57 PM   #175
CheezWiz
ReplayTV->S3 Tivo
 
CheezWiz's Avatar
 
Join Date: Dec 2006
Location: Middle Tennessee
Posts: 209
4:3 vs 16:9

I just set my S2DT that is on my HD TV to 4:3 and set the Tivo's resolution to 4:3 and played the same file mentioned earlier and the results are the same. The right 1/3 of the movie is missing.

Upon setting the Tivo to 16:9 but leaving the TV in 4:3 I do see the expected results of tall and skinny, but all is there.

The question I have is, can pyTivo determine which of my two Tivos is requesting the file and select aspect ratio appropriately? Or does the requester never ID itself to pyTivo?

Also, is all this protocol documented somewhere or have you guys just figured it out through trial and error?

ps, thanks to everyone involved with this!
__________________
CheezWiz
---------------
Tivo Series 3 @ 750GB Green Drive
Tivo HD @ 750GB Green Drive
Tivo Series 2 @ 200GB
pyTivo Windows Home Server @ 3TB
Onkyo TX-SR606 HDMI
Hitachi Ultravision Plasma
CheezWiz is offline   Reply With Quote
Old 03-17-2007, 08:47 PM   #176
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Quote:
Originally Posted by CheezWiz
Upon setting the Tivo to 16:9 but leaving the TV in 4:3 I do see the expected results of tall and skinny, but all is there.
Cool, i think that means I am on the right track. I almost have a dramtically changed transcode.py file ready for anyone having aspect issues to try.

Quote:
Originally Posted by CheezWiz
The question I have is, can pyTivo determine which of my two Tivos is requesting the file and select aspect ratio appropriately? Or does the requester never ID itself to pyTivo?
F, hmm, I had not thought of this issue. Umm no in its first iteration the setting will be the same as TivodotNet, which is a global setting of 16:9 or 4:3. The TiVo does identify itself when it requests files, but this will require two additional mods, 1. Add code to pull the TSN from the request, 2. Add code to the conf file to allow you to choose which TiVo gets what.

Quote:
Originally Posted by CheezWiz
Also, is all this protocol documented somewhere or have you guys just figured it out through trial and error? ps, thanks to everyone involved with this!
Umm like much of the TiVo development a lot of it comes from looking at TiVo's software and reverse engineering it. Armooo did 99% of the hard work and started this thing. I think he just watched packets from TiVo Desktop. I can say that when I had to solve the transfer error problem I had to purchase TiVo Desktop 2.4 and do some packet sniffing while it was running to solve the issue.

So the answer is no, not to my knowledge. TiVo has not released an SDK since the HMO/HME days and has not expanded either of those since then. I know a few developers, namely the developer for galleon, have been quite upset about this.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-17-2007, 10:32 PM   #177
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
New Version: Aspect Problems Fixed?

- I made some major changes to how select_aspect() works. Unless you specify in the conf file that you want to allow 16:9 aspect ratio all files will be sent to TiVo in the 4:3 format. Additionally the code for padding of videos has been updated to be more accurate. A circle should indeed be a circle on the TV now. And Sabu I hope this fixes your issue.

Read about how this works AspectRatio

Hmm, my brain is dead and I can't figure this out right now. When I pad the left and right, do I need to pad with distorted pixels?? Can someone play a video which is skinnier than 4:3 and tell me if it looks distorted at all on TV. We might only need to pad with true pixels on left and right.

- A new conf file has been provided, but to allow 16:9 files set the following option in the conf file:
aspect169=true

Even if you allow 16:9 videos files which are 4:3 or lower aspect(very skinny) will still be sent in 4:3 format and your TV can handle them however you normally handle 4:3 broadcast images.

- The debug code had been simplified. To create a debug.txt file in the base directory of what transcode.py is doing set the following option in the conf file:
debug=true

Leave it set to off(debug=false, or delete the line) unless you want to slow pyTivo down and create a wasted file in your base directory.

- I also added dlfl's code for the fps issue he was having.

Later Updates:
Cheezwiz Sorry buddy the aspect setting is global, I will work on a per TiVo setting later.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

Last edited by KRKeegan : 03-17-2007 at 11:12 PM. Reason: added link to wiki, and added question
KRKeegan is offline   Reply With Quote
Old 03-18-2007, 11:12 AM   #178
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,857
Aspect Ratio......

Quote:
Originally Posted by KRKeegan
............Hmm, my brain is dead and I can't figure this out right now. When I pad the left and right, do I need to pad with distorted pixels?? Can someone play a video which is skinnier than 4:3 and tell me if it looks distorted at all on TV. We might only need to pad with true pixels on left and right.
Results of an experiment (not sure what you will make of it):

I used a tivo-compatible mpeg2 file (a tivo file edited by VideoReDo and saved as mpeg2). It has 480x480 (encoding) resolution.

I changed tivo_compatable() so if would return False for this file, i.e., forcing a re-encode, and looked at the ffmpeg command line for that transcode.

I'm 4:3 all the way (tivo settings, TV and aspect169 = false).

The encoding -s option was 540x480 and left and right pads were both 90, bringing it to 720x480. The -aspect option was 4:3. (The 540 obviously is the 9/8 ratio times 480.)

The TV picture was squeezed horizontally and had black bands left and right.

Obviously some pixel distortion (PAR not 1:1) is needed. However, if tivo is sent the original (not-transcoded) 480x480 mpeg it will do the scale up to 4:3 aspect for display.

My guess is (at least for this case) the -s should be 720x480 and left and right pads should be 0. I think this is what you call padding "with distorted pixels" (?)

Like you said in your Wiki addtion, PAR is the "annoying one".

As I see it, the basic problem is ffmpeg doesn't give enough information. It gives you the encoded dimensions but not the frame (or display) dimensions intended for the video. (Or equivalently, it doesn't give you the PAR.) Even worse, this information is probably not even available in some video file formats (?). You have to assume target display dimensions based on 4:3 or 16:9. For 4:3, it seems unlikely (but not impossible) that the intended display AR would be less that 4:3 --- which seems to imply you should pad with distorted pixels for those cases -- but then ..... yep, it's annoying!.
Quote:
Originally Posted by KRKeegan
- I also added dlfl's code for the fps issue he was having.
Thanks. I'm assuming (hoping?) this will help OP too.
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by dlfl : 03-18-2007 at 11:27 AM.
dlfl is offline   Reply With Quote
Old 03-18-2007, 12:36 PM   #179
KRKeegan
Im lost and confused
 
KRKeegan's Avatar
 
Join Date: Jul 2004
Location: Los Angeles, CA
Posts: 215
Quote:
Originally Posted by dlfl
Obviously some pixel distortion (PAR not 1:1) is needed. However, if tivo is sent the original (not-transcoded) 480x480 mpeg it will do the scale up to 4:3 aspect for display.

My guess is (at least for this case) the -s should be 720x480 and left and right pads should be 0. I think this is what you call padding "with distorted pixels" (?)
Exactly, I am hoping that Armooo, list of possible PAR ratios will catch files that have non 1:1 PAR.

But yes ffmpeg does not return enough information for me to know what the PAR is. I think for most computer files a PAR of 1:1 will work, AVIs i think are pretty much always in 1:1. The problem is going to come in with MPGs, some of them as dlfl demonstrated have nonsquare pixels.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A much better place to receive pyTivo help and updates.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.
KRKeegan is offline   Reply With Quote
Old 03-18-2007, 01:03 PM   #180
sabu
Registered User
 
Join Date: Jan 2002
Location: Harrisburg, PA
Posts: 17
Quote:
Originally Posted by KRKeegan
- And Sabu I hope this fixes your issue.
Yes, the 16:9 ratio file now transfers and plays with the content centered!

One alternative option for how to specify the 16:9 setting would be on a share by share basis instead of a TiVo by TiVo basis. That way it would be easy to try the variations of the flag going forward as new versions of the TiVo software are released. Just a thought.

Thanks again for all your efforts! This is a great little program.
sabu is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 05:35 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |