Giter Site home page Giter Site logo

martyr-deepin / deepin-movie Goto Github PK

View Code? Open in Web Editor NEW
145.0 36.0 66.0 25.91 MB

Old deepin media player, see deepin-movie-reborn for the new one.

Home Page: https://github.com/linuxdeepin/deepin-movie-reborn

License: GNU General Public License v3.0

Makefile 0.23% Python 36.21% QML 63.20% JavaScript 0.35%

deepin-movie's Introduction

Deepin Movie

Description: The default media player for Deepin, very beautiful yet very easy to use. QML is used to build its graphical interface combined QtAV as its multimedia backend. All video formats are supported out of the box.

Dependencies

Build dependencies

  • python

Runtime dependencies

Installation

After installed all the dependencies listed above, run

make && make install

Usage

To simply play a video file. run

deepin-movie VIDEO_FILE

Known issues

  • command line options are not well supported.

Getting help

Any usage issues can ask for help via

Getting involved

We encourage you to report issues and contribute changes

License

Deepin Movie is licensed under GPLv3.

deepin-movie's People

Contributors

amazingfate avatar deepinzhangshuang avatar felixonmars avatar gs342 avatar hualet avatar iceleaf916 avatar iceyer avatar jesensilence avatar jouyouyun avatar leaeasy avatar manateelazycat avatar sbwtw avatar smallevilbeast avatar snyh avatar tsuibin avatar willmafh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepin-movie's Issues

TypeError: 'QJSValue' object is not iterable

Traceback (most recent call last):
  File "/usr/share/deepin-movie/utils/utils.py", line 164, in run
    self._process_path_list(self._pathList)
  File "/usr/share/deepin-movie/utils/utils.py", line 152, in _process_path_list
    for path in pathList:
TypeError: 'QJSValue' object is not iterable

Qt 版本 5.4.2

Fail to sudo make install PyQt-gpl-5.1.1, HOWTO fix wrong ZISHI?

Hi, LinuxDeepin Core Team

sudo make install

install -m 755 -p /home/zhaixiang/project/linuxdeepin/PyQt-gpl-5.1.1/pyuic5 /usr/bin/
strip /usr/bin/pyuic5
strip:/usr/bin/pyuic5: 不可识别的文件格式
Makefile:1621: recipe for target 'install_pyuic5' failed
make: [install_pyuic5] Error 1 (ignored)

But there is NO error during make process.

Please @manateelazycat fix my wrong ZISHI?

PS: I did not ln

sudo ln -s /usr/include/python2.7 /usr/local/include/python2.7

And if I miss something else? please give me some advice, thanks a lot!

Regards,
Leslie Zhai

windows size too small

No window controls (no chance to close, minimize, maximize) and there is only a few pixels of the most left border of the video within the window.

Using Arch.

multi language video files ... no option to choose audio language of choice ...

Hi,

A great effort in the form of Deepin OS and the individual Deepin packages ... i was watching a video file which had 2 languages packaged. I just could not find the option/setting to access these language options and choose one of my choice. The same video file however gives this audio language switch option when played in 'vlc'.

I don't know if Deepin movies lacks this feature or its just that this setting is unavailable as a result of some bug.

However please do look into it.

thanks.

AttributeError: 'Config' object has no attribute 'hotkeysFrameSoundIncreaseVolume'

deepinscreenshot_select-area_20170721174321

Terminal output:
]$ deepin-movie

(python2:5350): Gtk-WARNING **: Tema aygıtı module_path "adwaita" içinde bulunamadı,

(python2:5350): Gtk-WARNING **: Tema aygıtı module_path "adwaita" içinde bulunamadı,
Traceback (most recent call last):
File "/usr/bin/deepin-movie", line 71, in
from controllers.menu_controller import MenuController
File "/usr/share/deepin-movie/controllers/menu_controller.py", line 58, in
("_sound_increase", _("Volume Up"), (), (), config.hotkeysFrameSoundIncreaseVolume),
AttributeError: 'Config' object has no attribute 'hotkeysFrameSoundIncreaseVolume'

Error in launch

Since the latest opened movie with Deepin Movie app, I cannot start anymore the application.

Launching with in a terminal using the command: deepin-movie, I receive the next errors in my terminal:

Traceback (most recent call last):
  File "/usr/share/deepin-movie/utils/config.py", line 307, in f
    return pickle.loads(result)
  File "/usr/lib/python2.7/pickle.py", line 1388, in loads
    return Unpickler(file).load()
  File "/usr/lib/python2.7/pickle.py", line 864, in load
    dispatch[key](self)
  File "/usr/lib/python2.7/pickle.py", line 1081, in load_obj
    k = self.marker()
  File "/usr/lib/python2.7/pickle.py", line 880, in marker
    while stack[k] is not mark: k = k-1
IndexError: list index out of range
Aborted

Removing my file config.ini resolve the problem. I presume there is an option who is causing this error hope this can help you find and fix the bug.

Here is what contain my config file:

[Player]
volume = 1.0
muted = False
subtitleHide = False
applyLastClosedSize = False
fullscreenOnOpenFile = False
playOrderType = ORDER_TYPE_PLAYLIST_CYCLE
cleanPlaylistOnOpenNewFile = False
autoPlayFromLast = True
autoPlaySeries = True
showPreview = True
forwardRewindStep = 5.0
multipleProgramsAllowed = False
notificationsEnabled = True
pauseOnMinimized = True

[HotkeysPlay]
hotkeyEnabled = True
togglePlay = Space
forward = Right
backward = Left
toggleFullscreen = Return
togglePlaylist = F3
speedUp = Ctrl+Right
slowDown = Ctrl+Left
restoreSpeed = R

[HotkeysFrameSound]
hotkeyEnabled = True
toggleMiniMode = F2
rotateClockwise = W
rotateAnticlockwise = E
increaseVolume = Up
decreaseVolume = Down
toggleMute = M

[HotkeysSubtitles]
hotkeyEnabled = True
subtitleForward = Shift+Right
subtitleBackward = Shift+Left
subtitleMoveUp = Shift+Up
subtitleMoveDown = Shift+Down

[HotkeysFiles]
hotkeyEnabled = True
openFile = Ctrl+O
playPrevious = PgUp
playNext = PgDown

[Subtitle]
autoLoad = True
fontSize = 20.0
fontFamily = 
fontColor = #ffffff
fontBorderSize = 1.0
fontBorderColor = black
verticalPosition = 0.05
delayStep = 0.5

[Others]
leftClick = True
doubleClick = True
wheel = True

Thanks

Utf 8 subtitles

Hi,
When I load Portuguese subtitles (have a special characters) it appears misconfigured
I suggest support for UTF 8 subtitles
Thank you so much

Built Legend with srt

If an MKV file has a built-in legend and there is a SRT subtitle, the two subtitles appear at the same time. How to disable the built-in subtitle in the MKV file and leave only display the SRT subtitle?

The internal MKV caption does not respect the caption configuration, for example color and size.

deepin-movie cannot get started after a crash.

I cannot start deepin-movie,and here is the logs when I run deepin-movie in termianl.

ATTENTION: default value of option bo_reuse overridden by environment.
AudioResampler::Register(..., FFmpeg)
Singleton 0x7f59b00ae1f0 created...
AudioResampler::Register(..., Libav)
AudioOutputBackend::Register(..., OpenAL)
Singleton 0x7f59b00ae2c0 created...
AudioOutputBackend::Register(..., Pulse)
VideoDecoder::Register(..., CUDA)
Singleton 0x7f59b00ae470 created...
VideoDecoder::Register(..., VAAPI)
VideoRenderer::Register(..., OpenGLWindow)
Singleton 0x7f59b00aead0 created...
SubtitleProcessor::Register(..., LibASS)
Singleton 0x7f59b00aebe0 created...
SubtitleProcessor::Register(..., FFmpeg)
AudioDecoder::Register(..., FFmpeg)
Singleton 0x7f59b00aefa0 created...
AudioEncoder::Register(..., FFmpeg)
Singleton 0x7f59b00af070 created...
ImageConverter::Register(..., FFmpeg)
Singleton 0x7f59b00af1a0 created...
MediaIO::Register(..., QIODevice)
Singleton 0x7f59b00af4a0 created...
MediaIO::Register(..., QFile)
AudioOutputBackend::Register(..., null)
VideoDecoder::Register(..., FFmpeg)
VideoEncoder::Register(..., FFmpeg)
Singleton 0x7f59b00af730 created...
VideoRenderer::Register(..., QQuickItem)
VideoRenderer::Register(..., QuickFBO)
AudioOutputBackend::id("Pulse")
SubtitleProcessor::id("LibASS")
SubtitleProcessor::id("FFmpeg")
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Traceback (most recent call last):
File "/usr/share/deepin-movie/models/playlist.py", line 281, in getPlaylistContent
contentCache = json.loads(_cache)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

deepin-movie播放samba中视频触发文件复制

描述
环境 Manjaro KDE
视频源 内网Samba服务器
打开方式 通过文件浏览器打开
deepin-movie表现 首先会启动系统的复制,将Samba里的视频复制到本地,然后再播放视频
vlc表现 正常直接播放视频
如果手动复制smb://*地址进入deepin-movie 正常直接播放视频

OSError: [Errno 2] No such file or directory

您好,我在播放视频文件时,出现以下错误,是环境没有安装好么?未安装dde-daemon dde-workspace的原因导致?
我是在 fedora20 pyqt5.3.2下进行的测试。
2014-10-04 17:02:17,306 - DMovie - INFO - set movie_file /home/mosquito/abc.flv
/home/mosquito/abc.flv

/usr/lib64/python2.7/encodings/string_escape.pyc matches /usr/lib64/python2.7/encodings/string_escape.py

import encodings.string_escape # precompiled from /usr/lib64/python2.7/encodings/string_escape.pyc
Traceback (most recent call last):
File "/home/mosquito/deepin-movie/movie_info.py", line 145, in movie_file
self.parseFile(filepath)
File "/home/mosquito/deepin-movie/movie_info.py", line 94, in parseFile
self.media_info = parse_info(filepath)
File "/home/mosquito/deepin-movie/media_info.py", line 80, in parse_info
output = subprocess.Popen(args, stdout=subprocess.PIPE).stdout
File "/usr/lib64/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] 没有那个文件或目录

Peewee assistance

Hey, I'm the author of peewee and am flattered that you've chosen to use it in your application. I hope it hasn't been a decision that you've regretted, but I can see from some comments that you may have run into issues with it.

Please don't hesitate to let me know if you find a bug, or if the behavior is surprising or counter-intuitive. You can open issues here: https://github.com/coleifer/peewee/issues or feel free to respond in this ticket. I'd be happy to help.

Playing online(url) content ...

Hi,

I am unable to run online videos with the 'open url' option ... is this feature active ... or is it a planned feature for the future ?

I have tried to play direct youtube urls as well as extracted hidden video links embedded in the page source. No success with either.

Am i doing things wrongly ?

thanks.

OpenGL module import not necessary

Hello. While testing deepin-movie on Arch linux, I've found one issue:
This is not necessary:
src/main.py, line 43:
from OpenGL import GL
It is not used in the file. And it introduces a dependency on python2-opengl unnecessarily.
After commenting out this line, I'm able to run deepin-movie.
Please see: Arch Linux bug 52108
Regards

AttributeError: 'NoneType' object has no attribute 'initWindowSize'

Traceback (most recent call last):
File "/usr/bin/deepin-movie", line 106, in
windowView.initWindowSize()
File "/usr/share/deepin-movie/views/window.py", line 76, in initWindowSize
self.rootObject().initWindowSize()
AttributeError: 'NoneType' object has no attribute 'initWindowSize'

Ubuntu 14.04 使用 Qt5.4 + PyQt5.4,先编译安装 deepin-qml-widget,运行 deepin-movie 报上述错。求解?

python-magic API is broken

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702135

diff --git a/utils.py b/utils.py
index a68f256..5b14def 100644
--- a/utils.py
+++ b/utils.py
@@ -26,8 +26,7 @@ import subprocess
 from ConfigParser import ConfigParser

 import magic
-md = magic.open(magic.MAGIC_MIME_TYPE)
-md.load()
+md = magic.Magic(mime=True)
 from PyQt5.QtWidgets import QApplication
 from PyQt5.QtGui import QKeySequence
 from PyQt5.QtCore import QObject, QThread, pyqtSignal, pyqtSlot, pyqtProperty
@@ -95,13 +94,13 @@ def sortSeries(serieName, series):
 def getFileMimeType(filename):
     result = None
     try:
-        result = md.file(filename)
+        result = md.from_file(filename)
     except Exception:
         try:
-           result = md.file(filename.encode("utf-8"))
+           result = md.from_file(filename.encode("utf-8"))
         except Exception:
             try:
-                result = md.file(filename.encode("gbk"))
+                result = md.from_file(filename.encode("gbk"))
             except Exception:
                 pass
     return result

添加目录列表没有自动刷新,排序不对

选择目录添加视频后列表没有自动刷新,看着像是没加载成功,手动刷新列表就出来了。
另一个是排序问题,很基础的,目录里的视频01.mkv、02.mkv、03.mkv ...这样命名,加载后是乱序,完全没法用啊这样,播放完一集还得慢慢找下一集。。。

环境ArchLinux x64,
Version : 2.3.0.20151102-1

deepin-dlna-renderer is nowhere to be found

README mentions deepin-dlna-renderer but the url is 404 because of gitcafe shutdown. The project is not mirrored to GitHub either. Is it still useful that should be mirrored here, or removed altogether? @hualet

最后一步编译出错

fzitou@fzitou-faith ~/PyQt-gpl-5.1.1 $ make
cd qpy/ && ( test -e Makefile || /home/fzitou/Qt5.1.1/5.1.1/gcc_64/bin/qmake /home/fzitou/PyQt-gpl-5.1.1/qpy/qpy.pro -o Makefile ) && make -f Makefile
make[1]: 正在进入目录 /home/fzitou/PyQt-gpl-5.1.1/qpy' cd QtCore/ && ( test -e Makefile || /home/fzitou/Qt5.1.1/5.1.1/gcc_64/bin/qmake /home/fzitou/PyQt-gpl-5.1.1/qpy/QtCore/QtCore.pro -o Makefile ) && make -f Makefile make[2]: 正在进入目录/home/fzitou/PyQt-gpl-5.1.1/qpy/QtCore'
g++ -c -pipe -fno-strict-aliasing -O2 -fPIC -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I../../../Qt5.1.1/5.1.1/gcc_64/mkspecs/linux-g++ -I. -I. -I../../QtCore -I/usr/local/include/python2.7 -I../../../Qt5.1.1/5.1.1/gcc_64/include -I../../../Qt5.1.1/5.1.1/gcc_64/include/QtCore -I. -o qpycore_chimera.o qpycore_chimera.cpp
qpycore_chimera.cpp:21:20: 致命错误:Python.h:没有那个文件或目录
编译中断。
make[2]: *** [qpycore_chimera.o] 错误 1
make[2]:正在离开目录 /home/fzitou/PyQt-gpl-5.1.1/qpy/QtCore' make[1]: *** [sub-QtCore-make_first] 错误 2 make[1]:正在离开目录/home/fzitou/PyQt-gpl-5.1.1/qpy'
make: *** [sub-qpy-make_first-ordered] 错误 2

linuxmint17 ×64

subtitle forward/backward shortcut ...

Hi,

i love this feature where we can pause the movie and move forward/backward the subtitles by way of these shortcuts.

However out of experience i can say that the subtitles files are usually not in sync they are off by a great length. The forward shortcut 'Shift+right' and backward shortcut 'Shift+left' works one click/tap at a time, considering how off the subtitles are in sync with a movie/video ... and with half a sec jumps on each tap that is a looooooooot of taps/click on the 'right' and 'left' keys.

Wouldn't it be a great option if we could just press and hold the 'right' and 'left' keys to move the titles forwards or backwards ?

look forward to seeing a 'press and hold' implementation of the subtitle shortcut keys.

archlinux 运行错误

ATTENTION: default value of option bo_reuse overridden by environment.
file:///usr/share/deepin-movie/views/main.qml:69:5: Type PreferenceWindow unavailable
PreferenceWindow { id: preference_window }
^
file:///usr/share/deepin-movie/views/PreferenceWindow.qml:285:13: Type SpinnerRow unavailable
SpinnerRow {
^
file:///usr/share/deepin-movie/views/SpinnerRow.qml:26:2: Type DSpinner unavailable
DSpinner {
^
file:///usr/lib/qt/qml/Deepin/Widgets/DSpinner.qml:3:1: Type DTextInput unavailable
DTextInput {
^
file:///usr/lib/qt/qml/Deepin/Widgets/DTextInput.qml:191:5: Type DInputActions unavailable
DInputActions {
^
file:///usr/lib/qt/qml/Deepin/Widgets/DInputActions.qml:2:1: module "DBus.Com.Deepin.Menu" is not installed
import DBus.Com.Deepin.Menu 1.0
^
Traceback (most recent call last):
File "/usr/bin/deepin-movie", line 107, in
windowView.initWindowSize()
File "/usr/share/deepin-movie/views/window.py", line 78, in initWindowSize
self.rootObject().initWindowSize()
AttributeError: 'NoneType' object has no attribute 'initWindowSize'

是不是我没有包含一些python的库。我记得上次补全以后又出现新的错误了。。

Subtititles color

The white color is great, but sometimes it is bothersome. Sometimes the background makes it invisible.

[bug] Loading .mkv files doesn't work

Whenever I try to load a .mkv file, Deepin Movie crashes.

Traceback (most recent call last): File "/usr/share/deepin-movie/views/subtitles.py", line 207, in set_subtitle_from_movie self.file_name = get_subtitle_from_movie(movie_file)[0] File "/usr/share/deepin-movie/views/subtitles.py", line 95, in get_subtitle_from_movie all_this_ext = glob.glob(try_ext) File "/usr/lib/python2.7/glob.py", line 27, in glob return list(iglob(pathname)) File "/usr/lib/python2.7/glob.py", line 63, in iglob for dirname in dirs: File "/usr/lib/python2.7/glob.py", line 64, in iglob for name in glob_in_dir(dirname, basename): File "/usr/lib/python2.7/glob.py", line 83, in glob1 return fnmatch.filter(names, pattern) File "/usr/lib/python2.7/fnmatch.py", line 56, in filter _cache[pat] = re_pat = re.compile(res) File "/usr/lib/python2.7/re.py", line 194, in compile return _compile(pattern, flags) File "/usr/lib/python2.7/re.py", line 251, in _compile raise error, v # invalid expression sre_constants.error: bad character range

where is deepin-generate-mo in Makefile

It is my first time to install deepin products. I have no idea which deepin package offers this tool. I use Arch Linux. Could you list dependencies in README?

By the way, when I try to run main.py directly, it implies "import xcb" fail. When I installed python2-xcffib, the module "xcb" was still not found, until I installed the old "xpyb". Could you also list the python package dependencies? (I have qt5, pyqt5, sip installed from arch repo.) I think it would be much helpful for its propagation!

Thank you very much!!

High CPU usage

Deepin Movie uses a lot of CPU.

Please fix it as soon as possible.

My specs:
Distro: Arch Linux
Graphics: Intel Haswell
CPU: Intel Core i5 4th generation

Release version

What release version is this now? Also after installing all the Qts as indicated, how then do you install deepin movie on ubuntu?

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.