Bug Report OBS Remuxer creates improper .mp4 containers unusable by editing programs

CJacobsSA

New Member
I'm not sure where to post about this because it's an issue with the program itself, not really a tech support thing. This is the best spot I've found, so here goes.

OBS suggests that you capture your recordings with a file format such as .mkv or .flv, in case the program crashes or is unable to process the video- this way it will still be usable if that happens. I've had .mp4 recordings get lost by OBS crashes before, so I do this because it's better to be safe than sorry. .mkv and .flv files are not usable in editing programs like Sony Vegas or Adobe Premiere, so they must first be re-encoded/remuxed to .mp4 or a similar streamable video file format.

OBS offers the option to do this for you and it's very convenient, but for several months now (maybe even years) the remuxing process goes wrong somewhere in the middle and it creates a file with an improper .mp4 container. For some reason, the .mp4 file it creates is incompatible with GPU-accelerated video processing. NVEC, HEVC, and CUDA do not work with the .mp4 files created by OBS and it's been this way across multiple computers, multiple installs of OBS in different environments. There are several threads on the forums about this. This problem can currently be solved by disabling GPU acceleration and rendering using CPU only, but that leads to this:

5QpbFr6.png


This video would take less than an hour to render if I were able to use GPU-accelerated rendering, but the file is broken so I cannot. I tried it in both Sony Vegas and Adobe Premiere and ran into the same problem. If I take the source .mkv file and convert it to .mp4 on my own using Handbrake or FFMPEG, it's a much slower process than OBS' own remuxing but this problem does not occur. I'm not really much of a behind-the-scenes guy so I don't know what specifically is causing it, but something about the remuxing process has been broken for a very long time. I would like to see it fixed.
 

CJacobsSA

New Member
Here's the log file from the specific recording referenced in the OP (the one I screenshotted).
 

Attachments

  • 2018-11-26 03-19-55.txt
    13.4 KB · Views: 22

R1CH

Forum Admin
Developer
Are you sure you're only converting the container format when you use ffmpeg / handbrake? The fact it's so slow means you're probably re-encoding the video too which explains the difference. If you use the same encoder settings in OBS to begin with, you'll likely end up with the same result.
 

CJacobsSA

New Member
I probably was re-encoding the video. I'll try using XMedia Recode to 1:1 remux it to .mp4, same as OBS.

mEO47wu.png


When this finishes I'll drop it into my editing program by doing a straight-up file replacement to keep the surrounding environment the same, and see what happens.
 
Last edited:

CJacobsSA

New Member
Alright, just an update.

u0MW3Ps.png


It froze like this, twice, at 99%. I tried the same in VLC- a 1:1 conversion to .mp4, no re-encode, and got the same result. So it seems that it's actually not the fault of the OBS remuxer (in fact it's the only one that has converted the file successfully!) but whatever is creating .mkv files. I guess the next step is to try making another .mkv and see if I can recreate this scenario.
 
Top