How To: Export DVBLink recordings into ITunes format

DVBLink Remote API clients and tools

How To: Export DVBLink recordings into ITunes format

Postby Oberon » Fri Aug 16, 2013 4:33 pm

This tutorial will show a simple way to convert DVBLink recordings into the ITunes format. This method does not use the recording files directly and is in that sense universally applicable for DVBLink server running on Windows and NAS platforms.

1. Get http URL of the recording to convert.
This can be done using two methods:
1a. open browser and type the following URL in the url bar:
Code: Select all
http://<DVBLink server IP address>:<base streaming port>/mobile/?command=get_recordedtv_m3u

For example
Code: Select all
http://192.168.0.103:8100/mobile/?command=get_recordedtv_m3u

Browser will fetch m3u file with all DVBLink recordings:
Code: Select all
#EXTM3U
#EXTINF:2703,BBC 1 London - Celebrity Mastermind
http://192.168.0.103:8101/dvblink/playback?object=4e9e47d6-4b3c-4ea7-b148-537821d50b94%3aF6F08949-2A07-4074-9E9D-423D877270BB%2f262-10300000-1375639200
#EXTINF:8100,ITV3 - Agatha Christie's Marple (By The Pricking of My Thumbs)
http://192.168.0.103:8101/dvblink/playback?object=4e9e47d6-4b3c-4ea7-b148-537821d50b94%3aF6F08949-2A07-4074-9E9D-423D877270BB%2f175-10430000-1375545000
...


1b. Find a recording to convert in the DVBLink webinterface and press play button. This will download the m3u file with the http link to a recording inside:
Code: Select all
http://192.168.0.103:8101/dvblink/playback?object=4e9e47d6-4b3c-4ea7-b148-537821d50b94%3aF6F08949-2A07-4074-9E9D-423D877270BB%2f227-10580000-1376325900


2. Download ffmpeg (if you do not have it already).
Windows version can be downloaded for example here: http://ffmpeg.zeranoe.com/builds/

3. Convert recording to ITunes format
Open a command line prompt, navigate to the place where you have ffmpeg and execute the following:
Code: Select all
ffmpeg.exe -i <recording http url> -vcodec libx264 -acodec libvo_aacenc -ac 2 <output file with mp4 extension>

For example:
Code: Select all
ffmpeg.exe -i http://192.168.0.103:8101/dvblink/playback?object=4e9e47d6-4b3c-4ea7-b148-537821d50b94%3aF6F08949-2A07-4074-9E9D-423D877270BB%2f227-10580000-1376325900 -vcodec libx264 -acodec libvo_aacenc -ac 2 output_file.mp4


Comments are welcome.

Volunteers to make a script that does all of the above are also welcome :)
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am


Re: How To: Export DVBLink recordings into ITunes format

Postby wally007 » Mon Sep 02, 2013 10:18 pm

... or just download MCEBuddy, configure it to monitor your recordings folder, choose among 10 or so profiles using handbrake/ffmpeg (or create your own), choose your destination and forget about it.
It will run as a background service.

MCEBuddy will also tag files with proper (customized via advanced commands) metadata if DVBlink stores EPG details somewhere. ( I'm only using DVBlink's mc_recorder and metadata is properly read from wtv files and written into mp4 files)

MCEBuddy is free ( although I've donated since developer is super fast adding new features )
wally007
 
Posts: 110
Joined: Sat Jan 21, 2012 9:03 pm

Re: How To: Export DVBLink recordings into ITunes format

Postby TonVH » Sat Nov 08, 2014 2:56 pm

In my opinion the most simple and fastest way to convert is using Handbrake. See handbrake.fr.
TonVH
 
Posts: 253
Joined: Thu Nov 15, 2012 9:46 pm


Return to Development corner

Who is online

Users browsing this forum: No registered users and 1 guest

cron