Unable to get Opera to play web videos

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

30. March 2007, 03:03:47

jmtjet

Posts: 65

Unable to get Opera to play web videos

I'm using Ubuntu version 6.06(Dapper)linux. I can't seem to get any web videos to play in Opera. I've done a site search and tried a couple of things, also checked setting but still no video? Would someone give me advice as to how to get the video problem solved? Thanks.

Videos play with Firefox, I have the latest flash player installed.

30. March 2007, 09:21:53

Tracio

Posts: 4108

Originally posted by jmtjet:

I've done a site search and tried a couple of things, also checked setting but still no video?



It would help if you could explain what have you actually tried, what kind of videos are you referring to (Flash only, wmv, real,...) and where it happens...

30. March 2007, 11:22:35

illiad

Banned user

also say what other linux browsers it does work on, then a way to 'connect' to the codecs could be found...

30. March 2007, 12:56:55

jmtjet

Posts: 65

I can play videos from most sites with Firefox. I've check the Mozilla plugins folder and the plugins are there. I think the problem lies with the path.

I can't play any youtube videos: http://www.youtube.com/

Thanks for the help.

30. March 2007, 13:08:37

Tracio

Posts: 4108

How did you installed flash (from APT/Synaptic or the Adobe installer)and what version are you using?.

Fire up a terminal and post the output of:

grep libflashplayer.so ~/.opera/opera6.ini

nano ~/.opera/pluginpath.ini

sudo find / -regex "\(.*libflashplayer\.so$\)"




30. March 2007, 14:20:42

jmtjet

Posts: 65

grep libflashplayer.so ~/.opera/opera6.ini = no responce from terminal

nano ~/. opera/pluginpath.ini :
Opera Preferences version 2.1
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding

[Paths]
/usr/lib/opera/plugins=1
/usr/lib/mozilla/plugins=1
/usr/lib/netscape/plugins-libc6=1
/var/cache/flashplugin-nonfree=1

sudo find / -regex "\(.*libflashplayer\.so$\)"
/var/cache/flashplugin-nonfree/libflashplayer.so
/home/jeff/.Trash/install_flash_player_7_linux/libflashplayer.so
/home/jeff/.Trash/install_flash_player_9_linux/libflashplayer.so
/home/jeff/.Trash/install_flash_player_9_linux (copy)/libflashplayer.so
/home/jeff/flash-player-plugin-9.0.21.55/libflashplayer.so
/opt/flash32/libflashplayer.so
find: /proc/18868/task: No such file or directory
find: /proc/18868/fd: No such file or directory
/usr/lib/firefox/plugins/libflashplayer.so
/usr/lib/mozilla/plugins/libflashplayer.so
jeff@jeff-desktop:~$


Thanks for your help.

30. March 2007, 14:38:27

Tracio

Posts: 4108

Paths are ok, the problem has to do with file types: Tools>Preferences>Advanced>Content>Find new. See if Opera finds libflashplayer.so and associates the file types with it.

30. March 2007, 16:01:33

jmtjet

Posts: 65

Paths are ok, the problem has to do with file types: Tools>Preferences>Advanced>Content>Find new. See if Opera finds libflashplayer.so and associates the file types with it.

I get "No new plugins detected"

Thanks for your help.

30. March 2007, 16:54:15 (edited)

Tracio

Posts: 4108

Ok, copy libflashplayer.so to the Opera plugin directory:

sudo cp /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/opera/plugins/


Restart Opera and see if it picks it up.

Also post the output of the following commands:

ls -la /usr/lib/firefox/plugins/


ls -la /usr/lib/mozilla/plugins/


ls -la /var/cache/flashplugin-nonfree/


ls -la /usr/lib/opera/plugins/


BTW, you didn't tell how did you installed flash?.

30. March 2007, 17:05:45

jmtjet

Posts: 65

ls -la /usr/lib/firefox/plugins/
jeff@jeff-desktop:~$ ls -la /usr/lib/firefox/plugins/
total 92
drwxr-xr-x 2 root root 4096 2007-03-30 12:21 .
drwxr-xr-x 5 root root 4096 2007-03-29 00:10 ..
lrwxrwxrwx 1 root root 46 2007-03-30 12:21 flashplayer.xpt -> /var/cache/flashplugin-nonfree/flashplayer.xpt
lrwxrwxrwx 1 root root 43 2007-03-09 11:42 libflash-mozplugin.so -> ../../mozilla/plugins/libflash-mozplugin.so
lrwxrwxrwx 1 root root 48 2007-03-30 12:21 libflashplayer.so -> /var/cache/flashplugin-nonfree/libflashplayer.so
lrwxrwxrwx 1 root root 39 2006-09-04 15:09 libjavaplugin.so -> /etc/alternatives/firefox-javaplugin.so
-rw-r--r-- 1 root root 8652 2007-03-26 21:31 libunixprintplugin.so
lrwxrwxrwx 1 root root 43 2006-09-23 12:18 mplayerplug-in-gmp.so -> ../../mozilla/plugins/mplayerplug-in-gmp.so
lrwxrwxrwx 1 root root 44 2006-09-23 12:18 mplayerplug-in-gmp.xpt -> ../../mozilla/plugins/mplayerplug-in-gmp.xpt
lrwxrwxrwx 1 root root 42 2006-09-23 12:18 mplayerplug-in-qt.so -> ../../mozilla/plugins/mplayerplug-in-qt.so
lrwxrwxrwx 1 root root 43 2006-09-23 12:18 mplayerplug-in-qt.xpt -> ../../mozilla/plugins/mplayerplug-in-qt.xpt
lrwxrwxrwx 1 root root 42 2006-09-23 12:18 mplayerplug-in-rm.so -> ../../mozilla/plugins/mplayerplug-in-rm.so
lrwxrwxrwx 1 root root 43 2006-09-23 12:18 mplayerplug-in-rm.xpt -> ../../mozilla/plugins/mplayerplug-in-rm.xpt
lrwxrwxrwx 1 root root 39 2006-09-23 12:18 mplayerplug-in.so -> ../../mozilla/plugins/mplayerplug-in.so
lrwxrwxrwx 1 root root 43 2006-09-23 12:18 mplayerplug-in-wmp.so -> ../../mozilla/plugins/mplayerplug-in-wmp.so
lrwxrwxrwx 1 root root 44 2006-09-23 12:18 mplayerplug-in-wmp.xpt -> ../../mozilla/plugins/mplayerplug-in-wmp.xpt
lrwxrwxrwx 1 root root 40 2006-09-23 12:18 mplayerplug-in.xpt -> ../../mozilla/plugins/mplayerplug-in.xpt
-rw-r--r-- 1 root root 58656 2006-08-31 10:03 nphelix.so
-rwxr-xr-x 1 root root 5086 2006-08-31 10:03 nphelix.xpt
lrwxrwxrwx 1 root root 50 2007-02-02 08:12 nppdf.so -> ../../Adobe/Acrobat7.0/Browser/intellinux/nppdf.so
jeff@jeff-desktop:~$

ls -la /usr/lib/mozilla/plugins/
total 1304
drwxr-xr-x 2 root root 4096 2007-03-30 12:21 .
drwxr-xr-x 3 root root 4096 2006-09-04 15:08 ..
lrwxrwxrwx 1 root root 46 2007-03-30 12:21 flashplayer.xpt -> /var/cache/flashplugin-nonfree/flashplayer.xpt
-rw-r--r-- 1 root root 15148 2005-12-27 13:18 libflash-mozplugin.so
lrwxrwxrwx 1 root root 48 2007-03-30 12:21 libflashplayer.so -> /var/cache/flashplugin-nonfree/libflashplayer.so
lrwxrwxrwx 1 root root 39 2006-09-04 15:09 libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so
-rw-r--r-- 1 root root 251804 2006-08-31 06:52 mplayerplug-in-gmp.so
-rw-r--r-- 1 root root 981 2006-08-31 06:52 mplayerplug-in-gmp.xpt
-rw-r--r-- 1 root root 251804 2006-08-31 06:52 mplayerplug-in-qt.so
-rw-r--r-- 1 root root 981 2006-08-31 06:52 mplayerplug-in-qt.xpt
-rw-r--r-- 1 root root 251836 2006-08-31 06:52 mplayerplug-in-rm.so
-rw-r--r-- 1 root root 981 2006-08-31 06:52 mplayerplug-in-rm.xpt
-rw-r--r-- 1 root root 253148 2006-08-31 06:52 mplayerplug-in.so
-rw-r--r-- 1 root root 252124 2006-08-31 06:52 mplayerplug-in-wmp.so
-rw-r--r-- 1 root root 981 2006-08-31 06:52 mplayerplug-in-wmp.xpt
-rw-r--r-- 1 root root 981 2006-08-31 06:52 mplayerplug-in.xpt
lrwxrwxrwx 1 root root 50 2007-02-02 08:12 nppdf.so -> ../../Adobe/Acrobat7.0/Browser/intellinux/nppdf.so

ls -la /var/cache/flashplugin-nonfree/
total 6900
drwxr-xr-x 2 root root 4096 2007-03-30 12:22 .
drwxr-xr-x 13 root root 4096 2007-03-05 10:02 ..
-rw-r--r-- 1 root root 856 2007-03-30 12:22 flashplayer.xpt
-rw-r--r-- 1 root root 7040080 2007-03-30 12:22 libflashplayer.so

ls -la /usr/lib/opera/plugins/
total 7088
drwxr-xr-x 2 root root 4096 2007-03-30 12:54 .
drwxr-xr-x 4 root root 4096 2007-01-19 01:17 ..
-rw-r--r-- 1 root root 7040080 2007-03-30 12:54 libflashplayer.so
-rw-r--r-- 1 root root 92448 2007-01-10 11:16 libnpp.so
-rwxr-xr-x 1 root root 7008 2007-01-10 11:16 operaplugincleaner
-rwxr-xr-x 1 root root 85496 2007-01-10 11:16 operapluginwrapper

To answer your questions: I installed flash via the Synaptic Package manager. I also tried the 1st command to copy to the opera plugin folder-no joy. Thanks.

Edit: I tried(unsuccessfully)to install flash via the download from Adobe a while ago. Then I discovered it in the Synaptic package manager.

30. March 2007, 17:34:44 (edited)

Tracio

Posts: 4108

That's quite weird...

Anyway, post the output of:

grep application/futuresplash ~/.opera/opera6.ini


grep application/x-shockwave-flash ~/.opera/opera6.ini


sudo dpkg -s flashplugin-nonfree | grep Status


Also, remove all plugins paths from Opera with the exception of Opera itself, that is, your ~/.opera/pluginpath.ini should read:

[Paths]
/usr/lib/opera/plugins=1

30. March 2007, 17:40:42

jmtjet

Posts: 65

removed all paths except the specified.

jeff@jeff-desktop:~$ grep application/futuresplash ~/.opera/opera6.ini
application/futuresplash=6,,/usr/lib/mozilla/plugins/libflash-mozplugin.so,Shockwave Flash,spl,|Future Splash
application/futuresplash=,0
jeff@jeff-desktop:~$ grep application/x-shockwave-flash ~/.opera/opera6.ini
application/x-shockwave-flash=6,,/usr/lib/mozilla/plugins/libflash-mozplugin.so,Shockwave Flash,swf,|Flash Plugin
application/x-shockwave-flash=,0
jeff@jeff-desktop:~$ sudo dpkg -s flashplugin-nonfree
Password:
Package: flashplugin-nonfree
Status: install ok installed
Priority: optional
Section: contrib/web
Installed-Size: 108
Maintainer: Bart Martens <bartm@knars.be>
Architecture: i386
Version: 9.0.31.0.1ubuntu1~dapper1
Replaces: flashplugin (<< 6)
Depends: debconf | debconf-2.0, wget, libgtk2.0-0, fontconfig, libxt6, libxext6, libatk1.0-0, libc6, libcairo2, libexpat1, libfontconfig1, libfreetype6, libglib2.0-0, libice6, libpango1.0-0, libpng12-0, libsm6, libx11-6, libxau6, libxcursor1, libxdmcp6, libxfixes3, libxi6, libxinerama1, libxrandr2, libxrender1, zlib1g
Suggests: iceweasel, konqueror-nsplugins, x-ttcidfont-conf, msttcorefonts, ttf-bitstream-vera | ttf-dejavu, ttf-xfree86-nonfree, xfs (>= 1:1.0.1-5)
Conflicts: flashplugin (<< 6), xfs (<< 1:1.0.1-5), flashplayer-mozilla
Conffiles:
/etc/init.d/flashplugin-nonfree 32dd3acecfad51c4e7a59873058116ff obsolete
Description: Adobe Flash Player plugin installer
This package will download the Flash Player from Adobe.
It is useful for mozilla browser variants like Iceweasel.
.
WARNING: Installing this Debian package causes the Adobe flash plugin to be
downloaded from www.adobe.com. The distribution license of the Adobe flash
plugin is available at www.adobe.com. Installing this Debian package implies
that you have accepted the terms of that license.
.
Homepage: http://wiki.debian.org/FlashPlayer
jeff@jeff-desktop:~$

Thanks for helping me. I have to leave now, but will be back in a few hours. I'll check this thread then. Thanks again.

30. March 2007, 17:55:50

Tracio

Posts: 4108

Originally posted by jmtjet:

jeff@jeff-desktop:~$ grep application/futuresplash ~/.opera/opera6.ini
application/futuresplash=6,,/usr/lib/mozilla/plugins/libflash-mozplugin.so,Shockwave Flash,spl,|Future Splashapplication/futuresplash=,0
jeff@jeff-desktop:~$ grep application/x-shockwave-flash ~/.opera/opera6.ini
application/x-shockwave-flash=6,,/usr/lib/mozilla/plugins/libflash-mozplugin.so,Shockwave Flash,swf,|Flash Pluginapplication/



That seems to be the problem. Do the following:

-1 Enable all paths again.
[Paths]
/usr/lib/opera/plugins=1
/usr/lib/mozilla/plugins=1
/usr/lib/netscape/plugins-libc6=1


-2 Open ~/.opera/opera6.ini with a text editor (gedit or a command line one, whatever you prefer) and change the following lines ( [File Types Extension] section):
application/futuresplash=6,,/usr/lib/mozilla/plugins/libflash-mozplugin.so,Shockwave Flash,spl,|Future Splash

to
application/futuresplash=6,,/usr/lib/mozilla/plugins/libflashplayer.so,Shockwave Flash,spl,|FutureSplash Player


and

application/x-shockwave-flash=6,,/usr/lib/mozilla/plugins/libflash-mozplugin.so,Shockwave Flash,swf,|Flash Plugin


to

application/x-shockwave-flash=6,,/usr/lib/mozilla/plugins/libflashplayer.so,Shockwave Flash,swf,|Shockwave Flash


Save the changes and restart Opera.

30. March 2007, 20:08:49

jmtjet

Posts: 65

I tried uninstalling/reinstalling Opera. Now I have no listing for opera under Applications>internet, and when I open it from the command line this is what I see before Opera opens:

jeff@jeff-desktop:~$ opera
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
NP_Initialize
New
SetWindow
SetWindow
NewStream
SetWindow
WriteReady
Write
decoding...
WriteReady
Write
WriteReady
Write
DestroyStream
SetWindow
SetWindow
SetWindow
Destroy
New
SetWindow
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
DestroyStream
SetWindow
SetWindow
SetWindow
SetWindow
SetWindow
New
SetWindow
SetWindow
NewStream
SetWindow
WriteReady
Write
decoding...
new stream 1, id: 3001
samples: 1633
init mp3-decoder, size: 6032
DestroyStream
SetWindow
dismantle mp3-decoder
Destroy
Destroy
New
SetWindow
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
WriteReady
Write
DestroyStream
SetWindow
SetWindow
SetWindow
Destroy
New
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
SetWindow
WriteReady
Write
WriteReady
Write
WriteReady
Write
NewStream
NewStream
NewStream
DestroyStream
DestroyStream
SetWindow
DestroyStream
DestroyStream
SetWindow
SetWindow
SetWindow
SetWindow
Destroy
NP_Shutdown
jeff@jeff-desktop:~$

Seems things are going down hill. smile

30. March 2007, 20:27:53

Tracio

Posts: 4108

There was no need to use the axe yet... p

Did you try what I suggested above?. Opera was using another plugin for flash files so everything was fine with the exception of file types which were screwed up.

Since you have quite a mess there let's start from scratch:

Assuming you installed Opera from a .deb package:

-Back up your profile directory (~/.opera) if you have something important there (bookmarks, mail, skins, ini files, etc)

sudo apt-get remove opera --purge


sudo apt-get check


See what's the output of the command above. If it tells you that there are broken dependencies post the output here and don't do anything else yet.

-Remove the profile:

rm -r ~/.opera


-Now, download the opera .deb package for ubuntu dapper from http://www.opera.com/download/?platform=linux

Double click on it and install it. See if everything goes back to normal.



30. March 2007, 20:33:57

rwf

Posts: 2109

cd
wget -P /tmp http://snapshot.opera.com/unix/Weekly-628/intel-linux/opera-9.20-20070330.1-static-qt.i386-en-628.tar.bz2
cd /tmp
tar -xjpf opera-9.20-20070330.1-static-qt.i386-en-628.tar.bz2
cd opera-9.20-20070330.1-static-qt.i386-en-628
./opera --debugplugin http://www.adobe.com/shockwave/welcome/ &


Does flash player work?

Please add [solved] to the initial post's subject line if you feel your problem is resolved.

30. March 2007, 21:43:40

rwf

Posts: 2109

Just a follow-up. Opera searches directories for plugins (really .so) files. The contents of ~/.opera/pluginpath.ini controls which directories Opera searches. Those directories listed that have =1 are searched. Those directories that contain =2 are not searched. If it where my problem I would do the following.

  • Stop Opera
  • Ensure that /usr/lib/opera/plugins/ only contains the following files libnpp.so, operaplugincleaner and operapluginwrapper i.e. remove any other files you have moved into this directory
  • Edit ~/.opera/pluginpath.ini and set all directories to be =2 except for /usr/lib/opera/plugins/ leave this directory (or set this directory) to =1
  • Add a new directory entry to ~/.opera/pluginpath.ini i.e.

/home/jeff/.opera/plugins=1
  • Now start Opera thusly
    opera --debuginplugin &
    

    • Opera should only find one (1) plugin i.e. libnpp.so
    • Stop Opera.
    • cd to ~/.opera/plugins/ and enter the following.

    cd ~/.opera/plugins
    ln -s /home/jeff/.Trash/install_flash_player_9_linux/libflashplayer.so libflashplayer.so
    

    • Start Opera as above (opera --debugplugin &) and see if the libflashplyer.so is recognized as a valid plugin.
    • Try a flash site.
    • If it doesn't work -- stop Opera.
    • Remove the soft link you added to /home/jeff/.opera/plugins and add the following.

    cd ~/.opera/plugins
    rm libflashplayer.so
    ln -s /home/jeff/.Trash/install_flash_player_7_linux/libflashplayer.so libflashplayer.so
    

    • Start Opera as above and see if the Version 7 of the flash player is found and if it works.


    Get the idea?


    Please add [solved] to the initial post's subject line if you feel your problem is resolved.

    30. March 2007, 22:04:26

    sleytr

    Posts: 31

    I'm suffering from same problem for long time. I installed Flash 9 and it's working properly for most sites. but I can't watch any flash flv stream (youtube etc). Youtube's player says "loading" and navigation bar is turning to red but it's never start to playing.
    If I downgrade to flash 7 this time youtube works but most of flash sites can't be used with flash 7.

    I'm opening Firefox just for watch youtube and it's very annoying sad

    30. March 2007, 22:54:02

    rwf

    Posts: 2109

    Originally posted by sleytr:

    I'm suffering from same problem for long time.



    You forgot to post a link that does not work.

    Please add [solved] to the initial post's subject line if you feel your problem is resolved.

    30. March 2007, 23:29:18

    jmtjet

    Posts: 65

    SUCCESS! Thanks Tracio, I followed your advice, purged Opera out and re-installed using the .deb package. But got an error on the install, waited a minute or two, and an update came through that corrected the error and WHalla, video! smile I'm a happy camper. Now I'll set to the task of setting everthing up and I'll use Opera exclusively.

    31. March 2007, 08:47:30 (edited)

    sleytr

    Posts: 31

    Originally posted by rwf:



    You forgot to post a link that does not work.



    No I don't, I can't play any video on Youtube.

    PS: I'm using latest weekly builds with Flash 9,0,31,0. (shared qt)


    Solved, I removed the "/opt/netscape/plugins" and "/usr/lib/mozilla/plugins" paths and installed Flash to Opera's own dir.
    Now with the latest weekly my Opera experince is become perfect! yes

    Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD