PDA

View Full Version : flash + x264 streaming?


deets
2nd February 2009, 14:50
anyone give me a clue how to do it. I have some snow videos of today i want to share with family, but I cant work out the streaming side of things.

I have my own webspace. I can easily convert to an mp4 but then i get lost.

I have tried in the past, eons ago, but the files would not stream in JW player and such. is there anything special i need to do, muxing the mp4 etc?

smok3
2nd February 2009, 16:31
streaming or progressive download?

deets
2nd February 2009, 16:52
hmm prog download, like dark shikari has with his test clips

Blue_MiSfit
2nd February 2009, 18:56
Check out the JW flash player.

It's very easy to implement

~MiSfit

deets
2nd February 2009, 19:00
Check out the JW flash player.

It's very easy to implement

~MiSfit

i had before, was not doing as it should. i heard i need to mux the mp4 in a certain way or something? x264 mp4 ouput wasnt good enough?


so in theory i can upload any mp4 and use jw flash player and it will work just fine?

it was either my host or the files i was using

audyovydeo
2nd February 2009, 19:11
so in theory i can upload any mp4 and use jw flash player and it will work just fine?




yes

just make sure you respect relative paths (media files relative to the JW player directory) and that should be it.

Do :

/home/index.html (with the JWplayer code)
/home/playlist.pls (optional)
/home/media/(*.mp4)
/home/code/(jwplayer files)

and you're all go.


cheers
audyovydeo

Dark Shikari
2nd February 2009, 19:23
Well, he also needs to mux with something like mp4box...

deets
2nd February 2009, 19:30
Well, he also needs to mux with something like mp4box...

ah yep. i believe this was my flaw before. as soon as i can test i shalll....

not that i can get anything to decode MJPG properly

audyovydeo
2nd February 2009, 19:33
Well, he also needs to mux with something like mp4box...

well he said he works with mp4 files, they're already "muxed".

(lemme guess : he's using, like me, bobor's builds before bobor decides to kill mp4 support ;-)

cheers
a/v

Dark Shikari
2nd February 2009, 19:33
well he said he works with mp4 files, they're already "muxed".Sure, and if they're muxed with ffmpeg or x264, the moov atom won't be in the right place for Flash to use them.

deets
2nd February 2009, 19:35
Sure, and if they're muxed with ffmpeg or x264, the moov atom won't be in the right place for Flash to use them.

and this would cause a blank screen ?

audyovydeo
2nd February 2009, 19:44
not that i can get anything to decode MJPG properly

QuickTime player ?



DS : you hit (as often) the nail on the head : I just realised that the couple of dozen files I use in conjunction with JWplayer actually had gone through mp4box. As this is only true for a portion of all my files, I'd not come across the problem, hence made the association.


cheers
a/v

deets
2nd February 2009, 19:47
QuickTime player ?



DS : you hit (as often) the nail on the head : I just realised that the couple of dozen files I use in conjunction with JWplayer actually had gone through mp4box. As this is only true for a portion of all my files, I'd not come across the problem, hence made the association.


cheers
a/v

ah i was thinking via avisynth :) would rather not use QT if possible :D although i could use it to spit out some other lossless format maybe

audyovydeo
2nd February 2009, 20:00
ah i was thinking via avisynth :) would rather not use QT if possible :D although i could use it to spit out some other lossless format maybe

I noticed doom9 is generally hostile to QuickTime. I only stopped using QuickTime when I got serious about H.264, but it's still a good multiformat converter for me.

cheers
a/v

deets
2nd February 2009, 20:15
I noticed doom9 is generally hostile to QuickTime. I only stopped using QuickTime when I got serious about H.264, but it's still a good multiformat converter for me.

cheers
a/v

yeah i dont like how it took over my pc and such. but ill use if it it outputs a lossless format i can use :)

smok3
2nd February 2009, 20:16
and this would cause a blank screen ?

check your flash version.

ups, you said mjpg mp4 files?

Dark Shikari
2nd February 2009, 20:17
QuickTime player ?Um... why not something libavcodec-based like FFDshow?

MJPEG is one of the most widely supported formats out there; I have no idea why anyone would want to resort to Quicktime to play it.

deets
2nd February 2009, 20:19
Um... why not something libavcodec-based like FFDshow?

MJPEG is one of the most widely supported formats out there; I have no idea why anyone would want to resort to Quicktime to play it.

i have it all setup to play, but avisynth always says cant decompress frame 0

edit: as a follow up, i tried the pegasus trial mjpeg codec and that works albeit with a horrible nag screen! but ffdshow wont work for me

edit 2: all works after muxing :D how cool.... thanks everyone