Question / Help Please tell me theres a fix for this.

zeredis

New Member
So I spent the night recording with my friends, everything was setup, recorded for hours. I end it. hit stop recording...And boom. There it is. The file. Its got a huge size yet....Theres no duration.. i click to play it and theres nothing there... Pleaes tell me I can get that footage.
 

koala

Active Member
In this case, your recording isn't recoverable. It's gone. You only have a heap of scrap data.
Recoverable and recommended recording formats are flv and mkv. If you need mp4, you can remux flv and mkv to mp4 with File->Remux recordings.
 

zeredis

New Member
MKV Didn't record the audio when I played it in VLC just to make sure all went well, whats Remux recordings?
 

migf1

New Member
MOV has the same problems as MP4

Save to MKV and use the Remux Recordings function in OBS' file menu
However this doesn't work when you record pcm audio (FLV doesn't even record with pcm audio). Apparently, if you want to record with pcm audio and H.264 video, the only viable option is to record in .mov... you don't even have to remux... most (if not all) video editing programs will read your recording directly.

PS. Avidemux for example reads mkv but cannot remux to mp4 (i thought mp4 was supporting pcm audio).... it does remux in ts and avi, but then again most video editor programs do not accept them. I think they expect acc audio when video is H.264, unless you feed them .mov files. One thing I haven't tried yet, is trying to remux mkv to mov via ffmpeg.
 
Last edited:

migf1

New Member
Just gave a try to ffmpeg via the command line, and it worked :)
ffmpeg -i in.mkv -codec copy out.mov

in.mkv from OBS with h.264_nvenc (libx264):
Video: MPEG4 Video (H264) 1920x1080 30fps [V: h264 high L4.1, yuv420p, 1920x1080 [default]]
Audio: PCM 48000Hz stereo 1536kbps [A: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s [default]]

The remuxed out.mov was read successfully in Corel VideoStudio 2018 and in DaVinci Resolve 15

PS. Now I need to find a decent gui for ffmpeg.
 

migf1

New Member
MKV Didn't record the audio when I played it in VLC just to make sure all went well, whats Remux recordings?

Demuxing is when you extract the video and the audio stream from a container (like mkv, avi, mov, etc) and Remuxing is when you repack the video and the audio steram into a different container.
 

migf1

New Member
Ok, just got a gui too, called: FFmpegYAG (just in case anyone else need it).

From what I can tell, it's about a year old, it comes with its own ffmpeg (regular and Hi.. they recommend Hi) but it allows some command-line parameters, so it will probably also work with the current version of ffmpeg.

It successfully remuxed mkv to mov too with its own ffmepg (Hi). For remuxing, just select Copy as the codec for video and audio and hit the Encode button.

PS. @zeredis: if you record H264 video with aac audio, you don't need any of this. Just follow Harold's suggestion (record in mkv and then from within OBS remux to mp4).
 

migf1

New Member
Handbrake.fr
I don't think handbreak can de/remux at all (even if it can, which is not the case as far as I can tell, it seems to only support mkv and mp4 files).

For a current all-in-one converter, de/muxer, Xmedia Recode looks pretty cool (just tried it, it successfully remuxed h264/pcm mkv to mov). It uses its own copy of ffmpeg.

In the meantime, I found another ffmpeg front-end, called: SmartFFmepg. (last updated back in 2015 I think). However, it lets you have ffmpeg installed, and then simply set the path of the ffmpeg binary to SmartFFmpeg's options. I love this, cause combined with the ability to specify command-line options from within the gui, you can awlays stay current by just updating the ffmpeg.

For simple de/remuxing, you select COPY-STREAM for video and audio codec at the bottom, like so: http://prntscr.com/m27v5t (it worked like a charm for my mkv to mov remuxing test).

For more complex stuff, like for example when the source file contains multiple tracks, you can use the -map option of ffmpeg in that "Custom input options" field. It gives you complete freedom, but it does require digging in the ffmpeg docs for complex stuff.

I hope this will help more people than just myself for future recordings with OBS :)
 

zeredis

New Member
I really apologize for saying it like this and I feel really stupid for saying so, But I legitimately have no idea what that is, I saw remuxing but I dont exactly understand it. All I know how to do is set something up and record. The whole many formats is really new to me, I apologize. I did do a recording yesterday in .mov, and it did come out, and while my and my other friends audio doesnt appear in the VLC media, it appears in Sony Vegas.
 

DEDRICK

Member
Muxing is the act of taking multiple streams of data (Video, Audio, Subtitles) and combining them into a container (MP4, MKV, MOV, FLV)

Remuxing is the act of changing the container the streams are in, so changing from MKV to MP4
Demuxing is the act of separating the streams from their container for decoding.

MP4 and MOV require a clean ending to the recording so they can complete the process, MKV and FLV can be ended abruptly without issue, you can even watch them as they are being written.

If your recording does not end cleanly when recording as MP4 your file will be unusable, as you have learned. So record in MKV then use the OBS/File/Remux Recordings to change them into MP4 files
 

koala

Active Member
You also don't need any external remux app like Handbrake. You can use the remux feature of OBS to remux from everything to everything. You are not limited to *.mp4 as destination. Manually change the extension to mov and it will create a real mov file (and not a mp4 file with a mov extension as one might think).
OBS File->Remux recordings
So record as mkv and remux to mov if you absolutely must.

If you get an error with this remux, then the destination container format doesn't support one of the codecs used in the source destination container. It will also fail, if the source container has multiple audio tracks and the destination container format doesn't support multiple audio tracks. But in this case every remuxer will fail, because it's an incompatibility among the container formats. You have to recode the video in this case, but recoding is a loss of quality, because the data is decoded and again encoded. Remuxing is no loss of quality, because the compressed data isn't decoded and re-encoded.
 

migf1

New Member
... You are not limited to *.mp4 as destination. Manually change the extension to mov and it will create a real mov file (and not a mp4 file with a mov extension as one might think).
...
This is a great piece of not obvious information, which saves us time! Thank you!

An external remuxer would only be needed then for batch remuxing (useful if recording is done in chunks).

@zeredis: No need to apologize my friend, I totally feel for you!

No-one really wants to add a remuxing step in their workflow if they can avoid it. However, in order not to risk irreparable issues like the one you experienced, I think you should seriously consider recording to MKV and then remuxing to something acceptable by Vegas.

I think DEDRICK did a better job in explaining de/remuxing than I did, but I'll try again and if you still don't understand it please feel free to ask for more details.

At its simplest form a media file contains video and audio streams. These streams live inside your recorded file, which is actually a media container, with a file extension MKV, MP4, MOV, etc (they are more commonly refered to as video containers, despite them also containing other types of streams, such as audio, subtitles, etc).

Different containers have different requirements about what type & amount of streams they can hold. Here is a comprehensive list on wikipedia with video and audio requirements for the most commonly used video containers now and in the past: https://en.wikipedia.org/wiki/Comparison_of_video_container_formats

For example, the FLV format cannot hold a video stream encoded in H.265. As another example, DIVX cannot hold a video stream encoded in H.264 as it cannot hold an audio stream encoded in AAC, and so on.

MKV is the most flexible container, not only being able to wrap virtually anything but also not needing to "finalize" the wrapping process. This makes it ideal for recording, but most video-editing programs do not support it. Hence the need to convert it to whatever other format the video-editing program supports.

Simply put, remuxing is converting your file from one format to another. However, it does NOT touch the enclosed video and audio streams. It rather attempts to simply copy them into a container you tell it. Problems may arise if the destination container is not capable of holding video and/or audio streams with the specs of those in the source container. For example, if you have recorded an MKV file using H.265 encoding for the video stream, and ACC encoding for the audio stream, trying to remux it into an FLV file will fail, casue FLV cannot hold H.265 video streams.

On the plus side, if remuxing succeeds then the new file has the exact video and audio quality of the original. Also the remuxing is done in just a few seconds, since all it does is wrapping up.

Now, for the above example, if instead of remuxing from MKV to FLV you opt for a re-encoding, then you have to tell your software to actually re-encode the video stream from H.265 to a video encoding supported by FLV (say H.264). Same for the audio, but in this example we assumed AAC audio, and FLV supports that... so you tell your software to simply copy the audio from the MKV file, and re-encode the video to H.264, then wrap it along with the audio as an FLV container. This will take a lot more time than simply remuxing, due to the re-encoding of the video stream. Also, any kind of lossy re-encoding will degrade the original quality.

That's one of the reasons why one should pay attention to what video & audio encoding the recording is done, and in what container.

I hope this helps you to better understand what your options are.
 
Last edited:
Top