Summary: | Video previews in information panel don't work | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Phonon | Reporter: | Zach <zachleigh> |
Component: | general | Assignee: | Harald Sitter <sitter> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | emmanuelpescosta099, frank78ac, martin.sandsmark, myriam, pulfer, romain.perier |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/3866c88ce9f4dd509752ba08424a65570fcf4b9d | Version Fixed In: | 4.14.3 |
Sentry Crash Report: | |||
Attachments: |
Both video player (with black screen) and preview image are shown
Patch from ROSA/OpenMandriva to fix video previews in Dolphin |
Description
Zach
2014-05-17 06:12:48 UTC
Thanks for the bug report! Can you hear the sound of the video? I can reproduce it, the image hangs but sound works fine. When I try to preview .avi files, a sound stream shows up, but I don't hear anything. .mp4 and .mkv files do not produce a sound stream at all. In any case, this looks like a Phonon problem, so I'll reassign. This still happens with KDE 4.14.2, Phonon 4.8.0 and Phonon GStreamer 4.8.0. But sometimes videos do work. And sometimes both video player (with black screen) and preview image are shown. Created attachment 89227 [details]
Both video player (with black screen) and preview image are shown
BTW, adding qSleep(20) to slotHasVideoChanged makes previews work. It's an ugly hack so it shouldn't be used in upstream code. But at least it gives some info about why video previews often don't play. And even with his hack first play gives a black screen, so perhaps there's another race somewhere. void PhononWidget::slotHasVideoChanged(bool hasVideo) { emit hasVideoChanged(hasVideo); qSleep(20); if (hasVideo) { if (!m_videoPlayer) { // Replay the media to apply path changes m_media->stop(); m_videoPlayer = new EmbeddedVideoPlayer(this); m_topLayout->insertWidget(0, m_videoPlayer); Phonon::createPath(m_media, m_videoPlayer); m_media->play(); } applyVideoSize(); m_videoPlayer->show(); } } Created attachment 89251 [details]
Patch from ROSA/OpenMandriva to fix video previews in Dolphin
I guess I fixed this issue. See the attached patch.
(In reply to Pulfer from comment #7) > Created attachment 89251 [details] > Patch from ROSA/OpenMandriva to fix video previews in Dolphin > > I guess I fixed this issue. See the attached patch. Thanks for the patch. I can confirm that it works! :) So the problem was, that Phonon needs a video path to determine if the media is a video or not, right? Can you please open a review request? Thanks Your patch should also fix the bugs 337033 and 337107 (In reply to Emmanuel Pescosta from comment #9) > Your patch should also fix the bugs 337033 and 337107 Good to know :-) > Can you please open a review request? Thanks Looks like I need to package rbtools for ROSA first, current patch is rejected by KDE review request form... I'll let you know when I have review request ready. (In reply to Pulfer from comment #10) > Looks like I need to package rbtools for ROSA first, current patch is > rejected by KDE review request form... I'll let you know when I have review > request ready. No you don't need rbtools. You have to use the kde-baseapps upstream repo (branch KDE/4.14), because review board needs a valid index. (In reply to Emmanuel Pescosta from comment #11) > No you don't need rbtools. > You have to use the kde-baseapps upstream repo (branch KDE/4.14), because > review board needs a valid index. Done: https://git.reviewboard.kde.org/r/120745/ Git commit 3866c88ce9f4dd509752ba08424a65570fcf4b9d by Emmanuel Pescosta, on behalf of Andrey Bondrov. Committed on 24/10/2014 at 06:21. Pushed by emmanuelp into branch 'KDE/4.14'. Fix the information panel video player in Dolphin. Patch from ROSA Linux. Related: bug 337107, bug 337033, bug 339882 REVIEW: 120745 FIXED-IN: 4.14.3 M +7 -9 dolphin/src/panels/information/phononwidget.cpp http://commits.kde.org/kde-baseapps/3866c88ce9f4dd509752ba08424a65570fcf4b9d |