Need true url to flash file for jwplayer

doomdead

Joined: 2003-04-06
Posts: 174
Posted: Tue, 2008-09-09 21:00


Gallery version = 2.1.2 core 1.1.0.2
PHP version = 5.1.6 isapi
Webserver = Microsoft-IIS/6.0
Database = mysqlt 5.0.24a-community-nt, lock.system=database
Toolkits = ArchiveUpload, Exif, Thumbnail, Gd, Ffmpeg, NetPBM, ImageMagick
Acceleration = none, none
Operating system = Windows NT SERVER 5.2 build 3790
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061003 Firefox/2.0

I modified FlashVideoRenderer.class to allow jwplayer (jwplayer supports on2's vp6 codec)

/*
* JW Player
*/

$playerUrl = $urlGenerator->generateUrl(
array('href' => 'modules/flashvideo/lib/flvplayer.swf'),
array('forceFullUrl' => true));
$flashVars = sprintf('file=%s',
urlencode($src));

the problem is, the player errors when you hand it gallerys version of the url. if hardcode a http://server/file.flv in there, it plays fine. There has to be a way to return the real url of the flv file (it is not stored outside my web directory).

or, is there another way to tackle this. my goal is to have a flash player play flv files encoded in vp6. thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Tue, 2008-09-09 21:05

Gallery's flashvideo player already plays vp6 for 2yrs already.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Tue, 2008-09-09 21:09

The gallery flash player only plays audio, no video. Yet jwplayer plays audio and video fine... any idea then? I would rather use jwplayer but right now i just want to get the videos online.

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Tue, 2008-09-09 21:11

i meant to say, the gallery flash player is playing audio only, for my vp6 encoded flv files. files encoded using ffmpeg play fine.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Tue, 2008-09-09 21:35

And what version of flash do you have installed? Its not the player. These are all encoded with On2vp6.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Tue, 2008-09-09 22:08

The latest, like I said, flash in ffmpeg plays fine with both jwplayer and gallery... Flash encoded in On2vp6 plays fine in jwplayer/riva and only audio in gallery's player.

The videos on the page you listed play fine for me. Any further ideas?

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Tue, 2008-09-09 22:13

http://robplatt.com/gallery/main.php?g2_itemId=21138&g2_highlightId=21218

is the url to my sisters album, the album password is "joseph"

if you navigate to joseph lopez > josephs third birthday > page 4, any of the videos there are encoded using flix pro 8.5 using flash 8 vp6.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Tue, 2008-09-09 22:35

http://www.flashyourweb.com/media/index.php?g2_itemId=32640

Something else going on there. I'd like to send you an updated flashvideo module - it would be a simple drop-in replacement. If you PM me with an email address.

EDIT - actually just noticed that you have no dimensions set for the video. Your ffmpeg is not detecting them.
edit movie -> dimensions

-s

FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Wed, 2008-09-10 00:54

your sharp. that did it. i updated the ffmpeg binary with the one that supports flash 6 encoding. should that detect the size for the vp6 encoded files? the older ffmpeg binary was able to detect the size for files encoded using riva.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Wed, 2008-09-10 00:59

I also have several ffmpeg builds available on mysite depending on your server's OS.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Wed, 2008-09-10 01:11

alright. thanks. ill fix these files, and then upload a new one and see what happens.

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Wed, 2008-09-10 01:20

can ffmpeg build thumbs of vp6 encoded files?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Wed, 2008-09-10 01:33
 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Wed, 2008-09-10 01:43

can you enlighten me please? i did a "rebuild thumbs" on that album and they're still broken. i have ffmpeg version SVN-r7945.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Wed, 2008-09-10 01:51

When you run your ffmpeg test in gallery->admin what are the results?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Wed, 2008-09-10 02:09

damn dude. i missed that one too. the permission didnt inherit when i copied the updated file to my server.

here are the results:
Supported MIME Types
The FFMPEG module can decode files of the following MIME types

video/x-ms-asf
video/x-msvideo
video/x-flv
video/quicktime
video/mp4
video/mpeg
video/x-ms-wmv
The FFMPEG module can encode files to the following MIME types

video/x-flv
Version Information
FFmpeg version SVN-r7945, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-mingw32 --enable-a52 --enable-dts --enable-pp --enable-amr_nb --enable-amr_wb --enable-swscaler --enable-avisynth --enable-gpl --enable-memalign-hack --cpu=i686 --extra-ldflags=-static
libavutil version: 49.3.0
libavcodec version: 51.32.0
libavformat version: 51.9.0
built on Feb 12 2007 12:01:35, gcc: 3.4.5 (mingw special)
ffmpeg SVN-r7945
libavutil 3212032
libavcodec 3350528
libavformat 3344640

Thumbnails are coming in now. Though the sizes are still missing. I take it thats only read during upload. i'll keep testing. I really appreciate the help! thank you.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Wed, 2008-09-10 02:17

Thats what I figured.
You could run the transcode module too ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Wed, 2008-09-10 03:06

I could. but im using the newer vp6 codec, and so far ive only found it in flex pro. i was looking for a commandline alternative that would render the small flv files yet rather nice quality for such a low bitrate. i do mine at 300kbps for slow motion and 500kbps for higher motion. i am so thrilled with gallery supporting this.

i did my research and found the script online using avisynth, ffmpeg, and the vp6 codec dll, but thats the codec from a few years back.

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Fri, 2008-09-12 00:51

suprsidr,

can xmoov.php be incorporated with your flash player for html streaming? I have xmoov.php working on my work iis server with jwplayer. which was the main reason i wanted to use it aside from vp6.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Fri, 2008-09-12 01:11

Don't know what that is, but I have my own xml player that works with your gallery already.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Fri, 2008-09-12 01:33

xmoov allows http streaming rather than just downloading... so you can skip to any keyframe and start playing from that point.

I have one of our videos here with jwplayer working quite nicely.
https://www.efrecovery.com/salesvideo.aspx

can i get this working in gallery? (on iis with php installed)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Fri, 2008-09-12 01:49

Looks pretty cool, but I'd have to look into it.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2008-09-12 04:21

pseudo-streaming would be a cool addition to G2x
looking forward to what suprsidr has to say after he looks into it.\

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Fri, 2008-09-12 19:55

Well, this sample is indeed loading the flv through my G2 modified xmoov.php, now to adjust the player to re-request the video based on scrubber position.
also this customization requires

Quote:
In order to use the random access feature, videos must be injected with flv metadata.

Read queue points.
Which not every flv has been encoded with. So this would not be for everyone.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Fri, 2008-09-12 23:42

there are a few free tools that can be ran with gallery to quickly inject meta data, or any script that transcodes an flv can then inject the data at the end using one of the free tools.

flvtool is one of them.

flvtool -U filename.flv , takes about 5 seconds for a short video.

 
doomdead

Joined: 2003-04-06
Posts: 174
Posted: Fri, 2008-09-26 15:03

Any development on this suprsidr?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Fri, 2008-09-26 17:01

I may have more time to dedicate this weekend. ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
kolbyk

Joined: 2009-04-24
Posts: 1
Posted: Fri, 2009-04-24 06:10

Was any progress made on this initiative? I am in the middle of a development that has these exact requirements. I have JW player working on my gallery installation, however I am hung at trying to integrate xmoov for pseudo streaming into it. Any help would be greatly appreciated

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Fri, 2009-04-24 12:42

I wasted some time recently.
Not a single video I encoded with flash media encoder seemed to have the proper keyframes for seeking.
Even when I manually added them (slow and painful I might add). So one would need to edit all of their videos with one of the tools mentioned on xmoov site or other to include the proper keyframes. And you are looking at flash 8 AS 2.0 coding as well.

My mediaBlock sample uses its own stream generator capable of seeking into the file similar to and based on xmoov but the problem lies in the videos keyframes.

I'm considering it time wasted.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2