Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Problem with libmp3lame

  1. #11
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Problem with libmp3lame

    Hi again,

    Found the details:

    http://wiki.multimedia.cx/index.php?...edia_Audio_Pro

    and just to prove that I cannot leave such issues alone I have downloaded a sample file from the MPlayer samples site which FFmpeg identifies correctly:

    Code:
    Input #0, asf, from 'Beethovens nionde symfoni (Scherzo)-1.wma':
    Duration: 00:01:14.34, start: 1.451000, bitrate: 293 kb/s
    Stream #0.0: Audio: 0x0162, 48000 Hz, stereo, s16, 287 kb/s
    But FFplay barfs on. But good news is that MPlayer plays it with no problems:

    Code:
    andrew@skamandros~/Desktop$ mplayer Beethovens\ nionde\ symfoni\ \(Scherzo\)-1.wma 
    MPlayer SVN-r28553-4.2.4 (C) 2000-2009 MPlayer Team
    
    Playing Beethovens nionde symfoni (Scherzo)-1.wma.
    ASF file format detected.
    [asfheader] Audio stream found, -aid 1
    Clip info:
     name: 
     author: 
     copyright: 
     comments: 
    ==========================================================================
    Opening audio decoder: [dmo] Win32/DMO decoders
    AUDIO: 48000 Hz, 2 ch, s16le, 287.5 kbit/18.71% (ratio: 35932->192000)
    Selected audio codec: [wma9dmo] afm: dmo (Windows Media Audio 9 DMO)
    ==========================================================================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
    A:  12.6 (12.6) of 77.0 (01:17.0)  1.3%
    So this would mean that you could use MPlayer to output as pcm and then encode as you wish with these files that have audio only. MEncoder should be able to handle video + audio files as mc4man has suggested.

    Edit: BTW mc4man Transcode 1.1.0 has some neat tricks for this one:

    Code:
    $ transcode -H 0 -x null,mplayer -i Beethovens\ nionde\ symfoni\ \(Scherzo\)-1.wma \
    -y null,tcaud --lame_preset insane -E 44100,16,2 -m $HOME/Desktop/test.mp3
    That is beyond cool!!


    Andrew
    Last edited by andrew.46; February 15th, 2009 at 06:55 AM.

  2. #12
    Join Date
    Jan 2008
    Beans
    311
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Problem with libmp3lame

    Thanks again, Andrew.
    Unfortunately, my MPlayer doesn't play the Beethoven sample file (let alone the other .wmv file's audio)...

    Code:
    knattlhuber@intrepid:~$ mplayer '~/Desktop/Beethovens nionde symfoni (Scherzo)-1.wma' 
    MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
    CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    ...
    Playing /home/stefankuhle/Desktop/Beethovens nionde symfoni (Scherzo)-1.wma.
    ASF file format detected.
    [asfheader] Audio stream found, -aid 1
    ...
    Forced audio codec: mad
    Requested audio codec family [wma9dmo] (afm=dmo) not available.
    Enable it at compilation.
    Requested audio codec family [wmadmo] (afm=dmo) not available.
    Enable it at compilation.
    Cannot find codec for audio format 0x162.
    Read DOCS/HTML/en/codecs.html!
    Audio: no sound

  3. #13
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Problem with libmp3lame

    Hi,

    Quote Originally Posted by knattlhuber View Post
    Unfortunately, my MPlayer doesn't play the Beethoven sample file (let alone the other .wmv file's audio)...
    Code:
    knattlhuber@intrepid:~$ mplayer '~/Desktop/Beethovens nionde symfoni (Scherzo)-1.wma' 
    MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
    CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    ...
    Unfortunately you have an older version that has a reduced codec pack. There is a guide for the full MPlayer here that should help. This is the guide I use myself to install MPlayer.

    Andrew

  4. #14
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Problem with libmp3lame

    my MPlayer doesn't play ....
    that's the downside of a 64 bit system, there's no codecs available for formats such as this.
    For comparison the w64codec package (or mplayer codec pak.) is about 250Kb in size, the 32codec one is around 31Mb

    I've seen posts about installing the 32bit mplayer in a 64 bit install, don't know how feasible/easy it is though

    Edit : andrew - can the 64 bit mplayer play these if you compile?


    what's sorta interesting about the wma3 is it can vary in br, sr. 'resolution' and channels (multichannel
    These 2 are definitely playable 1 I made from cd, the other the sample from mplayer

    Audio

    Format : WMA3

    Format profile : M0

    Codec ID : 162

    Codec ID/Info : Windows Media Audio 3

    Description of the codec : Windows Media Audio 10 Professional - 192 kbps, 44 kHz, 2 channel 16 bit 1-pass CBR

    Duration : 3mn 52s

    Bit rate mode : Constant

    Bit rate : 192 Kbps

    Channel(s) : 2 channels

    Sampling rate : 44.1 KHz

    Resolution : 16 bits



    Audio

    Format : WMA3

    Format profile : M1

    Codec ID : 162

    Codec ID/Info : Windows Media Audio 3

    Description of the codec : Windows Media Audio 9.1 Professional - 384 kbps, 48 kHz, 2 channel 24 bit 2-pass VBR

    Duration : 1mn 15s

    Bit rate mode : Variable

    Bit rate : 287 Kbps

    Channel(s) : 2 channels

    Sampling rate : 48.0 KHz

    Resolution : 24 bits
    Last edited by mc4man; February 15th, 2009 at 07:58 AM.

  5. #15
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Problem with libmp3lame

    Hi,

    Can I demonstrate one method of transcoding one of these problem files? Unfortunately it demonstrates the need for:

    1. A very recent copy of Transcode
    2. The latest svn MPlayer
    3. The latest git x264
    4. The latest svn FFmpeg and a good read of the Fakeoutdoorsman's guide


    which is a fair investment of time, effort and learning. The file that I have looked at is here:

    Code:
    $ wget http://samples.mplayerhq.hu/A-codecs/WMA9/wmapro/WMVHDsplash.wmv
    And FFmpeg shows it as:

    Code:
    Stream #0.0: Audio: 0x0162, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.1: Video: wmv3, yuv420p, 1280x720, 6500 kb/s, 23.98 tb(r)
    which is exactly the audio codec that has been giving all the trouble. Note that for some reason audio and video tracks are reversed. Now as I have mentioned the svn MPlayer can play this audio so it can be extracted as PCM as follows:

    Code:
    $ transcode -H 0 -i WMVHDsplash.wmv -x null,mplayer -y null,wav -m sound.wav
    And then with a bit of tricky remapping by FFmpeg the original video and the extracted sound are both muxed into an mp4 container using h264 for the video and aac for the sound:

    Code:
    $ ffmpeg -i WMVHDsplash.wmv -i sound.wav -map 0.1 -map 1.0 \
             -vcodec libx264 -vpre hq -crf 22 -threads 0 \
             -acodec libfaac -ab 128k -ar 44100 -ac 2 \
              converted.mp4
    This leaves the final file as:

    Code:
    Stream #0.0(und): Video: h264, yuv420p, 1280x720, 23.98 tb(r)
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16
    And playable by most modern media players. Note that the Video and Audio streams have been neatly remapped? The original file is 15 megs while the transcoded file is 5 megs and I challenge anybody to tell me it looks and sounds all that different.

    So I guess knattlhuber the answer is that it certainly can be done. I am usually accused of making things too complicated but this would be my way of doing it. Can anybody else suggest an 'easier' way of accomplishing this task, perhaps utilising this file from MPlayer just to make it interesting .

    All the best,

    Andrew
    Last edited by andrew.46; February 15th, 2009 at 10:58 AM.

  6. #16
    Join Date
    Oct 2008
    Location
    /home/brad
    Beans
    591
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Problem with libmp3lame

    You can also use pacpl to convert wma to mp3 or whatnot. I believe it's pacpl.sourceforge.net, but a google search for pacpl should yield what you need.
    Windows free as of 11/18/2008.
    Feel free to message me on Skype if you have questions on anything. I'm happy to help!
    Note: If things don't work, try this: Reboot. Check all wires. Check Again.

  7. #17
    Join Date
    Jan 2008
    Beans
    311
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Problem with libmp3lame

    I tried compiling MPlayer but still no luck. So it's the 64-bit I guess.

    My next Ubuntu installation's gonna be 32-bit again, that's for sure. Too much trouble with Flash, Java, codecs, and non-mainstream apps that don't support 64-bit...

  8. #18
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Problem with libmp3lame

    My next Ubuntu installation's gonna be 32-bit again
    I'm planning my next box, I'll think I'll make it a dual boot 32 and 64.

    I tried Andrews method and as usual worked beautifully, though you need a 32 bit mplayer/win32codecs to do.

    If you happened to have access to a windows install then it's quite easy to run your video thru windows media encoder and choose any audio output but lossless.

    That would convert the audio to wma2 which vlc (64 or 32 ) can play. (vlc can't play wmap or wmal

    There are more extensive methods, (demux, convert to wma2 or ac3 5.1, remux), but the above is almost point and click.

  9. #19
    Join Date
    Jan 2008
    Beans
    311
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Problem with libmp3lame

    Incidentally, I just came across this one:
    http://abock.org/moonshine/

    "Windows Media playback through Moonlight and Firefox for Linux
    [...] Moonshine is a browser plugin that proxies the Moonlight plugin, claiming support for Windows Media content. When Firefox comes across content advertised as Windows Media, it loads the Moonshine plugin which in turn loads Moonlight.
    Moonshine then loads its media player application, written in Silverlight, into the proxied Moonlight plugin, which is able to play back the Windows Media content.
    The desktop player is Firefox with the standard web chrome replaced with controls to drive the media experience.
    [...] Windows Media support is included in Moonlight, and is provided directly by Microsoft as part of their commitment to Silverlight compatibility on all platforms. Moonshine simply leverages this support by loading a Silverlight media player application into the browser for Moonlight to run."

    Comes in 32- and 64-bit.

Page 2 of 2 FirstFirst 12

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
  •