DVD Creation

Creating a traditional (Standard Definition) DVD will most likely require all material captured from the R5000-HD to be transcoded. This is because the R5000-HD captures MPEG data in its native format, as broadcast by the service provider and adhering to the DVD standard usually requires D1 resolution (720 x 480) data. Satellite and cable providers rarely broadcast SD material in this full-sized resolution and HD material will of course be in much higher resolution and will have to be down-sized for a DVD. A good encoding utility is ffmpeg. It is a freely downloadable and versatile encoder that can transcode just about any resolution source material.

Blu-Ray and HD-DVD formats are much more versatile and can usually accept transport stream files in their native format (MPEG-2 or H.264) without any transcoding or conversion.

Converting Transport Streams to VOB

The standard transport stream (.ts) files as created by the R5000-HD can be easily converted to VOB format for DVD creation using a command-line utility. We have ported Replex32, originally written for Linux, for use under Windows XP & 2000. download

Save the Replex32 executable to a convenient directory. Run from a DOS Window or from Start->Run. If running from a console window, use "cd" to change the directory to that where you saved "replex32.exe". If using the Run dialog, type in the full path and filename (e.g. "C:\Program Files\r5000hd\replex32"). Then add the following command line options (example for non-AC3 audio*):

-a 0x14 -v 0x11 -t DVD -o <outputfile.vob> <inputfile.ts>

followed by "enter", making sure to leave in all spaces. Substitute your filenames for <inputfile> and <outputfile>. For a complete description of the command line switches, type "replex32 --help"

The -a and -v switches specify the audio & video PIDs respectively. For our transport streams these are always 0x14 & 0x11. The output type, -t, is set for DVD, which creates VOB files.
*for AC3, change -a to -c (see the help messages).


Command-Line Control

Full command-line control of the R5000-HD DVR application is now available. (version greater than 2.0a required. The version 2.0 software only supports basic commands: -rec [no swithes], -stop, -otr, -rem).
Important note: make no assumptions as to the current state of the DVR or STB when sending a command. For example, if the following command "-rec /f c:\program.ts /d 30" is sent, do not assume it will turn on the STB power first if powered off.

basic commands     record commands    tape & media player    options    misc.   IR Codes    examples

Table 1: Basic Commands
-rec [/...]
-stop
-otr [/o]
-rem [code]
(see below)
Stops recording
Puts DVR into OTR mode or increments OTR time. "/o" switch = overrideable*.
Sends a remote control IR code to receiver (see table 6).

 

 

 

Table 2: Record commands
-rec [/switches]  Puts DVR into record mode using current settings
/d [mins]
/f [filename]
/t
/b
specify recording duration in minutes. If "0" or empty argument, command is aborted.
specify a filename (if full path specified, default DVR path will be overriden).
record to tape only, if available.
record to both tape & disk
.
-otr [/o]  Puts DVR into OTR mode or increments OTR time. "/o" switch makes it overrideable*.
-tape [filename] [/switches]  Push to tape mode. Specified file is dumped to D-VHS
/c
/r [secs]
/p [pid]
file is compressed mode, VBR (default is non-compressed).
tape pre-roll override (default is 7 secs; max is 15).
s
pecify PCR pid in hex (ex: 0x0011 --this is default).

 

*Overrideable OTR events are cancelled by other scheduled events like PVR programmed events.

 

Table 3: Tape and Media Player Control
-t_play
-t_stop
-t_rew
-t_ff
-t_pause
-t_close

Tape transport play mode
Tape stop
Tape transport rewind
Tape transport fast forward
Tape pause mode
Close transport and release interface
-mp_play
-mp_file [filename]
-mp_prev
-m_stop
Media Player play/pause toggle.
Media Player file play.
Media Player "preview" mode
Media Player stop

 


Table 4: Options
-op_rec [n]
-op_rate [n]
-op_serv [n]

-op_stb [n]

-op_auto [n]
-op_inc [n]
-ir_enbl [n]
-ir_code [n]
set record mode: (0 = disk, 1=tape, 2=disk & tape)
bitrate enumerator: (0=VBR (no filler pakctes), 1= CBR 19.392Mb/s, 2= CBR 23Mb/s).

service provider: (0=D*, 1=E*, 2=BEV, 3=4DTV).
Set Top Box type: (0=DTC100, 1=E86, 2=Dish6K, 3=BEV6K, 4=4DTV 905, 5=4DTV 920, 6=4DTV 922 & SC) Note: assignment is ignored if incompatible type is specified.
auto-generate filename (0=not checked, 1= checked).
auto-increment filename (0=not checked, 1= checked)
enable STB control (0=disabled, 1=enabled).
enumerates code select box (0 or 1).

 


Table 5: Miscellaneous
-w_hide
-w_max
-vmr_hide
-exit [n]
Hide main Window (makes iconic).
Maximize window
Hides Video window
terminates DVR (0=confirmation if in use, 1=with extreme prejudice; no matter what its doing) --default without any argument is confirmation mode.

 


Table 6: IR Codes
0 -9
chup
chdn
pwr
rt
lft
up
dwn
info
menu
ok
guide
clear
hyphen
Numeric digits
Channel up
Channel down
Power on/off
Navigate right
Navigate left
Navigate up
Navigate down
Info
Menu
OK or Enter
Guide
Clear
Hyphen

 


Examples (from Start->Run dialog) Note: spaces must be used as separators

r5000hd -rem 5
r5000hd -rem menu
r5000hd -rec
r5000hd -rec /f c:\my program /d 30 /b
r5000hd -otr /o


r5000hd -tape c:\my program.ts /r 10 /p 0x0134

sends the IR numeric button "5"
brings up the STB menu.
activates record button.
record to specified file and tape for 30 minutes.
starts an OTR timed recording that is overrideable by other PVR events

push file "c:\my program.ts" to tape using 10 seconds pre-roll and look for PCR on PID 0x0134.