# DVBLink conversion

**URL:** https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809
**Category:** TV Mosaic
**Tags:** plex
**Created:** [May 1, 2019, 8:43pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809 "2019-05-01T20:43:05Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 1, 2019, 8:43pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/1 "2019-05-01T20:43:05Z")

</div>

Hi,

I’m in process of getting rid of DVBLink installation.

I see there’s a script written for DVBLink information extraction, but I’m such a newbie to MCEBuddy, that I don’t understand a thing of it, so could I get some directions please?

The process:  
I need to convert DVBLink recorded files with metadata included for Plex media server, originally I was planning for Emby media server, but there’s no app for my Samsung Blu-ray player, but for Plex there is.

After that I plan to drop NextPVR and opt for Plex’s inbuilt TV tuner support, if it’s good enough after I’ve tested it.

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 1, 2019, 9:43pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/2 "2019-05-01T21:43:28Z")

</div>

Are you referring to this post?

> [@Extracting Metadata from DVBLink](https://discussion.mcebuddy2x.com/t/extracting-metadata-from-dvblink/73):
>
> Thanks to wisermouse for this script, it extracts the metadata in a .ARG (ArgusTV) format: Step 1: Add the following parameters in your profile: PreMetaCustomCommandPath=C:\Perl64\bin\perl.exe PreMetaCustomCommandParameters=c:\code\dvblink.pl %sourcefile% PreMetaCustomCommandHangPeriod=0 PreMetaCustomCommandCritical=true Step 2: To use this you just need to copy the code below into a file [dvblink.pl](http://www.mcebuddy2x.com/MCEBUDDY/SHARED_INFORMATION/DVBLink/ARG/dvblink.pl) as configured in your profile above: #!/usr/bin/perl -w use strict; use warnings; use LWP::…

It should be fairly straightforward. Step are modifications to be made to your `mcebuddy.profiles` file, specifically to the profile that you want to use. Step 2 is the file you need to create/save which will be called by MCEBuddy when it uses the profile.

You can find more details about profiles and [custom commands](https://discussion.mcebuddy2x.com/t/mcebuddy-advanced-settings-commands-and-tweaking/30#customcommands) here:

> [@MCEBuddy - Understanding Profiles Basics](https://discussion.mcebuddy2x.com/t/mcebuddy-understanding-profiles-basics/27):
>
> MCEBuddy [Profiles Basics](https://discussion.mcebuddy2x.com/t/27) Stock MCEBuddy profiles are in the profiles.conf file located in the config directory where MCEBuddy is installed. One can create new profiles or customize existing ones. It’s highly recommended to create your own custom profiles.conf file in a directory outside of MCEBuddy’s installation folder (e.g. C:\MCECustomProfile) and configure MCEBuddy to use that custom profiles.conf from Settings → Expert Settings → Profiles.conf → Click on … → select your custom profiles.…

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 2, 2019, 5:10am UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/3 "2019-05-02T05:10:26Z")

</div>

Thanks, that clears it up. I’ll report when I have set it up.

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 2, 2019, 7:08pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/4 "2019-05-02T19:08:02Z")

</div>

Tried the XML-version, isn’t that more compatible with Plex?

Anyways, no go for the script, with following errors in log:

```auto
2019-05-02T21:39:25 MCEBuddy.AppWrapper.Base --> Launching process c:\strawberry\perl\bin\perl.exe
2019-05-02T21:39:25 MCEBuddy.AppWrapper.Base --> Process arguments c:\strawberry\dvblink.pl "\\nas4free\storage\mediabackup\share\Nauhoitukset\Dokumenttiprojekti_Nuoret_nettiaddiktit-2130_20150824-12-10240000-1440441000.ts"
2019-05-02T21:39:25 MCEBuddy.AppWrapper.Base --> UI Session Admin Process : False
2019-05-02T21:39:25 MCEBuddy.AppWrapper.Base --> Setting process priority to Normal
2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base --> Can't load 'c:/strawberry/perl/vendor/lib/auto/XML/Parser/Expat/Expat.xs.dll' for module XML::Parser::Expat: load_file:Määritettyä osaa ei löydy at c:/strawberry/perl/lib/DynaLoader.pm line 193.
2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base --> at c:/strawberry/perl/vendor/lib/XML/Parser.pm line 18.
2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base --> Compilation failed in require at c:/strawberry/perl/vendor/lib/XML/Parser.pm line 18.
2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base --> BEGIN failed--compilation aborted at c:/strawberry/perl/vendor/lib/XML/Parser.pm line 22.
2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base --> Compilation failed in require at c:\strawberry\dvblink.pl line 9.
2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base --> BEGIN failed--compilation aborted at c:\strawberry\dvblink.pl line 9.

```

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 2, 2019, 8:36pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/5 "2019-05-02T20:36:04Z")

</div>

> [@Faravid](#):
>
> 2019-05-02T21:39:26 MCEBuddy.AppWrapper.Base → Can’t load ‘c:/strawberry/perl/vendor/lib/auto/XML/Parser/Expat/Expat.xs.dll’ for module XML::Parser::Expat: load\_file:Määritettyä osaa ei löydy at c:/strawberry/perl/lib/DynaLoader.pm line 193.

This looks like a Strawberry Perl setup error. It can’t seem to find a module internally. Maybe google to figure out what’s going on.

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 3:47am UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/6 "2019-05-03T03:47:56Z")

</div>

May have something to do with UNC paths (network folder). Going to try moving a file to local storage.

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 1:45pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/7 "2019-05-03T13:45:18Z")

</div>

Nope, nothing to do with UNC-paths, still the same error.

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 3, 2019, 1:47pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/8 "2019-05-03T13:47:48Z")

</div>

> [@Goose](#):
>
> Määritettyä osaa ei löydy

It doesn’t have anything to with your files/MCEBuddy, it’s a strawberry perl environment/setup issue. It trying to load some modules which don’t exist or can’t be found. Don’t know what code page you’re using in your environment but it looks like it’s set to Finnish.

> [@Goose](#):
>
> load\_file:Määritettyä osaa ei löydy

Translates to

> The specified part is not found

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 1:50pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/9 "2019-05-03T13:50:30Z")

</div>

Yep, it’s trying to load Expat.xs.dll, but does not succeed, if I read the log correctly. I checked that the file is there.  
I’ll try a older Strawberry release.

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 2:17pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/10 "2019-05-03T14:17:29Z")

</div>

Tried the 2017 build of Strawberry and got some progress.

Now the error is “Can’t locate XML/LibXML/PrettyPrint.pm in @INC (you may need to install the XML::LibXML::PrettyPrint module)”

I’ll search for the module and attempt to install it.

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 2:39pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/11 "2019-05-03T14:39:00Z")

</div>

Another module missing, installing that too.

Can’t locate XML/LibXML/Iterator.pm in @INC (you may need to install the XML::LibXML::Iterator module)

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 3:31pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/12 "2019-05-03T15:31:52Z")

</div>

Also had to install XML::Writer

However still doesn’t work, getting following errors:

> 2019-05-03T18:07:08 MCEBuddy.AppWrapper.Base → Launching process c:\strawberry\perl\bin\perl.exe  
> 2019-05-03T18:07:08 MCEBuddy.AppWrapper.Base → Process arguments c:\strawberry\dvblink.pl “\nas4free\storage\mediabackup\share\Nauhoitukset\Historia\_Tiede\_pahan\_palveluksessa-2000\_20150829-27-10180000-1440867604.ts”  
> 2019-05-03T18:07:08 MCEBuddy.AppWrapper.Base → UI Session Admin Process : False  
> 2019-05-03T18:07:08 MCEBuddy.AppWrapper.Base → Setting process priority to Normal  
> 2019-05-03T18:07:10 MCEBuddy.AppWrapper.Base → “my” variable $ccnt masks earlier declaration in same scope at c:\strawberry\dvblink.pl line 74.  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → Use of uninitialized value $xmlres in substitution (s///) at c:\strawberry\dvblink.pl line 95.  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → Use of uninitialized value $xmlres in substitution (s///) at c:\strawberry\dvblink.pl line 96.  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → Use of uninitialized value $xmlres in substitution (s///) at c:\strawberry\dvblink.pl line 97.  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → Empty String at c:\strawberry\dvblink.pl line 101.  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → searching for file =\nas4free\storage\mediabackup\share\Nauhoitukset\Historia\_Tiede\_pahan\_palveluksessa-2000\_20150829-27-10180000-1440867604.ts  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base →   
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → An Error Occurred  
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base →   
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base →
> 
> # An Error Occurred
>   
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base → 
> 
> 401 Unauthorized
> 
>   
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base →   
> 2019-05-03T18:09:11 MCEBuddy.AppWrapper.Base →

Authorization shouldn’t be a problem, I modified the script file to include my DVBLink username and password.

---

<div class="post-metadata">

### Author: ![Faravid](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/faravid/32/1014_2.png) [@Faravid](https://discussion.mcebuddy2x.com/u/Faravid)
#### Post date: [May 3, 2019, 6:30pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/13 "2019-05-03T18:30:35Z")

</div>

Same issue with ArgusTV-format script, except that I also had to modify port information that points to DVBLink in the script.  
The port of was in use in a older version of DVBLink, is it that these scripts just don’t work with DVBLink 6.0.0?

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 3, 2019, 7:32pm UTC](https://discussion.mcebuddy2x.com/t/dvblink-conversion/2809/14 "2019-05-03T19:32:13Z")

</div>

Would you like to share the new scripts/guides with the community? I’ll be happy to update the original posts with your guide/version information.
