I often receive questions about the what kind of video files are supported by Hana FLV Player.
Since Hana FLV Player contains 2 Flash players (OS FLV, FlowPlayer) and 1 HTML5 player (MediaElement.js), I would say it supports all the types that they support.
There are several types but I would say FLV and H.264 are the common types. FLV format is only supported by Flash , not HTML5 browsers. But for H.264, it was supported since Flash version 8 (or 9?). Also the popular fast growing Apple devices do not support Flash, but supports HTML5 video and H.264 encodings. Therefore, I think H.264 would be the good option for the future even if you do not care about Apple clients at this time.
If your video file does not have .flv or .mp4 extension, you need to convert the video file. Such as .avi or .wmv files. But what are the ways to create the FLV or H.264 encoded video files?
1. There are free Video format conversion software out there. But I like Any Video Converter. It is commercial product, but does provide FREE version which I think best and easiest solution out there. Please note that I am not affiliate with them in any way. Basically it provides nice and easy to use GUI screen and it utilizes various open source software as long as I know. The screen is pretty intuitive. Drag and drop the source video files in the center area, and select the output profile type (FLV or MP4-select x264) , and then click on the convert button.
Here is the Any Video Free Version download page
2. Use FFmpeg open source free utility. This is command prompt executable . You can download the executable from FFmpeg download page . If you go down, there are FFmpeg Linux Builds and FFmpeg Windows Builds links (32-bit Builds (Static) should do the job for Windows).
Compared to Any Video Converter, this would be uncomfortable if you are not really familiar with command prompts. And the option arguments are pretty complicated, too. But there are some merits, such as automatically generating poster images (or splash image) by using simple command.
I will try to explain the options as easy as possible, so feel free to reply if you have any questions.
Explanation of some popular options.
-i; specify input file -ar; audio sample rate -ab; audio bitrate -acodec; audio codec -r; framerate -f; output format -b; bitrate (for exmaple 400k) -s; resize to widthxheight (height must be divisible by 2)
Some examples
#Convert AVI file to MP4 with out video screen resolution 400 x 226. (by default H.264 is used) ffmpeg -i test.avi -s 400x226 testout.mp4 #Convert FLV file to MP4(by default H.264 is used) with 25 frames rate and 400K bitrate. ffmpeg -i test.flv -r 25 -b 400k -s 400x226 testout.mp4 #Convert flv file to mp4 file with the same video quality as original ffmpeg -i test.flv -sameq testout.mp4 #Bitrate must be high for qood quality but the file size is big compared to any video ffmpeg -i test.mp4 -r 30 -f flv -b 1000k -s 400x226 testout.flv #Converting mp4 to flv. -qscale option is easier way to define the video quality. I guess 5 or 6 is good enough. #Lower number is better quality. But the file size will be big. ffmpeg -i test.mp4 -r 30 -f flv -qscale 5 test5.flv #Even for flv file you can encode using the original encodings by using "-acodec copy -vcodec copy" #meaning to convert using the same audio and video encodings to create the target file ffmpeg -i output.mp4 -acodec copy -vcodec copy abcout-same.flv #For mp4 encoding , I find this example produces relatively high quality video with the smallest file size. #It uses x264 free library for H264 encoding. ffmpeg -i output.avi -vcodec libx264 -preset fast -crf 23 -threads 0 testout_small.mp4
Here is the sample of generating poster image by capturing image from the video.
ffmpeg -ss 1 -an -i output.mp4 -f image2 -vframes 1 -s 320x240 my_image.jpg
The input video file is 'output.mp4' and the -ss option indicate the seconds of the video play position to capture. -s option defines the width and height pixel size of the poster image.
sticky
not a support question