<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><br></div>
Try calling the libvlc.set*() options before libvlc.init().<div class=""><div class="h5"><br>
<br></div></div></blockquote><div><br></div><div>This is my code now:<br></div><div><br> // Initialize the multimedia framework<br> try {<br> mLibVLC = LibVLC.getInstance();<br> <br> // Unset verbose mode<br>
mLibVLC.setVerboseMode(true);<br> <br> // Set 20 seconds for network caching<br> mLibVLC.setNetworkCaching(20000);<br> <br> mLibVLC.init(PlayerActivity.currentActivity);<br>
} catch(LibVlcException e) {<br> Log.d("RBT","Error initializing the libVLC multimedia framework!");<br> PlayerActivity.currentActivity.finish();<br> } <br></div></div>
<br></div><div class="gmail_extra">The problem remains. The behaviour is exactly the same, and the logcat output is also the same:<br><br>02-22 15:27:27.755: V/VLC/LibVLC(1216): Initializing LibVLC<br>02-22 15:27:27.815: I/VLC/JNI/main(1216): LibVLC initialized: 0xb8210ec8<br>
02-22 15:27:27.815: D/VLC(1216): core libvlc: VLC media player - 2.2.0-git Weatherwax<br>02-22 15:27:27.825: D/VLC(1216): core libvlc: Copyright © 1996-2014 the VideoLAN team<br>02-22 15:27:27.825: D/VLC(1216): core libvlc: revision 2.1.0-git-2045-g2dbc664<br>
02-22 15:27:27.825: D/VLC(1216): core libvlc: configured with ../configure '--host=arm-linux-androideabi' '--build=x86_64-unknown-linux' '--disable-nls' '--enable-live555' '--enable-realrtsp' '--enable-avformat' '--enable-swscale' '--enable-avcodec' '--enable-opus' '--enable-opensles' '--enable-android-surface' '--enable-mkv' '--enable-taglib' '--enable-dvbpsi' '--disable-vlc' '--disable-shared' '--disable-update-check' '--disable-vlm' '--disable-dbus' '--disable-lua' '--disable-vcd' '--disable-v4l2' '--disable-gnomevfs' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-decklink' '--disable-libva' '--disable-dv1394' '--disable-mod' '--disable-sid' '--disable-gme' '--disable-tremor' '--disable-mad' '--disable-dca' '--disable-sdl-image' '--disable-zvbi' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-alsa' '--disable-samplerate' '--disable-sdl' '--disable-xcb' '--disable-atmo' '--disable-qt' '--disable-skins2' '--disable-mtp' '--disable-notify' '--enable-libass' '--disable-svg' '--di<br>
02-22 15:27:27.865: D/VLC(1216): core libvlc: no fetch required for (null) (art currently (null))<br>02-22 15:27:27.865: D/VLC(1216): core demux meta: looking for meta fetcher module matching "any": 0 candidates<br>
02-22 15:27:27.865: D/VLC(1216): core demux meta: no meta fetcher modules<br>02-22 15:27:27.865: D/VLC(1216): core libvlc: searching art for <a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a><br>
02-22 15:27:27.865: D/VLC(1216): core art finder: looking for art finder module matching "any": 1 candidates<br>02-22 15:27:27.865: D/VLC(1216): core art finder: no art finder modules matched<br>02-22 15:27:27.865: D/VLC(1216): core libvlc: art not found for <a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a><br>
02-22 15:27:27.895: D/VLC/LibVLC/Media(1216): Title <a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a><br>02-22 15:27:27.915: D/VLC/LibVLC/Media(1216): Artist Unknown Artist<br>
02-22 15:27:27.915: D/VLC/LibVLC/Media(1216): Genre Unknown Genre<br>02-22 15:27:27.915: D/VLC/LibVLC/Media(1216): Album Unknown Album<br>02-22 15:27:27.935: D/VLC(1216): core input: Creating an input for '<a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a>'<br>
02-22 15:27:27.955: D/VLC(1216): core input: using timeshift granularity of 50 MiB, in path '/tmp'<br>02-22 15:27:27.955: D/VLC(1216): core input: `<a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a>' gives access `http' demux `' path `<a href="http://live.radiobattletoads.com:443/saltxero.ogg">live.radiobattletoads.com:443/saltxero.ogg</a>'<br>
02-22 15:27:27.965: D/VLC(1216): core input: creating demux: access='http' demux='' location='<a href="http://live.radiobattletoads.com:443/saltxero.ogg">live.radiobattletoads.com:443/saltxero.ogg</a>' file='(null)'<br>
02-22 15:27:27.965: D/VLC(1216): core demux: looking for access_demux module matching "http": 5 candidates<br>02-22 15:27:27.965: D/VLC(1216): core demux: no access_demux modules matched<br>02-22 15:27:27.965: D/VLC(1216): core input: creating access 'http' location='<a href="http://live.radiobattletoads.com:443/saltxero.ogg">live.radiobattletoads.com:443/saltxero.ogg</a>', path='(null)'<br>
02-22 15:27:27.965: D/VLC(1216): core access: looking for access module matching "http": 15 candidates<br>02-22 15:27:27.975: D/VLC(1216): http access: querying proxy for <a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a><br>
02-22 15:27:27.975: D/VLC(1216): http access: no proxy<br>02-22 15:27:27.975: D/VLC(1216): http access: http: server='<a href="http://live.radiobattletoads.com">live.radiobattletoads.com</a>' port=443 file='/saltxero.ogg'<br>
02-22 15:27:27.985: D/VLC(1216): core access: net: connecting to <a href="http://live.radiobattletoads.com">live.radiobattletoads.com</a> port 443<br>02-22 15:27:28.055: D/VLC(1216): core access: connection succeeded (socket = 52)<br>
02-22 15:27:28.545: D/VLC(1216): http access: protocol 'HTTP' answer code 200<br>02-22 15:27:28.545: D/VLC(1216): http access: Content-Type: application/ogg<br>02-22 15:27:28.555: D/VLC(1216): http access: Meta-Info: icy-br: 64<br>
02-22 15:27:28.555: D/VLC(1216): http access: Meta-Info: ice-audio-info: bitrate=64;samplerate=44100;channels=2<br>02-22 15:27:28.555: D/VLC(1216): http access: Meta-Info: icy-description: Emisora libre e independiente de podcasting<br>
02-22 15:27:28.565: D/VLC(1216): http access: Icy-Genre: Podcasting<br>02-22 15:27:28.585: D/VLC(1216): http access: Icy-Name: Radio Battletoads<br>02-22 15:27:28.585: D/VLC(1216): http access: Meta-Info: icy-pub: 0<br>02-22 15:27:28.585: D/VLC(1216): http access: Meta-Info: icy-url: <a href="http://www.radiobattletoads.com/">http://www.radiobattletoads.com/</a><br>
02-22 15:27:28.595: D/VLC(1216): http access: Server: Icecast 2.3.2<br>02-22 15:27:28.595: D/VLC(1216): http access: auto re-connect enabled<br>02-22 15:27:28.595: D/VLC(1216): core access: using access module "http"<br>
02-22 15:27:28.595: D/VLC(1216): core stream: Using stream method for AStream*<br>02-22 15:27:28.595: D/VLC(1216): core stream: starting pre-buffering<br>02-22 15:27:28.825: D/VLC(1216): core stream: received first data after 217 ms<br>
02-22 15:27:28.835: D/VLC(1216): core stream: pre-buffering done 1082 bytes in 0s - 4 KiB/s<br>02-22 15:27:28.845: D/VLC(1216): core stream: looking for stream_filter module matching "any": 9 candidates<br>02-22 15:27:28.845: D/VLC(1216): core stream: no stream_filter modules matched<br>
02-22 15:27:28.845: D/VLC(1216): core stream: looking for stream_filter module matching "record": 9 candidates<br>02-22 15:27:28.845: D/VLC(1216): core stream: using stream_filter module "record"<br>02-22 15:27:28.845: D/VLC(1216): core input: creating demux: access='http' demux='' location='<a href="http://live.radiobattletoads.com:443/saltxero.ogg">live.radiobattletoads.com:443/saltxero.ogg</a>' file='(null)'<br>
02-22 15:27:28.845: D/VLC(1216): core demux: looking for demux module matching "any": 55 candidates<br>02-22 15:27:28.845: D/VLC(1216): ogg demux: File length is 0 bytes<br>02-22 15:27:29.085: D/VLC(1216): ogg demux: found vorbis header<br>
02-22 15:27:29.085: D/VLC(1216): ogg demux: beginning of a group of logical streams<br>02-22 15:27:29.085: D/VLC(1216): core demux: using demux module "ogg"<br>02-22 15:27:29.085: D/VLC(1216): core demux meta: looking for meta reader module matching "any": 1 candidates<br>
02-22 15:27:29.095: D/VLC(1216): core demux meta: no meta reader modules matched<br>02-22 15:27:29.095: D/VLC(1216): core input: `<a href="http://live.radiobattletoads.com:443/saltxero.ogg">http://live.radiobattletoads.com:443/saltxero.ogg</a>' successfully opened<br>
02-22 15:27:29.095: D/VLC(1216): core input: selecting program id=0<br>02-22 15:27:29.095: D/VLC(1216): core decoder: looking for decoder module matching "mediacodec,iomx,all": 32 candidates<br>02-22 15:27:29.145: D/VLC(1216): avcodec decoder: avcodec codec (Vorbis Audio) started<br>
02-22 15:27:29.145: D/VLC(1216): core decoder: using decoder module "avcodec"<br>02-22 15:27:29.165: D/VLC(1216): core input: Buffering 0%<br>02-22 15:27:29.185: D/VLC(1216): core input: Buffering 33%<br>02-22 15:27:29.185: D/VLC(1216): core generic: creating audio output<br>
02-22 15:27:29.185: D/VLC(1216): core audio output: looking for audio output module matching "opensles": 4 candidates<br>02-22 15:27:29.195: D/VLC(1216): core audio output: using audio output module "opensles_android"<br>
02-22 15:27:29.205: D/VLC(1216): core input: Buffering 67%<br>02-22 15:27:29.205: D/VLC(1216): core input: Stream buffering done (1523 ms in 43 ms)<br>02-22 15:27:29.245: D/VLC(1216): core audio output: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes<br>
02-22 15:27:29.245: D/VLC(1216): core volume: looking for audio volume module matching "any": 2 candidates<br>02-22 15:27:29.245: D/VLC(1216): core volume: using audio volume module "integer_mixer"<br>
02-22 15:27:29.245: D/VLC(1216): core audio output: input 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes<br>02-22 15:27:29.255: D/VLC(1216): core audio output: conversion: 'f32l'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo<br>
02-22 15:27:29.255: D/VLC(1216): core audio converter: looking for audio converter module matching "any": 6 candidates<br>02-22 15:27:29.255: D/VLC(1216): audio_format audio converter: f32l->s16l, bits per sample: 32->16<br>
02-22 15:27:29.255: D/VLC(1216): core audio converter: using audio converter module "audio_format"<br>02-22 15:27:29.255: D/VLC(1216): core audio output: conversion pipeline complete<br>02-22 15:27:29.255: D/VLC(1216): core audio resampler: looking for audio resampler module matching "any": 1 candidates<br>
02-22 15:27:29.255: D/VLC(1216): core audio resampler: using audio resampler module "ugly_resampler"<br>02-22 15:27:29.255: D/VLC(1216): core decoder: End of audio preroll<br>02-22 15:27:29.255: D/VLC(1216): core input: Decoder wait done in 46 ms<br>
02-22 15:27:29.305: W/VLC(1216): core audio output: playback way too early (-494442): playing silence<br>02-22 15:27:29.315: D/VLC(1216): core audio output: inserting 21804 zeroes<br>02-22 15:27:29.345: W/VLC(1216): core audio output: playback too early (-117761): down-sampling<br>
02-22 15:27:29.355: W/VLC(1216): core audio output: playback way too early (-143443): playing silence<br>02-22 15:27:29.355: D/VLC(1216): core audio output: inserting 6325 zeroes<br>02-22 15:27:29.395: W/VLC(1216): core audio output: playback too early (-59849): down-sampling<br>
02-22 15:27:29.465: D/VLC(1216): core audio output: resampling stopped (drift: 9049 us)<br>02-22 15:27:29.505: W/VLC(1216): core audio output: playback too early (-42328): down-sampling<br>02-22 15:27:29.535: D/VLC(1216): core audio output: resampling stopped (drift: -10224 us)<br>
02-22 15:27:29.595: W/VLC(1216): core audio output: playback too early (-41555): down-sampling<br>02-22 15:27:29.625: D/VLC(1216): core audio output: resampling stopped (drift: -13819 us)<br>02-22 15:27:29.685: W/VLC(1216): core audio output: playback too early (-57764): down-sampling<br>
02-22 15:27:29.745: D/VLC(1216): core audio output: resampling stopped (drift: -11456 us)<br>02-22 15:27:29.765: W/VLC(1216): core audio output: playback too early (-45796): down-sampling<br>02-22 15:27:29.935: D/VLC(1216): core audio output: resampling stopped (drift: -4799 us)<br>
02-22 15:27:29.985: W/VLC(1216): core audio output: playback too early (-55649): down-sampling<br>02-22 15:27:30.235: D/VLC(1216): core audio output: resampling stopped (drift: 15476 us)<br>02-22 15:27:30.265: W/VLC(1216): core audio output: playback too early (-52431): down-sampling<br>
02-22 15:27:30.745: D/VLC(1216): core audio output: resampling stopped (drift: -12156 us)<br>02-22 15:27:30.805: W/VLC(1216): core audio output: playback too early (-44011): down-sampling<br>02-22 15:27:31.295: D/VLC(1216): core audio output: resampling stopped (drift: 11434 us)<br>
02-22 15:27:31.785: W/VLC(1216): core audio output: playback too early (-46984): down-sampling<br>02-22 15:27:31.815: D/VLC(1216): core audio output: resampling stopped (drift: -16467 us)<br>02-22 15:27:32.275: W/VLC(1216): core audio output: playback too early (-61286): down-sampling<br>
02-22 15:27:32.335: D/VLC(1216): core audio output: resampling stopped (drift: -19954 us)<br>02-22 15:27:32.355: W/VLC(1216): core audio output: playback too early (-50627): down-sampling<br>02-22 15:27:32.855: D/VLC(1216): core audio output: resampling stopped (drift: -12253 us)<br>
02-22 15:27:33.265: W/VLC(1216): core audio output: playback too early (-40240): down-sampling<br>02-22 15:27:33.305: D/VLC(1216): core audio output: resampling stopped (drift: -5814 us)<br>02-22 15:27:33.335: W/VLC(1216): core audio output: playback too early (-42803): down-sampling<br>
02-22 15:27:34.785: D/VLC(1216): core audio output: resampling stopped (drift: -12124 us)<br>02-22 15:27:35.375: W/VLC(1216): core audio output: playback too early (-41216): down-sampling<br>02-22 15:27:35.825: D/VLC(1216): core audio output: resampling stopped (drift: -12071 us)<br>
02-22 15:27:35.845: W/VLC(1216): core audio output: playback too early (-41591): down-sampling<br>02-22 15:27:35.965: D/VLC(1216): core access: object waitpipe triggered<br>02-22 15:27:35.965: D/VLC(1216): core input: control: stopping input<br>
02-22 15:27:36.285: D/VLC(1216): core decoder: removing module "avcodec"<br>02-22 15:27:36.285: D/VLC(1216): avcodec decoder: ffmpeg codec (Vorbis Audio) stopped<br>02-22 15:27:36.285: D/VLC(1216): core decoder: killing decoder fourcc `vorb', 0 PES in FIFO<br>
02-22 15:27:36.295: D/VLC(1216): core audio resampler: removing module "ugly_resampler"<br>02-22 15:27:36.295: D/VLC(1216): core audio converter: removing module "audio_format"<br>02-22 15:27:36.305: D/VLC(1216): core volume: removing module "integer_mixer"<br>
02-22 15:27:36.305: D/VLC(1216): core generic: keeping audio output<br>02-22 15:27:36.305: D/VLC(1216): core demux: removing module "ogg"<br>02-22 15:27:36.305: D/VLC(1216): core input: Program doesn't contain anymore ES<br>
02-22 15:27:36.305: D/VLC(1216): core stream: removing module "record"<br>02-22 15:27:36.305: D/VLC(1216): core access: removing module "http"<br>02-22 15:27:36.315: D/VLC(1216): core audio output: removing module "opensles_android"<br>
02-22 15:27:36.315: V/VLC/LibVLC(1216): Destroying LibVLC instance<br><br></div><div class="gmail_extra">Please note, the core audio output warnigs seem to pop out every now and then when I run this on the Android emulator, they have nothing to do with the code change.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br>Jorge.<br></div><div class="gmail_extra"><br></div></div>