Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

How to record videos in HEVC in Android

オープン
#83 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, java
領域
mobile

調査の方向性

issue に示されている recordVideo メソッドと MediaStore.ACTION_VIDEO_CAPTURE エントリポイントから始めます。このキャプチャフローでの HEVC 対応検出とコーデック選択について、Android media API のドキュメントを確認します。この intent で HEVC を要求できるかどうかを文書化し、要求できない場合は対応する API パスを特定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I trying to write a simple video app in Android that captures video and saves it locally. Looking at the recorded videos on my device, apparently it uses H264 AVC1 codec by default. I know my particular device supports HEVC (Samsung S10). How can I record videos using H265 (probably first check if it supports HEVC through some API, then do it)?

This is what I use right now to capture video with camera. It doesn't specify the codec to use.

       private void recordVideo() {
            Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
    
            fileUri = getOutputMediaFileUri(MEDIA_TYPE_VIDEO);
    
            // set video quality
            intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
    
            intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the video file name
    
            // start the video capture Intent
            startActivityForResult(intent, CAMERA_CAPTURE_VIDEO_REQUEST_CODE);
        }
主要言語
Kotlin
スター
1.4k
フォーク
781
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

android/media-samples のほかの issue

android/media-samples の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。