Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Yet another streaming video question

6 replies [Last post]

I converted an MP4 to FLV and am trying to stream the FLV. Using the setup wizard, here is the code:

<embed
src="http://accidentalessayist.net/av/player.swf"
width="480"
height="272"
bgcolor="undefined"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=two-min-test.flv&title=Test&streamer=http://accidentalessayist.net/av/xmoov.php"
/>

I copied and pasted Klink's xmoov.php from a previos thread, and changed the parms as so:

// points to server root
define('XMOOV_PATH_ROOT', 'av/');
//
// points to the folder containing the video files.
define('XMOOV_PATH_FILES', 'wp-content/uploads/');

Player spins, but will not play.

I am not sure if it is because my config is worng (bad path or somethin) in xmoov, or maybe I need to do some kind of flv injection (sorry for the noob questions).

Any ideas?
j9

Call the xmoov script in your browserhttp://accidentalessayist.net/av/xmoov.php?file=two-min-test.flv&start=123456
Then fix this error<b>ERROR:</b> xmoov-php could not find (av/wp-content/uploads/two-min-test.flv) please check your settings.

The xmoov script should be in the same directory as the video files or the video files should be in a directory (uploads) that is below the directory that the xmoov script is in, so

// points to server root
define('XMOOV_PATH_ROOT', '');
//
// points to the folder containing the video files.
define('XMOOV_PATH_FILES', './uploads/');

Thank you so much. I will check this right away

I have been able to get the above code working, thank you.

Now I want to use a playlist. But again, things are just spinning. I take the streamer var out and I am fine.

I have tried a variety of paths, but right now I am stopping at having the playlist in /av/uploads. xmoov.php is in /av. The paths in xmoov.php are

// points to server root
define('XMOOV_PATH_ROOT', '');
//
// points to the folder containing the video files.
define('XMOOV_PATH_FILES', './uploads/');

The page is here: http://accidentalessayist.net/friesian-stallion-videos/

The code is:
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('/av/player.swf','mpl','800','400','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('streamer', 'xmoov.php');
so.addVariable('file', 'stallion_show_2009_chapters.xml');
so.addParam('flashvars','&playlistsize=250&skin=/av/snel.swf&playlist=right&fullscreen=true');
so.write('player');
</script>

The playlist loads, but teh files do not stream.

Within the playlist file location definitions I have tried a full path for the flv (i.e., starting with http://), a relative path starting with /av/uploads, and just the file name itself (ex: arjen.flv). Regardless of approach, the streamer just spins.

Any ideas?
j9

If your streaming source is always the same, leave the streamer flashvar in the player code, then specify only the media file name in the location element of the playlist.

The contents of the location element in the playlist should be exactly the same as the file flashvar would be for a single file.

Single file:

so.addVariable('streamer', 'xmoov.php');
so.addVariable('file', 'arjen.flv');

Multiple files in a playlist:
Player code:

so.addVariable('streamer', 'xmoov.php');
so.addVariable('file', 'stallion_show_2009_chapters.xml');

Playlist code:

<location>arjen.flv</location>

I am using an RSS playlist format, example here:

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Stallion Show 2009</title>
<item>
<title>Arjen 417</title>
<media:content url="arjen.flv" type="video/x-m4v" start="00:00" />
</item>
</channel>
</rss>

Should I use a different format instead?

The MediaRSS playlist format is OK unless you want to have multiple streaming servers. MediaRSS doesn't have a meta element in the standard, so you can't have meta elements in your playlists.

The correct MIME type for an FLV video container file is video/x-flv.