
영상을 만들고 싶을 때 무압축 방식을 선호하는데 실패하는 것 같아요. 저는 우분투 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 컨테이너를 사용하면 문제가 해결될 수 있습니다.