Forum: Ruby trying to use RTranscoder to playback video on Win32 - sample code?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
218f173fd349a902cec9831fee996538?d=identicon&s=25 Rua HM (Guest)
on 2009-01-11 08:26
(Received via mailing list)
I'm trying to use RTranscoder ( to
play back video files full screen on windows. I have installed
RTranscoder and its dependencies (in particular RProgram) via gem and
also installed a version of mplayer (SMPlayer).

I can't find any examples of how to start a video file playing; I have
had a stab at getting things working and it's not clear whether I'm
going about it the wrong way or if RTranscoder is not fully supported
on Windows.

Here's my attempt at getting a file to play:
require 'rubygems'
require 'rprogram'
require 'rtranscoder/version'
require 'rtranscoder/ffmpeg'
require 'rtranscoder/mplayer'

include RTranscoder

mooplayer ="C:/Program Files/SMPlayer/
mplayer/mplayer.exe") => "X:/Video/MTV's Downtown/MTVDT01.mp4")

This is the error that i get:
`popen3': popen3() arg 2 must be 't' or 'b' (ArgumentError)

Note that I installed at made a slight change to RProgram due to the
fact that open3 is not supported on Win32; I installed win32-open3 and
changed the for it in rprogram.rb to require 'win32/open3'.

Can someone point me to some example code to play a video file using
RTranscoder::MPlayer on windows?

Thanks in advance
Rua HM.
This topic is locked and can not be replied to.