Garry's Mod

Garry's Mod

3D Stream Radio
Nemo 21 Apr, 2019 @ 3:24pm
Playing AAC Audio in an m4a container doesn't work but extracting the raw aac and playing it does.
I tried to make a simple tool for myself to make my life easier a bit.. basically download the best aac audio from youtube so i wont have to waste the server's resources/time and convert it since this addon supports aac... YouTube contains the file in an mp4 container so i tried playing that.. didn't work. But upon using (ffmpeg -i inputfile.m4a -acodec copy outputfile.aac) Which extracts the audio from its container, it works. So i want to know a few things...


1) Is this the addon's fault? (A hardcoded whitelist)
2) Awesomium/Chromium's fault? (I tried both with awesomium and chromium even though chromium SHOULD support this container)

Thank you
< >
Showing 1-2 of 2 comments
Grocel  [developer] 22 Apr, 2019 @ 1:22am 
1.) No, it's not a fault of this addon.
2.) This addon doesn't use Awesomium/Chromium. It uses BASS. (http://www.un4seen.com/)
Any problems that are format related are caused by BASS. In this addon it is used via: http://wiki.garrysmod.com/page/sound/PlayURL
3.) Problems with Youtube in this addon are actually problems with build-in auto use of online converter services. These services aren't very reliable: https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/246756300/360671352684917592/
4.) You can code your own auto conversion plugin for the radio your-self if needed and if you know Lua. The files for that are at: 3D-Stream-Radio/lua/streamradio_core/interfaces/youtube
Last edited by Grocel; 22 Apr, 2019 @ 2:21am
Nemo 22 Apr, 2019 @ 8:45am 
Originally posted by Grocel:
1.) No, it's not a fault of this addon.
2.) This addon doesn't use Awesomium/Chromium. It uses BASS. (http://www.un4seen.com/)
Any problems that are format related are caused by BASS. In this addon it is used via: http://wiki.garrysmod.com/page/sound/PlayURL
3.) Problems with Youtube in this addon are actually problems with build-in auto use of online converter services. These services aren't very reliable: https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/246756300/360671352684917592/
4.) You can code your own auto conversion plugin for the radio your-self if needed and if you know Lua. The files for that are at: 3D-Stream-Radio/lua/streamradio_core/interfaces/youtube


Got it, thank you so much
< >
Showing 1-2 of 2 comments
Per page: 1530 50