SimpleScreenRecorder エラー:「ヘッダーを書き込めません!」

SimpleScreenRecorder エラー:「ヘッダーを書き込めません!」

ビデオを作成するときは、非圧縮方式を使用するのが好みですが、失敗するようです。Ubuntu 18.04.3 LTSを使用しています。

私が使用しているものは次のとおりです:

  • ogg コンテナ
  • H.264 ビデオコーデック
  • 定率係数0
  • プリセット超高速
  • フレームスキップを許可
  • 非圧縮オーディオコーデック

しかし、SimpleScreenRecorder は次のように出力します。

[PageRecord::StartPage] Starting page ...
[PageRecord::StartPage] Started page.
[PageRecord::StartInput] Starting input ...
[X11Input::Init] Using X11 shared memory.
[X11Input::InputThread] Input thread started.
[PageRecord::StartInput] Started input.
[PulseAudioInput::InputThread] Input thread started.
[PageRecord::StartOutput] Starting output ...
[Muxer::Init] Using format ogv (Ogg Video).
[Muxer::AddStream] Using codec libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10).
[VideoEncoder::PrepareStream] Using pixel format nv12.
[BaseEncoder::EncoderThread] Encoder thread started.
[Muxer::AddStream] Using codec pcm_s16le (PCM signed 16-bit little-endian).
[AudioEncoder::PrepareStream] Using sample format s16i.
[Muxer::Start] Error: Can't write header!
[BaseEncoder::EncoderThread] Encoder thread started.
[BaseEncoder::~BaseEncoder] Stopping encoder thread ...
[BaseEncoder::EncoderThread] Encoder thread stopped.
[BaseEncoder::~BaseEncoder] Stopping encoder thread ...
[BaseEncoder::EncoderThread] Encoder thread stopped.
[PageRecord::StartOutput] Error: Something went wrong during initialization.

そして何も記録されません...

以前はファイルの保存に問題がありましたが、ここでは別の問題があります。ファイルは保存されますが、ファイルは空で、ハードドライブはほとんど空です...

ビデオ コーデックは ogg と互換性があるはずです。少なくとも、警告は表示されません。

同じ構成の仮想マシンでもテストしましたが、同じエラーが発生します。

どうしたら正しく記録できるのか疑問です。

答え1

実際、ogg コンテナは Theora と Vorbis 以外のコーデックとは互換性がありません。非互換性の警告も表示されません。通常の MKV コンテナを使用すると機能します。

同じ問題を抱えている人は、MKV コンテナを使用すると問題が解決する可能性があります。

関連情報