Now we can play DVDs and media streaming on Haiku

Forum thread started by Giova84 on Mon, 2013-03-25 16:19

This is a news which worth publish separately :-)
I have ported SMPlayer, a mediaplayer which uses Mplayer as engine (i have also ported the last available revision of Mplayer with DVD, SMB and fontconfig support)
The peculiarity of this MediaPlayer, differently from the plain MediaPlayer of Haiku, is the ability of playing audio and video streaming, playing video DVDs and has support for downloading movies subtitles.
I have also ported "smtube": an embedded browser for Youtube :-)
Works very well :-)

EDIT 2013-03-28: BY USERS FEEDBACK SEEMS THAT MPLAYER (THE ENGINE WHICH SMPLAYER USE) VIDEO OUTPUT IS NOT COMPATIBLE WITH RADEON VIDEO CARDS, AND IN THIS CASE MPLAYER MIGHT CRASH.

Download link:
http://haikuware.com/directory/view-details/multimedia/video/playback/sm...

SMPlayer On Haiku Youtube
(click to enlarge)
You can use the built Youtube minibrowser for searching, download and quickly see Youtube videos

SMPlayer On Haiku Subtitles
(click to enlarge)
Fully support for subtitles

Mplayer DVD Menu
DVDs menus
(click to enlarge)

Comments

Re: Now we can play DVDs and media streaming on Haiku

Great work Giovanni! I'd love to try this out when I get the chance, but first I need to figure out how to install the QT 4.8.5 package.

Re: Now we can play DVDs and media streaming on Haiku

Kulluminatii wrote:

I need to figure out how to install the QT 4.8.5 package.

Same here. I can't get it to work on R1a4.1 because of missing libpng. Are you on nightly or some older version, Giova84?

Re: Now we can play DVDs and media streaming on Haiku

waddlesplash wrote:
Kulluminatii wrote:

I need to figure out how to install the QT 4.8.5 package.

Same here. I can't get it to work on R1a4.1 because of missing libpng. Are you on nightly or some older version, Giova84?

Currently i am running SMPlayer on Haiku Alpha 4.1, and works fine. libpng is also included in the package.
To install the QT package, just unzip the zip file using /boot as destination.

Re: Now we can play DVDs and media streaming on Haiku

Giova84 wrote:
waddlesplash wrote:
Kulluminatii wrote:

I need to figure out how to install the QT 4.8.5 package.

Same here. I can't get it to work on R1a4.1 because of missing libpng. Are you on nightly or some older version, Giova84?

Currently i am running SMPlayer on Haiku Alpha 4.1, and works fine. libpng is also included in the package.
To install the QT package, just unzip the zip file using /boot as destination.

That's odd, it works now! =D I could've sworn I've tried unzipping the file there before and I still got the "missing libpng" error when trying to open Qupzilla. I guess I didn't, thank you for the help Giovanni.

@ waddlesplash If it helps any, I'm currently running Haiku nightly rev. 45365

Re: Now we can play DVDs and media streaming on Haiku

Kulluminatii wrote:

That's odd, it works now! =D I could've sworn I've tried unzipping the file there before and I still got the "missing libpng" error when trying to open Qupzilla. I guess I didn't, thank you for the help Giovanni.

I'm glad that now it works for you :-)
You're welcome!

Re: Now we can play DVDs and media streaming on Haiku

waddlesplash wrote:

Same here. I can't get it to work on R1a4.1 because of missing libpng. Are you on nightly or some older version, Giova84?

Let me know, waddlesplash: some other users have solved. I have found that issues occur in some circumstances, like for example the presence of an older revision of Qt.

Re: Now we can play DVDs and media streaming on Haiku

Hi, I am almost there. When I click on the youtube icon ( desktop ) the SMPlayer boots and the file name runs banner like. But nothing further happens.i.e no video plays.

Can someone please tell me how to get a screen shot onto this forum, as in an answer showing what I am getting?

Eddie.

A couple of things, I went into preferences/networks and change the ipv6 to ipv4 but it made no difference.
I tried playing a Music DVD but the DVD select box doesn't do anything.? Again I get the DVD title bannering across the top but no play.

Re: Now we can play DVDs and media streaming on Haiku

belfasteddie wrote:

Hi, I am almost there. When I click on the youtube icon ( desktop ) the SMPlayer boots and the file name runs banner like. But nothing further happens.i.e no video plays.

Are you able to play Youtube videos using Ubertuber or WebVideoPlayer?
EDIT:
in SMPLayer file settings (smplayer.ini) located in /boot/home/config/settings/Qt/.config/smplayer you can also try to set a lower quality for videos. Look for [Youtube] section and change the value of "quality" to 18.

For me Youtube works fine:

But sometimes, according to video quality/size, i have to wait some seconds for buffering (this occurs, eg, with HD videos)

Quote:

A couple of things, I went into preferences/networks and change the ipv6 to ipv4 but it made no difference.
I tried playing a Music DVD but the DVD select box doesn't do anything.? Again I get the DVD title bannering across the top but no play.

To play a Music DVD, i suppose that you should open directly the files, not use "open DVD folder" which should be only for Video DVDs. If you can, try also SMPlayer on Windows and let me know how it works.

Re: Now we can play DVDs and media streaming on Haiku

Hi, SMplayer works in Win7 64bit. Audio CD works straight away as per normal. Video DVD ( What I call Music DVD ) plays from folder as per your reccomendation.Tried running from the Disc selection but no go.
I have this minute booted Haiku and edited the file you gave me , locked up, rebooting.
I edited the file to 18 as per your instructions. Smplayer initially booted and then I tried to play youtube but as before , no go.
The URL bannered and then stopped halfway.
I then couldn't get SMplayer to close so rebooted and found my Haiku Flash drive wouldn't boot so will reinstall and get back.
One thing I did notice between the Windows SMp and the Haiku SMp was that the Windows version in the Open/Disc/DVD from drive box, had lines of type in the right hand side whereas Haiku doesn't.

Re: Now we can play DVDs and media streaming on Haiku

Are you able to play Youtube videos using WebVideoPlayer or Ubertuber?
If you aren't able, this could be an issue with your connection.
Also try to change cache to an higher value (Preferences > Performance > Cache > Cache for st.reams eg to 8192) and when you start a video, wait some seconds for buffering
If you attempt to start mplayer (the software on which SMPlyaer is based) in a Terminal window, what you get? Do you have a radeon video card?

Re: Now we can play DVDs and media streaming on Haiku

Hi, Ok, just reloaded Haiku and the only thing I have changed is the Screen res.
SMplayer will not boot to screen . I have to click on the SMplayer icon in the control panel and then it boots to screen.
I have placed a video DVD in the ODD and from the DVD from folder I typed in " D: " then I select where the video files are and click apply. The ODD spins up, the banner runs through but again no play.
I did see the Mplayer ( not SMplayer ) flash up in the control panel.

I have previously had no prob running youtube via Ubertube.
My connection is perfect.
Radeon no, Nvidia.

Just noticed in the control panel that there is a Blue icon. If I click on it it asks , Select media. I select Desktop, then the DVD then the file. A box appears with this inside it.

The application

/boot/common/bin/mplayer -noquiet -
nofs -nomouseinput -vc cores.

has encountered .....

debug ok.

I am running on a 4 gb flash have change cache to 3000

The youtube works perfectly. I CnP an addy in and it finds it perfectly.

Re: Now we can play DVDs and media streaming on Haiku

belfasteddie wrote:

Hi, Ok, just reloaded Haiku and the only thing I have changed is the Screen res.
SMplayer will not boot to screen . I have to click on the SMplayer icon in the control panel and then it boots to screen.
I have placed a video DVD in the ODD and from the DVD from folder I typed in " D:

Sorry: maybe i don't understad correctly: do you have typed "D:" in Haiku? In Haiku, hard disks and DVD/CD drives has no letters like in Windows :-)
But maybe you was referring to Windows: sorry if i haven't understood correctly
In Haiku you have to open Tracker and just select th DVD icon which contains a video dvd.

Quote:

I have previously had no prob running youtube via Ubertube.
My connection is perfect.
Radeon no, Nvidia.

Try to change cache to 8192 as i've suggested before.
Edit: ok i have read that now you CnP an addy in and it finds it perfectly :-)

Quote:

Just noticed in the control panel that there is a Blue icon. If I click on it it asks , Select media. I select Desktop, then the DVD then the file. A box appears with this inside it.

This shortcut, as said, works for files, not for DVDs, to play a video DVD, you have to open it inside SMPlayer via "Open a DVD folder" and then select the DVD drive itself inside Tracker, not vob files inside DVD:

How To Play DVD

Re: Now we can play DVDs and media streaming on Haiku

I have just installed a dedicated Nvidia card as opposed to an onboard. I thought I would try just to see if it made any difference, nada.

Currently.. Cache set to 8192 as per your instructions and the quality down from 22 to 18. smtube is working perfectly. I copy a youtube addy in and it shows immediately. I click on that new video and SMplayer pops up on the screen. The addy runs across banner like and then nothing.
Partial log below, the last line was repeated about 30 times.
SMplayer log:
[15:26:46:910] QProcess::readData(0x18352880 "\n\nMPlayer interr", 16384) == 765
[15:26:46:910] QProcess::readData(0x1855194d "...", 32003) == 0
[15:26:46:911] MplayerProcess::parseLine: ''
[15:26:46:911] MplayerProcess::parseLine: ''
[15:26:46:911] MplayerProcess::parseLine: 'MPlayer interrupted by signal 4 in module: decode video'
[15:26:46:912] MplayerProcess::parseLine: 'ID_SIGNAL=4'
[15:26:46:913] MplayerProcess::parseLine: '- MPlayer crashed by an 'Illegal Instruction'.'
[15:26:46:913] MplayerProcess::parseLine: ' It usually happens when you run it on a CPU different than the one it was'
[15:26:46:913] MplayerProcess::parseLine: ' compiled/optimized for.'
[15:26:46:913] MplayerProcess::parseLine: ' Verify this!'
[15:26:46:914] MplayerProcess::parseLine: '- MPlayer crashed by bad usage of CPU/FPU/RAM.'
[15:26:46:914] MplayerProcess::parseLine: ' Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and'
[15:26:46:914] MplayerProcess::parseLine: ' disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.'
[15:26:46:914] MplayerProcess::parseLine: '- MPlayer crashed. This shouldn't happen.'
[15:26:46:914] MplayerProcess::parseLine: ' It can be a bug in the MPlayer code _or_ in your drivers _or_ in your'
[15:26:46:914] MplayerProcess::parseLine: ' gcc version. If you think it's MPlayer's fault, please read'
[15:26:46:914] MplayerProcess::parseLine: ' DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and'
[15:26:46:914] MplayerProcess::parseLine: ' won't help unless you provide this information when reporting a possible bug.'
[15:26:46:915] QProcessPrivate::_q_processDied()
[15:26:46:915] QProcessManager::run() sending death notice to MplayerProcess(0x180c5a10)
[15:26:46:915] QProcessManager::run() waiting for children to die
[15:26:46:916] QProcessManager::remove() removing pid 3141 process MplayerProcess(0x180c5a10)
[15:26:46:916] QProcessPrivate::waitForDeadChild() dead with exitCode 1 , crashed? false
[15:26:46:916] QProcessPrivate::bytesAvailableFromStdout() == 1024
[15:26:46:916] QProcessPrivate::readFromStdout(0x184d3aa0 "BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 2, port 387, team 3141\n\n\nMPlayer interrupted by signal 11 in module: decode video\nID_SIGNAL=11\n", 1024) == 185
[15:26:46:916] QProcessPrivate::canReadStandardOutput(), read 185 bytes from the process' output
[15:26:46:916] QProcess::readData(0x18352880 "BMediaRoster::Re", 16384) == 185
[15:26:46:917] QProcess::readData(0x18551709 "...", 32583) == 0
[15:26:46:917] MplayerProcess::parseLine: 'BMediaRoster::ReleaseNode, trying to release reference counting disabled timesource, node 2, port 387, team 3141'
[15:26:46:917] MplayerProcess::parseLine: ''
[15:26:46:917] MplayerProcess::parseLine: ''
[15:26:46:917] MplayerProcess::parseLine: 'MPlayer interrupted by signal 11 in module: decode video'
[15:26:46:917] MplayerProcess::parseLine: 'ID_SIGNAL=11'
[15:26:46:917] QProcessPrivate::bytesAvailableFromStderr() == 1024
[15:26:46:917] QProcessPrivate::readFromStderr(0x184d3aa0 "...", 1024) == -1
[15:26:46:917] MplayerProcess::gotError: 3
[15:26:46:917] MplayerLayer::playingStopped
[15:26:46:917] WARNING: QPainter::begin: Paint device returned engine == 0, type: 1
[15:26:46:917] Screen::playingStopped
[15:26:46:917] Screen::setAutoHideCursor: 0
[15:26:46:917] Screen::playingStopped
[15:26:46:917] Screen::setAutoHideCursor: 0
[15:26:46:917] BaseGui::showErrorFromMplayer
[15:26:46:917] showErrorFromMplayer: not displaying error dialog
[15:26:46:918] MyProcess::procFinished
[15:26:46:918] QProcess::bytesAvailable() == 0 (stdout)
[15:26:46:918] MyProcess::procFinished: Bytes available: 0
[15:26:46:918] QProcess::bytesAvailable() == 0 (stdout)
[15:26:46:918] MplayerProcess::processFinished: exitCode: 1, status: 0
[15:26:46:918] MplayerLayer::playingStopped
[15:26:46:918] WARNING: QPainter::begin: Paint device returned engine == 0, type: 1
[15:26:46:918] Screen::playingStopped
[15:26:46:918] Screen::setAutoHideCursor: 0
[15:26:46:918] Screen::playingStopped
[15:26:46:918] Screen::setAutoHideCursor: 0
[15:26:46:918] QProcessPrivate::_q_processDied() process is dead
[15:26:46:918] Core::processFinished
[15:26:46:918] Core::processFinished: we_are_restarting: 0
[15:26:46:918] Core::processFinished: play has finished!
[15:26:46:918] Core::processFinished: exit_code: 1
[15:26:46:918] BaseGui::showExitCodeFromMplayer: 1
[15:26:46:918] BaseGui::showExitCodeFromMplayer: not displaying error dialog
[15:26:54:578] WARNING: QPainter::begin: Paint device returned engine == 0, type: 1

Re: Now we can play DVDs and media streaming on Haiku

Quote:

Currently.. Cache set to 8192 as per your instructions and the quality down from 22 to 18. smtube is working perfectly. I copy a youtube addy in and it shows immediately.

Ok. You have said again that works perfectly, like in the previous post (when you set cache to 3000) but then you say that now you got an error. I can't understand. Maybe you don't use properly. But in anyway, if for you doesn't work properly, you can uninstall it :-)
Delete /boot/apps/SMPlayer and /boot/apps/MPlayer

Re: Now we can play DVDs and media streaming on Haiku

Ok, will do. Thanks for your help. Much appreciated.

regards,
Eddie.

Re: Now we can play DVDs and media streaming on Haiku

Hi , the download link will not work on Haikuware.

Re: Now we can play DVDs and media streaming on Haiku

This download seems to be gone. But if you want to play a DVD you still could use VLC 0.8.6i

http://www.haikuware.com/directory/view-details/multimedia/video/playbac...

Re: Now we can play DVDs and media streaming on Haiku

skatulskijean wrote:

Hi , the download link will not work on Haikuware.

smplay.hpkg.zip

Re: Now we can play DVDs and media streaming on Haiku

thanks for the fast answhere

that what want was the smplay hpkg link .
on it the mplayer without dependencies from sdl (native haiku playback)
thanks kim1963

for the newer nightlys it must be repacked with libiconv.so.2

i hat hope i can make a little mediacenter app but mplayer can not access m3u8 streams with tokken
for all others is fine.

regards Jan

Re: Now we can play DVDs and media streaming on Haiku

Hi Kim
the mplayer from this package crashes on the recent nightlies hrev:47860 & hrev:47886.
Do you happen to have a patch you would like to share with us?
Thanks.

Re: Now we can play DVDs and media streaming on Haiku

khallebal wrote:

Hi Kim
the mplayer from this package crashes on the recent nightlies hrev:47860 & hrev:47886.
Do you happen to have a patch you would like to share with us?
Thanks.

https://dev.haiku-os.org/ticket/11174

I am forced to use hrev47736

Re: Now we can play DVDs and media streaming on Haiku

hrev47894 - work fine

Re: Now we can play DVDs and media streaming on Haiku

This is exciting indeed, as it's another area that has evolved. But... I think the relevant part today is NOT whether the OS will play a DVD or not... but if it supports open Web standards for digital video and streaming content online. And I'm happy to report that when I opened Web+ in the latest Nightly, and turned on the HTML5 player for YouTube (at youtube.com/html5 for those new to this), the video played flawlessly.

This, however, may have been dependent on the hardware I was using, etc. It may be different for others; nevertheless, it was rather exhilarating to watch this work outside of the "big 3"!

Re: Now we can play DVDs and media streaming on Haiku

I'm not so lucky, it doen't work on the same rev either.
I need to borrow a patch from someone so i can build it on my machine,yours was possibly compiled/optimized on a different CPU, that's why it crahes on my machine.
anyone has a patch????

Re: Now we can play DVDs and media streaming on Haiku

khallebal wrote:

I'm not so lucky, it doen't work on the same rev either.
I need to borrow a patch from someone so i can build it on my machine,yours was possibly compiled/optimized on a different CPU, that's why it crahes on my machine.
anyone has a patch????

Package smplay installed in /boot/home/config/packages ?
/boot/home/config/settings/Qt/.config/smplayer/smplayer.ini ?
Start smplayer in Terminal ?

Re: Now we can play DVDs and media streaming on Haiku

Yes to all 3 questions.

Re: Now we can play DVDs and media streaming on Haiku

khallebal wrote:

Yes to all 3 questions.

Try using this configuration file
smplayer.ini.zip

Re: Now we can play DVDs and media streaming on Haiku

still no luck.