Hi,
We have load the video by using https url in video player at the runtime, in that case we have got the below issue.
WindowsVideoMedia error 0xc00d001a while reading https://storage.googleapis.com/woofy-images/58058e30-3376-11ed-a830-f12bdc8c4673.MOV
Context: MFCreateSourceReaderFromURL
Error details:
Track types:
The above error only came from some videos. Please guide me to what is this issue why it is came and what was the solution to achieve this.
Note: The error came from both unity editor and ios, android platform.
Thanks in advance.
Not every file configuration is supported by each platform. There is probably something weird in your file, and the foundation doesn’t like it. If you can use MediaInfo, can you output the log here? Otherwise, send me the file in DM, and I can do it for you.
Hi @Dnalsi can you share your email to share the video file?
General
Complete name : 992b701b-02f5-4195-bca7-fe4481bba98e.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 4.71 MiB
Duration : 15 s 278 ms
Overall bit rate : 2 585 kb/s
Writing application : Lavf58.24.100
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
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 : 15 s 267 ms
Bit rate : 2 450 kb/s
Width : 1 080 pixels
Height : 1 920 pixels
Display aspect ratio : 0.562
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.039
Stream size : 4.46 MiB (95%)
Title : Core Media Video
Writing library : x264 core 157 r2935 545de2f
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=1 / lookahead_threads=1 / 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=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : 2 / 40 / mp4a-40-2
Duration : 15 s 278 ms
Duration_LastFrame : -1 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 238 KiB (5%)
Title : Core Media Audio
Default : Yes
Alternate group : 1
Hi @Dnalsi ,
I have also attached the media info of the video file please check and let me know.
Sorry for the waiting. The error is NS_E_FILE_NOT_FOUND, so MediaFoundation cannot find the file specified. So check your URL is correctly formatted and the file is there. The other potential issue is that you need credential to access the file. Unfortunately, we don’t support progressive downloads with credentials. So instead, you can use UnityWebRequest to download the file locally and then set the URL to the file path. I hope it helps!
Hi @Dnalsi ,
Thank you for your reply. Video file is there in the server, did u mean need credentials to access the video file from server.
When I click on your link, this is what I see.
You see the file because you log in to your browser on your google account, but you have to do the same thing in Unity. So you need to either make it publicly readable or provide proof that you own this file. Here is an example of an API that asks a token to do your API request Cloud Storage authentication | Google Cloud
Hi @Dnalsi ,
I have followed your guidance to download the video using web request and saved in to persistent data path and play it via persistent data path url.
The above scenario was you did explained correct.
Please let me know if there is any option play video while downloading video.
Thanks in advance.