ファイル形式は、wmv、asx、flv、mov、rmv、rmvb、swf、mpg、mpegです。 ビデオのアップロード中にサムネイル画像を取得する方法。if:ffmpegを使用しない。ビデオのサムネイル画像を取得する方法は?
0
A
答えて
1
あなたは、なぜそのタスクのために特別に設計されたものを使用しないようにしたいのですか?とにかくこれに役立つ商用とオープンソースのツールやライブラリがたくさんありますが、その中にはAPIやバインディングがあるかもしれません...
ImageMagickでは、 convert
コマンド:
convert movie.avi[0,100,200] -background white -compose darken -flatten out.gif
OR
:convert movie.mpg[0]
あなたはまた、フレームの範囲からアニメーションGIF を作成することができます
convert movie.avi[100-200] -background white -compose darken -flatten out.gif
0
Bitmap bm = MediaStore.Video.Thumbnails.getThumbnail(getContentResolver(), 1, 1, null);
ImageView iv = (ImageView) findViewById(R.id.ImageView01);
iv.setImageBitmap(bm);
/*
public static class
MediaStore.Video.Thumbnails
public static Bitmap getThumbnail (ContentResolver cr, long origId, int kind, BitmapFactory.Options options)
Since: API Level 5 This method checks if the thumbnails of the specified image (origId) has been created. It will be blocked until the thumbnails are generated.
Parameters
cr ContentResolver used to dispatch queries to MediaProvider.
origId Original image id associated with thumbnail of interest.
kind The type of thumbnail to fetch. Should be either MINI_KIND or MICRO_KIND
options this is only used for MINI_KIND when decoding the Bitmap
Returns
A Bitmap instance. It could be null if the original image associated with origId doesn't exist or memory is not enough.
*/
関連する問題
- 1. ビデオのサムネイル/画像のスクリーンショット
- 2. dailymotionビデオからサムネイル画像を作成する方法
- 3. ビデオのサムネイル画像の設定方法は?
- 4. ビデオのサムネイルを取得するには?
- 5. リアクションネイティブ - アセット画像/ビデオへのパスを取得する方法
- 6. ビデオの最初のフレームを取得する - サムネイル解像度 - iPhone
- 7. パスからイメージとビデオのサムネイルを取得する方法
- 8. フロープレーヤを使用してビデオのサムネイル画像を生成する方法は?
- 9. SDWebImageを使用してサムネイル画像を取得する方法は?
- 10. PHAssetからサムネイル画像を取得
- 11. Android RSS解析:画像を取得サムネイル
- 12. ビデオURLからサムネイル画像を作成!
- 13. ワードプレスのサムネイルに基づいて最大の画像を取得する方法
- 14. Google画像:サムネイルURLから大きな画像URLを取得
- 15. mp3ファイルからサムネイル画像を取得するには?
- 16. ビデオから画像を抽出してサムネイルとして使用する方法
- 17. 画像のサムネイルを全画像なしでAndroidのWeb URLから取得する方法
- 18. iPhoneアプリカメラやフォトギャラリーで取得した画像のサムネイル画像を生成する
- 19. ビデオからサムネイルを取得するビデオからサムネイルを取得しようとしています
- 20. サーバの動画から動画のサムネイルを取得する方法は?
- 21. php mysql - プロダクトのサムネイル画像を取得する
- 22. Androidビデオ録画&サムネイル
- 23. Keynote for AppleScriptで画像/ビデオ/オーディオのファイル名を取得する方法
- 24. Google画像を取得する方法
- 25. スウィフト - スポットライト検索で円形画像を取得する(サムネイル内)
- 26. Webページからサムネイル画像を取得する
- 27. Paperclipで画像ファイルのサムネイルを作成する方法は?
- 28. 元画像のサムネイル画像
- 29. 画像のサムネイル
- 30. 画像ライブラリから画像URLを取得する方法