ffmpeg -i in.avi out.swf, then place <embed src="out.swf" width="400" height="300" loop="false" quality="high"></embed> in your HTML. Optionally, use the -s argument after -i in FFMPEG to change the resolution. If you want playback controls, output to a .flv file instead, download FlowPlayer [1], and modify their example HTML to point to your .flv video.
5 comments:
This isn't standards compliant due to the use of the <embed> tag. Popular ways to post videos include Adobe's suggestion of nesting <embed> and <object> tags [1], using the FlashObject library [2] (they received threats from Adobe and hence changed their library's name to SWFObject), or using the <object> tag alone [3]. I stuck with the embed tag because it worked for me on IE6, Firefox, and Safari and didn't violate Occam's razor.
Also, note that FlowPlayer may require that users upgrade to a recent version of Flash. If you don't need videos to play in the browser, you can use the msmpeg4v2 FFMPEG codec, which plays in VLC and vanilla Windows Media Player, but won't play on Mac OS X. If you know of a codec that compresses well and works on the default Mac OS X and Windows players then let me know.
فوتوشوب اون لاين
فوتوشوب اونلاين
فوتوشوب اون لاين 2021
فوتوشوب بدون تحميل
photoshop online
photoshoponline
photoshop online 2021
برامج اون لاين
برامج اونلاين
برامج اون لاين
شروحات
برامج
تحميل Windows 10 مجانا طريقة التحميل قبل وصول Windows 11
برامج اون لاين
بتحميل متصفح تور
تحميل برنامج ستيم
تحميل Windows 10
تحميل برنامج وينرار
تحميل جوجل كروم
pc
Thanks for this helpful guide! 👍
The FFMPEG tip with converting to .swf is super straightforward — I didn't realize it was that simple back in the day. The embed code example is also clear and easy to follow.
Quick question though: Is .swf still recommended nowadays, or would you suggest converting to MP4 + HTML5 video tag instead for better modern browser support?
Also, the FlowPlayer suggestion for .flv with controls is nice. Appreciate you including the optional resolution change with -s too.
Great post, thanks for sharing these practical steps! Looking forward to trying it out. Bungalow Finder
😂 Man, this post is pure 2007 nostalgia!
Nowadays we just upload to YouTube/Vimeo or use HTML5 video with a single tag. FFMPEG is still king for conversion though, but .swf and FlowPlayer feel like ancient history now.
Times have changed fast! North Oakville
Post a Comment