fpv-wtf / wtfos-configurator

Configurator for wtfos, with built in margerine
GNU Affero General Public License v3.0
42 stars 16 forks source link

OSD Overlay Rendering Issue (Mac Chrome) #308

Open vicewize opened 1 year ago

vicewize commented 1 year ago

Hey guys I was testing my old font and was just about to test some INav ones and more BF ones I finally got around to making and having this weird issue when rendering via online overlay tool. (Using KNIFA's dev branch) I fear its a Mac related issue, Im running a 2022 non M1/M2 16" Macbook Pro Maxed out on everything spec wise, I tried multiple other browsers and before I could use Opera but now it wont even let me render it just says "encoder init issue" or something at the top. I haven't tried it yet in Parallels or VMware yet but thats my next step. I have been watching w some of the web devtools in the browswer and it is showing some odd things but im not a programer so :-/. Im sure prob Chrome.. But heres the original file and osd file and the post rendered single file. It will play about 2-3 sec then just lock up. Any help appreciated and no rush I know you guys are busy handling lots of other stuff. It will sort of playback in Premiere but then trys substituting frames and I even tried rendering it out to ProRes but no go. Again thanks!

Original DJI Vista DVR From Googles:

https://www.dropbox.com/s/bfkd9dwnkizon74/DJIG0336.mp4?dl=0

Font:

https://www.dropbox.com/scl/fo/64nud6s2j9619hueu0n0p/h?dl=0&rlkey=wmrkmhrbonld84cvnsu3ix7ut

Post Rendered File From Online Tool:

https://www.dropbox.com/s/1sn4gp9zg6d4uct/DJIG0335-osd.mp4?dl=0

_matt renshaw

stylesuxx commented 1 year ago

Could you also upload the OSD file? It would also help if you could post the specific error you are getting, maybe a screenshot from the dev console too?

vicewize commented 1 year ago

Oops my bad here you go..

OSD File:

https://file.io/Yi2o5O7E0bQB

stylesuxx commented 1 year ago

Works fine on my end (although I don't think you send the correct OSD file - it does not match the video at all). Could you try on develop please? Technically I think, it should be on pretty much the same level as Knifa's branch - just to make sure.

Also please post the exact error you are running into.

vicewize commented 1 year ago

Its possible i selected the wrong one, again apologies, was up late. Let me check it out again. Seams to work fine in a windows environment on my end in chrome just not on my my macbook. Very odd. Heres the correct OSD file. Does the rendered video play fine for you as is or no? If so then could be some mac related discrete GPU/driver issues.. Ughh Thanks btw! And yeah ill give the development a shot here shortly!

Correct OSD File:

https://file.io/eGxweEcvsdzl

stylesuxx commented 1 year ago

Yes, plays fine for me. But there have been problems reported on Mac before. I was under the impression that this has been fixed in the meantime. Please also post the error messages you are getting, since this will likely help us the most in drilling down what the issue might be.

vicewize commented 1 year ago

Dont know if this helps at all but I was having the console open while it was running and theres 2 errors (they may be nothing as far as I know). :-) I see a 404 error maybe my browser or settings are blocking something but then again if it worked for you seams mac related. Basically it plays for about 2 sec then just locks up, it looks as if its playing but the image doesnt change. That was in VLC, same with quicktime player, and premiere and divinci resolve. And premiere/divinci have a strange issue reading it, ill try to get those errors as well to post if it helps. Lastly its not switching to the compressed OSD (it did for that render) but not the one in the photo, its hit or miss. Thanks again

html-console

stylesuxx commented 1 year ago

Hmm you mentioned in the initial post you are getting an error regarding the encoder? The errors in the console are not really related to the encoding process. Also encoding seems to work fine, I mean, the bar finishes - right? Just the output is no good?

vicewize commented 1 year ago

Yes that was only happening with opera though, which was strange. If you need me to do anything specific i can.

stylesuxx commented 1 year ago

You have this with every video file? Because you uploaded different source and result files - now I am wondering if the issue is only with the 335 file?

vicewize commented 1 year ago

Heres a screengrab from opera I even went deep into the setttings to make sure hardware acceleration was enabled (dont known if that even makes a difference).

1234

vicewize commented 1 year ago

Yeah i just tried it with another the following file 336 same thing, its driving me nuts. Freaking macs. It worked great until they pushed the last update out. They are always breaking things.

vicewize commented 1 year ago

No worries if its a deep dive issue, I know it can be probably 100 different things and you got to delve deep into it, I appreciate it regardless. For now I can use parallels just a bit slower is all.

ripperhack commented 1 year ago

the same for me with mac mini m2 and chrome

ripperhack commented 1 year ago

@vicewize I found the "solution" ... with final cut just cut the last 3 seconds of the video then the render works. With DaVinci just cut where the message appears offline media which are precisely the last 3 or 4 final seconds

stylesuxx commented 1 year ago

Very interesting. And it have to be a couple seconds? Just the last frame for example is not enough? Could you by any chance share to source and one of your cut videos?

ripperhack commented 1 year ago

Maybe a couple of frames is enough. I use DaVinci and in the timeline just after the flight statistics it appears "media offline", I cut exactly to the frame where there is the warning and solve the problem. With FinalCut not having the writing "media offline" and cut immediately after the statistics. If you watch the clip there is a part after that I don't understand what it is and it shows black. At the moment I'm at work, if I find a clip I'll upload a photo.

ripperhack commented 1 year ago

first image - media library, second image timeline

first second
ripperhack commented 1 year ago

There seems to be some extra information in the osd file video. Interestingly the file size with osd is smaller, in this example the original file without osd is 856MB while with osd it is 848MB. I don't know if it's normal I can't try it on windows.

sandstreamer commented 1 year ago

I've had a similar problem where the output OSD video imported to DaVinci Resolve causes "media offline" issue. v2.1.0 - Trace ID: 58cbaf4a-dbc6-4dbb-a7bd-24fcc9b030c1 Chroma Key option was ticked. M1 Macbook Pro 2021 (macOS 12.6.3) Chrome 111.0.5563.110 (arm64)

A workaround that worked for me is to re-encode the "OSD" video file to constant framerate like this: ffmpeg -i input_video.mp4 -vsync cfr -c:a copy output_video.mp4 Then the issue disappeared in DaVinci Resolve. (-c:a copy can be skipped I think since there is no audio)

stylesuxx commented 1 year ago

@sandstreamer so your issue was after rendering the file? All others seem to have issues while rendering the file. Do you still have the file before you converted it and could you share it please?

sandstreamer commented 1 year ago

@stylesuxx well I thought at least that @ripperhack had also issues after rendering the file...Looks like he had a similar "media offline" issue in DaVinci Resolve. Anyways, I still have the file and will sent it in a DM on discord if that's okay.

stylesuxx commented 1 year ago

@sandstreamer that would be great, just ping me on discord.

You are right - I then misunderstood the comment the first time around. I thought they cut off some frames from the end of the source file before rendering the OSD onto it.

ripperhack commented 1 year ago

I confirm, the problem occurs after rendering. When importing the file (with osd overlay) on davinci it has the media offline error. I solve it by cutting a few frames at the end of the file (with osd overlay) just imported