Note to self: when trying to stream H.264 based footage from Flash Media Server 3 using the FLVPlayback component and a SMIL file, make sure to specify both the mp4: prefix as well as the file extension. I found out the hard way and 45 minutes later managed to debug it... As you may know, when using FLV files you need neither a prefix nor a file extension.
Here's a example of what worked for me. I saved this as smil.xml, uploaded it to a web server and pointed the FLVPlayback component's source property at that file.
Here's a example of what worked for me. I saved this as smil.xml, uploaded it to a web server and pointed the FLVPlayback component's source property at that file.
<smil>
<head>
<meta base="rtmp://server.com/app" />
</head>
<body>
<switch>
<!-- bitrate is in bits -->
<video src="mp4:Video Clip 150k.mov" system-bitrate="153600" />
<video src="mp4:Video Clip 350k.mov" system-bitrate="358400" />
<video src="mp4:Video Clip 650k.mov" system-bitrate="665600"/>
<video src="mp4:Video Clip 900k.mov" system-bitrate="921600"/>
<video src="mp4:Video Clip 150k.mov" />
</switch>
</body>
</smil>
<head>
<meta base="rtmp://server.com/app" />
</head>
<body>
<switch>
<!-- bitrate is in bits -->
<video src="mp4:Video Clip 150k.mov" system-bitrate="153600" />
<video src="mp4:Video Clip 350k.mov" system-bitrate="358400" />
<video src="mp4:Video Clip 650k.mov" system-bitrate="665600"/>
<video src="mp4:Video Clip 900k.mov" system-bitrate="921600"/>
<video src="mp4:Video Clip 150k.mov" />
</switch>
</body>
</smil>


ns.play("mp4:myfile");
then it will first look for a file called "myfile", then "myfile.mp4".
Cheers,
Will
For files downloaded from the web, it makes the decoder decision based on what's in the file.
The sample files with FMS3 installation streams fine.
Any idea of why its happening?
FLVCheck version 1.0 - Utility to validate flv and mp4 media files.
Copyright (C) 2008 Adobe Systems Incorporated. All rights reserved.
www.adobe.com
08-03-27 07:15:29 Error: -9 Invalid FLV message footer. Terracot
ta.flv
Any idea now why this is happening?
flvcheck has an option to fix a stall in a video if it's FLV. It might be worth taking a peak at the metadata to see if you're working with MP4 or FLV. If it's MP4 then you would need to specify mp4: when you attempt to stream it.
Thanks for your reply. It was very useful.
I can't get the h.264 video stream to work from a Flash Media Encoder 2.5 live stream.
The NetStream metadata comes right into the Flash 9.0.124 runtime, but no video feed is visble.
I tried :
flux_in.play( "livestream" );flux_in.play( "mp4:livestream" ); // Not Found
flux_in.play( "livestream.mp4" );
flux_in.play( "livestream.f4v" );
Nothing works.
Seems that the client doesn't send the input to the right decoder.
Any idea ?
If I try have to publish from FME with a stream name like "mp4:live" I get an error.
Thanks.
9.0.115 works just great.
Hi Sunil
For some reason youtube sets the first tag size (the one that carries metaData) to 0. Thats the problem. When I manually changed the 0 to the proper size (425 bytes in my case), the flv streamed properly.
I'm making a small utility to fix this automatically, but you can do it manually by using any old hex editor (HxD for example). Assuming youtube hasn't changed their metadata, the field in question is at offset 438 and spans 4 bytes, although I would probably double check that.
I'm having the same issue. Running FMS3 locally and broadcasting to it using FME2.5. VP6 stream shows up with no problems, but when I switch to H.264 I get nothing. Status in the SWF says 'playing' with no apparent errors thrown. Were you able to fix the problem? Any one have any insight? (I'm certain I have the latest Player version.) Any tips appreciated. Thanks!
I wonder if you've fix your issue&
You can contact me at viacontact [@] v-i-a.net
Greetings
I've just tested the H.264 live streaming over Edgecast and it worked fine for me (using FME2.5).
I also tested locally over FMS3 and that worked too... I know this won't shed light on your problem but at least you know that it does work for some people.
My traces show that stream is playing and metadata is being received, but the player seems not capable of displaying the video. Mp3 audio works.
[INFO] time 10:15:16.376 :: Metadataplayer.html (line 34)
[Object]
[String] presetname = Custom
[int] videodatarate = 350
[int] avclevel = 31
[String] creationdate = Mon Jul 07 10:12:38 2008
[int] avcprofile = 66
[int] width = 480
[String] audiodevice = Intel(r) Integrated Audio
[String] keywords =
[String] description =
[int] height = 360
[int] videocodecid = 7
[int] audiosamplerate = 22050
[String] rating =
[Number] framerate = 30.00003000003
[int] audiochannels = 1
[String] author =
[int] audioinputvolume = 75
[String] title =
[int] audiocodecid = 2
[int] audiodatarate = 48
[String] videodevice = USB Video Device
[String] copyright =
Too bad ! Hope a new release will pop up soon !
thanks!