ファイル形式は、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. ビデオのサムネイルを取得するには?
- 3. ビデオのサムネイル画像の設定方法は?
- 4. ビデオの最初のフレームを取得する - サムネイル解像度 - iPhone
- 5. フロープレーヤを使用してビデオのサムネイル画像を生成する方法は?
- 6. SDWebImageを使用してサムネイル画像を取得する方法は?
- 7. ビデオURLからサムネイル画像を作成!
- 8. Google画像:サムネイルURLから大きな画像URLを取得
- 9. mp3ファイルからサムネイル画像を取得するには?
- 10. ビデオから画像を抽出してサムネイルとして使用する方法
- 11. iPhoneアプリカメラやフォトギャラリーで取得した画像のサムネイル画像を生成する
- 12. Google画像を取得する方法
- 13. Androidビデオ録画&サムネイル
- 14. スウィフト - スポットライト検索で円形画像を取得する(サムネイル内)
- 15. Webページからサムネイル画像を取得する
- 16. Paperclipで画像ファイルのサムネイルを作成する方法は?
- 17. 画像のサムネイル
- 18. 最初のキャプチャを取得画像をアップロードするPHPでビデオ?
- 19. bing-apiのニュース項目からニュース画像のサムネイルを取得する方法はありますか?
- 20. サムネイル画像を怠惰に生成する方法は?
- 21. CodeIgniter画像サムネイル画像
- 22. 画像の名前の取得方法
- 23. mouseoverでのビデオ再生/サムネイル画像をマウスで表示
- 24. fqlを使ってアルバムからサムネイル画像を取得
- 25. グリッドビュー内の画像の位置を取得する方法は?
- 26. node.jsの画像ファイルのサイズを取得する方法は?
- 27. mkmapviewサムネイル画像
- 28. キャプチャした画像のURLを取得する方法は?
- 29. Androidで画像のサイズを取得する方法は?
- 30. 画像のタッチ部分ビットマップを取得する方法は?