View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: firewire advice sought
PostPosted: Thu Mar 23, 2006 9:25 pm 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
trying to get a stream out of my LC3700N TV. It's got firewire ports- hoping to get some capture going!

>plugreport 'sees' a device on node 0:
Node 0
-------
oMPR #plugs=1, data rate=2, broadcast channel=63
oPCR[0] online=1, #bcast connections=0, #p2p connections=0
channel=0, data rate=2, overhead id=0, payload=244

from command line I execute:

test-mpeg2 > test.tl

without error. however the file produced is 0k.

>cat on /var/log/syslog for 1394 "ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting"

not sure if 'remote IRM' is the FW card or the TV. If it's the TV then I guess I'm sunk.


gscanbus returns:

Code:

SelfID Info
-----------
Physical ID: 0
Link active: Yes
Gap Count: 63
PHY Speed: S400
PHY Delay: <=144ns
IRM Capable: Yes
Power Class: None
Port 0: Not connected
Port 1: Connected to parent node
Init. reset: No

CSR ROM Info
------------
GUID: 0x0060B0000015ACFB
Node Capabilities: 0x000083C0
Vendor ID: 0x000060B0
Unit Spec ID: 0x0000A02D
Unit SW Version: 0x00010001
Model ID: 0x00105002
Nr. Textual Leafes: 2

Vendor:  HEWLETT-PACKARD CO.
Textual Leafes:
Hewlett-Packard
LC3700N

AV/C Subunits
-------------
Tuner: 1
Video Monitor: 1


but if I test-mpeg2:
Code:

#test-mpeg2 -r 0 > test.tl
#/usr/local/bin/.libs/lt-test-mpeg2: symbol lookup error: /usr/src/libiec61883/src/.libs/libiec61883.so.0: undefined symbol: raw1394_bandwidth_modify


I'm not getting much return from googling that last one.

running R5A30.2


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 26, 2006 8:01 pm 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
update~
upgraded to R5B7- no issues.

I went to linux1394.org and got the latest libiec61883 release (1.0.0)- ran ./configure && make && make install and now I'm able to grab high def via firewire using:
Code:
/usr/src/libiec61883/examples# ./test-mpeg2 -r 0 > test.tl


but only from that directory. If I:
Code:
#test-mpeg2 -r 0 > test.tl

from any directory I get:
Code:
/usr/local/bin/.libs/lt-test-mpeg2: symbol lookup error: /usr/src/libiec61883/src/.libs/libiec61883.so.0: undefined symbol: raw1394_bandwidth_modify


when I:
Code:
#which test-mpeg2
/usr/local/bin/test-mpeg2

so that tells me my machine is not using the newly installed library.

The question I'm trying to figure out now is, what do I have to do to get myth to use these new libs? What is the command myth sends to start capturing the data stream from the firewire port? I'd be surprised if it were test-mpeg2!

When I add firewire in myth-setup, I get frontend errors when I try to watch live TV:
Code:
TV: Attempting to change from None to WatchingLiveTV
2006-03-26 17:24:59.251 Using protocol version 26
2006-03-26 17:24:59.385 RingBuf(/myth/tv/1065_20060326172459.mpg): Invalid file (fd 17) when opening '/myth/tv/1065_2
0060326172459.mpg'. 12 retries remaining.
2006-03-26 17:24:59.887 RingBuf(/myth/tv/1065_20060326172459.mpg): Invalid file (fd 17) when opening '/myth/tv/1065_2
0060326172459.mpg'. 11 retries remaining.
2006-03-26 17:25:00.389 RingBuf(/myth/tv/1065_20060326172459.mpg): Invalid file (fd 17) when opening '/myth/tv/1065_2
0060326172459.mpg'. 10 retries remaining.
2006-03-26 17:25:00.890 RingBuf(/myth/tv/1065_20060326172459.mpg): Invalid file (fd 17) when opening '/myth/tv/1065_2



Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 26, 2006 11:18 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
Maybe you already know this, but..

/usr/src/libiec61883/examples/test-mpeg2

and

/usr/local/bin/test-mpeg2

appear to different binaries, linked against different libraries.

The libiec61883 package is for just for the libraries. /usr/src/libiec61883/examples/test-mpeg2 is probably just utility for testing.

The only programs that your build probably installed were:
Code:
 
/usr/local/bin/plugctl
/usr/local/bin/plugreport


The rest of what it installed were libraries and files needed for you to build against those libraries.

If you rebuild the deps for myth and and reinstall them, whatever was build against the
old libraries will now be using the new libraries. Cecil posted instructions on building the debs for 0.19. It is painless..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 12:28 am 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
Hi mac, thanks for the response.

I can understand what you're saying about the two binaries and libraries up until the building deps and debs and reinstalling 'them' part. I also took a long look at cecil's sticky about rebuilding debs for .19 - he loses me at step 2. "Get the diffs you want". files I got from linux1394.org the diffs?

the only diff which mentions firewire is the knoppmyth_tv_0.19.0-4_i686.diff

which says has a line down at the bottom:
Code:
./configure --prefix=/usr --arch=pentiumpro --enable-dvb --enable-firewire\

so even though I'm running AMD this gives a clue as to what you are talking about. I'm guessing I need to ./configure mythtv with a switch --enable firewire\ ?


Quote:
1. Get the MythTV source.
2. Get the diff you want.
3. Patch the source w/ the diff.
4. Build the deb.
5. Install the deb.
6. Enjoy!


It sounds so easy. except I don't know if a 'diff' is available for what I need (firewire). I don't know how to patch the source w/ the diff. build the deb? Is the deb the source? I once knew a girl named Deb, considering our history I think she'll be slightly unwilling to help.

well, a search for 'deb' only has 182 matches. I'll start with that. 'deps' will be easy, only 6 matches. 'Patch' may take a while to wade through, 340. diff has 23.

I think I'm sleepy. I'll post back here in a few weeks when I've got some reading done. :shock:

I can't believe I have gotten this far to be honest


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 5:02 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
I think that your making it more complicated than it has to be!

The only deb your going to rebuild is the mythtv -- don't worrry about doing the steps for mythplugins and myththemes. The only diff that your going to need to get is the one for mythtv. You don't need to edit the diff, it has nothing to do with the price of
eggs or in your case,

--- rebuilding the binaries so that they are linked against the correct libraries !!!! ----

A diff is just differences between two files or the files in two source trees. By feeding
the diff to program called "patch" the files in the source tree will be changed to match
the files that diff was made against.

A deb is debian package file to be used by "dpkg" which is a system of adding and
removing programs their associated files from the system. It also manages
dependencies, so that you usually can't shoot yourself in the foot by removing something
that will break a whole raft of other things that depended on it. But I digress!

so --- just

Code:
wget ftp://ftp.knoppmyth.net/R5/diffs/knoppmyth_tv_0.19.0-4_i586.diff
svn co http://svn.mythtv.org/svn/branches/release-0-19-fixes/mythtv
cd mythtv
patch -p1 < ../knoppmyth_tv_0.19.0-4_i586.diff
chmod +x debian/rules

Edit debian rules file
Code:
pico debian/rules

And change line 34 from:
Code:
make -j 6 CXX=distcc

To:
Code:
make CXX=gcc

Then:
Code:
fakeroot dpkg-buildpackage -us -uc -b



After the packages are built your going to have to reinstall the one for mythtv. I don't think
that you have to worry about all of the debs that it created as they are already installed
and I don't think that any of them contain binaries that need to be linked against firewire
libs that you compiled.

You may have to use "dpkg --force-remove-reinstreq <whatevernamethedebis>.deb"
to get it to go..

Please somebody chime in if you think I am leading the poor fellow down the garden path.


Last edited by mac on Mon Mar 27, 2006 9:40 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 8:48 am 
Offline
Joined: Wed Nov 10, 2004 12:28 am
Posts: 91
Location: NJ
In the Firewire setup of mythtv-setup, are you using point-to-point or broadcast? And have you tried both?

Also, when you try to watch LiveTV, check the backend log for an errors like:

Code:
Firewire: No Input in 15 seconds [P:0 N:1] (select)




Read these 2 threads if you haven't: http://www.mysettopbox.tv/phpBB2/viewtopic.php?t=7823

http://www.mysettopbox.tv/phpBB2/viewtopic.php?t=7438



I use firewire via my comcast motorola 6200 boxes and sometimes it get this No input in 15 seconds error.

Rich


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 11:10 am 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
Quote:
Please somebody chime in if you think I am leading the poor fellow down the garden path.


THANK YOU SO MUCH!

I really needed that input. all of it. I'll post results when I get home tonight.

RichP:

Yes, I'm set to broadcast in myth-setup and have tried P2P as well. The error is something about being unable to grab the handle? going from memory on this, I'll look through the log and post that when I get home tonight.

Thanks for input! It really helps!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 7:14 pm 
Offline
Joined: Wed Nov 10, 2004 12:28 am
Posts: 91
Location: NJ
Code:
symbol lookup error: /usr/src/libiec61883/src/.libs/libiec61883.so.0: undefined symbol: raw1394_bandwidth_modify


I think I get this error only when I run firewire in p2p mode.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 8:43 pm 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
Here's that backend error I'm getting:
Code:
2006-03-25 23:16:03.642 Firewire: Initializing Port: 1, Node: 0, Speed: 400Mbps
2006-03-25 23:16:03.647 Firewire: unable to get handle for port: 1, bailing
firewire port: Invalid argument


I'm going to try mac's suggestions after dinner. post back in a bit.

/nervous


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 10:02 am 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
well I gave mac's suggestions a try and completed with no errors. I did not find a package for mythtv though. Here's a list of all the .debs on my system:

Code:
/usr/src/mythtv/i586/libmyth-0.19-dev_0.19.0-4_km_i586_i386.deb
/usr/src/mythtv/i586/libmyth-0.19_0.19.0-4_km_i586_i386.deb
/usr/src/mythtv/i586/modules/mythburn-ui_1-cvs-1_i386.deb
/usr/src/mythtv/i586/modules/mythplugins_0.19.0-6_i586_i386.deb
/usr/src/mythtv/i586/mythtv-backend_0.19.0-4_km_i586_i386.deb
/usr/src/mythtv/i586/mythtv-common_0.19.0-4_km_i586_all.deb
/usr/src/mythtv/i586/mythtv-database_0.19.0-4_km_i586_all.deb
/usr/src/mythtv/i586/mythtv-debug_0.19.0-4_km_i586_i386.deb
/usr/src/mythtv/i586/mythtv-doc_0.19.0-4_km_i586_all.deb
/usr/src/mythtv/i586/mythtv-frontend_0.19.0-4_km_i586_i386.deb
/usr/src/mythtv/i586/mythtv_0.19.0-4_km_i586_all.deb
/usr/src/mythtv/i686/libmyth-0.19-dev_0.19.0-4_km_i686_i386.deb
/usr/src/mythtv/i686/libmyth-0.19_0.19.0-4_km_i686_i386.deb
/usr/src/mythtv/i686/modules/mythplugins_0.19.0-6_i686_i386.deb
/usr/src/mythtv/i686/mythtv-backend_0.19.0-4_km_i686_i386.deb
/usr/src/mythtv/i686/mythtv-common_0.19.0-4_km_i686_all.deb
/usr/src/mythtv/i686/mythtv-database_0.19.0-4_km_i686_all.deb
/usr/src/mythtv/i686/mythtv-debug_0.19.0-4_km_i686_i386.deb
/usr/src/mythtv/i686/mythtv-doc_0.19.0-4_km_i686_all.deb
/usr/src/mythtv/i686/mythtv-frontend_0.19.0-4_km_i686_i386.deb
/usr/src/mythtv/i686/mythtv_0.19.0-4_km_i686_all.deb
/var/cache/apt/archives/gcc-4.0-base_4.0.3-1_i386.deb
/var/cache/apt/archives/libgcc1_1%3a4.0.3-1_i386.deb
/var/cache/apt/archives/libstdc++6_4.0.3-1_i386.deb
/var/cache/apt/archives/render-dev_1%3a0.9.2-1_all.deb
/var/cache/apt/archives/libxrender-dev_1%3a0.9.0.2-1_i386.deb
/var/cache/apt/archives/libxrender1_1%3a0.9.0.2-1_i386.deb
/var/cache/apt/archives/libcairo2_1.0.2-3_i386.deb
/var/cache/apt/archives/libpango1.0-common_1.12.0-2_i386.deb
/var/cache/apt/archives/libpango1.0-0_1.12.0-2_i386.deb
/var/cache/apt/archives/libglib2.0-dev_2.10.1-2_i386.deb
/var/cache/apt/archives/libglib2.0-0_2.10.1-2_i386.deb
/var/cache/apt/archives/libatk1.0-0_1.11.3-1_i386.deb
/var/cache/apt/archives/libgtk2.0-common_2.8.16-1_all.deb
/var/cache/apt/archives/libxinerama1_6.9.0.dfsg.1-5_i386.deb
/var/cache/apt/archives/libgtk2.0-bin_2.8.16-1_i386.deb
/var/cache/apt/archives/libgtk2.0-0_2.8.16-1_i386.deb
/var/cache/apt/archives/firefox_1.5.dfsg+1.5.0.1-4_i386.deb
/var/cache/apt/archives/mozilla-firefox_1.5.dfsg+1.5.0.1-4_all.deb
/var/cache/apt/archives/libraw1394-dev_0.10.1-1.1_i386.deb


all of the behavior is pretty much the same with regards to firewire capture. Nothing broke, so I guess I've got that going for me :o


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 5:58 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
If you didn't install any debs yet with the dpkg command, nothing has changed with your
mythtv setup.

A couple of questions -- With all do respect --- what's the worst that could happen?
Your house is not going to catch fire, your wife might be mad at you because she missed
oprah. Do it on weekend when she is visiting her sisters or something.
you might have to reinstall and with knoppmyth, well its not the end of world.
Do the backup before you do a auto-upgrade and you won't will even loose any of your
settings. Try to put things in perspective.

=============================

where were you when you ran this command?

fakeroot dpkg-buildpackage -us -uc -b

1- were you in /usr/src//mythtv
2 - or in /home/mythtv/mythtv
3 - or /root/mythtv?

if 1 then your debs are in /usr/src
if 2 then your debs are in /home/mythtv
if 3 then your debs are in /root

check the date on files with "ls -l"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 7:57 pm 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
mac wrote:

=============================

where were you when you ran this command?

fakeroot dpkg-buildpackage -us -uc -b

1- were you in /usr/src//mythtv
2 - or in /home/mythtv/mythtv
3 - or /root/mythtv?

if 1 then your debs are in /usr/src
if 2 then your debs are in /home/mythtv
if 3 then your debs are in /root

check the date on files with "ls -l"


all good points. thanks for the dose of perspective.

So I've gone back and traced my 'cd' in .bash_history and it really looks like I was in /tmp when I started the process which led to the fakeroot command. There are no debs in that directory.
I've done a little searching around and my best guess is that they ended up in the /usr/src/mythtv/ directory. I'm going to give

/usr/src/mythtv/i686/mythtv_0.19.0-4_km_i686_all.deb

a try now.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 8:08 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
I don't think that is your file, does it have the right date?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 1:34 am 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
I think you're right. I'm pretty sure I was in the /tmp directory when I started- now none of the files I got through wget are there. does /tmp get wiped on reboot?

well I'll try it from scratch again tomorrow. Thanks again for your help, it's realy appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 1:44 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
I think that /tmp does get wiped on reboot..


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu