GithubHelp home page GithubHelp logo

Comments (10)

xenonstride avatar xenonstride commented on June 11, 2024 1

I suspect that it hangs because the binaries irs downloads (ffmpeg, ffprobe, ffserver and youtube-dl) are not built for arm. You'd have to manually copy them to the binary dir specified in your config file.

Yeah that was the problem. Thanks for the help.

from irs.

luca-schlecker avatar luca-schlecker commented on June 11, 2024 1

Seems resolved, close this issue please ✔

from irs.

luca-schlecker avatar luca-schlecker commented on June 11, 2024

Hey xenonstride,

.yaml is in fact the correct extension for YAML. It's stated on the official website. .yml is used because people like it if the extension is three characters long. So it does not need a correction. You can point the IRS_CONFIG_LOCATION environment variable to any file, even one's without extension, so you are free to use .yml.

If you want to build IRS on your raspberry pi, follow these steps:

git clone https://github.com/cooperhammond/irs
cd irs
rm shard.lock
echo "" > src/interact/future.cr
shards build

With these steps, I was able to successfully build IRS on mine.
The modification of future.cr is needed because the Crystal version from your repo (0.33.0) still contains future which was dropped in Crystal 0.35.0.

from irs.

xenonstride avatar xenonstride commented on June 11, 2024

Hey xenonstride,

.yaml is in fact the correct extension for YAML. It's stated on the official website. .yml is used because people like it if the extension is three characters long. So it does not need a correction. You can point the IRS_CONFIG_LOCATION environment variable to any file, even one's without extension, so you are free to use .yml.

If you want to build IRS on your raspberry pi, follow these steps:

git clone https://github.com/cooperhammond/irs
cd irs
rm shard.lock
echo "" > src/interact/future.cr
shards build

With these steps, I was able to successfully build IRS on mine.
The modification of future.cr is needed because the Crystal version from your repo (0.33.0) still contains future which was dropped in Crystal 0.35.0.

Hey @luca-schlecker, Thank you so much for your reply.
Is there any repo where I can get the latest crystal for Raspberry Pi?

from irs.

luca-schlecker avatar luca-schlecker commented on June 11, 2024

Hey @xenonstride,

I couldn't find a repo with binaries. But I think there is a way you could build it yourself. Cross-compiling crystal programs is possible and because the crystal compiler itself is written in crystal, you could compile crystal for your raspberry pi. I tried compiling crystal from source on mine, but I ran into memory size limitations and couldn't successfully compile it. I did not try to cross-compile it myself because I was happy with the little workaround I showed you. If you need crystal on your rpi only for compiling irs, it can be done with your version of crystal.
Maybe future.cr should be changed to make it backwards-compatible, so it compiles on the given version without throwing an error. Seems like there wouldn't be a lot of changes needed. If you are ok with it @cooperhammond I'd create a pull request for it.

from irs.

xenonstride avatar xenonstride commented on June 11, 2024

Hey @xenonstride,

I couldn't find a repo with binaries. But I think there is a way you could build it yourself. Cross-compiling crystal programs is possible and because the crystal compiler itself is written in crystal, you could compile crystal for your raspberry pi. I tried compiling crystal from source on mine, but I ran into memory size limitations and couldn't successfully compile it. I did not try to cross-compile it myself because I was happy with the little workaround I showed you. If you need crystal on your rpi only for compiling irs, it can be done with your version of crystal.
Maybe future.cr should be changed to make it backwards-compatible, so it compiles on the given version without throwing an error. Seems like there wouldn't be a lot of changes needed. If you are ok with it @cooperhammond I'd create a pull request for it.

Yes. There are no other repos with binaries for crystal on armhf (RPi). Maybe make a note for people on RPi to do the steps you told me to build it.
And also I have one more problem. When I try to use IRS it stucks at converting to mp3. What can I troubleshoot?

from irs.

luca-schlecker avatar luca-schlecker commented on June 11, 2024

I suspect that it hangs because the binaries irs downloads (ffmpeg, ffprobe, ffserver and youtube-dl) are not built for arm. You'd have to manually copy them to the binary dir specified in your config file.

from irs.

luca-schlecker avatar luca-schlecker commented on June 11, 2024

Glad I could help. 🚀

from irs.

xenonstride avatar xenonstride commented on June 11, 2024

One more doubt, How does IRS scan youtube for a song?

from irs.

luca-schlecker avatar luca-schlecker commented on June 11, 2024

Irs gets its videos by searching YouTube for {title} {artist} {special} where

  • {title} is the song name,
  • {artist} is the artist's name and
  • {special} are special search terms.

It then filters out videos containing bad words like album and prefers videos containing golden phrases like lyrics. You can find the complete list in src/search/youtube.cr. If you have and further questions, please hit me up with an email (my address is stated on my profile) because this isn't the right place for it.

from irs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.