Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Opus players on 12.04?

  1. #1
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,129
    Distro
    Ubuntu 16.04 Xenial Xerus

    Opus players on 12.04?

    opus is a recent codec but on 12.04 it has very limited support so far

    i installed 1.0.2 and got files very quickly [crystal clear instructions]

    Usage: opusenc --bitrate 128 input_file output_file.opus
    for example

    and Rubyripper will rip and tag thus:

    opusenc --bitrate 128 "%i" "%o" && id3v2 %o.opus --artist "%a" --album "%b" --song "%t" --genre "%g" --track "%n" --year "%y"
    as will EAC under wine
    --bitrate 128 %source% %dest%
    and tick id3 box


    bulk convert to opus [requires --enable-libopus when configuring ffmpeg] [all tags maintained]

    for f in * ; do ffmpeg -i "$f" -c:a libopus -b:a 320k "${f%.*}.opus" ; done


    there are tips to use in vlc and totem in this excellent thread
    but so far neither work for me on 12 .04

    tried as suggested

    cd ~/temp
    wget http://ftp.us.debian.org/debian/pool/main/g/gst-plugins-bad0.10/gstreamer0.10-plugins-bad_0.10.23-7_amd64.deb
    wget http://ftp.us.debian.org/debian/pool/main/g/gst-plugins-bad0.10/libgstreamer-plugins-bad0.10-0_0.10.23-7_amd64.deb
    sudo dpkg -i --force-overwrite *.deb

    but nothing in totem as yet


    did an ffmpeg update and added --enable-libopus

    so now i have an efficient command line player for opus files [but as i write my only opus player]


    Code:
    for f in  *opus ; do ffplay -nodisp -autoexit "$f"; done
    which with an alias can be triggered with the word "opus"

    1 add
    Code:
    alias opus='for f in  *opus ; do ffplay -nodisp -autoexit "$f"; done'
    in terminal and return
    2
    Code:
    gedit   ~/.bashrc
    3 add
    Code:
    alias opus='for f in  *opus ; do ffplay -nodisp -autoexit "$f"; done'
    at bottom of page and save

    4
    Code:
    . ~/.bashrc
    [in terminal]
    5 cd to folder with opus files then enter '
    Code:
    opus
    '

    ctrl +c to move to next track



    =====================


    My question is does anyone know how to open more doors in 12.04 or is 12.10 the only way here ?
    12.04 is so stable for me [best ever] that i am loath to move up... so any tips??


    PS asked for deadbeef to add funtionality to its list of codecs
    Last edited by shantiq; January 25th, 2013 at 12:00 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  2. #2
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Opus players on 12.04?

    Quote Originally Posted by shantiq View Post
    ... so any tips??
    Hi
    Ubuntu 12.04, opus files will play with VLC from this PPA ---> https://launchpad.net/~videolan/+arc...filter=precise

  3. #3
    Join Date
    Dec 2006
    Beans
    7,315

    Re: Opus players on 12.04?

    If you have opusenc you should also have opusdec:

    Code:
    andrew@skamandros~/media/YouTube$ opusdec sample.opus 
    Decoding to 48000 Hz (1 channel)
    Encoded with libopus 1.0.2
    ENCODER=opusenc from opus-tools 0.1.5
    Decoding complete.
    as well as opusinfo:

    Code:
    andrew@skamandros~/media/YouTube$ opusinfo sample.opus 
    Processing file "sample.opus"...
    
    New logical stream (#1, serial: 2a297bdd): type opus
    Encoded with libopus 1.0.2
    User comments section follows...
    	ENCODER=opusenc from opus-tools 0.1.5
    Opus stream 1:
    	Pre-skip: 356
    	Playback gain: 0 dB
    	Channels: 1
    	Original sample rate: 44100Hz
    	Packet duration:   20.0ms (max),   20.0ms (avg),   20.0ms (min)
    	Page duration:   1000.0ms (max),  995.8ms (avg),  100.0ms (min)
    	Total data length: 1690117 bytes (overhead: 0.99%)
    	Playback length: 3m:34.087s
    	Average bitrate: 63.16 kb/s, w/o overhead: 62.53 kb/s
    Logical stream 1 ended
    opusdec is not exactly feature-loaded but it gets the job done
    You think that's air you're breathing now?

  4. #4
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,129
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Opus players on 12.04?

    thanx guys will check the VLC

    but as regards opusdec i had tried that and got


    opusdec '12 I Love Music.opus'
    Decoding to 48000 Hz (2 channels)
    Cannot open /dev/dsp: No such file or directory

    on any file.... not sure what it means
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  5. #5
    Join Date
    Jun 2007
    Beans
    16,470

    Re: Opus players on 12.04?

    Quote Originally Posted by shantiq View Post
    thanx guys will check the VLC

    but as regards opusdec i had tried that and got





    on any file.... not sure what it means
    It means you didn't specify an output (file
    Run just opusdec to see options

  6. #6
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,129
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Opus players on 12.04?

    not sure there mc i just want to use it as a player not a converter


    with wine it works as a player

    wine opusdec '02 You Never Love The Same Way Twice.opus'
    Decoding to 48000 Hz (2 channels)
    Encoded with libopus 1.0.2
    ENCODER=opusenc from opus-tools 0.1.6
    [\] 00:00:12

    but the linux one gives me this


    opusdec '02 You Never Love The Same Way Twice.opus'
    Decoding to 48000 Hz (2 channels)
    Cannot open /dev/dsp: No such file or directory
    Last edited by shantiq; January 24th, 2013 at 01:16 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  7. #7
    Join Date
    Dec 2006
    Beans
    7,315

    Re: Opus players on 12.04?

    Hmmm.... did you build this yourself? Latest version is:

    Code:
    andrew@skamandros~$ opusdec -V
    opusdec opus-tools 0.1.6 (using libopus 1.0.2)
    Copyright (C) 2008-2012 Xiph.Org Foundation
    Might be worth building your own if you have not already done so and this would eliminate the possibility of a shoddy compile/package...
    You think that's air you're breathing now?

  8. #8
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,129
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Opus players on 12.04?

    yes my own build

    opusdec -V
    opusdec opus-tools 0.1.6 (using libopus 1.0.2)
    Copyright (C) 2008-2012 Xiph.Org Foundation
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

  9. #9
    Join Date
    Jun 2007
    Beans
    16,470

    Re: Opus players on 12.04?

    Quote Originally Posted by shantiq View Post
    not sure there mc i just want to use it as a player not a converter
    If you were to do a google site search on Cannot open /dev/dsp: maybe you'll find some workaround.
    (there was a change quite some time ago concerning sound/pulseaudio & or oss/oss-compat that is at the root of your issue

    At least here almost all players support opus though some need to be self built.

  10. #10
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan
    Beans
    2,129
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Opus players on 12.04?

    yes cool will look again had a look on google yesterday and as you say many articles; it is not of the utmost importance since i have ffplay going

    will wait for players to catch up! thsnx for info


    =======================



    ok had a look again on google and it turns out when one has the message [with any/all software]
    cannot open dev/dsp
    the fix is to prefix your command with
    padsp

    so cd to the opus folder and

    enter
    for f in *.opus; do padsp opusdec "$f" ; done
    omit padsp if you do not need it


    so for me commandline players 2 linux gui 0 so far [b.drung vlc not a success on my install]


    PS foobar 1.1.4 under wine is my only gui so far plays opus OOTB
    Last edited by shantiq; January 25th, 2013 at 04:22 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community
    Playing with Slackware too now ...
    ShanArt

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •