Problems editing CaptureCardDefinitions.xml (1 Viewer)

onipip

New Member
January 22, 2007
2
0
46
Home Country
Italy Italy
MediaPortal Version: 0.2.2.0
MediaPortal Skin: BlueTwo
Windows Version: XP SP2 (5.1.2600)
CPU Type: Intel P4 Mobile 2.2GHz
HDD: Fujitsu MHT2040AT 40Gb
Memory: 496Mb PC2100 DDR
Motherboard: Fujitsu Siemens Lifebook C Series
Motherboard Chipset: North Bridge: VIA VT8751(A) ProSavageDDR P4M266(A) - South Bridge: VIA VT8233C
Motherboard Bios: Insyde Tech. 30/12/03
Video Card: S3 ProSavageDDR
Video Card Driver: 6.14.10.0033
Sound Card: Conexant Cx20468 @ VIA AC'97
Sound Card AC3: optical out (unused)
Sound Card Driver: 6.13.10.8081
1. TV Card: Freecom DVB-T & Analog TV USB STICK (Hybrid)
1. TV Card Type: Analog + DVB-T
1. TV Card Driver: 1.6.20.60714
MPEG2 Video Codec: ffdshow v.855
MPEG2 Audio Codec: ffdshow v.855

Premised: accordling with this post, one week ago I have mailed to DMAN in order to add my card in MediaPortal: it have mailed me a new CaptureCardDefinitions.xml file, and now my card works ok... but only DVB-T.

Note for users that have this Freecom stick: the configuration for the DVB-T is the sequent:

Code:
<capturecard commercialname="Freecom Hybrid USB Stick (DVB-T)" capturename="Freecom Digital TV Video" devid="vid_14aa&amp;pid_0620">
  <capabilities tv="true" radio="false" mpeg2="true" mce="false" sw="false" bda="true"/>
  <tv>
    <interface cat="capture" video="2" audio="3" mpeg2="1" sectionsandtables="5"/>
    <filters>
      <filter cat="networkprovider" name="Microsoft DVBT Network Provider"  checkdevice="false"/>
      <filter cat="tunerdevice"     name="Freecom Digital TV Receiver"      checkdevice="true"/>
      <filter cat="capture"         name="Freecom Digital TV Video"         checkdevice="true"/>
    </filters>
    <connections>
      <connection sourcefilter="networkprovider" sourcepin="0"  sinkfilter="tunerdevice"  sinkpin="0"/>
      <connection sourcefilter="tunerdevice"     sourcepin="0"  sinkfilter="capture"      sinkpin="0"/>
    </connections>
  </tv>
</capturecard>


Now, I'm trying to edit the CaptureCardDefinitions.xml file in order to add also the analog part of this card. I have found this wiki, where at point 9 I can read:

9. Edit the CaptureCardDefinitions.xml file with notepad


I open the file mailed to me in notepad and... surprise! The file are nearly unreadable, or better the text is visible, but it's not idented as the code that I have attached: it's only one, big row of 1.2Mb!

No problem: I open it with wordpad! With this the file are perfect: I can read the singles capturecard definitions, and the rows are idented correcly. Without touching nothing, I save the file and I reopen it with notepad: the file is now correctly visible.

I put this file (that, remember, I don't have modified, but only saved) into the MediaPortal folder and I start the Mediaportal Setup. Surprise! Mediaportal says me "No video capture card(s) were found"!

DOH! But I don't have touched nothing into the file!

Rewind: I put the original file posted from DMAN into MediaPortal... and this one works: the card is recognized correctly.

Ok: which is the difference between the two files?
I have analyzed them with an hex editor, and I have seen that it is... the carriage return! In facts the original file use only one character (0A), while wordpad has saved it with TWO characters (0D0A). This difference is described in this site, and explain why notepad does not shows correcly the file.

Now, my question is: why MediaPortal does not recognize correcly the the file with the carriage return in "windows stile"?

TIA
 

Paul S

Portal Pro
May 14, 2006
361
0
Franklin, WI (Milwaukee)
Home Country
United States of America United States of America
I tthink that the problem you are having is related to "Word Wrap". In notepad, try to enable/disable it (in the "Format" section).

Wordpad seems to format the file in a way that makes it unreadable to MP. xml files edited with this will not work.
 

onipip

New Member
January 22, 2007
2
0
46
Home Country
Italy Italy
Unfortunately no, it is not the word wrap... I have already tried without success...

The problem is AS the file is written. I have attached to this post two print screen of the file as seen from notepad: the first is the original file from DMAN, the second is the same file re-saved from wordpad (I have also tried with VI from debian).
As you can see in the original file at the end of each line there is a "black block" instead of the carriage return: this is and "half" carriage return (only 0A hex instead of 0D0A), that notepad does not recognize correcly.

I have an hypotesis: it could be the XML parser (of .NET Framework 2.0, I think...) used from MediaPortal that it does not interpret correctly the carriage return with two characters? :confused:

Note: my XP and .NET Framework (1.1 and 2.0) are updated at today...

Greetings
 

Pidgeon

New Member
July 1, 2007
2
0
How can you add compatibility to analogue section of this Hybrid card?

onipip sent me the capturecarddefinitions.xml file for my Hybrid Freecom USB, and now DVB-T works, but not analogue.
 

Users who are viewing this thread

Top Bottom