[3rd-Party Apps] 重装deepin20后,python-vlc无法播放视频
Tofloor
poster avatar
iblis
deepin
2021-01-05 16:14
Author

如题,笔记本从deepin 15.11升级到20后,python-vlc一切正常,但重装20后安装vlc和python-vlc后,调用python-vlc播放视频时有声音无画面,错误信息为:

[00007fda008949b0] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.

[00007fda008949b0] main decoder error: Codec not supported

[00007fda008949b0] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))

但是不使用Python,直接用系统应用菜单里的vlc播放视频就一切正常

Reply Favorite View the author
All Replies
iblis
deepin
2021-01-05 16:17
#1

用python调用vlc的代码如下:

import numpy as np
import os
import time as tm
import tkinter as tk
import vlc

path='~/ÇĞİÖŞÜçğıöşü.flv'
instance=vlc.Instance(['--avcodec-hw','none'])
m=instance.media_new(path)
player=instance.media_player_new()
player.set_media(m)
player.set_rate(0.5)

player.play()
tm.sleep(0.7)
Reply View the author
iblis
deepin
2021-01-05 16:21
#2

Reply View the author
Hello
deepin
2021-01-06 03:07
#3

Cannot open libmwv206dec.so, libmwv206dec.so:

可能是这个问题

我这也打不开,没找到issue

Reply View the author
skyonsky
deepin
2021-01-06 19:07
#4
The user is banned, and the content is hidden.
iblis
deepin
2021-01-07 18:14
#5
skyonsky
The user is banned, and the content is hidden.

我用系统菜单的VLC是可以播放视频的,但是用python调用vlc就不行,关闭硬解也不行,另外Python调用vlc是因为需要在播放视频时精准前进或后退0.5秒(或者是其他数值,有可能是0.423秒这种奇怪的数字),但是我在系统菜单的vlc中没有找到相应地选项

Reply View the author
skyonsky
deepin
2021-01-11 21:07
#6
The user is banned, and the content is hidden.
iblis
deepin
2021-03-26 17:08
#7

我用系统菜单的vlc播放视频正常,但是用Python-vlc就是无法播放视频。尝试卸载vlc,发现vlc包可以卸载,但是libvlc5不能卸载(synaptic提示libvlc5是dde的依赖),而且仅卸载vlc后问题依旧(出现的不是未安装vlc之类的错误,仍然是格式不支持),难道是dde内建的libvlc5与python接口不兼容?

 

Reply View the author