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 12-04-2007, 01:50 PM   #1231
PaulS
Registered User
 
Join Date: Sep 2002
Location: Southern NH
Posts: 596
Quote:
Originally Posted by rsilvers View Post
I am trying to get pyTivo working. I get these errors. What is wrong?
The last line of output for each error says :

NoOptionError : No option 'ffmpeg' in section: "Server"

You haven't defined the ffmpeg parms line in the pytivo.conf configuration file. This varies depending upon which version of pyTivo you're using. What's your version, and what's you pytivo.conf file look like ?
PaulS is offline   Reply With Quote
Old 12-04-2007, 02:02 PM   #1232
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
I downloaded this file: pyTivo-208.zip from here: http://armooo.net/~armooo/pyTivo/downloads/



-----------------------------------

[Server]
port=9032


#Full path to ffmpeg including filename
#ffmpeg=d:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
#For linux: ffmpeg=/usr/bin/ffmpeg
#ffmpeg=/usr/bin/ffmpeg

#This will make a large debug.txt file in you base directory. It only debugs
#transcode.py right now.
#debug=false

# Audio bit-rate, default 192K
#audio_br=192K

# Video bit-rate, default 4096K
#video_br=12Mi

#Beacon broadcast address(es)
#Typically use 255.255.255.255 but on some multihomed machines you may
#need to specify the subnet broadcast address(es) of your Tivo boxes
beacon=255.255.255.255

#Output Pixel Width: if you have an HDTV you might want to try 720 or 704
#Valid: 720, 704, 544, 480, 352
#width=1440
#height=720
#ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

##Per tivo options
# section named _tivo_TSN with the tsn in all caps
[_tivo_00000DEADBEEF]

#If you want to use 16:9 or 4:3 on this tivo
aspect169=true
width=1440
height=720
audio_br=320K
video_br=12Mi
ffmpeg_prams=-i %(in_file)s -vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

#audio_br=320K
#video_br=12Mi

[pyTivo]
#Type can be either 'video' or 'music'
type=video

#Path is the full path to your files (No trailing slash needed)
path=c:\Downloads
#For linux: path=/media
#path=/home/armooo/Videos


##You can have more than one share
#[MyTelevision]
#type=video
#path=d:\television
rsilvers is offline   Reply With Quote
Old 12-04-2007, 02:27 PM   #1233
PaulS
Registered User
 
Join Date: Sep 2002
Location: Southern NH
Posts: 596
I'll highlight the problem areas.

#1 : You need to tell pytivo where to get ffmpeg from. In your file, both the Linux and Windows flavor definitions are commented out. You need to uncomment one, based upon what type of system pytivo is running on.

#2 : [_tivo_00000DEADBEEF] isn't a valid TSN, so it's not going to match your TiVo's TSN. You need to either comment this line out, or provide the correct TSN.


Quote:
Originally Posted by rsilvers View Post
I downloaded this file: pyTivo-208.zip from here: http://armooo.net/~armooo/pyTivo/downloads/



-----------------------------------

[Server]
port=9032


#Full path to ffmpeg including filename
#ffmpeg=d:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
#For linux: ffmpeg=/usr/bin/ffmpeg
#ffmpeg=/usr/bin/ffmpeg


#This will make a large debug.txt file in you base directory. It only debugs
#transcode.py right now.
#debug=false

# Audio bit-rate, default 192K
#audio_br=192K

# Video bit-rate, default 4096K
#video_br=12Mi

#Beacon broadcast address(es)
#Typically use 255.255.255.255 but on some multihomed machines you may
#need to specify the subnet broadcast address(es) of your Tivo boxes
beacon=255.255.255.255

#Output Pixel Width: if you have an HDTV you might want to try 720 or 704
#Valid: 720, 704, 544, 480, 352
#width=1440
#height=720
#ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

##Per tivo options
# section named _tivo_TSN with the tsn in all caps
[_tivo_00000DEADBEEF]

#If you want to use 16:9 or 4:3 on this tivo
aspect169=true
width=1440
height=720
audio_br=320K
video_br=12Mi
ffmpeg_prams=-i %(in_file)s -vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

#audio_br=320K
#video_br=12Mi

[pyTivo]
#Type can be either 'video' or 'music'
type=video

#Path is the full path to your files (No trailing slash needed)
path=c:\Downloads
#For linux: path=/media
#path=/home/armooo/Videos


##You can have more than one share
#[MyTelevision]
#type=video
#path=d:\television

PaulS is offline   Reply With Quote
Old 12-04-2007, 02:58 PM   #1234
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
Quote:
Originally Posted by PaulS View Post

#2 : [_tivo_00000DEADBEEF] isn't a valid TSN, so it's not going to match your TiVo's TSN. You need to either comment this line out, or provide the correct TSN.

Thanks. The instructions said:

You need to edit pyTivo.conf in 3 places

1. ffmpeg=
2. [<name of share>]
3. path=


So I did not know to change that also.
rsilvers is offline   Reply With Quote
Old 12-04-2007, 03:36 PM   #1235
PaulS
Registered User
 
Join Date: Sep 2002
Location: Southern NH
Posts: 596
Quote:
Originally Posted by rsilvers View Post
Thanks. The instructions said:

You need to edit pyTivo.conf in 3 places

1. ffmpeg=
2. [<name of share>]
3. path=


So I did not know to change that also.
If you don't intend on using the per-TiVo configuration stuff, or if you're using pyTivo with a single TiVo, you can simply comment that line out.
PaulS is offline   Reply With Quote
Old 12-04-2007, 04:18 PM   #1236
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
I got much further. Now my Tivo can see it and browse and initiate a transfer. But I still get this error:


rsilvers is offline   Reply With Quote
Old 12-04-2007, 05:54 PM   #1237
Stu_Bee
Registered User
 
Join Date: Jan 2002
Location: Silicon Valley, Ca
Posts: 887
Just a case history:
PyTivo on my Ubuntu stopped transcoding files that had .ac3 audio... This probably occured due to my upgrade from Ubuntu versions (Fiesty -> Gutsy), where somehow ffmpeg was changed to one without all the previous codecs of the prior.

Anyways, this thread here helped me get back in order by
1) Uninstalled, compiled and reinstalled ffmpeg (resulting in ffmpeg with needed codecs)
Compiling ffmpeg from upstream cvs snapshots
https://wiki.ubuntu.com/ffmpeg
2) edited transcode.py to get correct frame size from ffmpeg output:
http://tivocommunity.com/tivo-vb/sho...15#post5642515
3) edited transcode.py to get correct fps from ffmpeg output:
http://tivocommunity.com/tivo-vb/sho...11#post5749111

thanks to the above posters.
__________________
Tivo Series 3
Stu_Bee is offline   Reply With Quote
Old 12-04-2007, 06:02 PM   #1238
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
It is working now.

I had to comment this line:

#ffmpeg_prams=-i %(in_file)s -vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -


and uncomment this line:
ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

It seems real slow. I know it is upconverting to 1440x720 though, which is nice because I don't have to zoom the display later to fill the screen (which has the negative effect of cropping a bit).

Tivo Desktop Plus seems to be multi-threaded. This is not, so it only using 1/2 my CPU.
rsilvers is offline   Reply With Quote
Old 12-04-2007, 06:26 PM   #1239
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
At 1440x720, it is just about exactly 1/2 the speed of Tivo Desktop.
At 960x540, it is about 15% faster than Tivo DTP. Kinda makes sense as 960x540 has exactly 1/2 the number of pixels as 1440x720.

When I change ffmpeg to ffmpeg -threads 2, it does not seem to speed it up any.

Last edited by rsilvers : 12-04-2007 at 06:37 PM.
rsilvers is offline   Reply With Quote
Old 12-04-2007, 06:52 PM   #1240
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
Ok, I am confused. The PyTivo docs say:

"Then there is the issue that the largest dimension of file TiVo will accept it 720x480."

Does that mean that pyTivo always converts to 720x480?

If no, then what does that quote mean?

If yes, then what is the width= and height= for in the pyTivo.conf file?

What should I set them to? If they make no difference, then my speedup is because I changed video_br from 12 to 8 and audio_br from 320 to 192.
rsilvers is offline   Reply With Quote
Old 12-04-2007, 07:50 PM   #1241
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 6,095
Quote:
Originally Posted by rsilvers View Post
At 1440x720, it is just about exactly 1/2 the speed of Tivo Desktop.
Do you mean compared to TD that is also producing 1440x720?

Quote:
Originally Posted by rsilvers View Post
Ok, I am confused. The PyTivo docs say:

"Then there is the issue that the largest dimension of file TiVo will accept it 720x480."

Does that mean that pyTivo always converts to 720x480?

If no, then what does that quote mean?

If yes, then what is the width= and height= for in the pyTivo.conf file?

What should I set them to? If they make no difference, then my speedup is because I changed video_br from 12 to 8 and audio_br from 320 to 192.
First the pyTivo documentation (Wiki) is only as good as volunteers make it. Hopefully after you've learned some lessons you will contribute and make it better. The pyTivo.conf.dist example config file needs cleaning up and the configuration instructions too.

The width and height parameters do control the video size that pyTivo outputs. Each TiVo model has a selection of width/height combinations that it will accept on TTCB. The combinations for Series 2 models are given here at the bottom of the page. You should select width and height from the valid combinations for your Tivo model, and choose a combo that is appropriate for your TV. For a 27" non-HD TV, 544x480 will be plenty.

If you have a wide-screen TV, set your Tivo to 16:9 aspect ratio and set aspect169=true in your pyTivo.conf file. pyTivo makes a valiant effort at either letterboxing or pillarizing videos that don't match your selected aspect ratio.

The transcoding speed is determined primarirly by the sum of video_br and audo_br (subject to limitations of your PC and network of course), regardless of video dimensions. This sum determines how many bytes it takes to encode each second of your 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.
dlfl is offline   Reply With Quote
Old 12-04-2007, 08:09 PM   #1242
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
Thanks.

I have a 45 inch 16:9 Sharp LCD with a Tivo-3.

Here is what I found out...

With my config file set to:

width=1440
height=720

Made Atlantis go from 640x352 to 1440x720
Made Weeds go from 1280x720 to 1440x720
Made Heros go from 960x528 to 1440x720

And when I comment those out:

#width=1440
#height=720

Made Atlantis go from 640x352 to 544x480
Made Weeds go from 1280x720 to 544x480
Made Heros go from 960x528 to 544x480


This is not optimal enough as it is too slow to make all files 1440x720, and a shame to downres true HD files. What it needs are a choice of two or three valid Tivo sizes, such as 1440x720, 960x540, and 720x480. It should then scale to the size above the size closest to the actual file. To someone who knows Python, this should be a very easy change.

For example, my Atlantis file of 640x352 would be converted to 720x480. My Weeds file of 1280x720, would be converted to 1440x720, and my Heros file of 960x528 would be scaled to 960x540.
rsilvers is offline   Reply With Quote
Old 12-04-2007, 08:45 PM   #1243
snedecor
Registered User
 
Join Date: Jun 2001
Location: Angleton, TX
Posts: 64
Help a newbie!

I downloaded and installed python, pytivo, configured it correctly (I think).
PC has Tivo Desktop Server (paused) on it.
Tivo is 540 Series 2

My share is visible in the NP, and I can select a video. However, when I select the video, a second window pops up, with the only option being select to return. No play, no error that I can see. All videos do this, mpg's, .tivos that came from the tivo I was trying, and .avi's

Here is a dump of the CMD line:
(sorry, had to do an image, how do you get text from Python window?)

Contents of pytivo.conf
-----------------------------
[Server]
port=9032

ffmpeg=e:\pyTivo\plugins\video\ffmpeg_mp2.exe

#This will make a large debug.txt file in you base directory. It only debugs
#transcode.py right now.
#debug=false

#If you want to use 16:9 or 4:3 on this tivo
aspect169=true

[MyMovies]
#Type can be either 'video' or 'music'
type=video

#Path is the full path to your files (No trailing slash needed)
#For windows: path=c:\videos
#For linux: path=/media
path=C:\Documents and Settings\Gayle\My Documents\My TiVo Recordings
#Make all subfolders in to top level shares
auto_subshares= True
Attached Images
File Type: jpg pytivo output.jpg (59.0 KB, 16 views)
snedecor is offline   Reply With Quote
Old 12-04-2007, 08:49 PM   #1244
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
rsilvers you can thank wfaulk for his patch 9ec1d
__________________

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 12-04-2007, 08:50 PM   #1245
smilerz
Guest
 
Join Date: Nov 2007
Posts: 7
Quote:
Originally Posted by dlfl View Post
1. Comment out the [_tivo_00000DEADBEEF] line. (This is not a valid TSN).
2. Check the ffmpeg line: Is this the exact path to ffmpeg_mp2.exe ? For example is C:\pyTivo where you installed pyTivo? C:\program files\pyTivo is another common location or C:\program files\pyTivoXXX where XXX is the version number.

Please post your TiVo model(s), network configuration, pc OS if you need more help.
I commented out the line and confirmed (again) that the path to ffmpeg is correct - without success.

The odd thing is that it displays the content correctly - it just won't transfer the data.
MP3s work fine.
Another oddity - for shares that contain many files I can't scroll, it merely jumps to the top of the list.

I have a TivoHD with everything connected via ethernet (same subnet, no firewalls - even desktop firewalls.)
The PC running pytivo is on XP fully patched.
smilerz is offline   Reply With Quote
Old 12-05-2007, 12:38 AM   #1246
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 6,095
pyTivoMetaGen Ver. 0.31

Enhancements:

Added vSeriesGenre and vProducers

Pull down selection box to select different file extensions in case you are not always doing .mpg files (e.g., .mkv.txt, .mp4.txt etc.)

Download the installer here.

Be sure to uninstall the previous version first, if you had 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.

Last edited by dlfl : 01-14-2008 at 09:58 AM.
dlfl is offline   Reply With Quote
Old 12-05-2007, 02:49 AM   #1247
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
Quote:
Originally Posted by armooo View Post
rsilvers you can thank wfaulk for his patch 9ec1d
Thanks. That is what I wanted. It seems to work. I mean, it took me a long time but only because I don't know Python and it took me a while to get the diffs in place because there was some version differences with what I was running and what this mod was based on.

Now:

Atlantis 640x352->704x480
Weeds 1280x720->1440x720
Heros 960x528-720x480

This seems optimal assuming Tivo3 only has two heights -- 720 or 480. I suppose it does.

I like how pyTivo supports mkv files. I was screwed with Tivo Desktop Plus whenever I had that format.

Someone said pyTivo is 'easy' to install. If you change the word 'easy' to 'possible,' I would agree. It takes a while just to find compatible versions of dependent software. It is very far from easy. Easy is when my mother can do it. It could be made easy just by the website having direct links to a known tested version with a working config file and very clear links to a compatible version of Python and ffmpeg.

Last edited by rsilvers : 12-05-2007 at 03:07 AM.
rsilvers is offline   Reply With Quote
Old 12-05-2007, 03:48 AM   #1248
Mandabar
Registered User
 
Join Date: Oct 2003
Location: Orlando, Florida
Posts: 22
Quote:
Originally Posted by armooo View Post
rsilvers you can thank wfaulk for his patch 9ec1d
Quote:
Originally Posted by rsilvers View Post
Thanks. That is what I wanted. It seems to work. I mean, it took me a long time but only because I don't know Python and it took me a while to get the diffs in place because there was some version differences with what I was running and what this mod was based on.

Now:

Atlantis 640x352->704x480
Weeds 1280x720->1440x720
Heros 960x528-720x480

This seems optimal assuming Tivo3 only has two heights -- 720 or 480. I suppose it does.

I like how pyTivo supports mkv files. I was screwed with Tivo Desktop Plus whenever I had that format.

Someone said pyTivo is 'easy' to install. If you change the word 'easy' to 'possible,' I would agree. It takes a while just to find compatible versions of dependent software. It is very far from easy. Easy is when my mother can do it. It could be made easy just by the website having direct links to a known tested version with a working config file and very clear links to a compatible version of Python and ffmpeg.
Ok. WOW. I'm going to sleep, but before I go, Let me lay my problem on you gurus.

First for the Quotes, I so agree with you Rsilver, Wish they had a easy working version, 1/4th as easy to setup as Tivo.net.

2. Armoo I have no idea how to use that patch thing that you had there, tried direct overwrites and it wouldn't work anymore..

But annnyway. (I'm a bit sleepy, overlooking spelling or aimlessy talk/typing)

I got Installed. Working? No, But 98% there.
Erm, Installed using pyTivo_182_setup.exe.
That Installed the Python that my computer is using. Also that service thingy that I'M NOT BOTHERING WITH yet... Heh.
It Also put pytivo 182 in my program files, not using that though.

THEN, I went and used the newest least weird verison (Without a 40+char name), So thats pyTivo-208.zip. Unzipped to my desktop. Using that. Then I played with my config file for a good long while, Mention, rsilver your post last page helped me out with an example, and other people correcting helped. I had the issue with infile, and i changed the quotes around like rsilver did too.

So It Sorta works. Heres the config file.

Code:
[Server]
port=9099 Changed server so it would run even though tivo.net was, I'm guessing the defualt server port is the most used one for hmo stuff

#Full path to ffmpeg including filename
#For windows: ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
#For linux:   ffmpeg=/usr/bin/ffmpeg
ffmpeg=C:\Documents and Settings\Mike\Desktop\Pytivo\plugins\video\ffmpeg_mp2.exe
#ffmpeg=/usr/bin/ffmpeg

#This will make a large debug.txt file in you base directory.  It only debugs
#transcode.py right now.
#debug=false

# Audio bit-rate, default 192K
audio_br=192K

# Video bit-rate, default 4096K
video_br=1024K

#Beacon broadcast address(es)
#Typically use 255.255.255.255 but on some multihomed machines you may
#need to specify the subnet broadcast address(es) of your Tivo boxes
beacon=255.255.255.255

#Output Pixel Width: if you have an HDTV you might want to try 720 or 704
#Valid: 720, 704, 544, 480, 352
#aspect169=true
#width=720
#width=704
#width=480
width=352
height=480
ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

##Per tivo options
# section named _tivo_TSN with the tsn in all caps
#[_tivo_590123456789012] TSN Changed after first 3 from orignail i had

#If you want to use 16:9 or 4:3 on this tivo
#aspect169=true
#width=1440
#height=720
#audio_br=320K
#video_br=12Mi
#ffmpeg_prams=-i %(in_file)s -vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -

[MyMovies]
#Type can be either 'video' or 'music'
type=video

#Path is the full path to your files (No trailing slash needed)
#For windows: path=c:\videos
#For linux:   path=/media
path=C:\Documents and Settings\Mike\My Documents\Azureus Downloads\Tivo


##You can have more than one share
#[MyTelevision]
#type=video
#path=d:\television
Ok. so. It works. I can see the directory My Movies. I see all my stuff.. I can get a transfer going. Nice to see the input/output info from ffmpeg on the server/cmd line.

The video's try to transfer just fine, I haven't let one finish yet for one issue. Everything transfers full black screen with working audio.

Annoying eh? =)

I tried all sorts of HxW that I could think off as you can see in the code. From this link. http://tivosupport2.instancy.com/Tiv...s_content.html . I tried them with aspect169=true on and off.

My TV is 16:9 32inch hdtv
My Other tv is also 16:9 27inch hdtv.

Both are 590 S2 Tivo's Humax. They are both set to be 16:9 Video (Not that I've seen it makes a difference).

16:9 Worked on TDN?!Per Link, Tivo.net works for doing video's (pretty much any format works) in 4:3, but after a very brief period when 16:9 worked on my tv from tivo.net i want to have that work again. That and it's a "dead" project with no author around anymore, and mod calling it "stale" *Cries*.

I'll mess with your fancy complicated metadata stuff after I get the basics working

Do really need tivo server running paused on your computer? Tivo.net seems to run just fine w/o that software on your computer. I think.

There was something else... i forgot. If I left out any info.. er.. I'll try to answer it tommorow when I'm more coherent

edit: ps, further testing, of all my files a few do work, the 4:3 ones do.. the rest are widescreenish format. and i do have that trigger off right now, though it didn't seem to make a difference. So Clarification, 4:3 I can watch, doesn't get pillarized though so that means its streched to 16:9. My 16:9 files won't transcode at all

Last edited by Mandabar : 12-05-2007 at 01:44 PM.
Mandabar is offline   Reply With Quote
Old 12-05-2007, 05:01 AM   #1249
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,162
Quote:
Originally Posted by rsilvers View Post
This seems optimal assuming Tivo3 only has two heights -- 720 or 480. I suppose it does.
It'll also do 1080.

Quote:
It takes a while just to find compatible versions of dependent software.
I'm pretty sure that every version of pyTivo I've downloaded came with a Windows binary of ffmpeg. Not that I've used it, since I run pyTivo in Linux. Are you saying that the bundled ffmpeg doesn't work?

The only other dependency, if you don't already have it installed, is Python. Just grab the latest from python.org and you're set.

Quote:
Easy is when my mother can do it.
That's a very narrow definition. I don't agree.

Last edited by wmcbrine : 12-05-2007 at 05:11 AM.
wmcbrine is offline   Reply With Quote
Old 12-05-2007, 05:29 AM   #1250
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
I see it does come with ffmpeg. I did not notice because the download site said:

"In order to run pyTivo you will need: 1. A compatible TiVo; 2. A python interpreter; 3. FFmpeg; 4. The pyTivo script."

I took this to mean I would have to get a python interpreter and FFmpeg so I went right to work trying to find where to download FFmpeg binaries. That took a long time because there are no official binaries.

Other things that made it take a while to come up to speed:

1. Config file has Tivo TSN param uncommented when nearly everyone will want to comment it. Also it does not say what a TSN is or where to find it. And the README file says to edit three other areas but not this line. But it won't work unless you do edit it.

2. There were two ffmpeg_prams lines - one of which if you uncomment it does not work. Of course I uncommented the one which does not work and got stuck.

3. Nothing in the file says you can leave that line commented and the program has hardcoded defaults. A comment in there saying something like 'you can optionally uncomment and customize these following lines' would have helped something to get running right away.

4. I was unsure about how it exactly used width and height, and felt like I needed to find out to optimize the speed as when I first ran it it was 1/2 the speed of Tivo Desktop Plus. I am very happy with the mod to optimize it. That took a while to get working because of a bug/typo in it where config was called Config and that took knowledge of Python to fix.

I like it better than Tivo Desktop Plus because I am now confident in how it is transcoding and I am unsure how TDP rescales files. It also is now running faster than TDP at what might be equivalent settings, and it is using about 40% less CPU on my PC.

Last edited by rsilvers : 12-05-2007 at 05:58 AM.
rsilvers is offline   Reply With Quote
Old 12-05-2007, 09:40 AM   #1251
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 6,095
Quote:
Originally Posted by rsilvers View Post
I see it does come with ffmpeg. I did not notice because the download site said:

"In order to run pyTivo you will need: 1. A compatible TiVo; 2. A python interpreter; 3. FFmpeg; 4. The pyTivo script."

I took this to mean I would have to get a python interpreter and FFmpeg so I went right to work trying to find where to download FFmpeg binaries. That took a long time because there are no official binaries.

Other things that made it take a while to come up to speed:

1. Config file has Tivo TSN param uncommented when nearly everyone will want to comment it. Also it does not say what a TSN is or where to find it. And the README file says to edit three other areas but not this line. But it won't work unless you do edit it.

2. There were two ffmpeg_prams lines - one of which if you uncomment it does not work. Of course I uncommented the one which does not work and got stuck.

3. Nothing in the file says you can leave that line commented and the program has hardcoded defaults. A comment in there saying something like 'you can optionally uncomment and customize these following lines' would have helped something to get running right away.

4. I was unsure about how it exactly used width and height, and felt like I needed to find out to optimize the speed as when I first ran it it was 1/2 the speed of Tivo Desktop Plus. I am very happy with the mod to optimize it. That took a while to get working because of a bug/typo in it where config was called Config and that took knowledge of Python to fix.

I like it better than Tivo Desktop Plus because I am now confident in how it is transcoding and I am unsure how TDP rescales files. It also is now running faster than TDP at what might be equivalent settings, and it is using about 40% less CPU on my PC.
Yes it's not easy even for someone in the know to initially understand configuring pyTivo and to keep up with the rapid development and many versions of the code -- but it's worth it! Good thing we have this forum, eh?

I would note that TSN is explained in the Wiki, configuration section.

What we need is to commercialize pyTivo . Then the documentation effort could be put in to make it easy for beginners. Of course that costs money so the product would no longer be free, probably costing $49.95 or ??.

Anyone can contribute to the Wiki !

Anyway, congratulations on making it through the maze!
__________________

"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 : 12-05-2007 at 09:45 AM.
dlfl is offline   Reply With Quote
Old 12-05-2007, 09:53 AM   #1252
smilerz
Guest
 
Join Date: Nov 2007
Posts: 7
I'm reposting this in case it got buried in the replies:
Quote:
Originally Posted by dlfl View Post
1. Comment out the [_tivo_00000DEADBEEF] line. (This is not a valid TSN).
2. Check the ffmpeg line: Is this the exact path to ffmpeg_mp2.exe ? For example is C:\pyTivo where you installed pyTivo? C:\program files\pyTivo is another common location or C:\program files\pyTivoXXX where XXX is the version number.

Please post your TiVo model(s), network configuration, pc OS if you need more help.
I commented out the line and confirmed (again) that the path to ffmpeg is correct - without success.

The odd thing is that it displays the content correctly - it just won't transfer the data.
MP3s work fine.
Another oddity - for shares that contain many files I can't scroll, it merely jumps to the top of the list.

I have a TivoHD with everything connected via ethernet (same subnet, no firewalls - even desktop firewalls.)
The PC running pytivo is on XP fully patched.
smilerz is offline   Reply With Quote
Old 12-05-2007, 10:33 AM   #1253
greg_burns
Now in HD
 
greg_burns's Avatar
 
Join Date: May 2004
Location: Slower Lower Delaware
Posts: 6,376
Quote:
Originally Posted by Mandabar View Post
The video's try to transfer just fine, I haven't let one finish yet for one issue. Everything transfers full black screen with working audio.

Annoying eh? =)

Quote:
16:9 Worked on TDN?!Per Link, Tivo.net works for doing video's (pretty much any format works) in 4:3, but after a very brief period when 16:9 worked on my tv from tivo.net i want to have that work again.
It is not Tivo.NET nor pyTivo, it is what is broken with our Tivos since 9.1.

Can anyone confirm this (no video, only audio for 16x9) is still a problem? I personally have not tried in awhile.

My 240 didn't have the probelm, only my 540.
greg_burns is offline   Reply With Quote
Old 12-05-2007, 10:36 AM   #1254
gonzotek
tivo_xml developer
 
gonzotek's Avatar
 
Join Date: Sep 2004
Location: Outside Phildadelphia
Posts: 2,237
Quote:
Originally Posted by greg_burns View Post
It is not Tivo.NET nor pyTivo, it is what is broken with our Tivos since 9.1.

Can anyone confirm this (no video, only audio for 16x9) is still a problem? I personally have not tried in awhile.

My 240 didn't have the probelm, only my 540.
I can't confirm, but I can say I keep a close eye on this thread and the HMF forum in general and I haven't seen any reported success stories, just failures.
gonzotek is offline   Reply With Quote
Old 12-05-2007, 11:06 AM   #1255
jcthorne
Registered User
 
Join Date: Jan 2002
Location: Houston
Posts: 2,001
I thought it was pretty common knowledge but guess not from the exchange on resolutions for the TivoHD above.

I have stopped having pyTivo convert resolution AT ALL. I have yet to find a resolution below 1080i that the TivoHD will not display correctly if the file's aspect ratio is internally correct. I know I have transferred numerous 1280xXXX (fixed width 720p) and quite a number of 720xXXX and 640xXXX. All play in thier native resolution without conversion by ffmpeg. Most are left at 23.98fps as well. I just let ffmpeg (via pyTivo) convert to mpeg2video and ac3 at 320kbps.

Am I missing something with this overly simplistic approach? I know it will not work for series 2 units and have no idea on S3 but assume it would be the same as the THD.
__________________
Current : Roamio Base with 2TB drive and 2 Premieres and a mini. OTA. kmttg, pyTivo, running with a 78TB Synology 1511 NAS....serving up the world.

Setup help for pytivo under windows:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
jcthorne is offline   Reply With Quote
Old 12-05-2007, 11:30 AM   #1256
rsilvers
Registered User
 
Join Date: Dec 2007
Posts: 33
How do you keep it from converting resolution? Just edit the FFmpeg params line to not give a new size? That might be the best idea as let the Tivo hardware scale it in realtime. As long as pyTivo pads it to 16:9. Someone with experience please comment on if this is the best idea. I would assume it was except that pyTivo puts in the effort to resize the file so I figured that must be for a good reason.

I did have audio get out of sync and it was when I left a file at 23.97 fps, so I thought maybe the 29.97 was important for Tivo -- though I have not tested that.
rsilvers is offline   Reply With Quote
Old 12-05-2007, 11:47 AM   #1257
jcthorne
Registered User
 
Join Date: Jan 2002
Location: Houston
Posts: 2,001
I edited the ffmpeg params line. FFmpeg will default to the input size and frame rate if none are specified. So long as the file's AR is correctly specified, TivoHD seems perfectly capable of padding and resizing to the screen in real time. I only had a problem with audio sync when ffmpeg converted FROM 23.98 to 29.97, never if I left the frame rate of the file alone as received (unless the file was out of sync to begin with).

The whole resolution conversion and AR sequence was very important for S2 tivos. Does not seem necessary for most of what I have encountered on the THD.

I noticed that armoo's latest build now skips reencode for all mpg2 files on S3 tivos. Have not installed it yet.
__________________
Current : Roamio Base with 2TB drive and 2 Premieres and a mini. OTA. kmttg, pyTivo, running with a 78TB Synology 1511 NAS....serving up the world.

Setup help for pytivo under windows:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
jcthorne is offline   Reply With Quote
Old 12-05-2007, 12:08 PM   #1258
mitch2k2
Registered User
 
Join Date: Aug 2006
Posts: 110
Are there any ffmpeg parameters to tweak things like brightness and/or contrast during conversion?
mitch2k2 is offline   Reply With Quote
Old 12-05-2007, 01:00 PM   #1259
Mandabar
Registered User
 
Join Date: Oct 2003
Location: Orlando, Florida
Posts: 22
Well I'm still having an issue, Regardless of the 16:9 issue. Also I take this to mean that for pytivo, 16:9 video doesn't work (tivo issue, s2) either?

So this value doesn't change anything? aspect169=true

Any Video I have that is 16:9ish won't transfer to my tivo with video, only audio.

The only files I can watch are the 4:3 ones, which are taking all the 4:3 space and becoming 16:9. I guess the term is not pillarizied.

Also, any comments on my config file?

Last edited by Mandabar : 12-05-2007 at 06:50 PM.
Mandabar is offline   Reply With Quote
Old 12-05-2007, 01:18 PM   #1260
snedecor
Registered User
 
Join Date: Jun 2001
Location: Angleton, TX
Posts: 64
Anyone? (plus new way to reboot your TiVo)

Quote:
Originally Posted by snedecor View Post
I downloaded and installed python, pytivo, configured it correctly (I think).
PC has Tivo Desktop Server (paused) on it.
Tivo is 540 Series 2

My share is visible in the NP, and I can select a video. However, when I select the video, a second window pops up, with the only option being select to return. No play, no error that I can see. All videos do this, mpg's, .tivos that came from the tivo I was trying, and .avi's

Here is a dump of the CMD line:
(sorry, had to do an image, how do you get text from Python window?)

Contents of pytivo.conf
-----------------------------
[Server]
port=9032

ffmpeg=e:\pyTivo\plugins\video\ffmpeg_mp2.exe

#This will make a large debug.txt file in you base directory. It only debugs
#transcode.py right now.
#debug=false

#If you want to use 16:9 or 4:3 on this tivo
aspect169=true

[MyMovies]
#Type can be either 'video' or 'music'
type=video

#Path is the full path to your files (No trailing slash needed)
#For windows: path=c:\videos
#For linux: path=/media
path=C:\Documents and Settings\Gayle\My Documents\My TiVo Recordings
#Make all subfolders in to top level shares
auto_subshares= True


Can anyone comment on why my TiVo can see the share generated by Pytivo, but when I select a video, I get a blank page with "no information available", and the only option is to press select to go back?

I did however find out that if you press PLAY while on this screen, you will reboot your TiVo.

Snedecor
snedecor 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 01:48 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |