Accepting Video Input over USB

If you think about new features for TomPlayer

Re: Accepting Video Input over USB

Postby wolfgar » 10 Feb 2010, 21:35

Hi,

Thanks for mentioning it : it is indeed easier to find...
Regards
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 21 Feb 2010, 16:18

Hi,

A friend of mine asked me to install tomplayer and make the usb cable but i cant make it work!! :oops:

My tomtom is these:
http://www.navigadget.com/wp-content/postimages/2008/04/tomtom-one-130s.jpg
My friend tomtom is:
http://reviews.digitaltrends.com/images/guides/2008-gps-buying-guide/TomTomOne_3rdEd.jpg

The usb modules insert successful but the usb device its not detected...

"cat /proc/bus/usb/devices" only show the usb ohci_hcd device

Maybe i need to put that 15ohms Resistances ?

OS version 2.6.13-tt190943

BTW you should fix the index page of the website its full of php errors

Can you compile your program with option to disable the preview for me ?I REALY NEED IT!

EDIT:I get it working connecting a USB HUB 2.0 maybe because there is resistors inside the hub?
Last edited by Bruno on 04 Apr 2010, 11:09, edited 1 time in total.
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

Re: Accepting Video Input over USB

Postby wolfgar » 08 Mar 2010, 22:14

hi

Sorry for the late answer, i missed your post !
Great to read that you managed to get it working : i think the resistances in the hub are the explanation yes. In fact i still do not understand how it can work without them on other devices ;-)


For the preview, i think that you can suppress the preview by editing my GUI configuration file :
if your screen resolution is 320*240, edit the file : tomplayer/conf/320_240/video.cfg
if your screen resolution is 480*272, edit the file : tomplayer/conf/480_272/video.cfg

If this file replace the line
Code: Select all
prev_ratio = 33


by

Code: Select all
prev_ratio = 0


It should do the trick... (i cannot test as i do not have my tomtom device at home for now...)

Regards

Stéphan
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 13 Mar 2010, 15:53

wolfgar wrote:hi
If this file replace the line
Code: Select all
prev_ratio = 33

by
Code: Select all
prev_ratio = 0


Hi,
changed prev:ratio=0 it disable the preview but it exits the program ... shows that loading screen(that clock) and exits...
you already build the usb cable?
bye

EDIT:tested in my tomtom and in my friends tomtom too and exits...
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

Re: Accepting Video Input over USB

Postby wolfgar » 14 Mar 2010, 01:47

I should get my tomtom back tomorrow and will check for the configuration edition.
(Which editor have you used ? the text file must be saved in unix format...)
I keep you informed...

For the usb cable, not yet...

Regards
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby wolfgar » 14 Mar 2010, 17:35

Hi

I have checked for the preview
There was a little bug. I have solved it.
Here is the new tomplayer binary. Of course will be part of the next release...

Regards

Wolfgar
You do not have the required permissions to view the files attached to this post.
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 14 Mar 2010, 20:47

wolfgar wrote:Hi

I have checked for the preview
There was a little bug. I have solved it.
Here is the new tomplayer binary. Of course will be part of the next release...

Regards

Wolfgar

Its working now
thanks! :P
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

Re: Accepting Video Input over USB

Postby wolfgar » 15 Mar 2010, 00:28

great !
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 04 Apr 2010, 11:07

Hi,
Need you help again :P
I'm going to buy one usb TV tuner like these http://www.avermedia.eu/avertv/fr/Product/ProductDetail.aspx?Id=293
In drivers section there is drivers for Linux(64/32bits) with the source code included...
Now the question is if its possible to compile that drivers to tomtom.
To use the tuner we can use mplayer like described in the readme
(............)
To watch TV programs with AVerTV Volar HX/AX/MAX, you need TV applications.
Some popular TV applications are listed below for your reference.
========================
MPlayer
========================

MPlayer is a multimedia player capable of supporting variety of media sources.
In this case, MPlayer can be used for watching NTSC/PAL/SECAM/DVB-T TV programs.
TV audio is supported by MPlayer directly.
To watch PAL TV programs, for example, please do the following:

$ mplayer tv:// -tv driver=v4l2:device=/dev/video0:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:normid=0:freq=147250:outfmt=YUY2

(............)

The question is simple possible or no? :mrgreen:
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

Re: Accepting Video Input over USB

Postby wolfgar » 04 Apr 2010, 22:18

Hi Bruno,

Well, compiling the driver for this device is definitively possible : i can perform this task with no major pain i think...

Unfortunately, there are other challenges to overcome :
- First the USB connection : The tomtom has to be turned into a master on the USB bus to drive the tuner : See this post viewtopic.php?f=15&t=225 . it seems to work : i have no time to test for now (in fact i still miss the required connector ;-) ) . I think that using a hub is the best solution as it seems to be mandatory on some models and as it will power the tuner...
- Last but not least : the MPEG video resolution will not be adapted to your tomtom resolution and mplayer will be unable to resize it on fly i fear (In fact mplayer could perform this task but the tomtom cpu is not owerfull enough...)

So i may work but it is quite challenging ...
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 05 Apr 2010, 18:27

wolfgar wrote:
Well, compiling the driver for this device is definitively possible : i can perform this task with no major pain i think...
(..)


My only problem is the driver ....
Can you compile the driver for me ? :P (It's not urgent, because i had to order the tuner it will take at least a week)

The source code is here

http://rapidshare.com/files/372367951/H826D-expert-install.tar.gz.html

I cant upload in here because the max upload size is small.....

What is your problem with the cable?

EDIT:I think that you need my version... ->2.6.13-tt190943
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

Re: Accepting Video Input over USB

Postby wolfgar » 05 Apr 2010, 21:09

Excuse me, firstly i was not aware that you were the person who submitted information regarding USB that's why i pointed the post ...
I have no specific problem with the connector : i simply have not bought it !
It is too cheap to order it online and i do not have a local reseller so i am waiting and am going to pass a global order...

I can build the required driver (indeed i need your exact version of kernel otherwise the module will not load) and, as you have posted useful info on this forum, i am going to build your driver...

Can you explain why you think that resizing the video will not be an issue ?

Regards
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 05 Apr 2010, 22:09

wolfgar wrote:Can you explain why you think that resizing the video will not be an issue ?

Well in the original driver package comes a file explaining how to use mplayer ..:
To watch PAL TV programs, for example, please do the following:

$ mplayer tv:// -tv driver=v4l2:device=/dev/video0:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:normid=0:freq=147250:outfmt=YUY2


As you can see theres audiorate so videorate should be supported and the resolution should be the same thing but only testing i will know...
for example the web-cams you can select different resolution to the video capture maybe the tuner is the same thing...
(at least FM radio will work :P )

Code: Select all
I can build the required driver (indeed i need your exact version of kernel otherwise the module will not load) and, as you have posted useful info on this forum, i am going to build your driver...

Thanks but you don't need my ttsystem to extract?

About the cable its so hard to buy a usb extension and a mini usb cable in there (France I think) ?
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

Re: Accepting Video Input over USB

Postby wolfgar » 05 Apr 2010, 23:51

bruno,

In fact, i own myself a avermedia TNT tuner (avertv volar black HD to be precise) for my HTPC and it is true that it works quite well out of the box with mplayer (well in fact i do not use mplayer on my htpc but that s another story...)
The DVB video i receive with my tuner is 720x576 (for SD) that's why i say that you will need to resize to be correctly displayed on a Tomtom. But you are right : lets tets it to be sure...
About your kernel : in fact i need the source not the built kernel in your ttsystem and i already have the source for tt190943.
Yet you driver will not build for this version : We have to turn to a more recent kernel.
Fortunately, it seems that Tomtom provides a kernel based on linux 2.6.23.17 (the release 235491) : I will try to build the driver for this (it is the only option as the driver requires a kernel v > 2.6.17).
We will have to build a new ttsystem based on this new kernel for the whole thing to work...

(buying a usb extension and a mini usb cable is not that hard, i will end up buying it , i promise ;-) )
User avatar
wolfgar
Site Admin
 
Posts: 1876
Joined: 26 Feb 2008, 22:15

Re: Accepting Video Input over USB

Postby Bruno » 06 Apr 2010, 10:34

wolfgar wrote:In fact, i own myself a avermedia TNT tuner (avertv volar black HD to be precise)(...)

Cool the driver is the same so you can test it out too :P
wolfgar wrote:The DVB video i receive with my tuner is 720x576 (for SD)(...)

But analog the resolution should be lower I think...
BTW what is the resolution in HD? 1280*720?
wolfgar wrote:Fortunately, it seems that Tom tom provides a kernel based on Linux 2.6.23.17 (the release 235491).

So there's a ttsystem from tomtom that uses a more recent kernel?

I have a question: The ttsystem file its like a image from a hd? (it have a structure of a Linux file-system after been installed on a PC)

The driver when you have time build it :mrgreen:
TOMTOM One 2.6.13-tt190943
User avatar
Bruno
Membre
 
Posts: 16
Joined: 14 Jan 2010, 18:55
Location: Portugal

PreviousNext

Return to Features proposal

Who is online

Users browsing this forum: No registered users and 1 guest