Hey everyone, I’ve been trying to export a video in ogv format, but fails every time. I dug around the forum and tried suggested solutions, like:
- setting B frames to 0
- untick preview scaling / parallel processing
- untick use hardware decoder
But no matter what I do, export fails.
Any tips?
[h264 @ 0x12c11fa00] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x12c330510] Reinit context to 1920x1088, pix_fmt: yuv420p
[AVIOContext @ 0x12c116690] Statistics: 98565 bytes read, 3 seeks
[chain avformat-novalidate] /Users/z/Desktop/Tomb Raider - FMV 01 - Logo (PSX) (1080p_30fps_H264-128kbit_AAC)_3_thf4.mkv
checking VFR: pkt.duration 33
[h264 @ 0x12c3309d0] Reinit context to 1920x1088, pix_fmt: yuv420p
[ogv @ 0x12c11a530] Unsupported codec id in stream 1
[consumer avformat] Could not write header ‘/Users/z/Movies/code design.ogv’
[aac @ 0x12c11b1e0] Qavg: nan
[AVIOContext @ 0x12c117c20] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[AVIOContext @ 0x12c32fc10] Statistics: 426245 bytes read, 3 seeks
Failed with exit code 1
Your combination of .ogv + x264 is not supported:
The OGV format typically uses the Theora video codec and Vorbis audio codec, while x264 is a specific codec primarily used within the MP4 and MKV containers. To use x264 in an OGV file, you’d need to transcode the video to Theora, as OGV is a container format that doesn’t natively support x264
If you really need .ogv, use the Theora video codec as recommended by this snippet.
Can you recommend a conversion method, which doesn’t result in some sort of quality loss? I have Handbrake installed.
You do not need an extra conversion, you just need to change from libx264 to libtheora in the codec panel. After changing this you should be able to export without failing.
Also, you need to disable audio if you really want to use .ogv (check the option in the Audio tab, next to Codec).
Do you have any specific reason to use .ogv? This is very restricting for your options and if you need just a simple video file to play on phone/laptop you should use the default .mp4 preset.
Prefer WebM over Ogg Theora if you want to use Free codecs unless I guess you are targeting something very specific still stuck on Theora. There are 3 different WebM presets with AV1 the newest and heaviest of all codecs in Shotuct. Plain old WebM preset uses the VP8 video codec, which is old, fast, and least efficient (no, I am not talking about me ;-). VP9 is in between the 2, very efficient, a little slow to encode but worth a try.
Thanks for the interest guys!
The reason I need to use .ogv is that one of my source files is that. I combine it with an .mp4 one, and the final video needs to be in .ogv again, so the game engine can handle it (because it’s a mod for a video game).