Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make and osicat not found #2

Closed
vindarel opened this issue Aug 30, 2018 · 9 comments
Closed

make and osicat not found #2

vindarel opened this issue Aug 30, 2018 · 9 comments

Comments

@vindarel
Copy link
Contributor

Hello,
I try to build with make shuffletron-bin and I get:

Unhandled ASDF/FIND-COMPONENT:MISSING-DEPENDENCY in thread #<SB-THREAD:THREAD
                                                             "main thread" RUNNING
                                                              {10039CEB63}>:
  Component :OSICAT not found, required by #<SYSTEM "shuffletron">

Although osicat is well defined in the .asd.

Any hint ?

ps: hope you still maintain this I'm eager to try it :]

@ahefner
Copy link
Owner

ahefner commented Aug 31, 2018

Remove "--no-userinit" from the Makefile.

@vindarel
Copy link
Contributor Author

And with the dependencies it's better, now running shuf…-bin:

$ ./shuffletron-bin                                 *[master] 
Unhandled simple-error in thread #<sb-thread:thread "main thread" running
                                    {10052C6BD3}>:
  Error opening shared object "gen0.so":
  gen0.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type.

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10052C6BD3}>
0: ((LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX))
1: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {10052CB72B}>)
2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {10052CB6FB}>)
3: (PRINT-BACKTRACE :STREAM #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {100017A813}> :START 0 :FROM :INTERRUPTED-FRAME :COUNT NIL :PRINT-THREAD T :PRINT-FRAME-SOURCE NIL :METHOD-FRAME-STYLE NIL)

My web search isn't much useful.

thanks for the last commits and explanations.

@ahefner
Copy link
Owner

ahefner commented Aug 31, 2018 via email

@vindarel
Copy link
Contributor Author

vindarel commented Sep 1, 2018

Allright, progress again \o/ make install and using ./shuffletron worked, I can run the program and I am pleasantly surprised how well this seems to be thought of :) I can't see everything though, scanning id3 tags for an ogg file fails:

library> scanid3

Scanning file metadata (1,879 files).
Reading tags: 39 of 1,879
Unhandled vorbisfile:vorbis-error in thread #<sb-thread:thread
                                              "main thread" running
                                               {10052C6BD3}>:
  Open Ogg Vorbis file: Bitstream does not contain any Vorbis data.

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10052C6BD3}>
0: ((LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX))
1: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {10058508FB}>)
2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {10058508CB}>)
3: (SB-DEBUG:PRINT-BACKTRACE :STREAM #<SB-SYS:FD-STREAM for "descriptor 1" {10052DADC3}> :START 0 :FROM :INTERRUPTED-FRAME :COUNT NIL :PRINT-THREAD T :PRINT-FRAME-SOURCE NIL :METHOD-FRAME-STYLE NIL)
4: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<VORBISFILE:VORBIS-ERROR {100584D983}> #<unavailable argument>)
5: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* #<VORBISFILE:VORBIS-ERROR {100584D983}>)
6: (INVOKE-DEBUGGER #<VORBISFILE:VORBIS-ERROR {100584D983}>)
7: (ERROR VORBISFILE:VORBIS-ERROR :TEXT "Open Ogg Vorbis file: Bitstream does not contain any Vorbis data.")
8: (VORBISFILE:RAISE-VORBIS-ERROR "Open Ogg Vorbis file" "Bitstream does not contain any Vorbis data.")
9: (VORBISFILE:CHECK-VORBIS-ERROR "Open Ogg Vorbis file" -132)
10: (VORBISFILE:VORBIS-OPEN "/home/vince/zique/1_Nicotine/Bob_Marley-_Three_Little_Birds_With_Lyrics.ogg" #.(SB-SYS:INT-SAP #X7FFFF6F1FC48) :CHARACTER-ENCODING :ISO-8859-1)
11: (VORBISFILE:GET-VORBIS-TAGS-FROM-FILE "/home/vince/zique/1_Nicotine/Bob_Marley-_Three_Little_Birds_With_Lyrics.ogg" :LINK -1 :CHARACTER-ENCODING :ISO-8859-1)
12: (GET-SONG-METADATA "/home/vince/zique/1_Nicotine/Bob_Marley-_Three_Little_Birds_With_Lyrics.ogg")
13: (SCAN-FILE-METADATA :VERBOSE T :ADJECTIVE NIL)
14: ((FLET #:WITHOUT-INTERRUPTS-BODY-676 :IN SB-THREAD::CALL-WITH-RECURSIVE-LOCK))
15: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK #<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK :IN MAINLOOP) {7FFFF6D1FB5B}> #<SB-THREAD:MUTEX "Output Lock" owner: #<SB-THREAD:THREAD "main thread" RUNNING {10052C6BD3}>> T NIL)
16: ((FLET CMD :IN MAINLOOP))
17: (MAINLOOP)
18: (RUN)
19: ((FLET #:WITHOUT-INTERRUPTS-BODY-89 :IN SB-EXT:SAVE-LISP-AND-DIE))
20: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE))

I think indeed it doesn't contain any data, it was converted from an mp4 file downloaded from youtube. I deleted this file but I have some more I want to keep :] Can't it just print a message instead of exiting ?

@vindarel
Copy link
Contributor Author

vindarel commented Sep 1, 2018

In Mixalot's vorbisfile.lisp, a simple change of error to a format allows me to finish the scan and get the awesome colored search results.

(defun raise-vorbis-error (circumstance message)
  "Raise an error for the vorbisfile library. Circumstance is a string
  that describes the circumstance under which this error was raised, and
  message is a string that (tries to) explain the error."
  (error 'vorbis-error
         (format nil "~A: ~A" circumstance message)))

to

(defun raise-vorbis-error (circumstance message)
  "Raise an error for the vorbisfile library. Circumstance is a string
  that describes the circumstance under which this error was raised, and
  message is a string that (tries to) explain the error."
  (format nil "Error parsing an ogg vorbis file~A: ~A" circumstance message))

(I can't see it though).

@vindarel
Copy link
Contributor Author

vindarel commented Sep 1, 2018

when I used to make precompiled binary builds of this

btw, I think that would be very nice to have ! It's the easy way to distribute a software after all.

@ahefner
Copy link
Owner

ahefner commented Sep 1, 2018

Curious, if you try to play that same file without scanning tags, does it play, or do you get the same error? What does the 'file' command output when given that file as a parameter?

I wonder if the file is corrupt, not actually an ogg file, or if there's a bug in the ogg code. It should be made more robust, so that scanid3 always completes, in any case.

@vindarel
Copy link
Contributor Author

vindarel commented Sep 1, 2018

The file command:

foo-_YouTube.ogg: Ogg data, Theora video

I can play it with mpv and I get a video:

Playing: foo_-_YouTube.ogg
 (+) Video --vid=1 (theora)
     Audio --aid=1 --alang=und (flac)
 (+) Audio --aid=2 'Nu_-_MAN_O_TO_Original_Mix_wmv_-_YouTube.mp3' (mp3) (external)

@ahefner
Copy link
Owner

ahefner commented Sep 6, 2018

Interesting. That's a video file (Ogg Theora) rather than an audio file (Ogg Vorbis). I'm using libvorbisfile under the assumption that any .ogg file is a Vorbis-format audio file. It would take some work writing new FFI bindings and Mixalot wrappers to decode a Theora file and play it the audio track Shuffletron.

I see a lot of appeal in being able to decode and play audio tracks from common video formats but it's not something Shuffletron or Mixalot can do today. Seems like you'd want Theora and mp4 at a minimum. If I had a large collection of downloaded music videos I'd definitely want the option to toggle the video display on and off as well - an audio+video player with Shuffletron-style interface could be cool. Predictably it's not something I'm likely to dive into implementing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants