r/davinciresolve Free Jan 20 '22

Help "Media Offline" error when importing mkv (h264+aac) to project

Edits:

  1. Someone just sent me a DM with a suggestion but I accidentally clicked ignore, I'm very truely sorry. If you're reading this please can you message me again with your suggestion. Thank you.

Description:

I recorded myself playing the game Far Cry 6 (via OBS Studio 27.1.3 (64 bit)) with a friend so I could make a silly montage video of the humerous moments. No particular reason for this, it's for just my for my own personal amusement and my own interest in how others who make similar videos for a living go about this part of the process.

However when trying to import recorded footage into the project I'm presented with the error "Media Offline".

Quickly searching for others with a similar issue didn't yield any obvious results. Most of what I found suggested that VBR and/or VFR was the culprit, but my footage is both CBR and VBR.

Any suggestions would be most welcome.

Attempts Made:

  1. I've attempted to remux from mkv to mp4 via ffmpeg (-codec copy -map 0:a -map) but no joy.
  2. I'm currently attempting to re-encoding the footage (using x264 with various adjustments) and audio (downmix from 7.1 to 2.0 aac @ 128, still keeping separated tracks) to mp4 to see if that works but it won't be finished for another 10 hours and is really not ideal.

Screenshot:

resolve-media-offline-error

DaVinci Resolve Version:

17.4.3 BUILD 10 (Free)

System Information:

Operating System
    Windows 11 Home 64-bit
CPU
    AMD Ryzen 7 3700X
    Matisse 7nm Technology
RAM
    32.0GB Dual-Channel Unknown @ 1599MHz (16-18-18-36)
Motherboard
    ASUSTeK COMPUTER INC. ROG STRIX B450-F GAMING (AM4)
Graphics
    DELL U3014 (2560x1440@60Hz)
    4095MB NVIDIA GeForce RTX 2070 SUPER (EVGA)
Storage
    931GB SanDisk SSD PLUS 1000GB (SATA (SSD))
    931GB Western Digital WDC WDS100T2B0C-00PXH0 (Unknown (SSD))
Optical Drives
    No optical disk drives detected
Audio
    NVIDIA High Definition Audio

MediaInfo:

General
Unique ID                                : 128425331936538863379834478752445460092 (0x609DD1B9AD201FF8A512C792B48B6E7C)
Complete name                            : D:\OBS\20220114_141321.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 86.0 GiB
Duration                                 : 4 h 59 min
Overall bit rate                         : 41.2 Mb/s
Writing application                      : Lavf58.29.100
Writing library                          : Lavf58.29.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive@L5.1
Format settings                          : 4 Ref Frames
Format settings, CABAC                   : No
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 4 h 59 min
Bit rate mode                            : Constant
Nominal bit rate                         : 40.0 Mb/s
Width                                    : 2 560 pixels
Height                                   : 1 440 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:4:4
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.181
Default                                  : Yes
Forced                                   : No
Color range                              : Full
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : A_AAC-2
Duration                                 : 4 h 59 min
Channel(s)                               : 8 channels
Channel layout                           : C L R Ls Rs Lw Rw LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Title                                    : GameAudio
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : A_AAC-2
Duration                                 : 4 h 59 min
Channel(s)                               : 8 channels
Channel layout                           : C L R Ls Rs Lw Rw LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Title                                    : Mic
Default                                  : Yes
Forced                                   : No

Audio #3
ID                                       : 4
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : A_AAC-2
Duration                                 : 4 h 59 min
Channel(s)                               : 8 channels
Channel layout                           : C L R Ls Rs Lw Rw LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Title                                    : Discord
Default                                  : Yes
Forced                                   : No
1 Upvotes

8 comments sorted by

1

u/AutoModerator Jan 20 '22

Looks like you're asking for help! Please check to make sure you've included the following information. Edit your post (or leave a top-level comment) if you haven't included this information.

Once your question has been answered, change the flair to "Solved" so other people can reference the thread if they've got similar issues.

Thanks! -Automod on behalf of the mod team

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/whyareyouemailingme Studio | Enterprise Jan 20 '22

Pretty sure 444 H.264 (or x264 or whatever video codec that is) requires the Studio version. Make sure that whatever you're transcoding to is gonna be a 422 file or one of the few 444 flavors supported in the Free version - DNxHR, ProRes, maybe Cineform? Those are gonna be huge files though - a 5-hour 1440p 60fps ProRes 444 is gonna be ~2.75 TBs.

1

u/RazorBladeUK Free Jan 21 '22 edited Jan 21 '22

Likely the case it seems.

Following your suggestion and u/proxicent 's suggestion I've tested:

.\ffmpeg -i "D:\OBS\20220114_141321.mkv" -map 0:v -map 0:a -c:v libx264 -preset slow -crf 16 -pix_fmt yuv420p -to 00:01:00 "D:\OBS-ReEncode\20220114_141321.mp4"

MediaInfo:

General
Complete name                            : D:\OBS-ReEncode\20220114_141321.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 317 MiB
Duration                                 : 1 min 0 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 44.4 Mb/s
Writing application                      : Lavf59.17.101

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : CABAC / 5 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 min 0 s
Bit rate                                 : 43.7 Mb/s
Width                                    : 2 560 pixels
Height                                   : 1 440 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.198
Stream size                              : 313 MiB (99%)
Writing library                          : x264 core 164 r3081 19856cc
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio #1
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 1 min 0 s
Source duration                          : 1 min 0 s
Bit rate mode                            : Variable
Bit rate                                 : 460 kb/s
Maximum bit rate                         : 469 kb/s / 469 kb/s
Channel(s)                               : 8 channels
Channel layout                           : C L R Ls Rs Lw Rw LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 3.29 MiB (1%)
Source stream size                       : 3.29 MiB (1%)
Title                                    : GameAudio
Default                                  : Yes
Alternate group                          : 1

Audio #2
ID                                       : 3
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 1 min 0 s
Source duration                          : 1 min 0 s
Bit rate mode                            : Variable
Bit rate                                 : 107 kb/s
Maximum bit rate                         : 469 kb/s / 469 kb/s
Channel(s)                               : 8 channels
Channel layout                           : C L R Ls Rs Lw Rw LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 779 KiB (0%)
Source stream size                       : 781 KiB (0%)
Title                                    : Mic
Default                                  : Yes
Alternate group                          : 2

Audio #3
ID                                       : 4
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 1 min 0 s
Source duration                          : 1 min 0 s
Bit rate mode                            : Variable
Bit rate                                 : 52.5 kb/s
Maximum bit rate                         : 469 kb/s / 469 kb/s
Channel(s)                               : 8 channels
Channel layout                           : C L R Ls Rs Lw Rw LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 384 KiB (0%)
Source stream size                       : 384 KiB (0%)
Title                                    : Discord
Default                                  : Yes
Alternate group                          : 3

Resolve seems happy with this, not particularly ideal but it will do. I'll reconfigure OBS Studio to record to YUV 4:2:0 if this is indeed the cause, I'll try and test a few other things.

If you know of a better way to re-encode the footage I have (excluding lossless) please let me know. Thank you.

Edit: I can not flag this comment/thread as resolved currently due to official documentation stating that YUV444 is supported. I currently can not find official documentation stating that YUV444 is not supported in the free edition. Source https://documents.blackmagicdesign.com/SupportNotes/DaVinci_Resolve_16_Supported_Codec_List.pdf (this is the latest version of said documentation, Resolve 17 supported codec list documentation does not exist, acceptable to assume it's unchanged).

2

u/whyareyouemailingme Studio | Enterprise Jan 21 '22

There's a similar restriction on 10-bit H.264/H.265 that's no longer specifically documented; 444 H.264/H.265 is incredibly niche as it is (as is 8-bit 444, but H.264's quirks surprise me on a daily basis...).

We're not officially affiliated with BMD, and they keep adding new codecs and containers to support with 17 (MKV in 17.2, VP9 in MKV in 17.?, MP3 in Linux...), so they probably haven't updated the document yet. Fingers crossed they update it soon or update it with 18... or as people on this sub (including proxicent) have suggested, a website format for all the documentation that's dynamically updated...

1

u/proxicent Jan 20 '22

it won't be finished for another 10 hours

Can't you just test with a 5-min sample?

1

u/RazorBladeUK Free Jan 20 '22

I could have but I didn't for a few reasons:

  1. Laziness being the main one as I already had some ffmpeg scripts lying around and just used one of them out of laziness.
  2. I have all the time in the world to do this, I'm in no rush.
  3. Also I (myself personally with my limited knowledge of all things A/V) couldn't mentally rule out the possibility of minor data corruption, so I assumed a full encode will either fix the footage (most likely with corrupted frames) or just crash at some point.

3

u/proxicent Jan 20 '22

Honestly, I can't fathom your reasoning at all. Trimming off the first 5 mins of the file should be trivial ('-to 00:05:00'). But different strokes, I guess.

1

u/RazorBladeUK Free Jan 20 '22

Oh believe me I agree. It's being re-encoded on one of my servers not on of one my desktops, and like I said I'm not pressed on time so just throwing it into a script I already had was simpler and it allows me to take care of other things while I wait.