Encoding Shoutcast mp3 streams with ogg vorbis

Hello friends,
I am somehow newbie to java and javasound.
Also i have intermediate English language skills, so please have some understanding.
I would like to create a java based project which part of it would be functionality similar to streamripper (http://streamripper.sourceforge.net/)
The biggest problem seems to be license fees for mp3 encoding.
I wonder if its possible to use mp3spi for decoding shoutcast streams and some ogg vorbis based encoder to save the stream into hard disk, splitting the files according to id3 tags.
Mp3 patents still apply?
Can be implemented with existing java technology? vorbisspi + mp3spi + Tritonus Ogg Vorbis Encoder + other?
Greetings
bakchos

You might want to take a look at jicyshout
http://sourceforge.net/projects/jicyshout
It's basically an dead project that helps jmf read a Shoutcast stream. From there It's up to you how you want to save the stream. You might want to use an Effect to capture the stream in mp3 format and use the meta data listener in jicyshout to split it by song. There are bugs in it but it should give you a start.

Similar Messages

  • H264 Stream with Main Profile laggy ? - looks like 20 fps

    Hi,
    we'Re encoding an h264 Stream with 1.4 Mbit and Main Profile @5.1 or different.
    When we use the Main Profile the user can watch the stream and it looks like it has 15-20 fps - it looks laggy and you can the the slow movings
    If you switch to Base Line Profile it looks as it should.
    It not depends on the CPU on Client or Server side - encoders says 25 fps.
    We're using Blackmagic Decklink cards.
    Did anyone has the same Problem ?

    Matthew Quinn
    Systems Coordinator
    Digital Media Department
    t: 0151 293 8720 | m: 07887 735 405
    f: 0151 293 8722 | w: http://www.liverpoolfc.tv/
    a: Unit 14, The Matchworks, Speke Rd, Liverpool, L19 2RF
    Please consider the environment before printing this email

  • How to read metadata (such as artist  trackname) from mp3 stream properly?

    Hi,
    while playing with JavaFX i would like to read metadata from a mp3 stream ( internet radio)
    to display information such as author, artist , trackname..
    Anbody could give some code example to show how to achieve that?
    Any help would be appreciated..
    Thank you,
    Lacos

    Thank you for your help. I tried once more but somehow i don't get it.
    Here's my code:
    binding the JavaFX media player to variable "player"..
    var player =
         MediaPlayer {
           repeatCount:MediaPlayer.REPEAT_FOREVER
            media : Media {source:mp3RadioStream}
    starting playing the stream when user clicks in a rectangle area
    and (hopefully ever printing some metadata :-) ..
    Rectangle {
                  opacity: 0.0
                  x: 10 y: 80 width: 128 height: 126
                   onMouseClicked: function(e:MouseEvent):Void
                        println("mouse clicked ..");
                        println("setting radio stream..");
                        player.media = Media {source: mp3RadioStream};
                        println("play init..");
                        player.play();
                        println("playing..");
                        // printing some metadata
                         for (a in player.media.metadata) {
                            println("metadata key: {a.key} , value: {a.value}");
                   }Any help, especially some explicit code example would be very appreciated..
    It has to be a silly error on my side but i really dont get it :-/
    Tried to play the mp3 stream with winamp an the stream definitly has some metadata like
    artist , trackname..
    Thx for your help,
    Lacos

  • Ogg vorbis and streaming

    I have several questions, any help is greatly appriciated,
    1) I have been looking recently into the Ogg vorbis audio encoder, and i wondered if anyone had come across a java based version of this encoder, there are no licencing problems as it is free, unlike mp3.
    2) Does anyone have any examples of how to stream audio files via the internet, i have found some examples that stream midi files and this seems relativly straight forward, but i cant seem to find anything on streaming other file formats such as .wav or .aiff
    any help on either of the above would be great!
    Thanks alot
    Pauly

    Hello,
    I am also looking for a java ogg encoder.
    Did you find a java example???
    Thanks.

  • Ogg vorbis encoding

    How can I use the Ogg Vorbis Library ported by adobe to
    encode a mp3 file. How can I know which function the library
    contains. Is there any documentation regarding the ported library ?
    -Shihab

    The library I ported over is vorbisfile - which is just an
    Ogg Vorbis decoder, nothing more. If you want to encoding you'll
    need to look into porting over an encoder. As for MP3 encoding,
    that's a bit more complicated because in addition to C source for
    the encoder you may also need to purchase a license since MP3 is
    patented.

  • Problem when streaming with the CLI flash media encoder 2.5

    I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
    I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
    Any help would be really appreciated. Thankyou.

    First of all, thankyou.
    There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
    In fact, I don't know why they dont support it, but that is the way it is.
    Through the GUI, i connect directly and without problems, without user/pass.
    Thankyou again.

  • How to listen to ogg vorbis streaming files (radio)?

    On iTunes, I can listen to ogg vorbis non-streaming files. Is it possible to listen to ogg vorbis streaming files (radio) on iTunes? And if it is, how can I do it?

    I'm a big fan of 8-bit (and game music in general), and love the stream at kohina.com. They only hag ogg streams as well, and I had the same predicament. I pressed my luck and tried opening the stream in QuickTime (I also have Perian installed).
    Lo! 8-bit glory!
    Not the best solution, but it works! As a side note, the stream initially appears to be only seconds long, but the player head will keep scrolling back as it nears the right side. Sometimes it actually does reach the end though, and this stops playback. A workaround for this is to set the movie to loop.
    Hope that helps!

  • What's difference push stream with server script and push with flash media live encoder??

    Hi
    I'm multi point push streaming with adobe flash media server 4
    Stream structure like this
    Open Broadcaster Software (or Flash media live encoder) (RTMP) -> Home Flash media server with multi push script (main.asc)
    -> Stream to 2 justintv channels + 1 dailymotion channel (1024x576 , 1750Kbps)
    no problem at all when streaming to justintv
    but some another stream services have speed problem
    ustream can not push with this method
    and dailymotion, vaughnlive push speed slow down than OBS or FMLE Direct stream
    for example
    when direct streaming with OBS or FMLE (Without home server) , no problem at all stream to dailymotion and vaughnlive
    clearly no lag
    but when push with server script, slow down push speed and unstable (it affect only for dailymotion and vaughnlive streams)
    justintv upload speed same as OBS, FMLE's bitrate but dailymotion, vaughnlive bitrate always slower than justintv or OBS, FMLE
    Like this - justintv , OBS, FMLE (1750Kbps~2000Kbps) but dailymotion, vaughnlive (1600Kbps~1800Kbps)
    I don't understand why have push speed difference between server script push and OBS, FMLE push
    Have any reason? and do not have solution???
    (sorry for my bad english)

    First of all let me clarify that we call multi point publish and it has been explained in detail here
    http://help.adobe.com/en_US/flashmediaserver/devguide/WS5b3ccc516d4fbf351e63e3d11a0773d56e -7ffbDev.html
    When you do multi point publish(MPP) you publish from one server to another server, when you use FMLE you do a normal publish of stream(s) from a client/encoder(FMLE in this case) to the Adobe Media server.

  • Are there any Java Ogg Vorbis API's or examples

    I'm currently involved in a project where in we need to record the audio from a mic encode with vorbis, then put it in Ogg container, and then make it as RTP packet and transmit over Darwin Streaming Server.
    Till now we were using JMF with available codec's, since JMF handles the RTP part life was pretty much easy using it. Now we want to use Ogg Vorbis because of its adv's.
    So in this process my first step would be to capture audio and compress it with vorbis. My search for the appropriate API was not successful as I could only find Decoder(Jorbis) in Java but not the encoders.
    I've downloaded the libvorbis and libogg but the code examples were in "C" language.
    Are there any resources in Java(API,examples) which would do help me in achieving this.
    -Vithal

    Hello,
    I would like to know if you found the java ogg encoder example.
    I would be very gratefull if you coud share it with me.
    Thanks.

  • Playing mp3 stream works well in Emulator but doesn't play on Device

    I'm facing this problem. I'm using flex && actionscript to play an mp3 stream on the phone.
    Code works great and the sound is played when the app is run in the flash builder emulator.
    However, when i deploy my app on a mobile device (tried several Android phones) everything is good except the stream doesn't play!
    Can you please help me??
    Here's my code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"
                        creationComplete="view1_creationCompleteHandler(event)"
                        >
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  import flash.net.*;
                                  import flash.media.*;
                                  private  var req:URLRequest;
                                  private  var context:SoundLoaderContext = new SoundLoaderContext(8000, true);
                                  private   var s:Sound;
                                  private  var channel:SoundChannel = new SoundChannel();
                                  private  function AudioOn():void
                                            req = new URLRequest("http://stream2.srr.ro:8000/;stream.mp3");
                                            s = new Sound(req,context);
                                            channel=s.play();
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
                                            AudioOn();
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
    </s:View>

    Okay.. First a big thanks!!
    I've resolved the path issues and am now experimenting with formats other than SCORM that will hopefully launch off our LMS (SyberWorks).
    I think I know what a cross domain issue is... it seems pretty self evident, (ie) .htm/.swf files live on a different server domain than video or audio files.
    I think all my files are on the same domain in the zip file. However, are the following paths also an example of a cross domain issue?:
    Z:\orgs\ogslp\courses\2012videotest\videotestinternalsrvr\videotestinternalsrvr.htm
    (this is where I upload, or publish Captivate files)
    http://gslcampus/ogslp/courses/2012videotest/videotestinternalsrvr/videotestinternalsrvr.h tm
    (this is where clients access the training modules via IE & the Syberworks LMS, intranet)
    One more..... when publishing with the Captivate > Internal Server option what path do I input to access the server?
    Z:\orgs\ogslp\courses\2012videotest\videotestinternalsrvr\videotestinternalsrvr.htm
    (backdoor for uploading files)
    or
    http://gslcampus/ogslp/courses/2012videotest/videotestinternalsrvr/videotestinternalsrvr.h tm
    (actual internal, intranet url for accessing courses)
    PS when I upload files the following appears before the Z:
    Computer > SyberWorks (\\sousa)(Z:)
    Any advice would be appreciated - thanks for your time.
    wjf

  • Ogg Vorbis Support itunes & ipod

    Hi,
    With the potential problems round the corner that may appear with the Alcatel MP3 "patent" isn't it time Apple re-consider adding Ogg Vorbis support to iTunes and the iPod?
    As a totally free format which outperforms MP3 on both file size and quality I don't understand why Apple hasn't added this already. iTunes with Ogg and AAC support would be awesome.
    At the very least it would enable Apple to drop MP3 in future if need be.
    Does anyone else agree?
    Regards,
    Tim.
      Windows XP  
      Windows XP  

    http://discussions.apple.com/thread.jspa?messageID=2729055&#2729055

  • OGG Vorbis

    Hello all,
    About six years ago I ripped my 250+ CD collection using Ogg Vorbis. I had various reasons for doing this, but the most important was that Vorbis was the only codec at the time that could reliably play my gapless mixes perfectly. Playing Sasha and John Digweed's Northern Exposure on pre-gapless iTunes or mp3 is a pretty horrible experience.
    Anyway, the upshot is that I now have an iPod touch, iTunes on Mac and Windows and hundreds of albums in Vorbis format that don't work (and holding me back from fully embracing iTunes and the iPod).
    I have a couple of questions:
    1. Is there a plugin for iTunes on the Mac that will let me add Vorbis files to my library and play them in iTunes and in front row?
    2. Is there a plugin for iTunes (or a nice third party app) that will intercept my Vorbis files and do a reasonable job of re-encoding them for iTunes/iPod playback?
    3. Does anyone know why doesn't Apple support Vorbis on modern iPods in the same manner mp3 files are supported?
    I know Apple used to claim that the processor power of an iPod wasn't enough for Vorbis, but that hasn't been the case for a long time. I really like Vorbis, not least of all from an idealogical standpoint, and I've kind of shunned Apple for not supporting it all of these years (the iPod touch was a gift). As a buyer of high-ish-end hi-fi and a person who gets asked for opinions on such matters by friends and family, that probably translates in to quite a few lost sales. It just seems strange to leave it out.
    Thanks for any help!
    Adrian

    *Is there a plugin for iTunes on the Mac that will let me add Vorbis files to my library and play them in iTunes and in front row?*
    These pages may be of interest to you:
    Playing ogg vorbis files using iTunes
    Xiph QuickTime Components (XiphQT)

  • What are the permissions needed to receive a mp3 stream?

    Like some others here, I am trying to write a music player that will play live stream (shoutcast mp3).  I've tried both Flex (Flash Builder 4.5.1) and Flash CS5.5, it works great when I play the SWF on the PC, but when tranferred to the phone I hear nothing, although it is streaming,
    I assume that it is something to do with the permissions, but I'm not sure.  The permissions I am using at the moment (for android) are as follows:
    INTERNET
    WRITE_EXTERNAL_STORAGE
    READ_PHONE_STATE
    WAKE_LOCK
    ACCESS_NETWORK_STATE
    ACCESS_WIFI_STATE
    Can anyone help?

    Check for the permissions here:
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffc.html#WS9 01d38e593cd1bac1e63e3d129d39606f2-8000

  • OGG Vorbis supp

    OGG Vorbis audio format support is a feature that lot of people are trying to find in a hard-disk based player (see www.hydrogenaudio.org).
    iPod have no OGG support, and I think iRi'ver, mPio and Neuros are the only brands that can fight with Apple because their players supports more audio formats than iPod (including OGG Vorbis).
    So, does Creative will add this feature in a future?.
    For the Creative guys: OGG Vorbis is a patent free audio codec much better than MP3 (I know you know it) so... why not implement this easy feature and make us happy?
    Alex.
    P.D: sorry for my english: I'm Spanish and here in Europe the Neuros is hard to find so, if Creative adds OGG support to the Muvo or Zen players, I (and lot of audiophile geeks) will buy a Creative.

    OK. I know my needs can differ from the others, but I find incredible that there're still people that don't buy a good player because it takes 0? seconds to boot.
    You can't wait 0 seconds? You're so hurry? Really? Hum...
    What computer do you have at home? How long it takes to boot?... This will be very annoying to you, isn't it's
    (these are rhetorical questions) =;-)

  • Problem Encoding WMV to FLV with Media Encoder CS4 (but not with CS3)

    Hello,
    I have been attempting to encode some WMV files with Flash Media Encoder CS4 (I have Adobe Creative Suite CS4 installed) but it has failed, generating this error:
    - Source File: C:\Documents and Settings\usf\Desktop\incoming\ch01.wmv
    - Output File: C:\Documents and Settings\usf\Desktop\incoming\ch01_3.flv
    - Preset Used: Custom
    - Video: 624x343, Same as source [fps]
    - Audio: MPEG Layer III (MP3), 128 [kbps], Stereo
    - Bitrate: VBR, 400.00 [kbps]
    - Encoding Time: 00:06:36
    5/28/2010 11:26:16 AM : Encoding Failed
    Error compiling movie.
    Unknown error.
    On another computer where Adobe Media Encoder CS3 is installed (with Creative Suite CS3), I experience no such problem.  I do notice that when I add the WMV to Adobe Media Encoder CS3, it opens a window that prompts me to use "ffdshow", which will apparently work if it's configured to decode the file.  I click "OK" and start the queue in the encoder.  A few minutes later I get a successfully encoded FLV file.
    I have come to question whether Adobe Media Encoder CS4 should be re-installed, whether the entire Suite should re-installed, or if there is some patch or fix I can install somewhere.  Adobe Media Encoder CS4 is installed on my "production" computer which also has Adobe Premiere Pro (CS3) and Adobe Premiere Elements (7).
    Could use some advice here.
    Glen
    P.S.  the files will also not export to FLV using Adobe Premiere or Premiere elements...

    Again, the reason we are capturing with Windows Media Encoder is because we tried using Live Flash Encoder to capture directly into flash but our equipment wasn't fast enough and it was dropping frames all over the place.  We also don't have the space to capture into an uncompressed format because we don't have the available storage, and our events can be 8 hours long or more (each video is about 15 minutes, 20 or more videos)
    Ive listened to everything in my workflow and it sounds fine until the outputted FLV file from AME.
    WME is capturing at the following specs:
    160kbps 48KHz Windows Media Audio 9.2 codec (stereo) 1 pass CBR
    1800kbps 1 pass CBR video
    29.97 fps
    640x360 resolution
    buffer size: 5 seconds
    key frame interval: 8 seconds
    I have verified this with a codec info utility I ran on the wmv files.
    AME is encoding with the following specs:
    FLV Multiplexing
    On2 VP6 codec
    620x360 resolution
    800kbps 2 pass VBR
    100% undershoot at best quality
    160kbps stereo MP3 audio
    I verified the above with the same codec info utility (gspot 2.70a) and it is all acurate, it also told me that the audio is at 44.1KHz rather than 48 (there was no place to specify this, is this a limitatino of the VP6 codec?)
    Yes, these are our source assets.  They're being captured either through an XL2 via firewire, or from an analog program feed converted to firewire via a Canopus converter box.
    If anyone has any suggestions on how to get rid of this, or a different encoder (either to capture with rather low cpu resources, or to encode into flash) let me know.  I can provide a sample of the clipping if you need
    Thanks,
    Peter

Maybe you are looking for