Can't Import MP4 Files from Quest 3 Vegas Pro 21

The_Red_Dragon wrote on 11/9/2023, 8:04 PM

Here is the details for the codec from VLC. When I try to import into Vegas 21 Build 187 it says file could not be open.

Was recorded on Quest 3 VR Headset and I just opened with PC and moved files over to my PC before trying to import them on Vegas. The files open fine in video players on the PC.

Operating System
  Platform: Windows 11.0 (64-bit)
  Version: 10.00.22621
Processor
  Class: AMD Ryzen 7 5800X3D 8-Core Processor - Nvidia 4090 GPU
  Identifier: AuthenticAMD
  Number of processors: 16
  MMX available: Yes
  SSE available: Yes
  SSE2 available: Yes
  SSE3 available: Yes
  SSSE3 available: Yes
  SSE4.1 available: Yes
  SSE4.2 available: Yes

Memory
  Physical memory: 32,678.7 MB
  Paging memory available: 37,542.8 MB

Comments

Former user wrote on 11/9/2023, 9:45 PM

@The_Red_Dragon Hi, to my untrained eye that looks like a normal file although it's interesting that your Stream 0 & Stream 1 are the other way around to a random file i put in VLC player 🤷‍♂️

If you don't have this there's an App called MediaInfo, download it, it's free & a fast download with no added adverts or any of that rubbish. https://mediaarea.net/en/MediaInfo
After downloading, right click on the media file in your Windows folder, open MediaInfo, choose Text from the options at the top, Copy & paste the information in a new comment on here 👍

Like this

You could also if you want share a sample file on a file sharing site like Google Drive -

  1. Open Google, top right is a sq of dots - Open Google Drive.
  2. Drag that video onto the Google Drive window, let it upload.
  3. Right click on the file on screen - Share.
  4. A window will pop up, General Access - choose anyone with the link - Copy link.
  5. Then on here in a new comment at the top there's a chain button, paste the link on there,
  6. Click Comment

 

The_Red_Dragon wrote on 11/10/2023, 11:33 AM

Hi, thanks for your response. Here is the text from media info

General
Complete name                            : C:\Users\Desktop\Supernatural\in.with.flow.Swords-20231108-184407.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : iso5 (iso6/mp41/dash)
File size                                : 23.4 MiB
Duration                                 : 41 s 932 ms
Overall bit rate                         : 4 680 kb/s
Frame rate                               : 30.000 FPS
Writing application                      : Lavf56.40.101

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 41 s 932 ms
Bit rate                                 : 4 611 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 30.000 FPS
Minimum frame rate                       : 17.419 FPS
Maximum frame rate                       : 87.184 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.074
Stream size                              : 23.0 MiB (99%)
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.601
Matrix coefficients                      : BT.470 System B/G
Codec configuration box                  : avcC

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 41 s 656 ms
Bit rate                                 : 64.1 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 326 KiB (1%)
Default                                  : Yes
Alternate group                          : 1
 

Howard-Vigorita wrote on 11/10/2023, 11:59 AM

The footage is VFR which gives Vegas trouble. Vegas seems to handle small ranges OK, but I've never seen a range that big before, not to mention one that more than doubles the frame rate in spots:

Frame rate                               : 30.000 FPS
Minimum frame rate                       : 17.419 FPS
Maximum frame rate                       : 87.184 FPS

Suggest you capture the screen some other way. I would give OBS Studio a try with the ffmpeg encoding option... see if it can see your headset as a display on it. You might check the OBS forum about that.

VEGASDerek wrote on 11/10/2023, 12:13 PM

Thank you for the report and the sample file. I have forwarded this to our File I/O team to examine.

Robert Johnston wrote on 11/10/2023, 1:50 PM

@The_Red_Dragon @Howard-Vigorita @Former user @VEGASDerek

I was able to do a Quick Fix with VideoRedo Suite 6. That allowed Vegas 21 to import the file. It played back okay. Not sure how a longer video will play back. The first GOP is 142 frames (more or less). Try to limit GOP to 30 frames.

You can also fix the file with Shutter Encoder by rewrapping it. Choose Rewrap to .mp4. That took about 1/10th of a second.

Here is the command line I used for processing it through ffmpeg: (actually used MyFFMpeg).

"ffmpeg.exe"  -probesize 50M -analyzeduration 100M -i "D:\Downloads\in.with.flow.Swords-20231108-184407.mp4" -map 0:1 -map 0:0 -c:a copy -bsf:a aac_adtstoasc -async 1 -c:v copy -aspect 1920:1080 -metadata creation_time=now -sn -y "C:\Users\Rober\Desktop\in.with.flow.Swords-20231108-184407.mp4"

 

Last changed by Robert Johnston on 11/10/2023, 2:04 PM, changed a total of 1 times.

Intel Core i7 10700K CPU @ 3.80GHz (to 4.65GHz), NVIDIA GeForce RTX 2060 SUPER 8GBytes. Memory 32 GBytes DDR4. Also Intel UHD Graphics 630. Mainboard: Dell Inc. PCI-Express 3.0 (8.0 GT/s) Comet Lake. Bench CPU Multi Thread: 5500.5 per CPU-Z.

Vegas Pro 21.0 (Build 108) with Mocha Vegas

Windows 11 not pro

Former user wrote on 11/10/2023, 1:52 PM

@The_Red_Dragon Thanks, I can't open that either, When trying to open it in Magix Movie studio I get this msg -'Error 0x1009: end of file reached', looking online it's a bit vague - broken file or variable frame rate, @Howard-Vigorita all my phone videos are variable, some greatly so, this is one & there's a worse one somewhere that i can't find, the OP's problem may well be a variable rate issue but so far Vegas has always opened these files without issue, it's never just blatantly refused one.

@The_Red_Dragon Resolve, Boris's Silhouette & Mocha Pro standalone open your file without any problem.

-------

@Robert Johnston Yep, Handbrake recoded the OP's file without problems too.

Former user wrote on 11/10/2023, 3:03 PM

Vegas can't read segmented mp4 files like hls, dash, OBS's fragmented mp4. This is dash

The_Red_Dragon wrote on 11/10/2023, 6:08 PM

Thanks everyone for the suggestions and help. Handbrake has been a quick workaround, but hoping Vegas can get this working seeing as multiple other editors handle it with no issues.

I did try to go into the Quest video capture settings, but it's pretty limited what you can change. Just frame rate from 60 or 30 and bitrate.

I'm assuming maybe the max frame rate in the mediainfo is maybe the fps i'm seeing in the VR headset?? I dunno, cause it was set to 30 for recording and that high fps still showed up in mediainfo.

 

john_dennis wrote on 11/10/2023, 8:16 PM

@The_Red_Dragon

Run your video through Shutter Encoder with these settings.

So quick and easy even I could do it.

Mediainfo Report for altered file

General
Complete name                            : C:\Users\John\Downloads\in.with.flow.Swords-20231108-184407_H.264.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 32.8 MiB
Duration                                 : 41 s 867 ms
Overall bit rate                         : 6 576 kb/s
Frame rate                               : 30.000 FPS
Encoded date                             : 2023-11-11 02:08:42 UTC
Tagged date                              : 2023-11-11 02:08:42 UTC
Writing application                      : Lavf60.9.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 41 s 867 ms
Bit rate                                 : 6 000 kb/s
Maximum bit rate                         : 6 313 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.096
Stream size                              : 31.5 MiB (96%)
Writing library                          : x264 core 164 r3107 a8b68eb
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=34 / lookahead_threads=5 / 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=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=30 / keyint_min=3 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=abr / mbtree=1 / bitrate=6000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : 2023-11-11 02:08:42 UTC
Tagged date                              : 2023-11-11 02:08:42 UTC
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.601
Matrix coefficients                      : BT.470 System B/G
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 41 s 520 ms
Source duration                          : 41 s 541 ms
Source_Duration_LastFrame                : -16 ms
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 1.27 MiB (4%)
Source stream size                       : 1.27 MiB (4%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : 2023-11-11 02:08:42 UTC
Tagged date                              : 2023-11-11 02:08:42 UTC

 

mark-y wrote on 11/10/2023, 10:13 PM

Vegas doesn't support .mp4/dash. Shutter Encoder or Handbrake should convert them to normal MP4 streams for you.