Comments (10)
I suspect that it hangs because the binaries irs downloads (
ffmpeg
,ffprobe
,ffserver
andyoutube-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.
Seems resolved, close this issue please ✔
from irs.
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.
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 theIRS_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 buildWith these steps, I was able to successfully build IRS on mine.
The modification offuture.cr
is needed because the Crystal version from your repo (0.33.0) still containsfuture
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.
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.
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.
Maybefuture.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.
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.
Glad I could help. 🚀
from irs.
One more doubt, How does IRS scan youtube for a song?
from irs.
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)
- Compile error -- `Error: undefined method 'mapping' for JSON:Module` HOT 1
- Compilation error: undefined local variable or method 'future' for Logger HOT 5
- Program hangs on download HOT 3
- Cant get past irs --install HOT 2
- Unhandled exception: Index out of bounds (IndexError) HOT 4
- Missing hash-key: "give-url" (KeyError) when trying to run with only album & artist HOT 2
- Unexpected char
- Youtube organization changed HOT 3
- Feature: Allow selecting youtubevideo to download HOT 4
- Release version is 1.2.1, internal version is 1.4.0 HOT 1
- Can't find libevent-2.1.so.6 HOT 13
- Youtube layout changed error HOT 3
- Multiple Issues and Suggestions HOT 2
- update documentation (what search_terms: does?) HOT 2
- youtube-dl error when searching for URL HOT 1
- URI-encode depreciated HOT 1
- Install Struggle HOT 11
- runtime error related to binary_directory HOT 1
- youtube-dl integration corrupted HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irs.