The RPG Maker Resource Kit

RMRK General => General Chat => Topic started by: Moss. on May 24, 2010, 06:23:32 PM

Title: H.264 (x264) Streaming Sucks
Post by: Moss. on May 24, 2010, 06:23:32 PM
I have videos. x264/AAC/mp4. I have JW Player, a flash based media player for websites.
My videos won't stream properly (http://www.longtailvideo.com/support/forums/jw-player/video-encoding/11484/embed-wont-play-until-fully-buffered-with-encode-solutions), because of the way H.264 files are composed. (http://renaun.com/blog/2007/08/22/234/)
There is a fix using Adobe AIR (from 2007), but what I'm wondering (Roph) is if there's a way to just tell my encoder to do this when I'm transcoding the file.

I use Avidemux (Mac), or MediaCoder (Windows).

Help.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Roph on May 24, 2010, 07:00:16 PM
With mediacoder all of my h264/aac/mp4 files end up with the index at the start, making them streamable over http/flash =o

You could try using SUPER, it has an option to explicitly put the index first, making it streamable.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Moss. on May 24, 2010, 07:08:58 PM
So it should do it automatically? Okay. I also JUST downloaded SUPER, having looked over some of your previous posts.

I just downloaded mediacoder today, and ran it once on the computer here at work. It failed, I think because I chose something stupid for the audio encoder, because at the end it said it couldn't 'mux' the audio and video. I was going to try again, but on this shitty computer, the last encode took like 40 minutes. I was going to try again on my computer at home.

Well, that answers my questions, anyway, lol. Thank, Roph!



I tried asking people at the avidemux forums. They're awful. They completely ignored my topic, but answered everyone else's. I bet I know why, now. Avidemux doesn't move the index, and probably can't, and they probably all know it and don't want to admit it.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Roph on May 24, 2010, 07:12:23 PM
Go to the "time" tab in mediacoder and set it to only encode like 20 seconds or something, just while you're testing settings and stuff. If I'm trying to really compress a HD movie very much then I'll do tests of just a random chunk of 5 minutes or so.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Moss. on May 24, 2010, 07:33:53 PM
Genius. I only wish they made MediaCoder for Mac so I wouldn't have to switch back and forth between OSs.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Roph on May 24, 2010, 07:48:56 PM
Meh, Mediacoder's developer is an asshole who with each release cares less and less about making good software and more and more about spamming his users and making $$$. It's not even open source anymore.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Moss. on May 24, 2010, 10:25:09 PM
MediaCoder did NOT stream. I put the file through SUPER, checked the "streaming h264" box, the file gained 10mb (I'll figure that out later), and I'm struggling to upload it now...

*finger's crossed*

WOO! It took about 5 seconds to start, but it plays, and I can SEE it's not done downloading because the dark grey loading bar is filling up ahead of the black progress bar.

FINALLY. GOD DAMN.

Thanks, Roph. I still owe you a BJ.
Title: Re: H.264 (x264) Streaming Sucks
Post by: Grafikal on May 25, 2010, 02:15:41 AM
god DAMN
Title: Re: H.264 (x264) Streaming Sucks
Post by: Moss. on May 25, 2010, 04:18:05 AM
SUCCESS!!!

The videos are not of decent size, x264, and they stream! I think I had something unchecked, or disabled in MediaCoder. I found this application that runs through Adobe Air that fixes the index locations, and I used it on an encode that WASN'T streaming, and it said FIXED. At which point, I decided to start all over and re-encode them all, and then bring them over to Mac and use the Air application to fix the indexes. But I think I did something different in MediaCoder; I started up using the setup wizard. Because once I got the new videos encoded, the Air App said "these don't need fixed, dude, you're good."

So yeah! It works! Yay!



I may give Ops Via just ONE more try, because it's still a tad artifact-y, but the other three look pretty great.