Jump to content

MKV to MP4 conversions missing 1/3 of video

AdvocateOfNyx

Hey, I'm not 100% sure if this is the right place to post this so if this is wrong I apologize.

 

Essentially, I was recording a podcast in OBS and 30 minutes in the video crashed and I got an encoder error.  No big deal because I was recording in MKV so the entire video saved.  I switched the encoder and recorded the other half an hour of the podcast.  However, I can't use MKV files in Premiere, so I converted them to mp4 files in VLC.  Unfortunately, the first half of the video was missing the last 10 minutes of video and audio capture.  I tried again in XMedia Recode, but they both have the exact same cutoff - 21:07 - when they should keep going until 30:11.

 

Anyone have any idea how to fix this?  I can't import the raw MKV file into Premiere and it seems like the converters can't access the last 10 minutes even though I can play it back on my computer locally just fine.  The only idea I can think of is to capture my VLC in OBS and re-record the video as I play it back, but I'm not sure if that's a good option.

-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-

Link to comment
Share on other sites

Link to post
Share on other sites

Try encoding with Handbrake?  

 

Does the mkv fully play past 21:07?  

Link to comment
Share on other sites

Link to post
Share on other sites

46 minutes ago, tkitch said:

Try encoding with Handbrake?  

 

Does the mkv fully play past 21:07?  

I tried Handbrake as soon as I posted here because I remembered that's what I used to use and it had the exact same issue, stopped at 21:07.

 

Yeah, the original MKV plays all the way through with no issues in VLC.

-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-

Link to comment
Share on other sites

Link to post
Share on other sites

Get mediainfo and see what it says.

 

Another tool I use is MKVToolnix which can be used to edit MKV files and add or extract the video/audio/subtitle tracks. There could be some flag set to end playback at 21:07 even though the tracks are longer. Extracting the tracks and recombining them into a fresh MKV or MP4 or whatever might work.

BabyBlu (Primary): 

  • CPU: Intel Core i9 9900K @ up to 5.3GHz, 5.0GHz all-core, delidded
  • Motherboard: Asus Maximus XI Hero
  • RAM: G.Skill Trident Z RGB 4x8GB DDR4-3200 @ 4000MHz 16-18-18-34
  • GPU: MSI RTX 2080 Sea Hawk EK X, 2070MHz core, 8000MHz mem
  • Case: Phanteks Evolv X
  • Storage: XPG SX8200 Pro 2TB, 3x ADATASU800 1TB (RAID 0), Samsung 970 EVO Plus 500GB
  • PSU: Corsair HX1000i
  • Display: MSI MPG341CQR 34" 3440x1440 144Hz Freesync, Dell S2417DG 24" 2560x1440 165Hz Gsync
  • Cooling: Custom water loop (CPU & GPU), Radiators: 1x140mm(Back), 1x280mm(Top), 1x420mm(Front)
  • Keyboard: Corsair Strafe RGB (Cherry MX Brown)
  • Mouse: MasterMouse MM710
  • Headset: Corsair Void Pro RGB
  • OS: Windows 10 Pro

Roxanne (Wife Build):

  • CPU: Intel Core i7 4790K @ up to 5.0GHz, 4.8Ghz all-core, relidded w/ LM
  • Motherboard: Asus Z97A
  • RAM: G.Skill Sniper 4x8GB DDR3-2400 @ 10-12-12-24
  • GPU: EVGA GTX 1080 FTW2 w/ LM
  • Case: Corsair Vengeance C70, w/ Custom Side-Panel Window
  • Storage: Samsung 850 EVO 250GB, Samsung 860 EVO 1TB, Silicon Power A80 2TB NVME
  • PSU: Corsair AX760
  • Display: Samsung C27JG56 27" 2560x1440 144Hz Freesync
  • Cooling: Corsair H115i RGB
  • Keyboard: GMMK TKL(Kailh Box White)
  • Mouse: Glorious Model O-
  • Headset: SteelSeries Arctis 7
  • OS: Windows 10 Pro

BigBox (HTPC):

  • CPU: Ryzen 5800X3D
  • Motherboard: Gigabyte B550i Aorus Pro AX
  • RAM: Corsair Vengeance LPX 2x8GB DDR4-3600 @ 3600MHz 14-14-14-28
  • GPU: MSI RTX 3080 Ventus 3X Plus OC, de-shrouded, LM TIM, replaced mem therm pads
  • Case: Fractal Design Node 202
  • Storage: SP A80 1TB, WD Black SN770 2TB
  • PSU: Corsair SF600 Gold w/ NF-A9x14
  • Display: Samsung QN90A 65" (QLED, 4K, 120Hz, HDR, VRR)
  • Cooling: Thermalright AXP-100 Copper w/ NF-A12x15
  • Keyboard/Mouse: Rii i4
  • Controllers: 4X Xbox One & 2X N64 (with USB)
  • Sound: Denon AVR S760H with 5.1.2 Atmos setup.
  • OS: Windows 10 Pro

Harmonic (NAS/Game/Plex/Other Server):

  • CPU: Intel Core i7 6700
  • Motherboard: ASRock FATAL1TY H270M
  • RAM: 64GB DDR4-2133
  • GPU: Intel HD Graphics 530
  • Case: Fractal Design Define 7
  • HDD: 3X Seagate Exos X16 14TB in RAID 5
  • SSD: Inland Premium 512GB NVME, Sabrent 1TB NVME
  • Optical: BDXL WH14NS40 flashed to WH16NS60
  • PSU: Corsair CX450
  • Display: None
  • Cooling: Noctua NH-U14S
  • Keyboard/Mouse: None
  • OS: Windows 10 Pro

NAS:

  • Synology DS216J
  • 2x8TB WD Red NAS HDDs in RAID 1. 8TB usable space
Link to comment
Share on other sites

Link to post
Share on other sites

28 minutes ago, Hairless Monkey Boy said:

Get mediainfo and see what it says.

 

Another tool I use is MKVToolnix which can be used to edit MKV files and add or extract the video/audio/subtitle tracks. There could be some flag set to end playback at 21:07 even though the tracks are longer. Extracting the tracks and recombining them into a fresh MKV or MP4 or whatever might work.

Okay, I got Mediainfo downloaded and ran it through.  Will also give MKVToolnix a try.  I'm not 100% sure how to read what it's telling me, but the duration of the video is correctly labeled at 30 minutes.  Here is the log file:

 

Edit - When I extracted the video and audio with gMKV, the audio played fine but the video would not open.  The icon for the file was a blank white icon.  I thought this could be because I haven't purchased the $0.99 HEVC extension for Windows, but VLC has the HEVC plugin installed and it still won't open.

General
Unique ID                                : 164121945552547912098465822792757741662 (0x7B78BCA8903F3CEFBEE47FCF5BE3085E)
Complete name                            : D:\Podcast Episode 1\2023-01-08 22-50-05.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 2.15 GiB
Duration                                 : 30 min 11 s
Overall bit rate                         : 10.2 Mb/s
Writing application                      : Lavf59.27.100
Writing library                          : Lavf59.27.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L6.2@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 30 min 11 s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Default                                  : No
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : A_AAC-2
Duration                                 : 30 min 11 s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Title                                    : Track1
Default                                  : No
Forced                                   : No

 

-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-

Link to comment
Share on other sites

Link to post
Share on other sites

29 minutes ago, Hairless Monkey Boy said:

Get mediainfo and see what it says.

 

Another tool I use is MKVToolnix which can be used to edit MKV files and add or extract the video/audio/subtitle tracks. There could be some flag set to end playback at 21:07 even though the tracks are longer. Extracting the tracks and recombining them into a fresh MKV or MP4 or whatever might work.

Decided to start a new comment because my old one was getting kinda crowded.  I went through the MKVToolnix logs and found an error, so I will put that here too.

 

[2023-01-09][14:39:44] #GUI#progress 68%
[2023-01-09][14:39:44] #GUI#progress 69%
[2023-01-09][14:39:44] #GUI#warning D:\Podcast Episode 1\2023-01-08 22-50-05.mkv: Error in the Matroska file structure at position 1612075931. Resyncing to the next level 1 element.
[2023-01-09][14:39:44] #GUI#warning The last timestamp processed before the error was encountered was 00:21:07.667000000.
[2023-01-09][14:39:54] #GUI#warning Still resyncing at position 2168964457.
[2023-01-09][14:39:57] #GUI#warning Resync failed: no valid Matroska level 1 element found.
[2023-01-09][14:39:57] #GUI#progress 100%
[2023-01-09][14:39:57] Exit code: 1

 

-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×