Giter Site home page Giter Site logo

Comments (17)

faroit avatar faroit commented on June 11, 2024

can you give more details? have you tried loading a manual absolute file_path?

from stempeg.

westside avatar westside commented on June 11, 2024

I've tried both absolute and relative path, and nothing works.
I put the stem file to the same folder with the python file, but throws same error.

from stempeg.

faroit avatar faroit commented on June 11, 2024

can you give me the full error message, please?

from stempeg.

faroit avatar faroit commented on June 11, 2024

also, did you try using the provided example file: https://github.com/faroit/stempeg/blob/master/tests/data/The%20Easton%20Ellises%20-%20Falcon%2069.stem.mp4 or running the unit tests?

from stempeg.

faroit avatar faroit commented on June 11, 2024

@westside did you managed to solve it?

from stempeg.

westside avatar westside commented on June 11, 2024

Really sorry for not responding.
I just changed the stem file to the other format.
Thank you.
If I test it, let you know by opening this issue again.

from stempeg.

lvbaouu avatar lvbaouu commented on June 11, 2024

I have this issue on mac. when i tried to S, rate = stempeg.read_stems(file_path). it shows me that [Errno 2] No such file or directory. even when i tried the sample audio provided above and using the absolute file path

from stempeg.

faroit avatar faroit commented on June 11, 2024

@lvbaouu what version of FFMPEG are you using and how did you install it?

from stempeg.

lvbaouu avatar lvbaouu commented on June 11, 2024

i used pip install ffmpeg and it is:

pip show FFMPEG
Name: ffmpeg
Version: 1.4
Summary: ffmpeg python package url [https://github.com/jiashaokun/ffmpeg]
Home-page: https://github.com/jiashaokun/ffmpeg
Author: SkeyJIA
Author-email: [email protected]
License: MIT Licence
Location: /anaconda2/envs/deeplearning/lib/python2.7/site-packages

from stempeg.

faroit avatar faroit commented on June 11, 2024
  1. ffmpeg is not python package. You need to install it via homebrew (osx), apt-get (linux), via conda, if you use anaconda, or manually download it and set the paths
  2. I don't know the pip package you mentioned but it certainly is not the right one
  3. please check the readme

from stempeg.

lvbaouu avatar lvbaouu commented on June 11, 2024

When I downloaded with anaconda and try, I got the following error with the following code :
import stempeg S, rate = stempeg.read_stems("/Users/lzhang22/Downloads/The Easton Ellises - Falcon 69.stem.mp4")


CalledProcessError Traceback (most recent call last)
in ()
----> 1 S, rate = stempeg.read_stems("/Users/lzhang22/Downloads/The Easton Ellises - Falcon 69.stem.mp4")

/anaconda2/envs/deeplearning/lib/python2.7/site-packages/stempeg/read.pyc in read_stems(filename, out_type, stem_id)
89 """
90
---> 91 FFinfo = FFMPEGInfo(filename)
92
93 if stem_id is not None:

/anaconda2/envs/deeplearning/lib/python2.7/site-packages/stempeg/read.pyc in init(self, filename)
17 super(FFMPEGInfo, self).init()
18 self.filename = filename
---> 19 self.json_info = read_info(self.filename)
20
21 @Property

/anaconda2/envs/deeplearning/lib/python2.7/site-packages/stempeg/read.pyc in read_info(filename)
53 ]
54
---> 55 out = sp.check_output(cmd)
56 info = json.loads(out.decode('utf-8'))
57 return info

/anaconda2/envs/deeplearning/lib/python2.7/subprocess.pyc in check_output(*popenargs, **kwargs)
221 if cmd is None:
222 cmd = popenargs[0]
--> 223 raise CalledProcessError(retcode, cmd, output=output)
224 return output
225

CalledProcessError: Command '['ffprobe', '/Users/l22/Downloads/The Easton Ellises - Falcon 69.stem.mp4', '-v', 'error', '-print_format', 'json', '-show_format', '-show_streams']' returned non-zero exit status -6

from stempeg.

faroit avatar faroit commented on June 11, 2024

check if you can run ffprobe /Users/lzhang22/Downloads/The Easton Ellises - Falcon 69.stem.mp4 -v error -print_format json -show_format -show_streams in the command line

from stempeg.

lvbaouu avatar lvbaouu commented on June 11, 2024

no. it gives me the following error:

(deeplearning) LPT-010557-PU:~ lzhang22$ ffprobe /Users/lzhang22/Downloads/The Easton Ellises - Falcon 69.stem.mp4 -v error -print_format json -show_format -show_streams

dyld: Library not loaded: @rpath/libx264.138.dylib
Referenced from: /anaconda2/envs/deeplearning/bin/ffprobe
Reason: image not found
Abort trap: 6

from stempeg.

faroit avatar faroit commented on June 11, 2024

I would recommend starting with a fresh anaconda environment. this doesn't seem like the error is caused by stempeg.

from stempeg.

lvbaouu avatar lvbaouu commented on June 11, 2024

i tried. it still gives me the same error

from stempeg.

faroit avatar faroit commented on June 11, 2024

I just checked on my machine, installing miniconda and ffmpeg4 with conda. Works fine here.
Check if you didn't install ffmpeg with homebrew.
sorry, I can't give support for anaconda or ffmpeg.

from stempeg.

lvbaouu avatar lvbaouu commented on June 11, 2024

it worked on my other computer (but have no storage space the data I want to process) but not the current one. What could have been the issues?

from stempeg.

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.