logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Andrew  
#1 Posted : Sunday, March 15, 2020 10:38:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Registered
Joined: 6/26/2011(UTC)
Posts: 30
Location: London

Was thanked: 8 time(s) in 4 post(s)
I made a foolish last minute decision to try the vmix codec without proper testing, and now I have 2 very broken recordings!

vMix video codec, 1920x1080, 29.97, MKV.
3 & half hour recording.
Main output, and a clean without overlays.

When I try to play the files, any video player just locks up. A look in task manager shows the player reading the drive at 500MB/s so it's trying to open it. Premiere behaves similarly.

If I open the recording as an input in vMix, it takes a long time but will eventually open it. It's very temperamental, trying to skip along it just freezes and there is no audio for some reason, but as far as I can tell it will actually play it.

Taking a look in ffmpeg:

Quote:
[matroska,webm @ 0000021bb9a28a00] Unknown/unsupported AVCodecID V_MS/VFW/FOURCC.
[matroska,webm @ 0000021bb9a28a00] Could not find codec parameters for stream 0 (Video: none (VMX1 / 0x31584D56), none, 1920x1080): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, matroska,webm, from 'Chessboxing Tx Clean - 14 March 2020 - 06-52-53 PM - Output 2.mkv':
Metadata:
encoder : DirectShow Matroska Muxer
creation_time : 2020-03-14T19:52:53.000000Z
Duration: 03:28:20.57, start: 0.000000, bitrate: 128071 kb/s
Stream #0:0(eng): Video: none (VMX1 / 0x31584D56), none, 1920x1080, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)
Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)


Frame rate is correct here at 29.97, although I have little understanding of what tbn and tbc are, 1k seems to be normal.
Audio track is present.

To try and fix the file I just did a -vcodec copy -acodec copy
Inspecting the result, it's now 59.94fps!

Quote:
[avi @ 000001928f798940] Could not find codec parameters for stream 0 (Video: none (VMX1 / 0x31584D56), none, 1920x1080, 137372 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'fix1.avi':
Metadata:
encoder : Lavf58.39.101
Duration: 00:15:40.24, start: 0.000000, bitrate: 138918 kb/s
Stream #0:0: Video: none (VMX1 / 0x31584D56), none, 1920x1080, 137372 kb/s, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s


Of course this file plays back fast, but the audio is now working, and not fast, strange.
Stuck it in Premiere and tried to simply half it's frame rate... Premiere won't even play the file, just gets stuck flicking back and forth between the first 2 frames.

Don't think I'll be using vmix codec again!

This is not the end of the world, I was running an external recorder on the main output as a backup, and I'm thinking I could just let vmix play out the clean file in real time while I record it! But I imagine that will come with it's own problems of sync drift etc.

If anyone can help me rescue these files properly, I would be most grateful.
admin  
#2 Posted : Monday, March 16, 2020 1:32:41 AM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,208
Man
Location: Gold Coast, Australia

Was thanked: 4290 time(s) in 1520 post(s)
Hi,

This is due to the vMix Video Codec requiring the "vMix AVI" recording option, as it does not support MKV.
So recording using that option would have resulted in usable files.

That said you can still partially convert these files back to AVI with the correct frame rate, by adding the -r 29.97 option to FFMPEG.
For example:

ffmpeg.exe -i "broken.mkv" -r 29.97 -vcodec copy -acodec copy "output.avi"

However you will still not have the ability to seek this file, so while dropping it into Adobe Media Encoder should work to convert it
it will not work correctly on the timeline.

Hope this helps.

Regards,

Martin
vMix
Andrew  
#3 Posted : Monday, March 16, 2020 2:42:55 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Registered
Joined: 6/26/2011(UTC)
Posts: 30
Location: London

Was thanked: 8 time(s) in 4 post(s)
Hi Martin,

Thank you for the fast reply!

Ahhaa I did try using -r this morning but because it wouldn't load properly into players I just assumed it failed and deleted it.

I'm running it through ffmpeg again now and will just slap it into media encoder without trying to play it, fingers crossed!

Perhaps it would be good to remove MKV as an option for vmix codec in the recording settings for the next update.

I experienced another issue with recording last night, which I'll pop in a fresh post for clarity.

Cheers
Andrew


Andrew  
#4 Posted : Monday, March 16, 2020 12:31:37 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Registered
Joined: 6/26/2011(UTC)
Posts: 30
Location: London

Was thanked: 8 time(s) in 4 post(s)
This has worked perfectly, thank you again!
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.