NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
VLC for Unity now supported on Linux (code.videolan.org)
tmtvl 1 days ago [-]
On a similar note: Godot VLC (<https://github.com/xiSage/godot-vlc>), because let's not pretend we don't remember the Unity terms change controversy.
thih9 1 days ago [-]
Context about the Unity terms change controversy: https://www.gamedeveloper.com/business/unity-is-killing-its-...

> Initially, the Runtime Fee sought to charge developers a per install tariff once projects had passed certain milestones. It was a decision that left many users reeling, resulting in a colossal backlash (…)

How users reacted: https://old.reddit.com/r/OutOfTheLoop/comments/16h9lnw/whats...

> Any install, any reinstall, any installation on a second device, each and every one slap the dev with a fee. It gets dumber, because that cracked copy of your game on the high seas still incurs a fee when the pirate installs it. You might think we're at peak stupidity. You might think anyone who makes anything with Unity is a "fucking idiot" (the CEO certainly does), but we're not done yet. It's retroactive. (…)

arijun 1 days ago [-]
Side note--is there any way to access reddit now for people who refuse to log in or get the app? Old reddit asks tells me I have to use new reddit for "security" and new reddit says "Get the app to keep using Reddit".
nolok 1 days ago [-]
On mobile ? Not really. Their website is mobile cancer, and their app is barely better. I'm impressed at how bad it is, and it's not even about "pushing more ads" but "controlling what people see". That's also why they've removed r/all.
charrondev 23 hours ago [-]
I’ve actually noticed at least on iOS, the native app is really nice since the last update. It uses native system navigation and controls.
tommica 16 hours ago [-]
Its r/popular now
nolok 14 hours ago [-]
r/popular already existed before, and this is different, it's the same idea as facebook, instagram, twitter ... It's a curated feed not in an order or same weight feed. In other words, it's used or can and will be used to push whatever.
tommica 9 hours ago [-]
Oh, I thought I was the new one :(
graynk 13 hours ago [-]
Someone already linked RedLib below, I'm just gonna add that you can add "safe" before "reddit.com" (i.e. safereddit.com/r/whatever) and it's going to redirect you to a redlib instance.
rob-lag 1 days ago [-]
I just used UBlock Origin to block the "Get the app..." message.
peterus 6 hours ago [-]
I've been using eddrit.com, I think it best matches the minimalist old ui (no full size images without clicking drop-down, pagination, etc).
tweetle_beetle 1 days ago [-]
On Android https://github.com/QuantumBadger/RedReader - no account required
netniuq 1 days ago [-]
There is Redlib[0], an open source alternative Reddit frontend, with many public instances[1], e.g. https://redlib.catsarch.com/

There is also LibRedirect[2] (or PrivacyRedirect, although I for one have no experience with that), a browser extension that automatically redirects reddit.com URLs to your Redlib instance of choice (it also does the same for other platforms, configurable).

[0] https://github.com/redlib-org/redlib

[1] https://github.com/redlib-org/redlib-instances/blob/main/ins...

[2] https://libredirect.manerakai.com/

andai 1 days ago [-]
Maybe try the "use desktop site" option in your phone's browser? Old reddit works on my phone either way.
8note 21 hours ago [-]
firefox+ublock+the extension that forwards to old.reddit

i guess if you are using apple, you have chosen that the apple security is correct in requiring you to install the app?

arijun 20 hours ago [-]
Are you logged in? I think they generally don't let people use old.reddit not logged in. I use all three of those.

> apple security... requiring you to install the app

It's the reddit website that freezes me out, nothing to do with the OS.

benoau 1 days ago [-]
Sounds similar to Apple's "Core Technology Fee", literally a mechanism for sabotaging third party app distribution in the EU.
Elfener 1 days ago [-]
This is a very big oversight in that EU law.

Allowing third-party "app stores" is completely useless when all apps must be approved by the operating system company.

It's also being abused by google (technically, will be, very soon), I guess they saw that since the legal framework for this kind of thing has now been written, they can do it too.

lukeschlather 1 days ago [-]
There was no oversight. The EU told Apple the CTC did not comply with the law. Apple's new scheme still seems bad but I don't think this is the end of it.

https://ec.europa.eu/commission/presscorner/detail/en/ip_24_...

benoau 1 days ago [-]
Google just got fined €430 million for a very similar fee scheme, practically copied from Apple, so it's highly unlikely that Apple will get away with it forever. Theoretically Apple should have a monster fine brewing since they're a repeat offender and it should be retroactively applied.
1 days ago [-]
gumby271 1 days ago [-]
Except at least there are alternatives to Unity without replacing your entire OS and hardware.
martz 1 days ago [-]
yes this is good too, actually started contributing to this :)
martz 2 days ago [-]
Recently added support for Linux to VLC for Unity, with full hardware decoding.

It uses OpenGL rendering through GLX and EGL, with DMA-BUF texture sharing to pass video frames efficiently to Unity’s renderer.

Only x86_64 is supported at this time. In the future, I will add ARM64 support as well as Vulkan.

torginus 1 days ago [-]
Would it not be more efficient to create the decoder in-process, then you could feed it the bitstream via a compute buffer, and the video would be rendered to a texture.
mastax 19 hours ago [-]
I assume it’s a GPL workaround.
sylware 1 days ago [-]
Don't forget to build 'correct' ELF64 binaries for broad elf(glibc)/linux distro support (-static-libgcc -static-libstdc++, and tight glibc ABI version control with binutils VERSION scripts).

At least those build options should be default.

martz 1 days ago [-]
thanks for your comment, will look into it!
sylware 11 hours ago [-]
Let me add a bit more:

The part which in missed all the time is the control of the glibc ABI version. Either you link with an "old" glibc, or you go 'Right Way(TM)', documentation is on binutils web site (noscript/basic HTML) : https://sourceware.org/binutils/docs/ld/VERSION.html

Must include glibc internal symbols.

I would use the "readelf" command to audit the binaries for broad elf(glibc)/linux distro support (like stock unity has been). Namely DT_NEED entries, symbol/shared lib version requirement (at the end of readelf output), etc.

An additional note: in the case of a complex set of ELF64 binaries, don't forget that ELF DT_RPATH is deprecated in favor of ELF DT_RUNPATH (see man page of ld.so). To force DT_RPATH into DT_RUNPATH, you must use the follower binutils ld option: '--enable-new-dtags' (using the compiler driver, that would be '-Wl,--enable-new-dtags'. Carefull, you'll see that in ld.so man page, DT_RPATH and DT_RUNPATH do not behave the same way. You should use dynamic loading for your private shared libs using the $ORIGIN keyword anyway.

Ofc, dynamic loading (libdl/dlopen/dlsym/dlclose) is mandatory for system interface shared libs, and for core video games: libX11 set or xcb set of client X11 libs, libasound (wayland code is statically linked with its libxkbcommon for xkb keymap handling). Basically, The DT_NEED entries of your set of ELF64 binaries must reference only common glibc libs (and if you don't dynamically load them, your private ones with proper DT_RUNPATH).

SurajMishra 1 days ago [-]
Thank you very much.
Hendrikto 1 days ago [-]
To everybody else being confused: This is about Unity the game engine, not Unity the desktop environment.
tokai 1 days ago [-]
Unity (the DE) was discontinued 9 years ago..
extraduder_ire 1 days ago [-]
It's still being developed outside of Canonical. The latest release of an Ubuntu version is 26.04.

https://unityd.org/

fusslo 1 days ago [-]
Can a unity dev/game dev help elucidate why you'd use vlc in unity?

For cutscene playback?

harrisoned 1 days ago [-]
For a sandbox game this is very useful, where you can spawn video players in-game. For social games (like VRChat) this is also great since synced video playback is a very popular feature for people to watch content together in VR.
csande17 1 days ago [-]
Unity includes its own video player implementation ( https://docs.unity3d.com/Manual/Video.html ), so presumably you'd mainly want to use VLC for wider range of supported codecs?
kjjohnsen 1 days ago [-]
Basically. Unity video player is fine if you control the content. The other very reasonable option is to funnel shared content through a synced web browser interface. I've developed a few collaborative XR applications, and have used a blend of things to support sharing.
ComputerGuru 1 days ago [-]
It’s not hard to use libavcodec to transcode, though.
martz 1 days ago [-]
RTSP support, twitch-style in-game visio, any kind of non-game Unity apps (there are many), 360 video playback, mediaplayer in VR headset, simulators of all kinds, etc..
thsbrown 23 hours ago [-]
Unity video player leaves a lot to be desired.

The standout option for a more elaborate video handling was typically AVPro. It's a really good option, with that said with vlc stepping up hopefully it's no longer strictly necessary.

hparadiz 1 days ago [-]
VRChat folks will love this. Videoplayers are embedded into Unity scenes aka "maps" as a regular imported lib. The videoplayer is a drawn surface where users can see video playback. Most commonly used for streaming live music from a stream like Twitch.
bananaboy 22 hours ago [-]
Just in case you only read the headline and were confused, this is libVLC which underpins the VLC player.
torginus 1 days ago [-]
Forgive me for my ignorance - but my understanding is that VLC is a frontend for ffmpeg, and even ffmpeg is 'just' a wrapper for hardware video decoders such as NVDEC when viewing supported codecs, like h264/5.
mastax 19 hours ago [-]
My understanding is that VLC and FFMpeg are both projects which develop in house codecs and also incorporate codecs developed by third parties.
jokoon 1 days ago [-]
I don't know why, but on windows, the first time I start VLC after a windows boot, it takes about 5s to 8s to open a video file, any sort of video file

I suspect it's a graphics driver issue, or something else

krono 1 days ago [-]
It's caused by a stale plugin cache, which somehow triggers a blocking windows defender scan on application launch.

I only managed to figure that out thanks to this[1] reddit comment, which also includes a solution:

  Noticed this a while back with 3.0.23. Managed to troubleshoot via debug logs.
  
  Basically the plugin cache goes stale and has to rebuild itself every first launch. No clue why.
  
  To fix: go to C:\Program Files\VideoLAN\VLC (or wherever you installed) with a terminal in administrator mode.
  run the command: ./vlc-cache-gen.exe "C:\Program Files\VideoLAN\VLC\plugins"
  
  That will rebuild the plugins.dat file which should fix it.
No windows defender exclusion required.

[1]: https://old.reddit.com/r/VLC/comments/1skofwx/vlc_3023_windo...

happyPersonR 1 days ago [-]
Sidenote:

Video game programming with unity was an absolute nightmare to try and get working with any kind of gitops and or with multiple people working on the same code base a couple of years ago

Wonder if that changed ?

thsbrown 23 hours ago [-]
Unity native files are still pretty much a nightmare to merge. With that said I find it's not too hard to break things up in a way that multiple people can work on separate pieces of the game so the actual files don't need to be merged.

While plasticSCM has come a long way, I still find it a bit buggy and hard to work around. I miss the more advanced features of git.

1bpp 1 days ago [-]
They acquired Plastic SCM around 2020 and I believe they integrated it into the engine, but that was shortly after I stopped using Unity
maxlin 1 days ago [-]
I wish Unity's built-in videoplayer wasn't such a disappointment. The performance on Windows is god awful. Have had to write a mass video reference recompressor/in-scene replacer that just attempts to pick the best compression flags and reduces resolution just avoid dropping frames playing ~1080p videos on multi-core PC's with discrete GPU's. Mac was fine playing even the overly high res original footage, high 2000+ pixel portrait tutorial videos.

Wrote a proper double-buffering video/audio player in Unity using parts of an ffmpeg wrapper over ten years ago. Seems silly they never did anything similar officially, just used lackluster platform API's.

thsbrown 23 hours ago [-]
Completely agree! Unfortunately this is the Unity MO.

A tool that's a bit half baked.

They have been doing a hell of a lot better lately though.

redsocksfan45 1 days ago [-]
[dead]
ekjhgkejhgk 1 days ago [-]
Blocked because I don't use cookies. Ok, I've always preferred mpv anyway.
nisiddharth 1 days ago [-]
I've 3rd party cookies blocked and it works just fine. Have you disabled all cookies?!
xena 1 days ago [-]
Why do you do this to yourself?
TiredOfLife 1 days ago [-]
Yeah, why use software that works instead of software that doesn't
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 21:21:35 GMT+0000 (Coordinated Universal Time) with Vercel.