SimpleScreenRecorder 錯誤:“無法寫入標題!”

SimpleScreenRecorder 錯誤:“無法寫入標題!”

當我想製作影片時,我更喜歡使用未壓縮的方法,但似乎失敗了。我使用的是 Ubuntu 18.04.3 LTS

這是我正在使用的:

  • 蛋容器
  • 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 容器可能會解決這個問題。

相關內容