[flexcoders] Re: FLV Duration
I tried the flvtool2 and couldn't really figure it out, didn't spend a whole lot of time with it though. Found another tool that does the same thing and I was able to figure out quickly. FLVMDI, http://www.buraks.com/flvmdi/, has commandline and gui options, can output a new flv with the metadata as well outputing an xml of the data. Thanks for the help everyone, hopefully this will save others a bit of trouble as well. -John --- In flexcoders@yahoogroups.com, Sönke Rohde [EMAIL PROTECTED] wrote: Hi, If it was not encoded with metadata why not inject that metadata with FLVTool2? If there is no metadata you will not be able to get the duration. Another possibility would be to use the print command of FLVTool2 to determine the duration instead of injecting it. Cheers, Sönke -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Tuesday, December 05, 2006 6:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FLV Duration again, only works if the flv was encoded correctly with the metadata --- In flexcoders@yahoogroups.com, Matt Horn mhorn@ wrote: If you're using the VideoDisplay component, you can get the length of the FLV file using the totalTime property. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Monday, December 04, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FLV Duration Is there an easy way to figure out the duration of an FLV thati s being played? I have been looking at the NetStream object and the onMetaData event, but it seems like the FLV does not always have the metadata set. The FLVs I want to play are created my other people, so there is no way to force them to add the metadata. is there any way to easily get around this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: FLV Duration
You could pass everything through FLVTool2 on the server to inject metadata...problem solved! This is something we do with flvs made from ffmpeg. IME recent builds of ffmpeg create the metadata correctly Ben
[flexcoders] Re: FLV Duration
How does this tool work, I was looking at it yesterday and couldn't really figure it out. I ran an flv through it and couldn't see how to get the duration out of it.It looked to me like all you could do was add stuff to the flv, not get information out of it. If I am wrong (and I hope so) please let me know how I could use this to figure out the duration of an flv -John --- In flexcoders@yahoogroups.com, The Morans [EMAIL PROTECTED] wrote: You could pass everything through FLVTool2 on the server to inject metadata...problem solved! This is something we do with flvs made from ffmpeg. sean http://inlet-media.de/flvtool2 On Dec 4, 2006, at 2:45 PM, Stacy Young wrote: I'm curious to know myself, I will poke around. In the meantime I'd also post this to flashcoders. Since we're talking Actionscript specifically, there's a much higher percentage of folks on there that work with video. http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Cheers, Stace From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Monday, December 04, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FLV Duration Is there an easy way to figure out the duration of an FLV thati s being played? I have been looking at the NetStream object and the onMetaData event, but it seems like the FLV does not always have the metadata set. The FLVs I want to play are created my other people, so there is no way to force them to add the metadata. is there any way to easily get around this?
[flexcoders] Re: FLV Duration
onMetaData only works if the flv has been encoded with the metadata, there is no way to garuntee that this has happened though -John --- In flexcoders@yahoogroups.com, John Kirby [EMAIL PROTECTED] wrote: Via onMetaData you should be able to get duration. Have you tried something like this? private function playStream():void { stream = new NetStream(nc); stopTimer(); videoHolder = new UIComponent(); videoHolder.setActualSize(defaultWidth, defaultHeight); video = new Video(defaultWidth, defaultHeight); video.attachNetStream(stream); stream.play(streamVideoURL); stream.addEventListener(NetStatusEvent.NET_STATUS, streamStatusHandler); var client:Object = new Object(); client.onMetaData = onMetaData; stream.client = client } public function onMetaData(info:Object):void { duration = info.duration; fRate = info.framerate; totalBytes = info.bytesTotal; metaWidth = info.width; metaHeight = info.height; } john_69_11 said the following: Is there an easy way to figure out the duration of an FLV thati s being played? I have been looking at the NetStream object and the onMetaData event, but it seems like the FLV does not always have the metadata set. The FLVs I want to play are created my other people, so there is no way to force them to add the metadata. is there any way to easily get around this? -- /Whether you think that you can, or that you can't, you are usually right./ - Henry Ford
Re: [flexcoders] Re: FLV Duration
On Tuesday 05 December 2006 13:58, john_69_11 wrote: really figure it out. I ran an flv through it and couldn't see how to get the duration out of it.It looked to me like all you could do was add stuff to the flv, not get information out of it. If I am wrong Looks like it adds the missing meta data. You run all your video through the tool as it's uploaded, and then it's available when you load the video into your app. -- Tom Chiverton Helping to quickly disintermediate corporate ROI This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FLV Duration
again, only works if the flv was encoded correctly with the metadata --- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote: If you're using the VideoDisplay component, you can get the length of the FLV file using the totalTime property. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Monday, December 04, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FLV Duration Is there an easy way to figure out the duration of an FLV thati s being played? I have been looking at the NetStream object and the onMetaData event, but it seems like the FLV does not always have the metadata set. The FLVs I want to play are created my other people, so there is no way to force them to add the metadata. is there any way to easily get around this?
RE: [flexcoders] Re: FLV Duration
Hi, If it was not encoded with metadata why not inject that metadata with FLVTool2? If there is no metadata you will not be able to get the duration. Another possibility would be to use the print command of FLVTool2 to determine the duration instead of injecting it. Cheers, Sönke -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Tuesday, December 05, 2006 6:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FLV Duration again, only works if the flv was encoded correctly with the metadata --- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote: If you're using the VideoDisplay component, you can get the length of the FLV file using the totalTime property. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Monday, December 04, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FLV Duration Is there an easy way to figure out the duration of an FLV thati s being played? I have been looking at the NetStream object and the onMetaData event, but it seems like the FLV does not always have the metadata set. The FLVs I want to play are created my other people, so there is no way to force them to add the metadata. is there any way to easily get around this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links