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

clip doesn't handle file aliases / soft-link files #61

Open
AlexKnauth opened this issue Jan 16, 2019 · 0 comments
Open

clip doesn't handle file aliases / soft-link files #61

AlexKnauth opened this issue Jan 16, 2019 · 0 comments

Comments

@AlexKnauth
Copy link
Contributor

When I set up alias.mp4 as a file alias or soft-link to another .mp4 file, and click the DrRacket video preview button on this program:

#lang video
(clip "alias.mp4")

I get a DrRacket internal error with the very cryptic message "NOO2".

Either:

  • there should be a note in the documentation that clip doesn't handle file aliases / soft-links (and a better error message)
  • or it should follow the link at some point

It looks like the error is coming from here:
https://github.com/videolang/video/blob/master/video/private/ffmpeg/ffmpeg.rkt#L499

  (define-avformat avformat-find-stream-info (_fun _avformat-context-pointer
                                                   _pointer
                                                   -> [r : _int]
                                                   -> (let ()
                                                        (when (< r 0) (error "NOO2"))
                                                        (void))))

Here's the DrRacket internal error:

NOO2
  context...:
   <pkgs>/video-testing/video/private/ffmpeg/ffmpeg.rkt:66:9
   <pkgs>/video-testing/video/private/ffmpeg-pipeline.rkt:282:0: avformat-context->stream-bundle
   <pkgs>/video-testing/video/private/video.rkt:734:0: convert-file165
   <pkgs>/video-testing/video/private/video.rkt:924:4: loop
   <pkgs>/video-testing/video/private/video.rkt:897:0: convert-playlist218
   <pkgs>/video-testing/video/private/video.rkt:56:0: convert6
   <pkgs>/video-testing/video/render.rkt:508:7
   <pkgs>/video-testing/video/player.rkt:103:4: play method in video-player-server%
   <pkgs>/video-testing/video/player.rkt:458:0: preview
   ...
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

1 participant