Overview

Request 331 (accepted)

- update to 2.0git20121115, see more at http://goo.gl/mIk8b
- fix mplayer2 command

- Update to 1.0.2git20120911
* Add new subtitles functions
Subtitles Search
Subtitle Selection
  Subtitles manually load
  Subtitles resizing
  Subtitle synchronization functions
  Subtitles progress trim
- Fix desktop Categories

Submit package home:hillwood / deepin-media-player to package Multimedia / deepin-media-player

deepin-media-player.changes Changed
x
 
1
@@ -1,4 +1,23 @@
2
 -------------------------------------------------------------------
3
+Mon Dec 17 17:37:47 CST 2012 - hillwood@linuxfans.org
4
+
5
+- update to 2.0git20121115, see more at http://goo.gl/mIk8b
6
+- fix mplayer2 command
7
+
8
+-------------------------------------------------------------------
9
+Sat Oct  6 23:13:11 CST 2012 - hillwood@linuxfans.org
10
+
11
+- Update to 1.0.2git20120911
12
+* Add new subtitles functions
13
+  Subtitles Search
14
+  Subtitle Selection
15
+  Subtitles manually load
16
+  Subtitles resizing
17
+  Subtitle synchronization functions
18
+  Subtitles progress trim
19
+- Fix desktop Categories
20
+
21
+-------------------------------------------------------------------
22
 Tue Sep  4 21:56:11 CST 2012 - hillwood@linuxfans.org
23
 
24
 - Initial package 1.0git20120817
25
deepin-media-player.spec Changed
26
 
1
@@ -18,7 +18,7 @@
2
 
3
 Name:           deepin-media-player
4
 Summary:        Deepin Media Playe 
5
-Version:        1.0git20120817
6
+Version:        2.0git20121115
7
 Release:        1
8
 License:        GPL-3.0
9
 BuildArch:      noarch
10
@@ -27,6 +27,7 @@
11
 Source0:        %{name}-%{version}.tar.gz
12
 Source1:        deepin-media-player.desktop
13
 Source2:        deepin-media-player.png
14
+Patch0:         deepin-media-player-fix-mplayer2.patch
15
 BuildRequires:  update-desktop-files
16
 BuildRequires:  python-devel
17
 BuildRequires:  fdupes 
18
@@ -51,6 +52,7 @@
19
 
20
 %prep
21
 %setup -q 
22
+%patch0 -p1
23
 
24
 %build
25
 chmod 644 AUTHORS
26
deepin-media-player-fix-mplayer2.patch Added
50
 
1
@@ -0,0 +1,48 @@
2
+diff -Nur deepin-media-player-2.0git20121115/src/mplayer.py deepin-media-player-2.0git20121115-new/src/mplayer.py
3
+--- deepin-media-player-2.0git20121115/src/mplayer.py  2012-11-15 14:06:06.000000000 +0800
4
++++ deepin-media-player-2.0git20121115-new/src/mplayer.py  2012-12-17 16:28:02.000000000 +0800
5
+@@ -72,7 +72,7 @@
6
+ # Get play file length.
7
+ def get_length(file_path):
8
+     '''Get media player length.'''
9
+-    cmd = "mplayer -vo null -ao null -frames 0 -identify '%s'" % (file_path)
10
++    cmd = "mplayer2 -vo null -ao null -frames 0 -identify '%s'" % (file_path)
11
+     fp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
12
+     cmd_str = fp.communicate()[0]
13
+     length_compile = re.compile(r"ID_LENGTH=([\d|\.]+)")
14
+@@ -85,7 +85,7 @@
15
+ def get_vide_width_height(file_path):
16
+     try:
17
+         if is_valid_video_file(file_path):
18
+-            cmd = "mplayer -vo null -ao null -frames 0 -identify '%s' 2>&1" % (file_path)
19
++            cmd = "mplayer2 -vo null -ao null -frames 0 -identify '%s' 2>&1" % (file_path)
20
+             fp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)    
21
+             cmd_str = fp.communicate()[0]
22
+             length_compile = re.compile(r"VIDEO:.+") 
23
+@@ -326,7 +326,7 @@
24
+         if not (self.state): # STOPING_STATE
25
+             self.lenState = 1 
26
+             # -input file.. streme player.
27
+-            command = ['mplayer',
28
++            command = ['mplayer2',
29
+                        '-vo',
30
+                        'gl,2,x11,xv',
31
+                        '-zoom',
32
+@@ -777,7 +777,7 @@
33
+         
34
+         if self.state == STARTING_STATE:
35
+             # scrot image.
36
+-            scrot_command = "cd ~/.config/deepin-media-player/buffer/ && mplayer -ss %s -noframedrop -nosound -vo png -frames 1 '%s' >/dev/null 2>&1" % (scrot_pos, self.path)
37
++            scrot_command = "cd ~/.config/deepin-media-player/buffer/ && mplayer2 -ss %s -noframedrop -nosound -vo png -frames 1 '%s' >/dev/null 2>&1" % (scrot_pos, self.path)
38
+             os.system(scrot_command)
39
+             # modify image name or get image file.
40
+             save_image_path = get_home_path() + "/.config/deepin-media-player/buffer/"        # save image buffer dir.
41
+@@ -805,7 +805,7 @@
42
+             
43
+         if self.state == STARTING_STATE:
44
+             # scrot image.
45
+-            os.system("cd /tmp/buffer/ && mplayer -ss %s -noframedrop -nosound -vo png -frames 1 '%s' >/dev/null 2>&1" % (scrot_pos, self.path))
46
++            os.system("cd /tmp/buffer/ && mplayer2 -ss %s -noframedrop -nosound -vo png -frames 1 '%s' >/dev/null 2>&1" % (scrot_pos, self.path))
47
+             # modify image name or get image file.
48
+             save_image_path = "/tmp/buffer/"        # save preview image buffer dir.    
49
+             image_list = os.listdir(save_image_path) # get dir all image.
50
deepin-media-player-1.0git20120817.tar.gz -> deepin-media-player-2.0git20121115.tar.gz Changed
deepin-media-player.desktop Changed
8
 
1
@@ -7,5 +7,5 @@
2
 Exec=deepin-media-player %U
3
 Icon=/usr/share/icons/deepin-media-player.png
4
 Type=Application
5
-Categories=AudioVideo;Player;GTK;
6
+Categories=AudioVideo;Video;Player;GTK;
7
 MimeType=audio/ac3;audio/mp4;audio/mpeg;audio/vnd.rn-realaudio;audio/vorbis;audio/x-adpcm;audio/x-matroska;audio/x-mp2;audio/x-mp3;audio/x-ms-wma;audio/x-vorbis;audio/x-wav;audio/mpegurl;audio/x-mpegurl;audio/x-pn-realaudio;audio/x-scpls;video/avi;video/mp4;video/flv;video/mpeg;video/quicktime;video/vnd.rn-realvideo;video/x-matroska;video/x-ms-asf;video/x-msvideo;video/x-ms-wmv;video/x-ogm;video/x-theora;
8
Refresh
Refresh
Request History
Hillwood Yang's avatar

hillwood created request over 11 years ago

- update to 2.0git20121115, see more at http://goo.gl/mIk8b
- fix mplayer2 command

- Update to 1.0.2git20120911
* Add new subtitles functions
Subtitles Search
Subtitle Selection
  Subtitles manually load
  Subtitles resizing
  Subtitle synchronization functions
  Subtitles progress trim
- Fix desktop Categories


Peter Linnell's avatar

mrdocs accepted request over 12 years ago

Looks sane to me