WP Marketing » Tag: conversion - Recent Posts http://wpmarketing.org/forum/tags/conversion Wordpress for Internet and Affiliate Marketing en-US Mon, 09 May 2016 05:15:06 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php hanadaddy on "Hana FLV Player supported video types - FLV, H.264(MP4)" http://wpmarketing.org/forum/topic/hana-flv-player-supported-video-types-flv-h264mp4#post-569 Wed, 11 Jul 2012 11:10:28 +0000 hanadaddy 569@http://wpmarketing.org/forum/ <p>Here is a quick sample of the Windows CMD batch script for batch processing of converting video files into MP4 video files.</p> <p>Create a folder and copy ffmpeg.exe and qt-faststart.exe into the folder.<br /> Create a batch file (For example, run.bat) and edit with Notepad.</p> <p>Below script convers flv files into MP4 files. Note that I used width 480 conversion.</p> <pre> for %%a in ("*.flv") do ( ffmpeg -i "%%a" -vcodec libx264 -vprofile baseline -threads 0 -acodec aac -sameq -preset fast -strict -2 -vf "scale=480:-1" "%%~na_conv.mp4" qt-faststart "%%~na_conv.mp4" "%%~na_conv_final.mp4") </pre> <p>You could change <code>.flv</code> to the extension of your video files to convert.<br /> If you want to change width, change 480 in <code>&quot;scale=480:-1&quot;</code> to something else.</p> <p>Then run the script file. </p> hanadaddy on "Hana FLV Player supported video types - FLV, H.264(MP4)" http://wpmarketing.org/forum/topic/hana-flv-player-supported-video-types-flv-h264mp4#post-532 Sun, 06 May 2012 22:40:40 +0000 hanadaddy 532@http://wpmarketing.org/forum/ <p>Android 2.x is very sensitive about the video encoding and only processes video files with video encoding of H.264 Baseline protocol (avc1) and audio encoding of AAC. I further searched the resources how to generate such video files with the free and popular FFmpeg video command line tool. Note that you also need to run qt-faststart to move video metadata into the first section of the video, so the player can show them right away without full downloading the movie. </p> <p>And here is the answer that I found for generating video files for Android 2.x (Video:H.264 Baseline , Audio: AAC). input.flv is the original video file that is used as input file of ffmpeg. The output file is output.mp4. However, since you still need to run the qt-faststart, the output-final.mp4 is the actual final mp4 file.</p> <pre> ffmpeg -i input.flv -vcodec libx264 -vprofile baseline -threads 0 -acodec aac -sameq -preset fast -strict -2 output.mp4 qt-faststart output.mp4 output-final.mp4 </pre> <p><strong>Android 2.x + compatible video creation open source software download Links</strong> </p> <ul> <li>FFmpeg (<a href="http://ffmpeg.org)">http://ffmpeg.org)</a> Windows compiled virsion that I used : <a href="http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120421-git-9849515-win32-static.7z">http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120421-git-9849515-win32-static.7z</a> </li> <li>Windows compiled version of qt-faststart ( <a href="http://multimedia.cx/eggs/improving-qt-faststart/">http://multimedia.cx/eggs/improving-qt-faststart/)</a> <a href="http://notboring.org/downloads/video/qt-faststart.zip">http://notboring.org/downloads/video/qt-faststart.zip</a> </li> </ul> <p><strong>Android 2.x + compatible video encoding references</strong></p> <ul> <li><a href="http://alien.slackbook.org/blog/re-encoding-video-for-android/">http://alien.slackbook.org/blog/re-encoding-video-for-android/</a> </li> <li><a href="http://ffmpeg.org/trac/ffmpeg/ticket/387?cversion=1&amp;cnum_hist=6">http://ffmpeg.org/trac/ffmpeg/ticket/387?cversion=1&amp;cnum_hist=6</a> </li> <li><a href="http://diveintohtml5.info/video.html">http://diveintohtml5.info/video.html</a> (Using Handbrake to create Mobile friendly h264 video) </li> </ul> hanadaddy on "Hana FLV Player supported video types - FLV, H.264(MP4)" http://wpmarketing.org/forum/topic/hana-flv-player-supported-video-types-flv-h264mp4#post-504 Mon, 23 Apr 2012 00:26:39 +0000 hanadaddy 504@http://wpmarketing.org/forum/ <p>I often receive questions about the what kind of video files are supported by Hana FLV Player.</p> <p>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.</p> <p>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. </p> <p>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? </p> <p>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.</p> <p><a href='http://www.any-video-converter.com/products/for_video_free'>Here is the Any Video Free Version download page</a><br /> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=504&bbat=34'><img src='http://wpmarketing.org/forum/?bb_attachments=504&bbat=34&inline' /></a></p> <p>2. Use FFmpeg open source free utility. This is command prompt executable . You can download the executable from <a href='http://ffmpeg.org/download.html'>FFmpeg download page</a> . If you go down, there are FFmpeg Linux Builds and <a href='http://ffmpeg.zeranoe.com/builds'>FFmpeg Windows Builds links</a> (32-bit Builds (Static) should do the job for Windows). </p> <p>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. </p> <p>I will try to explain the options as easy as possible, so feel free to reply if you have any questions. </p> <p>Explanation of some popular options.</p> <pre> -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) </pre> <p>Some examples</p> <pre> #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 </pre> <p>Here is the sample of generating poster image by capturing image from the video. </p> <pre>ffmpeg -ss 1 -an -i output.mp4 -f image2 -vframes 1 -s 320x240 my_image.jpg</pre> <p>The input video file is 'output.mp4' and the <code>-ss</code> option indicate the seconds of the video play position to capture. <code>-s</code> option defines the width and height pixel size of the poster image. </p> hanadaddy on "Movie format" http://wpmarketing.org/forum/topic/movie-format#post-205 Tue, 07 Sep 2010 09:16:35 +0000 hanadaddy 205@http://wpmarketing.org/forum/ <p>As long as I know, Only FLV or SWF (?) files are supported (natively by Adobe Flash). You can use "Any Video Converter" (<a href='http://www.any-video-converter.com/products/for_video_free/'>This is free version</a>) to convert any video formats to FLV format. I have tried various conversion tools, but this was the easiest one and yet free. </p> chord on "Movie format" http://wpmarketing.org/forum/topic/movie-format#post-202 Wed, 01 Sep 2010 09:57:34 +0000 chord 202@http://wpmarketing.org/forum/ <p>All is working okay for me. What can be done to use any movie format with this? </p>