flv

In AS3 while using NetStream for video playback how do I seek when I use appendBytes

三世轮回 提交于 2019-11-29 12:00:16
I am trying to use NetStream to play from a byteArray. Please see this for what I am talking about. I am able to get this to play the video. However now I need to be able to see to a particular second. I am not able to do this. If I go through the bytearray I know I can get the metadata and the keyframes as required and the offset ( in bytes) as to where each keyframe is at. However there is no way to seek to a particular offset. It only supports seek in seconds and that doesn't seem to work on the byteArray. How do I go about this ? I got I worked: // onmetadata function get all timestamp and

Check file type (FLV) before PHP upload file in temporary folder by reading only starting 3 bytes of file

拜拜、爱过 提交于 2019-11-29 11:45:49
问题 First 3 bytes of FLV file are signature "FLV". Now my question: Is there any possibility in PHP to handle file uploads so that we can hook into the input stream of uploading file and check the first 3 bytes? The scenario is i don't want the complete file to be uploaded (in temporary folder) and then check if the file is FLV or not, i just want to read first few bytes of uploading stream and if it is not "FLV" then return/exit. The file needs to be uploaded by HTML based form. Can't rely on

What is the best tool to convert common video formats to FLV on a Linux CLI [closed]

走远了吗. 提交于 2019-11-29 09:26:19
问题 Part of a new product I have been assigned to work on involves server-side conversion of the 'common' video formats to something that Flash can play. As far as I know, my only option is to convert to FLV. I have been giving ffmpeg a go around, but I'm finding a few WMV files that come out with garbled sound (I've tried playing with the audio rates). Are there any other 'good' CLI converters for Linux? Or are there other video formats that Flash can play? 回答1: Flash can play the following

Add dynamic video content (YouTube like) (PHP)

允我心安 提交于 2019-11-29 08:09:30
I'm looking to setup video uploads for users on a site and want to have them viewed through a Flash player. The site is already partially built (by someone else) and I'm wondering what kind of technologies there are to deal with the video files, specifically in PHP. I'm thinking the files need to be converted to an FLV. After that I think it's just loading the FLV, like an SWF in Flash. They also want to do mp3's with Flash streaming, so it'd be cool if it could also support mp3's. ffmpeg is the tool for you. It's a major opensource video encoding library that a lot of other tools are based on

calculate flv video file length ? using pure php

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 04:39:49
What is the best way to calculate the length of flv file using php with out external dependencies like ffmpege because client site run on shared hosting, itry http://code.google.com/p/flv4php/ , but it extract metadata and not all video contain meta data ? There's a not too complicated way to do that. FLV files have a specific data structure which allow them to be parsed in reverse order, assuming the file is well-formed. Just fopen the file and seek 4 bytes before the end of the file. You will get a big endian 32 bit value that represents the size of the tag just before these bytes (FLV files

How to convert uploaded video and get a screenshot from this file?

我与影子孤独终老i 提交于 2019-11-29 03:52:40
问题 I'm building a cms and I want users to be able to upload videos but I'm not familiar with video upload & conversion. Is there an example or has anybody coded a solution like this? I heard about ffmpeg but I don't know how to integrate it with asp.net. As simple solution I can make my clients upload flv files but then I would still need to get a screenshot from that fvl. Thanks 回答1: Answering author's question: Does ffmpeg requires to be installed server side or just exe is enough? ffmpeg.exe

Extracting frames from MP4/FLV?

与世无争的帅哥 提交于 2019-11-28 15:38:36
问题 I know it's possible with FFMPEG, but what to do if I have a partial file (like without the beginning and the end). Is is possible to extract some frames from it? 回答1: The command ffmpeg -ss 00:00:25 -t 00:00:00.04 -i YOURMOVIE.MP4 -r 25.0 YOURIMAGE%4d.jpg will extract frames beginning at second 25 [-ss 00:00:25] stopping after 0.04 second [-t 00:00:00.04] reading from input file YOURMOVIE.MP4 using only 25.0 frames per second, i. e. one frame every 1/25 seconds [-r 25.0] as JPEG images with

Can ffmpeg convert audio to raw PCM? If so, how?

微笑、不失礼 提交于 2019-11-28 15:30:06
问题 I'm currently using ffmpeg to convert FLV/Speex to WAV/pcm_s16le , successfully. However, I now need the output format to be RAW, that is, PCM signed 16-bit little endian, without the WAV header. I tried the following: ffmpeg -y -i input.flv -vn -acodec pcm_s16le output.raw But ffmpeg responds with: Unable to find a suitable output format for 'output.raw' I also tried using output.pcm and output as output file names, with the same result. I also tried the -f flag to specify raw format, but

How to generate the Thumbnail of video URL flv format?

感情迁移 提交于 2019-11-28 06:12:24
问题 How can i get the Thumbnail of URL my video url like below http://ServerDomain/streams/16476084045/3d4659d8e93bdfbdb3619a4a684c93be.flv I am using this below code AVURLAsset *asset1 = [[AVURLAsset alloc] initWithURL:url options:nil]; AVAssetImageGenerator *generator = [[AVAssetImageGenerator alloc] initWithAsset:asset1]; generator.appliesPreferredTrackTransform = YES; //Set the time and size of thumbnail for image NSError *err = NULL; CMTime thumbTime = CMTimeMakeWithSeconds(0,30); CGSize

In AS3 while using NetStream for video playback how do I seek when I use appendBytes

人盡茶涼 提交于 2019-11-28 06:05:28
问题 I am trying to use NetStream to play from a byteArray. Please see this for what I am talking about. I am able to get this to play the video. However now I need to be able to see to a particular second. I am not able to do this. If I go through the bytearray I know I can get the metadata and the keyframes as required and the offset ( in bytes) as to where each keyframe is at. However there is no way to seek to a particular offset. It only supports seek in seconds and that doesn't seem to work