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

(MacOS) Make sure the audio file is in the mapset folder or try moving the osr2mp4 folder to somewhere else because the current path might have some special characters. #102

Closed
brickyosu opened this issue Jun 22, 2021 · 28 comments

Comments

@brickyosu
Copy link

bruh i set mac osu folder in ./Desktop/osu!.app/Contents/Resources/drive_c/osu! and output in ./Movies and then this popped up. i did all the installing instructions BUT this keeps happening when i am tryna convert .osr file to mp4, i need help please.

@uyitroa
Copy link
Owner

uyitroa commented Jun 22, 2021

send logs

@brickyosu
Copy link
Author

send logs

/Users/dax/pythonapps/osr2mp4-app/main.py:172: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
self.resize(self.width(), height)
Updated
QSoundEffect(qaudio): Error decoding source file:blank

@uyitroa
Copy link
Owner

uyitroa commented Jun 22, 2021

can you zip all logs and send it

@brickyosu
Copy link
Author

brickyosu commented Jun 23, 2021

can you zip all logs and send it

logs.zip

all logs.zip

edit edit edit edit: idk what you mean btw because im new to computers and i learned how to compress files.

@uyitroa
Copy link
Owner

uyitroa commented Jun 23, 2021

Run the app,
Click start, wait for the error to appear.
Then right click on the Logs folder, choose compress.
Send the compressed folder here.

@brickyosu
Copy link
Author

Run the app,
Click start, wait for the error to appear.
Then right click on the Logs folder, choose compress.
Send the compressed folder here.

Logs.zip

@uyitroa
Copy link
Owner

uyitroa commented Jun 23, 2021

do brew install zlib jpeg freetype xz ffmpeg in terminal.
What does it print?

@brickyosu
Copy link
Author

brickyosu commented Jun 23, 2021

do brew install zlib jpeg freetype xz ffmpeg in terminal.
What does it print?

curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Error: Failed to download resource "theora"
Download failed: https://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2

@uyitroa
Copy link
Owner

uyitroa commented Jun 23, 2021

do brew install ffmpeg

@brickyosu
Copy link
Author

do brew install ffmpeg

did the same, error downloading theora.

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

https://evermeet.cx/ffmpeg/ffmpeg-102787-gec8e95296e.7z

Download this,
Unzip it, then put the file ffmpeg in osr2mp4 folder then run the app again.

@brickyosu
Copy link
Author

brickyosu commented Jun 24, 2021 via email

@brickyosu
Copy link
Author

brickyosu commented Jun 24, 2021

https://evermeet.cx/ffmpeg/ffmpeg-102787-gec8e95296e.7z

Download this,
Unzip it, then put the file ffmpeg in osr2mp4 folder then run the app again.

does not work,

/Users/dax/pythonapps/osr2mp4-app/main.py:172: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. self.resize(self.width(), height) Updated QSoundEffect(qaudio): Error decoding source file:blank objc[94819]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffa6ebbcd0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11f917cd8). One of the two will be used. Which one is undefined.

@brickyosu
Copy link
Author

brickyosu commented Jun 24, 2021

https://evermeet.cx/ffmpeg/ffmpeg-102787-gec8e95296e.7z
Download this,
Unzip it, then put the file ffmpeg in osr2mp4 folder then run the app again.

does not work,

`/Users/dax/pythonapps/osr2mp4-app/main.py:172: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python.
self.resize(self.width(), height)
Updated
QSoundEffect(qaudio): Error decoding source file:blank
objc[94819]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffa6ebbcd0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11f917cd8). One of the two will be used. Which one is undefined.

`

https://evermeet.cx/ffmpeg/ffmpeg-102787-gec8e95296e.7z

Download this,
Unzip it, then put the file ffmpeg in osr2mp4 folder then run the app again.

wait a min, install.py does this:

skipping 'ccurves.cpp' Cython extension (up-to-date)

Done compiling ccurves module. osr2mp4 should run properly now.

Trying to compile optional feature ffmpeg video writer...
running build_ext
skipping 'PyFrameWriter.cpp' Cython extension (up-to-date)
building 'osr2mp4cv' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Iinclude -I/Users/dax/.brew/lib/python3.9/site-packages/numpy/core/include -I/Users/dax/.brew/include -I/Users/dax/.brew/opt/openssl@1.1/include -I/Users/dax/.brew/opt/sqlite/include -I/Users/dax/.brew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c FrameWriter.cpp -o build/temp.macosx-10.13-x86_64-3.9/FrameWriter.o -std=c++11 -w
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Iinclude -I/Users/dax/.brew/lib/python3.9/site-packages/numpy/core/include -I/Users/dax/.brew/include -I/Users/dax/.brew/opt/openssl@1.1/include -I/Users/dax/.brew/opt/sqlite/include -I/Users/dax/.brew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c PyFrameWriter.cpp -o build/temp.macosx-10.13-x86_64-3.9/PyFrameWriter.o -std=c++11 -w
clang++ -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.9/FrameWriter.o build/temp.macosx-10.13-x86_64-3.9/PyFrameWriter.o -Llib -L/Users/dax/.brew/lib -L/Users/dax/.brew/opt/openssl@1.1/lib -L/Users/dax/.brew/opt/sqlite/lib -lavcodec -lavutil -lavformat -lswresample -lswscale -o /Users/dax/.brew/lib/python3.9/site-packages/osr2mp4/VideoProcess/FFmpegWriter/osr2mp4cv.cpython-39-darwin.so
ld: library not found for -lavcodec
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit code 1
Traceback (most recent call last):
  File "/Users/dax/pythonapps/osr2mp4-app/install.py", line 35, in <module>
    subprocess.check_call([sys.executable, "setup.py", "build_ext", "--inplace"])
  File "/Users/dax/.brew/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/dax/.brew/opt/python@3.9/bin/python3.9', 'setup.py', 'build_ext', '--inplace']' returned non-zero exit status 1.

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

you are using python3.9, you need python3.7.8 to work.

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

also what error are you getting when clicking start? Still "make sure audio file is blabla"?

@brickyosu
Copy link
Author

also what error are you getting when clicking start? Still "make sure audio file is blabla"?

make sure audio file is in mapset folder

@brickyosu
Copy link
Author

you are using python3.9, you need python3.7.8 to work.

when I do the pyenv init thingy it does not work. i use bash_profile.

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

when I do the pyenv init thingy it does not work. i use bash_profile.

what? what does not work?

did you use pyenv to install python or did you install python manually?
If you followed correctly the tutorial you should have installed python3.7.8, not python3.9.

Well you can just uninstall pyenv then download python3.7.8 and install it manually which will be easier. (Just search python on google then click on the first link, then choose python version 3.7.8 then download and install it).

Also repeat this:

Run the app,
Click start, wait for the error to appear.
Then right click on the Logs folder, choose compress.
Send the compressed folder here.

@brickyosu
Copy link
Author

brickyosu commented Jun 24, 2021

when I do the pyenv init thingy it does not work. i use bash_profile.

what? what does not work?

did you use pyenv to install python or did you install python manually?
If you followed correctly the tutorial you should have installed python3.7.8, not python3.9.

Well you can just uninstall pyenv then download python3.7.8 and install it manually which will be easier. (Just search python on google then click on the first link, then choose python version 3.7.8 then download and install it).

Also repeat this:

Run the app,
Click start, wait for the error to appear.
Then right click on the Logs folder, choose compress.
Send the compressed folder here.

wait, when I put in
export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)"

(its not one line)

to bash_profile, it just says

WARNING: pyenv init -no longer sets PATH. Runpyenv init to see the necessary changes to make to your configuration.

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

do you have discord or something like that? It will be much easier to debug and fix the issue. Also can you zip the logs folder and send it

@brickyosu
Copy link
Author

brickyosu commented Jun 24, 2021

do you have discord or something like that? It will be much easier to debug and fix the issue. Also can you zip the logs folder and send it

my dad install discord but me is a kid

I looked it up and it say 13+

Logs.zip

@brickyosu
Copy link
Author

when I do the pyenv init thingy it does not work. i use bash_profile.

what? what does not work?

did you use pyenv to install python or did you install python manually?
If you followed correctly the tutorial you should have installed python3.7.8, not python3.9.

Well you can just uninstall pyenv then download python3.7.8 and install it manually which will be easier. (Just search python on google then click on the first link, then choose python version 3.7.8 then download and install it).

Also repeat this:

Run the app,
Click start, wait for the error to appear.
Then right click on the Logs folder, choose compress.
Send the compressed folder here.

btw I'm not admin on this macintosh

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

did you put ffmpeg in osr2mp4 folder?

@uyitroa
Copy link
Owner

uyitroa commented Jun 24, 2021

If it still doesn't work. Follow these steps:
Put ffmpeg file back to Downloads folder.
Open terminal, do
cd ~/Downloads/
then sudo mkdir -p /usr/local/bin/
(you might need to enter the password, also when you type the password, nothing will be shown in the terminal but you can still type it.)
Then do:
sudo cp ./ffmpeg /usr/local/bin
after that, you do:
sudo chmod ugo+x /usr/local/bin/ffmpeg

after that, open -e ~/.bash_profile

then add this to the file at the end:
export PATH="/usr/local/bin:$PATH"

Then restart terminal.

Now you need to reinstall python because you installed the wrong python version,
brew uninstall pyenv
brew uninstall python

Then download the right version here: https://www.python.org/ftp/python/3.7.8/python-3.7.8-macosx10.9.pkg
Install it. Then restart your pc.
Then redo "Configuring and Running PyEnv and osr2mp4" (of MacOSLinuxInstall.md" starting from step 4.

@brickyosu
Copy link
Author

If it still doesn't work. Follow these steps:
Put FFmpeg file back to Downloads folder. Open terminal, do cd ~/Downloads/thensudo mkdir -p /usr/local/bin/(you might need to enter the password, also when you type the password, nothing will be shown in the terminal but you can still type it.) Then do:sudo cp ./ffmpeg /usr/local/binafter that, you do:sudo chmod ugo+x /usr/local/bin/ffmpeg`

after that, open -e ~/.bash_profile

then add this to the file at the end:
export PATH="/usr/local/bin:$PATH"

Then restart terminal.

Now you need to reinstall python because you installed the wrong python version,
brew uninstall pyenv
brew uninstall python

Then download the right version here: https://www.python.org/ftp/python/3.7.8/python-3.7.8-macosx10.9.pkg
Install it. Then restart your pc.
Then redo "Configuring and Running PyEnv and osr2mp4" (of MacOSLinuxInstall.md" starting from step 4.

I'm not a sudoer in the sudoers file, and I am on high sierra and don't have admin perms since my mom is strict and she won't let me download "viruses" on my computer though it isn't a virus.

@uyitroa
Copy link
Owner

uyitroa commented Jul 1, 2021

my dad install discord but me is a kid

I looked it up and it say 13+

sorry osr2mp4 is 13+

@uyitroa uyitroa closed this as completed Jul 1, 2021
@brickyosu
Copy link
Author

my dad install discord but me is a kid

I looked it up and it say 13+

sorry osr2mp4 is 13+

noooooooooooo

now wut do i do :(

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