4 ms·
There's a whole lot of additional subtlety to > my contacts who might be on devices that do not support playing AVI files, so I decided to convert this to MP4
by akx 7y ago
There's a whole lot of additional subtlety to
> my contacts who might be on devices that do not support playing AVI files, so I decided to convert this to MP4 format
– a file being an AVI tells you practically nothing about the actual codecs and streams contained within, and the same stands for MP4.
It seems DOSbox writes AVI files that contain video encoded in its own ZMBV codec (see https://wiki.multimedia.cx/index.php/DosBox_Capture_Codec); https://wiki.multimedia.cx/index.php/DosBox_Capture_Codec); even if OP's contacts had devices that could play AVIs, it's likely they couldn't play that AVI anyway...
Input #0, avi, from 'dosbox_000.avi':
Duration: 00:00:03.64, start: 0.000000, bitrate: 1532 kb/s
Stream #0:0: Video: zmbv (ZMBV / 0x56424D5A), pal8, 640x400, 98 kb/s, 70.09 fps, 70.09 tbr, 70.09 tbn, 70.09 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
- molticrystal 7y agoAt the time of me writing this, you missed a space between the ");" and the url for the dosbox codec. For people on mobile/lazy: https://wiki.multimedia.cx/index.php/DosBox_Capture_Codec https://wiki.multimedia.cx/index.php/DosBox_Capture_Codec ----- For those interested in an even deeper dive: Decoder: https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/zmbv.c https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/zmbv... Encoder: https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/zmbvenc.c https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/zmbv... This implementation was written almost immediately after dosbox added the codec.
- mkesper 7y agoHow hard would it be to let dosbox emit a newer container format? I remember AVI being quite bad re overhead.
- tracker1 7y agoIs it the write overhead and/or read overhead... I don't know in this case, but it can really vary. Also, depending on the hardware and what's running inside dosbox, most current hardware for at least half a decade should be able to keep up fine. More so on SSD.
- akx 7y agoI think AVI is being used because it's apparently _very_ easy to write a valid AVI file without extra libraries: https://github.com/svn2github/dosbox/blob/acd380bcde72db74f3b476253899016f686bc0ef/src/hardware/hardware.cpp#L132 https://github.com/svn2github/dosbox/blob/acd380bcde72db74f3...
- naikrovek 7y agoOld image and video formats are great if you want something quick and dirty.
- akx 7y agoAh, sorry about that. Seems I also missed the window for editing my post. Thanks for the correct link!