u8sand / Baka-MPlayer

The libmpv based media player
https://u8sand.github.io/Baka-MPlayer/
GNU General Public License v2.0
430 stars 93 forks source link

build not working on OSX #204

Open ghost opened 8 years ago

ghost commented 8 years ago

kota@iMac ~/Downloads/Baka-MPlayer ➜ brew tap mpv-player/mpv ruby-2.2.2 release ✔ ==> Tapping mpv-player/mpv Cloning into '/usr/local/Library/Taps/mpv-player/homebrew-mpv'... remote: Counting objects: 3, done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), done. Checking connectivity... done. Tapped 0 formulae (25 files, 19.5K) kota@iMac ~/Downloads/Baka-MPlayer ➜ brew install mpv --with-libmpv ruby-2.2.2 release ✔ ==> Installing dependencies for mpv: youtube-dl ==> Installing mpv dependency: youtube-dl ==> Downloading https://homebrew.bintray.com/bottles/youtube-dl-2016.04.06.el_capitan.bottle.tar.gz

100,0%

==> Pouring youtube-dl-2016.04.06.el_capitan.bottle.tar.gz ==> Caveats To use post-processing options, brew install ffmpeg or brew install libav.

Bash completion has been installed to: /usr/local/etc/bash_completion.d

zsh completion has been installed to: /usr/local/share/zsh/site-functions ==> Summary 🍺 /usr/local/Cellar/youtube-dl/2016.04.06: 9 files, 1.4M ==> Installing mpv ==> Downloading https://homebrew.bintray.com/bottles/mpv-0.16.0.el_capitan.bottle.tar.gz Already downloaded: /Library/Caches/Homebrew/mpv-0.16.0.el_capitan.bottle.tar.gz ==> Pouring mpv-0.16.0.el_capitan.bottle.tar.gz ==> Caveats zsh completion has been installed to: /usr/local/share/zsh/site-functions ==> Summary 🍺 /usr/local/Cellar/mpv/0.16.0: 206 files, 4.8M kota@iMac ~/Downloads/Baka-MPlayer ➜ brew install libav ruby-2.2.2 release ✔ ==> Installing dependencies for libav: faac ==> Installing libav dependency: faac ==> Downloading https://homebrew.bintray.com/bottles/faac-1.28.el_capitan.bottle.1.tar.gz

100,0%

==> Pouring faac-1.28.el_capitan.bottle.1.tar.gz 🍺 /usr/local/Cellar/faac/1.28: 15 files, 671.7K ==> Installing libav ==> Downloading https://homebrew.bintray.com/bottles/libav-11.4_2.el_capitan.bottle.1.tar.gz

100,0%

==> Pouring libav-11.4_2.el_capitan.bottle.1.tar.gz 🍺 /usr/local/Cellar/libav/11.4_2: 8 files, 17.8M kota@iMac ~/Downloads/Baka-MPlayer ➜ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ruby-2.2.2 release ✔ kota@iMac ~/Downloads/Baka-MPlayer ➜ ./configure ruby-2.2.2 release ✔ Using qmake version 5.6.0... Project ERROR: mpv development package not found

u8sand commented 8 years ago

You probably just need to add the libmpv pkgbuild yourself manually. It gets built by MPV should be mpv.pc just need to copy it into your pkgbuild directory. On Apr 6, 2016 8:59 PM, "Aleksey" notifications@github.com wrote:

kota@iMac ~/Downloads/Baka-MPlayer ➜ brew tap mpv-player/mpv ruby-2.2.2 release ✔ ==> Tapping mpv-player/mpv Cloning into '/usr/local/Library/Taps/mpv-player/homebrew-mpv'... remote: Counting objects: 3, done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), done. Checking connectivity... done. Tapped 0 formulae (25 files, 19.5K) kota@iMac ~/Downloads/Baka-MPlayer ➜ brew install mpv --with-libmpv ruby-2.2.2 release ✔ ==> Installing dependencies for mpv: youtube-dl ==> Installing mpv dependency: youtube-dl ==> Downloading https://homebrew.bintray.com/bottles/youtube-dl-2016.04.06.el_capitan.bottle.tar.gz ######################################################################## 100,0% ==> Pouring youtube-dl-2016.04.06.el_capitan.bottle.tar.gz ==> Caveats To use post-processing options, brew install ffmpeg or brew install libav.

Bash completion has been installed to: /usr/local/etc/bash_completion.d

zsh completion has been installed to: /usr/local/share/zsh/site-functions ==> Summary 🍺 /usr/local/Cellar/youtube-dl/2016.04.06: 9 files, 1.4M ==> Installing mpv ==> Downloading https://homebrew.bintray.com/bottles/mpv-0.16.0.el_capitan.bottle.tar.gz Already downloaded: /Library/Caches/Homebrew/mpv-0.16.0.el_capitan.bottle.tar.gz ==> Pouring mpv-0.16.0.el_capitan.bottle.tar.gz ==> Caveats zsh completion has been installed to: /usr/local/share/zsh/site-functions ==> Summary 🍺 /usr/local/Cellar/mpv/0.16.0: 206 files, 4.8M kota@iMac ~/Downloads/Baka-MPlayer ➜ brew install libav ruby-2.2.2 release ✔ ==> Installing dependencies for libav: faac ==> Installing libav dependency: faac ==> Downloading https://homebrew.bintray.com/bottles/faac-1.28.el_capitan.bottle.1.tar.gz ######################################################################## 100,0% ==> Pouring faac-1.28.el_capitan.bottle.1.tar.gz 🍺 /usr/local/Cellar/faac/1.28: 15 files, 671.7K ==> Installing libav ==> Downloading https://homebrew.bintray.com/bottles/libav-11.4_2.el_capitan.bottle.1.tar.gz ######################################################################## 100,0% ==> Pouring libav-11.4_2.el_capitan.bottle.1.tar.gz 🍺 /usr/local/Cellar/libav/11.4_2: 8 files, 17.8M kota@iMac ~/Downloads/Baka-MPlayer ➜ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ruby-2.2.2 release ✔ kota@iMac ~/Downloads/Baka-MPlayer ➜ ./configure ruby-2.2.2 release ✔ Using qmake version 5.6.0... Project ERROR: mpv development package not found

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/204

ghost commented 8 years ago

mpv.pc just need to copy it into your pkgbuild directory.

And where can I get it mpv.pc?

ghost commented 8 years ago

Can you throw it? Or compile player under mac ?

ghost commented 8 years ago

Thank you! It worked!

Do not tell about this player: Project website: http://bomi-player.github.io/ git repository https://github.com/xylosper/bomi

When compiling pops up:

autodetect src/bomi/translations/*.ts /bin/sh: autodetect: command not found

u8sand commented 8 years ago

I'm glad you got it working! On Apr 6, 2016 10:30 PM, "Aleksey" notifications@github.com wrote:

Thank you! It worked!

Do not tell about this player: Project website: http://bomi-player.github.io/ git repository https://github.com/xylosper/bomi

When compiling pops up:

autodetect src/bomi/translations/*.ts /bin/sh: autodetect: command not found

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/204#issuecomment-206662141

ghost commented 8 years ago

True, I was not able to change the localization into Russian :)

ghost commented 8 years ago

Do not tell about this player: Project website: http://bomi-player.github.io/ git repository https://github.com/xylosper/bomi

When compiling pops up:

autodetect src/bomi/translations/*.ts /bin/sh: autodetect: command not found

?)))

u8sand commented 8 years ago

I'm aware of bomi player's existence, but there are various things that make it somewhat different from baka mplayer.

I'm not sure I really understand the question. On Apr 6, 2016 10:48 PM, "Aleksey" notifications@github.com wrote:

Do not tell about this player: Project website: http://bomi-player.github.io/ git repository https://github.com/xylosper/bomi

When compiling pops up:

autodetect src/bomi/translations/*.ts /bin/sh: autodetect: command not found

?)))

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/204#issuecomment-206668024

ghost commented 8 years ago

I'm sorry, I do not speak English. I wanted to test both the player and select one. But I could not compile bomi player ( Your player I compiled, but it hangs, and more nothing happens ((Though like as compiled correctly.

As for bomi player: When you compile error occurs, which I could not overcome: autodetect src/bomi/translations/*.ts /bin/sh: autodetect: command not found

Perhaps you tell me how to fix?

ghost commented 8 years ago

Can you share ready player under MAC?

u8sand commented 8 years ago

Actually we recently set up a Mac server for this purpose but have yet to get around to building baka on it. When we do, I'll certainly pass you a working build. On Apr 6, 2016 11:44 PM, "Aleksey" notifications@github.com wrote:

Can you share ready player under MAC?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/204#issuecomment-206684277

ghost commented 7 years ago

@u8sand Hi Daniel! Baka looks like a great player. Any progress on the Mac builds?

The build instructions are outdated, so I revised them. I quit when I noticed that the ./configure step also requires the full Xcode to be installed. But this is better than what's on the existing help page:

brew install youtube-dl
brew install mpv --with-libmpv

git clone -b release https://github.com/u8sand/Baka-MPlayer.git
cd Baka-MPlayer
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
brew install qt5
export QMAKE=/usr/local/Cellar/qt5/5*/bin/qmake
./configure CONFIG+=install_translations
make
open build

Explanation:

But please, why not start compiling for macOS officially? There are no other pre-built "mpv" GUIs for macOS, and there is growing interest in mpv (because VLC is so bloated), but the default "OSD" GUI of mpv sucks.

godly-devotion commented 7 years ago

Thanks @SteveJobzniak! I was able to successfully compile and run Baka. It does freeze when we try to open a video file but we are working on figuring out the issue. We are confident that compiling official builds of Baka (and its successor) for macOS will be pretty close.

ghost commented 7 years ago

@godly-devotion Hey Joshua, that's wonderful news. The difference between VLC and mpv is night and day. VLC can't play 4k @ 30 fps on my computer. But mpv can play 4k @ 60 fps. So it does 4k and handles twice the framerate at that.

I'm glad that I decided to try mpv yesterday. I had so much fun. Higher performance than VLC, less choppiness/stuttering, way faster seeking, frame by frame advance, a-b looping, handles 4K video, etc. And I ended up spending 10 hours just writing scripts and binding advanced functions. Fun for a techy guy like myself. But something like Baka is more appropriate for a general audience, like my girlfriend. We shouldn't have to tell mere mortals a bunch of keyboard shortcuts.

So there's a really big audience for a new VLC replacement with an easy GUI. Baka looks great!

Looking forward to watching for a macOS build.

PS: Is it possible to passthrough to mpv keycommands for anything not bound in baka? Ie: "key is pressed > check for baka binding and execute if available > otherwise pass it through to mpv". If that's possible, I'd definitely run in that mode since it would allow all the power of a universal, portable ~/.config/mpv/input.conf together with all the power of a great GUI.

ghost commented 7 years ago

@godly-devotion @u8sand Woah. I just went to give my mother a Windows mpv frontend and came across Baka again, and saw this:

preview

Finally something less technical people can use without me having to tell them 30 different keyboard keys to press. You are doing a wonderful thing for Mac users. Thank you so much. This will be the first modern frontend for mpv on Mac! That's awesome! ❤️

kennydiff commented 7 years ago

i want to know how is going on now ? can you build a usable exe from the code ? i can build in macOS ,and it can run ,but when i open a video file , the baka-mplayer hang & freeze... i don't know where's going wrong .

kennydiff commented 7 years ago

void BakaEngine::Open() { mpv->LoadFile(QFileDialog::getOpenFileName(window, tr("Open File"),mpv->getPath(), QString("%0 (%1);;").arg(tr("Media Files"), Mpv::media_filetypes.join(" "))+ QString("%0 (%1);;").arg(tr("Video Files"), Mpv::video_filetypes.join(" "))+ QString("%0 (%1);;").arg(tr("Audio Files"), Mpv::audio_filetypes.join(" "))+ QString("%0 (.)").arg(tr("All Files")), 0, QFileDialog::DontUseSheet)); }