Difference between revisions of "Migrating from Topfield PVR"

From LinuxMCE
Jump to: navigation, search
(File extensions: mention mplayer)
(add category and stub)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category: Tutorials]]
 +
{{stub}}
 +
 
== Importing video files ==
 
== Importing video files ==
  
Line 11: Line 14:
 
=== File extensions ===
 
=== File extensions ===
  
The .rec file extension is not automatically recognised by LinuxMCE - see the [[Add video file extensions]] page for how to fix thisOnce the extension has been added, LinuxMCE should automatically spot the new media via inotify, but you can check/enforce this by visiting the Admin web interface and going to Files & Media > Media Files Sync.
+
==== xine ====
 +
 
 +
<code>xine</code> does not currently recognise the format unless you change the extension to something else appropriate like <code>.ts</code>This can be done en masse with a simple Perl script:
 +
 
 +
  $ cd /home/public/data/videos/topfield # for example
 +
  $ perl -MFile::Find -we 'find(sub { my $new = $_; if ($new =~ s/\.rec$/.ts/) { rename $_, $new or warn "failed to rename $_ to $new: $!\n" } }, ".")'
  
However, xine does not currently recognise the format unless you change the extension to something else appropriate like <code>.ts</code>.  This can be done en masse with a simple Perl script.
+
==== mplayer ====
  
mplayer does recognise the format regardless of extension, but [http://forum.linuxmce.org/index.php?topic=5583.0 mplayer is currently only used for a few hardcoded formats] such as HD-DVD and Blu-Ray.
+
mplayer does recognise the format regardless of extension, but [http://forum.linuxmce.org/index.php?topic=5583.0 mplayer is currently only used for a few hardcoded formats] such as HD-DVD and Blu-Ray.  If that changes in the future so that mplayer can be used to play .rec files directly, the above renaming trick should be not necessary.  However, the .rec file extension is not automatically recognised by LinuxMCE - see the [[Add video file extensions]] page for how to fix this.  Once the extension has been added, LinuxMCE should automatically spot the new media via [http://en.wikipedia.org/wiki/Inotify inotify], but you can check/enforce this by visiting the [[LinuxMCE Admin Website]] and going to Files & Media > Media Files Sync.

Latest revision as of 22:36, 5 July 2008

This article is a stub and requires expansion


Importing video files

Background

The Topfield TF5800 PVR records video files in MPEG format with an extended header.

Transferring the files

Use one of the available Linux utilities for transferring .rec files from your Topfield to /home/public/data/videos or one of your other media storage areas. ftpd-topfield is a good one because you can then use any decent ftp client to (recursively, if necessary) mirror the files across.

File extensions

xine

xine does not currently recognise the format unless you change the extension to something else appropriate like .ts. This can be done en masse with a simple Perl script:

 $ cd /home/public/data/videos/topfield # for example
 $ perl -MFile::Find -we 'find(sub { my $new = $_; if ($new =~ s/\.rec$/.ts/) { rename $_, $new or warn "failed to rename $_ to $new: $!\n" } }, ".")'

mplayer

mplayer does recognise the format regardless of extension, but mplayer is currently only used for a few hardcoded formats such as HD-DVD and Blu-Ray. If that changes in the future so that mplayer can be used to play .rec files directly, the above renaming trick should be not necessary. However, the .rec file extension is not automatically recognised by LinuxMCE - see the Add video file extensions page for how to fix this. Once the extension has been added, LinuxMCE should automatically spot the new media via inotify, but you can check/enforce this by visiting the LinuxMCE Admin Website and going to Files & Media > Media Files Sync.