Wiki Index All Recent Edit Bottom

DVB Ripping

1.   Introduction
2.   Export from PS3
2.1   PlayTV to Home Menu
2.2   Copy from Home Menu to External USB
3.   Clean MPEG-2 TS and convert to MPEG-2 PS
4.   Edit out the adverts
5.   Demultiplex the audio and video
6.   Re-multiplex the audio and video
7.   Author DVD

Introduction

I have a PlayTV add-on for the PS3 which enables me to record Freeview (DVB-T) broadcast to the PS3 internal hard disk. I mostly use PlayTV to record films. To prevent the PS3 hard disk filling up with films I wanted to export them from the PS3, edit out any adverts and then server the edited file from my DLNAServer or author it to DVD.

This process does not re-encode the audio or video therefore it is fairly quick and the output is the same quality as the input.

Although I am using a PS3 as PVR and MPEG-2 TS (Transport Stream) file can be converted to a MPEG-2 PS (Program Stream) file using this process.

Export from PS3

PlayTV to Home Menu

First we need to move the recording from the PlayTV Library to the PS3 Home Menu. Start PlayTV, open the Library, select the recording and choose the Move to Home Menu option.

Copy from Home Menu to External USB

Clean MPEG-2 TS and convert to MPEG-2 PS

Plug the USB drive into your Ubuntu workstation and copy the .m2ts file to your hard disk.

You will need to Project X to clean the MPEG-2 TS and convert it to MPEG-2 PS.

 aptitude install project-x

Edit out the adverts

Start the Project X GUI and load your '.m2ts' file.

Now use Project X to add cut points to edit out any adverts.

Demultiplex the audio and video

When you have completed your edits you need to 'demux' the '.m2ts' file into two streams, one holding the audio (.mp2) and one holding the video (.m2v).

Re-multiplex the audio and video

The reason for the de-mux and then re-musing it to ensure the timecodes are correct, other the video will not playback correctly.

Install MJPEG tools.

 aptitude install mjpegtools

Now we need to re-multiplex the audio and video to create a DVD compliant MPEG-2 PS file.

 mplex -f 8 -o muxed-%d.mpg audio.mp2 video.m2v

The -f 8 option specifies a dvd-compliant stream that is compatible with dvdauthor. The -o option specifies the outfile, you can substitute muxed-%d.mpg with a more descriptive name if you like. %d is expanded to a number if mplex decides to split the output to several files, this usually happens when the recording contains commercials and is nothing to worry about.

Author DVD

The MPEG-2 PS file that has been created should be suitable for DVD authoring using DeVeDe. When adding MPEG-2 PS files created using the method above open the DeVeDe Advanced options and select This file is already a DVD/xCD-suitable MPEG-PS file in the Misc menu.

References

$Id: DVBRipping,v 1.16 2009/01/04 22:41:16 martin Exp $

Wiki Index All Recent Edit Top