Hi, Parwiz! Thank you very much for your useful videos. But I can't get the QMediaPlayer to work with this code under MacOs (High Sierra) (. And unfortunately, I cannot find the solution on any forum. It doesn't give out any errors. Just hanging when trying to play a video or audio file. Its state is "playing", but nothing is actually played. I can just toggle between play/pause states of the button without any changes. Do you have any ideas, what can I do with this? Thank you in advance!
Im not really a mac user but could video format be the cause? I know you're not getting any errors but it could be that PyQt5 recognises the format, but cant read it due to software restrictions
Hi Parwiz, Thank you so much for this great great video. Does the QMediaPlayer use the codec installed on my Windows computer? Somehow, I can’t play MP4 (H264) with this player but I can play MP4 using VLC and Windows Media Player. Could you please let me know how I can play MP4 using this player?
have you installed the required codec that i have said in the video, there is no problem it is working with Mp4 videos., also you can run your file via terminal and in there you will receive the error.
Hi Parwiz, thank you so much for replying my message. I played this video from the beginning to the end but didn’t see installation of codec. Is it in another video?@@ParwizForogh
@@ParwizForogh Hi Parwiz, Thank you so much for the link! I just went to Patreon, I'm now a proud supporter of your program! I'm writing a player that plays 2 videos in Python, do you have any video examples of enlarging video (full screen) and zoom back down?
@@liyue8772 Thanks, no for right now i don't have any video, but QtMultiMedia is a big module, and i have a plan in the future that build a complete media player with more functionalities
Thanks for the amazing video! It really helped a lot! I was wondering if there is a way to display an ellipse on top of the video playing in this media player cause i cant seem to make it appear. Thanks in advance!
i face a problem like yours: you can download and install the K-Lite then the video will work without any error but i don't know if your problem like mine or not my error was: "DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)"
it is very useful video but i want to know how do you know the code lines you write?? i mean that should i do if i want to add more buttons that is not in your video ==> how to know its name and libraries in pyqt5 ??? "i ask about advice"
Amigo obrigado por posta os videos se puder me ajudar agradeço caso não saiba do mesmo jeito obrigado . Como eu faço para colocar um texto sobre o video tipo o video ta passando mostra ele em cima do video no pyqt5 ?
Thank you for the great video. Follow your guide I can play the video with the size 640x360 but it doesn't work when I try with the video size 1280x720. Does the video size matter? What can be the problem?
Hey man first of all thanks for the explanation, for me it doesn't work much i open a video and when i press play the video doesn't play and the whole window shuts down do u have any solution?
Thank you for your videos, how can i make the MainWindow transparent ? i load the ui file with uic.loadUi() . and what about others like pushButtons and frames opacity control?? can you help me please ?
تشکر البته مه از افغانستان هستم و آه بخاطر تغیر اوپستی ما ایتو کدام چیز مخصوص نداریم اما میتانی با استفاده از استایل شیت این کار ره انجام بدهی Qt Style Sheet
Thanks, with this I will expand an unfinished example in PyQt4 that uses phonon and that is not available for PyQt5 now. I think I can achieve it even when I started watching Python 5 days ago and I was excited to see that with very few lines of code I could download files and even resume. I was trying to do the same with freepascal \ Lazarus and some libraries failed with the resume and others did not work. So here I am making my way walking with the Python language, mimicking that of "walker there is no way, it makes way when walking". (Translated from Spanish to English by Google)
Hi, I seem to be getting an error here anybody know a work around for this? File "c:/Users/Jo Ming/Documents/Motion3.0/openpose/build/examples/MotionScripts/motionGUI.py", line 1 from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QHBoxLayout, ^ SyntaxError: trailing comma not allowed without surrounding parentheses
i face a problem like yours: you can download and install the K-Lite then the video will work without any error but i don't know if your problem like mine or not my error was: "DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)"
pyqt5 media moudle doesnt work mp4 file ,because it use directshow render,how to solve it?yes you can use ffmpeg or other encoder,or lazy way embbed player window inside the windowwidget
@@ВладимирТиунов-б8ю I was facing the same problem. After searching, I found the solution. install K-lite Codec in your PC and the video player will work then.
love the video gave a thumbs up but whoever finding the "DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)" should download k-light-codec-pack and install it in the project file where you are writing your python file link of the codec pack: www.codecguide.com/download_k-lite_codec_pack_basic.htm
If you cant play MP4 files, try to convert the file to WMV and it will work
Amazing! How can I add picture in picture?
Hi, Parwiz! Thank you very much for your useful videos. But I can't get the QMediaPlayer to work with this code under MacOs (High Sierra) (. And unfortunately, I cannot find the solution on any forum. It doesn't give out any errors. Just hanging when trying to play a video or audio file. Its state is "playing", but nothing is actually played. I can just toggle between play/pause states of the button without any changes. Do you have any ideas, what can I do with this? Thank you in advance!
Im not really a mac user but could video format be the cause? I know you're not getting any errors but it could be that PyQt5 recognises the format, but cant read it due to software restrictions
😘😘😘😘😘
بهترینی عزیز همیشه موفق باشی
تشکر
Hi Parwiz,
Thank you so much for this great great video. Does the QMediaPlayer use the codec installed on my Windows computer? Somehow, I can’t play MP4 (H264) with this player but I can play MP4 using VLC and Windows Media Player. Could you please let me know how I can play MP4 using this player?
have you installed the required codec that i have said in the video, there is no problem it is working with Mp4 videos., also you can run your file via terminal and in there you will receive the error.
Hi Parwiz, thank you so much for replying my message. I played this video from the beginning to the end but didn’t see installation of codec. Is it in another video?@@ParwizForogh
@@liyue8772 You can just watch my newest video and i have mentioned the required codec th-cam.com/video/45sPjuPJ3vs/w-d-xo.html
@@ParwizForogh Hi Parwiz,
Thank you so much for the link! I just went to Patreon, I'm now a proud supporter of your program! I'm writing a player that plays 2 videos in Python, do you have any video examples of enlarging video (full screen) and zoom back down?
@@liyue8772 Thanks, no for right now i don't have any video, but QtMultiMedia is a big module, and i have a plan in the future that build a complete media player with more functionalities
Thanks for the amazing video! It really helped a lot! I was wondering if there is a way to display an ellipse on top of the video playing in this media player cause i cant seem to make it appear. Thanks in advance!
Hello,
Do you suggest me to use python-vlc to play audio files or the built in media player of pyqt5?
Elinaras Swsta?
It's possible to launch a youtube video ? Like url and follow a live video Yt?
i completly copied your code and its still not working installed all the modules.
i can select a video but when i press play nothing happens :/
I am facing the same problem, plz let me know if you have figured it out
i face a problem like yours: you can download and install the K-Lite then the video will work without any error but i don't know if your problem like mine or not my error was: "DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)"
it is very useful video but i want to know how do you know the code lines you write?? i mean that should i do if i want to add more buttons that is not in your video ==> how to know its name and libraries in pyqt5 ??? "i ask about advice"
nice tutorial,
btw, how to enable/disable Left/Right audio channels, since my video has 2 channels, music and vocal audio track.
Thanks for the source code bro because I got some errors 😅
Nice video but i want to add screen shot feature in it how to do so plz help
Amigo obrigado por posta os videos se puder me ajudar agradeço caso não saiba do mesmo jeito obrigado .
Como eu faço para colocar um texto sobre o video tipo o video ta passando mostra ele em cima do video no pyqt5 ?
Great stuff. Thank you.
welcome
In video 19.30 the video is not play in my system please help
Good information
for filename list error change
self.mediaPlayer.setMedia(QMediaContent(QUrl.fromLocalFile(filename[0])))
Excellent.
Thank you for the great video. Follow your guide I can play the video with the size 640x360 but it doesn't work when I try with the video size 1280x720. Does the video size matter? What can be the problem?
Hey man first of all thanks for the explanation,
for me it doesn't work much i open a video and when i press play the video doesn't play and the whole window shuts down do u have any solution?
hi bro.can u help me make a video player that can embed network url using python or java? thank you very much!!
How can I set size of videoplayer ? For example I want to set it 250x250 from the (50,50) pixel
Can you add previous, next and step forward and backward frame by frame buttons ?
next time i will add, but you can extend this media player and there are alot that you can do
Great.
Just one Question when to use "QDialog" and "QMainWindow" ?
QMainWindow contains a menu bar, of course, you can choose it
Thank you for your videos, how can i make the MainWindow transparent ? i load the ui file with uic.loadUi() . and what about others like pushButtons and frames opacity control?? can you help me please ?
به به ! من نفهمیدم ایرانی هستی واقاً دمت گرم با آموزشات عالیه ! موفق باشی
تشکر البته مه از افغانستان هستم و آه بخاطر تغیر اوپستی ما ایتو کدام چیز مخصوص نداریم اما میتانی با استفاده از استایل شیت این کار ره انجام بدهی
Qt Style Sheet
Parwiz Forogh بازم موفق باشی
MainWindow has a system background and css can not remove it ! This is my problem . The another classes are ok
opacityLevel = .7
class Window(QWidget):
def __init__(self):
super(Window, self).__init__()
...
self.setWindowOpacity(opacityLevel)
hi first off all when ı was write code (ı want to just open window) why can not open?(under the class code)
Thank you.
Did it support mkv or mp4 files
not
which python version you are using?
iam using python 3.6
Have you solve your error? If yes then please help me how to remove the error. i read your comment on blog.
Thanks, with this I will expand an unfinished example in PyQt4 that uses phonon and that is not available for PyQt5 now. I think I can achieve it even when I started watching Python 5 days ago and I was excited to see that with very few lines of code I could download files and even resume. I was trying to do the same with freepascal \ Lazarus and some libraries failed with the resume and others did not work. So here I am making my way walking with the Python language, mimicking that of "walker there is no way, it makes way when walking". (Translated from Spanish to English by Google)
can someone help please trying to get pyqt5 install files but having a hard time. Thanks in advance
is there any way to contact you?
what is your problem ???
you can contact me on discord to send me the error to solve your problem, it may be i faced before
Ça n'a pas fonctionné chez moi. L'erreur c'est quand j'essaye de faire jouer la vidéo. Ça joue pas
j'ai la même erreur. Pouvez-vous résoudre votre erreur. si oui, aidez-moi
Hi, I seem to be getting an error here anybody know a work around for this?
File "c:/Users/Jo Ming/Documents/Motion3.0/openpose/build/examples/MotionScripts/motionGUI.py", line 1
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QHBoxLayout,
^
SyntaxError: trailing comma not allowed without surrounding parentheses
Remove the last comma after QHBoxLayout
9:55
Thanks mate!
It doesn't work
what is the error
Video not being played even after loading the video and clicking on the play button
i face a problem like yours: you can download and install the K-Lite then the video will work without any error but i don't know if your problem like mine or not my error was: "DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)"
I was facing the same problem. After searching, I found the solution. install K-lite Codec in your PC and the video player will work then.
LIKE BRO I LOVE YOU THANKS
Te quiero mucho gringito me salvaste :)
thanks
IDispatch error #102
ı can not window please help me
Please tell me solution of this error
bro sound doesn't work .. what can i solve this
pyqt5 media moudle doesnt work mp4 file ,because it use directshow render,how to solve it?yes you can use ffmpeg or other encoder,or lazy way embbed player window inside the windowwidget
ı can open media player but ı can not player video help me
Me too, u can solved?
@@douglasnicolas8206 did u find solution?
@@ВладимирТиунов-б8ю did u guys found solution?
@@ВладимирТиунов-б8ю I was facing the same problem. After searching, I found the solution. install K-lite Codec in your PC and the video player will work then.
how to play video with no media player but with audio?
than that is not media player it should be audio player
just dont add setvideooutput
love the video gave a thumbs up but whoever finding the "DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)" should download k-light-codec-pack and install it in the project file where you are writing your python file
link of the codec pack:
www.codecguide.com/download_k-lite_codec_pack_basic.htm
Source code?
2nd viewer
doesn't work...
install K-lite Codec in your PC and the video player will work then.