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

R

Rua HM

I'm trying to use RTranscoder (http://rtranscoder.rubyforge.org/) 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 = RTranscoder::MPlayer.new("C:/Program Files/SMPlayer/
mplayer/mplayer.exe")

mooplayer.play:)media => "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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top