Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xine-lib and opus audio?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Aug 26, 2018 10:37 pm    Post subject: xine-lib and opus audio? Reply with quote

What USE I need to enable to get opus decoding? Currently opus encoded files are skipped by Quod Libet player, I'm assuming it is because it is using xine-lib. There is opus support in xine-lib since version 1.2.6.
Code:
[I] media-libs/xine-lib
     Available versions:  (1) 1.2.9-r2 **1.2.9999
       {+X a52 aac aalib +alsa altivec bluray +css dts dvb dxr3 fbcon flac gtk imagemagick ipv6 jack jpeg libav libcaca mad +mmap mng modplug musepack nls opengl oss pulseaudio samba sdl speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack +xcb xinerama +xv xvmc}
     Installed versions:  1.2.9-r2(1)(01:42:46 PM 08/26/2018)(X aac alsa css flac imagemagick ipv6 jpeg mad mmap mng opengl sdl theora truetype v4l vaapi vorbis wavpack xcb xinerama xv -a52 -aalib -altivec -bluray -dts -dvb -dxr3 -fbcon -gtk -jack -libav -libcaca -modplug -musepack -nls -oss -pulseaudio -samba -speex -vcd -vdpau -vdr -vidix -vis -vpx -xvmc)
     Homepage:            http://xine.sourceforge.net/
     Description:         Core libraries for Xine movie player


Edit: or perhaps Gentoo ebuild comes without opus? Need to have a closer look ...
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 26, 2018 10:48 pm    Post subject: Reply with quote

Not sure, but there is media-libs/opus and media-sound/opus-tools


edit to add: and media-libs/opusfile
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Aug 26, 2018 10:57 pm    Post subject: Reply with quote

Yea ... and how do you tell Quod Libet Player to use opus-tools? Quod Libet is linked to xine-lib.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 26, 2018 11:03 pm    Post subject: Reply with quote

Not sure it may just recognize that the codec is available. I saw a few references to opus in the xine-lib but no hooks to pull it in and no config flags.

edit to add:

media-libs/opus/opus-1.2.1.ebuild:DESCRIPTION="Open codec designed for internet transmission of interactive speech and audio"

media-libs/opusfile/opusfile-0.10.ebuild:DESCRIPTION="A high-level decoding and seeking API for .opus files"

media-sound/opus-tools/opus-tools-0.1.10.ebuild:DESCRIPTION="Royalty-free, highly versatile audio codec"

and from opus-tools
Code:

RDEPEND=">=media-libs/libogg-1.3.0
     >=media-libs/opus-1.0.3
     flac? ( >=media-libs/flac-1.1.3 )"


edit to add2: ffmpeg has the opus flag, and I think xine-lib does use ffmpeg or at least it's a dependency if libav flag is not enabled.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Aug 26, 2018 11:20 pm    Post subject: Reply with quote

I have USE=opus set system-wide, yet the player is skipping all opus files. I have to say the Quod Libet does list these files as they were supported, but can't play them.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 26, 2018 11:22 pm    Post subject: Reply with quote

Will ffmpeg play the file?
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Aug 26, 2018 11:31 pm    Post subject: Reply with quote

Yes it does. Me scratching head.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 26, 2018 11:32 pm    Post subject: Reply with quote

Then I'm unsure, possibly some interaction between xine-lib and ffmpeg.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Aug 26, 2018 11:41 pm    Post subject: Reply with quote

I emerged gxine and it behaves the same, so it must be xine-lib problem.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Aug 26, 2018 11:59 pm    Post subject: Reply with quote

xine-list-1.2 doesn't mention opus using any of the flags.

I'm not sure if it's xine-lib or maybe the mime interface.

Code:
grep opus /etc/mime.types
audio/ogg                                       oga ogg opus spx


Not sure if you have speex enabled in xine-lib or whether it would even make a difference but something to check.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland


Last edited by Anon-E-moose on Mon Aug 27, 2018 12:01 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 12:01 am    Post subject: Reply with quote

Before I opened this thread I checked xine-lib changelog. Definitely opus support was added to 1.2.6, four years ago.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 12:57 am    Post subject: Reply with quote

Plot thickens. Must be a container issue, gxine can play Opus in mkv container.

Which takes me back to original question, what USE I need to turn on to play Opus files? Trying with speex now, thanks.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 1:15 am    Post subject: Reply with quote

Code:
xine-lib: error: The xine engine failed to start.: The stream could not be opened.

Finally got an error. USE=speex did not fix it.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 27, 2018 10:19 am    Post subject: Reply with quote

I don't always consider an error as bad, at least you have a clue now.

I didn't think speex would affect anything, but I thought I'd mention it.

What kind of container is the one that doesn't play in?

edit to add: the use flag is in ffmpeg, that's where xine gets it from.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 1:19 pm    Post subject: Reply with quote

Not sure if there is a container or not, I'm using opusenc to encode. Mediainfo output below. Looks like ogg is the container?
Code:
Format                                   : Ogg
File size                                : 9.77 MiB
Duration                                 : 13 min 53 s
Overall bit rate                         : 98.3 kb/s
Album                                    : Classical Treasures
Track name                               : Bolero
Track name/Position                      : 1
Performer                                : Ravel
Writing application                      : opusenc from opus-tools 0.1.10

Audio
ID                                       : 1857811935 (0x6EBBF5DF)
Format                                   : Opus
Duration                                 : 13 min 53 s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 kHz
Compression mode                         : Lossy
Writing library                          : libopus 1.2.1

_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 27, 2018 1:38 pm    Post subject: Reply with quote

mp4, avi, mkv, ogg are all containers, ie they hold elements.

I would be surprised if xine-libs couldn't open ogg containers, it gets pulled in if any of these flags are set "speex, theora or vorbis"

edit to add: and ffmpeg pulls it in with either theora or vorbis flags.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 2:06 pm    Post subject: Reply with quote

Well, theora and vorbis are enabled for xine-lib and ffmpeg, yet players using xine-lib cannot play files in ogg container. At least this is what it looks like.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 27, 2018 2:10 pm    Post subject: Reply with quote

Jaglover wrote:
Well, theora and vorbis are enabled for xine-lib and ffmpeg, yet players using xine-lib cannot play files in ogg container. At least this is what it looks like.


Will xine-lib play the files outside the container?
In other words just the opus file, not opus in ogg.
You really shouldn't need a container, but not sure what the default ext is, ie for wave file it's .wav, for mpeg3 it's mp3, etc
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 2:14 pm    Post subject: Reply with quote

Not sure how to strip the container, and what happens to the tags then? Anyhow, xine-lib plays opus in mkv container.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 27, 2018 2:23 pm    Post subject: Reply with quote

Jaglover wrote:
Not sure how to strip the container, and what happens to the tags then? Anyhow, xine-lib plays opus in mkv container.


Then the problem is the ogg container itself, or at least as far as xine-lib is concerned.
So the question is why doesn't xine-lib handle ogg properly.


Edit to add: it isn't about xine-lib, but there are hints here https://github.com/clementine-player/clementine/issues/3993

eta2: So if the file is renamed from .ogg to .oga will it then play under xine-lib?
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 2:37 pm    Post subject: Reply with quote

The hint there is about file extension. FWIW I tried and renamed .opus to .ogg, didn't make any difference.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 27, 2018 2:50 pm    Post subject: Reply with quote

renaming .opus to .ogg wouldn't work, I would think

But taking a .ogg file and renaming to .oga might work.

It's like mp4 is a container that can handle audio and video, m4a is the audio portion, m4v is the video portion and they are recognized extensions in their own right.
The same for ogg, oga, ogv, they're even listed in xine-lib-1.2.9/src/combined/xine_ogg_demuxer.c
Code:
grep "oga" xine_ogg_demuxer.c
    "application/x-ogm-audio: oga: Ogg Audio;"
    "audio/ogg: oga: Ogg Audio;"
    "audio/x-ogg: oga: Ogg Audio;"
  this->demux_class.extensions      = "ogx ogv oga ogg spx ogm";



As to why xine-lib doesn't recognize opus inside .ogg, I don't know unless as that link said the spec changed a while back and they decided to more closely follow the spec.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 3:02 pm    Post subject: Reply with quote

Renaming to oga didn't work, either. Now I'm starting to think maybe it needs gvfs ... it is disabled system-wide.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 27, 2018 3:18 pm    Post subject: Reply with quote

Jaglover wrote:
Renaming to oga didn't work, either. Now I'm starting to think maybe it needs gvfs ... it is disabled system-wide.


I wouldn't think you'd need it as it's not a dependency for either xine-libs or quodlibet.

How are you creating the .ogg file?
Take me through the steps, I've never done opus files.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 27, 2018 3:23 pm    Post subject: Reply with quote

Maybe it should be, not the first time when ebuild maintainer misses something, it is real hard to find out all dependencies. Normally people have gvfs installed, it may be taken for granted.

Edit: run opusenc without any arguments on a wav file.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum