[Android] Network caching setter does nothing?

Jorge Suárez de Lis yo at jorgesuarezdelis.name
Sat Feb 22 21:29:27 CET 2014


>
> Try calling the libvlc.set*() options before libvlc.init().
>
>
>
This is my code now:

        // Initialize the multimedia framework
        try {
            mLibVLC = LibVLC.getInstance();

            // Unset verbose mode
            mLibVLC.setVerboseMode(true);

            // Set 20 seconds for network caching
            mLibVLC.setNetworkCaching(20000);

            mLibVLC.init(PlayerActivity.currentActivity);
        } catch(LibVlcException e) {
            Log.d("RBT","Error initializing the libVLC multimedia
framework!");
            PlayerActivity.currentActivity.finish();
        }

The problem remains. The behaviour is exactly the same, and the logcat
output is also the same:

02-22 15:27:27.755: V/VLC/LibVLC(1216): Initializing LibVLC
02-22 15:27:27.815: I/VLC/JNI/main(1216): LibVLC initialized: 0xb8210ec8
02-22 15:27:27.815: D/VLC(1216): core libvlc: VLC media player - 2.2.0-git
Weatherwax
02-22 15:27:27.825: D/VLC(1216): core libvlc: Copyright © 1996-2014 the
VideoLAN team
02-22 15:27:27.825: D/VLC(1216): core libvlc: revision
2.1.0-git-2045-g2dbc664
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
02-22 15:27:27.865: D/VLC(1216): core libvlc: no fetch required for (null)
(art currently (null))
02-22 15:27:27.865: D/VLC(1216): core demux meta: looking for meta fetcher
module matching "any": 0 candidates
02-22 15:27:27.865: D/VLC(1216): core demux meta: no meta fetcher modules
02-22 15:27:27.865: D/VLC(1216): core libvlc: searching art for
http://live.radiobattletoads.com:443/saltxero.ogg
02-22 15:27:27.865: D/VLC(1216): core art finder: looking for art finder
module matching "any": 1 candidates
02-22 15:27:27.865: D/VLC(1216): core art finder: no art finder modules
matched
02-22 15:27:27.865: D/VLC(1216): core libvlc: art not found for
http://live.radiobattletoads.com:443/saltxero.ogg
02-22 15:27:27.895: D/VLC/LibVLC/Media(1216): Title
http://live.radiobattletoads.com:443/saltxero.ogg
02-22 15:27:27.915: D/VLC/LibVLC/Media(1216): Artist Unknown Artist
02-22 15:27:27.915: D/VLC/LibVLC/Media(1216): Genre Unknown Genre
02-22 15:27:27.915: D/VLC/LibVLC/Media(1216): Album Unknown Album
02-22 15:27:27.935: D/VLC(1216): core input: Creating an input for '
http://live.radiobattletoads.com:443/saltxero.ogg'
02-22 15:27:27.955: D/VLC(1216): core input: using timeshift granularity of
50 MiB, in path '/tmp'
02-22 15:27:27.955: D/VLC(1216): core input: `
http://live.radiobattletoads.com:443/saltxero.ogg' gives access `http'
demux `' path `live.radiobattletoads.com:443/saltxero.ogg'
02-22 15:27:27.965: D/VLC(1216): core input: creating demux: access='http'
demux='' location='live.radiobattletoads.com:443/saltxero.ogg' file='(null)'
02-22 15:27:27.965: D/VLC(1216): core demux: looking for access_demux
module matching "http": 5 candidates
02-22 15:27:27.965: D/VLC(1216): core demux: no access_demux modules matched
02-22 15:27:27.965: D/VLC(1216): core input: creating access 'http'
location='live.radiobattletoads.com:443/saltxero.ogg', path='(null)'
02-22 15:27:27.965: D/VLC(1216): core access: looking for access module
matching "http": 15 candidates
02-22 15:27:27.975: D/VLC(1216): http access: querying proxy for
http://live.radiobattletoads.com:443/saltxero.ogg
02-22 15:27:27.975: D/VLC(1216): http access: no proxy
02-22 15:27:27.975: D/VLC(1216): http access: http: server='
live.radiobattletoads.com' port=443 file='/saltxero.ogg'
02-22 15:27:27.985: D/VLC(1216): core access: net: connecting to
live.radiobattletoads.com port 443
02-22 15:27:28.055: D/VLC(1216): core access: connection succeeded (socket
= 52)
02-22 15:27:28.545: D/VLC(1216): http access: protocol 'HTTP' answer code
200
02-22 15:27:28.545: D/VLC(1216): http access: Content-Type: application/ogg
02-22 15:27:28.555: D/VLC(1216): http access: Meta-Info: icy-br: 64
02-22 15:27:28.555: D/VLC(1216): http access: Meta-Info: ice-audio-info:
bitrate=64;samplerate=44100;channels=2
02-22 15:27:28.555: D/VLC(1216): http access: Meta-Info: icy-description:
Emisora libre e independiente de podcasting
02-22 15:27:28.565: D/VLC(1216): http access: Icy-Genre: Podcasting
02-22 15:27:28.585: D/VLC(1216): http access: Icy-Name: Radio Battletoads
02-22 15:27:28.585: D/VLC(1216): http access: Meta-Info: icy-pub: 0
02-22 15:27:28.585: D/VLC(1216): http access: Meta-Info: icy-url:
http://www.radiobattletoads.com/
02-22 15:27:28.595: D/VLC(1216): http access: Server: Icecast 2.3.2
02-22 15:27:28.595: D/VLC(1216): http access: auto re-connect enabled
02-22 15:27:28.595: D/VLC(1216): core access: using access module "http"
02-22 15:27:28.595: D/VLC(1216): core stream: Using stream method for
AStream*
02-22 15:27:28.595: D/VLC(1216): core stream: starting pre-buffering
02-22 15:27:28.825: D/VLC(1216): core stream: received first data after 217
ms
02-22 15:27:28.835: D/VLC(1216): core stream: pre-buffering done 1082 bytes
in 0s - 4 KiB/s
02-22 15:27:28.845: D/VLC(1216): core stream: looking for stream_filter
module matching "any": 9 candidates
02-22 15:27:28.845: D/VLC(1216): core stream: no stream_filter modules
matched
02-22 15:27:28.845: D/VLC(1216): core stream: looking for stream_filter
module matching "record": 9 candidates
02-22 15:27:28.845: D/VLC(1216): core stream: using stream_filter module
"record"
02-22 15:27:28.845: D/VLC(1216): core input: creating demux: access='http'
demux='' location='live.radiobattletoads.com:443/saltxero.ogg' file='(null)'
02-22 15:27:28.845: D/VLC(1216): core demux: looking for demux module
matching "any": 55 candidates
02-22 15:27:28.845: D/VLC(1216): ogg demux: File length is 0 bytes
02-22 15:27:29.085: D/VLC(1216): ogg demux: found vorbis header
02-22 15:27:29.085: D/VLC(1216): ogg demux: beginning of a group of logical
streams
02-22 15:27:29.085: D/VLC(1216): core demux: using demux module "ogg"
02-22 15:27:29.085: D/VLC(1216): core demux meta: looking for meta reader
module matching "any": 1 candidates
02-22 15:27:29.095: D/VLC(1216): core demux meta: no meta reader modules
matched
02-22 15:27:29.095: D/VLC(1216): core input: `
http://live.radiobattletoads.com:443/saltxero.ogg' successfully opened
02-22 15:27:29.095: D/VLC(1216): core input: selecting program id=0
02-22 15:27:29.095: D/VLC(1216): core decoder: looking for decoder module
matching "mediacodec,iomx,all": 32 candidates
02-22 15:27:29.145: D/VLC(1216): avcodec decoder: avcodec codec (Vorbis
Audio) started
02-22 15:27:29.145: D/VLC(1216): core decoder: using decoder module
"avcodec"
02-22 15:27:29.165: D/VLC(1216): core input: Buffering 0%
02-22 15:27:29.185: D/VLC(1216): core input: Buffering 33%
02-22 15:27:29.185: D/VLC(1216): core generic: creating audio output
02-22 15:27:29.185: D/VLC(1216): core audio output: looking for audio
output module matching "opensles": 4 candidates
02-22 15:27:29.195: D/VLC(1216): core audio output: using audio output
module "opensles_android"
02-22 15:27:29.205: D/VLC(1216): core input: Buffering 67%
02-22 15:27:29.205: D/VLC(1216): core input: Stream buffering done (1523 ms
in 43 ms)
02-22 15:27:29.245: D/VLC(1216): core audio output: output 's16l' 44100 Hz
Stereo frame=1 samples/4 bytes
02-22 15:27:29.245: D/VLC(1216): core volume: looking for audio volume
module matching "any": 2 candidates
02-22 15:27:29.245: D/VLC(1216): core volume: using audio volume module
"integer_mixer"
02-22 15:27:29.245: D/VLC(1216): core audio output: input 'f32l' 44100 Hz
Stereo frame=1 samples/8 bytes
02-22 15:27:29.255: D/VLC(1216): core audio output: conversion:
'f32l'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo
02-22 15:27:29.255: D/VLC(1216): core audio converter: looking for audio
converter module matching "any": 6 candidates
02-22 15:27:29.255: D/VLC(1216): audio_format audio converter: f32l->s16l,
bits per sample: 32->16
02-22 15:27:29.255: D/VLC(1216): core audio converter: using audio
converter module "audio_format"
02-22 15:27:29.255: D/VLC(1216): core audio output: conversion pipeline
complete
02-22 15:27:29.255: D/VLC(1216): core audio resampler: looking for audio
resampler module matching "any": 1 candidates
02-22 15:27:29.255: D/VLC(1216): core audio resampler: using audio
resampler module "ugly_resampler"
02-22 15:27:29.255: D/VLC(1216): core decoder: End of audio preroll
02-22 15:27:29.255: D/VLC(1216): core input: Decoder wait done in 46 ms
02-22 15:27:29.305: W/VLC(1216): core audio output: playback way too early
(-494442): playing silence
02-22 15:27:29.315: D/VLC(1216): core audio output: inserting 21804 zeroes
02-22 15:27:29.345: W/VLC(1216): core audio output: playback too early
(-117761): down-sampling
02-22 15:27:29.355: W/VLC(1216): core audio output: playback way too early
(-143443): playing silence
02-22 15:27:29.355: D/VLC(1216): core audio output: inserting 6325 zeroes
02-22 15:27:29.395: W/VLC(1216): core audio output: playback too early
(-59849): down-sampling
02-22 15:27:29.465: D/VLC(1216): core audio output: resampling stopped
(drift: 9049 us)
02-22 15:27:29.505: W/VLC(1216): core audio output: playback too early
(-42328): down-sampling
02-22 15:27:29.535: D/VLC(1216): core audio output: resampling stopped
(drift: -10224 us)
02-22 15:27:29.595: W/VLC(1216): core audio output: playback too early
(-41555): down-sampling
02-22 15:27:29.625: D/VLC(1216): core audio output: resampling stopped
(drift: -13819 us)
02-22 15:27:29.685: W/VLC(1216): core audio output: playback too early
(-57764): down-sampling
02-22 15:27:29.745: D/VLC(1216): core audio output: resampling stopped
(drift: -11456 us)
02-22 15:27:29.765: W/VLC(1216): core audio output: playback too early
(-45796): down-sampling
02-22 15:27:29.935: D/VLC(1216): core audio output: resampling stopped
(drift: -4799 us)
02-22 15:27:29.985: W/VLC(1216): core audio output: playback too early
(-55649): down-sampling
02-22 15:27:30.235: D/VLC(1216): core audio output: resampling stopped
(drift: 15476 us)
02-22 15:27:30.265: W/VLC(1216): core audio output: playback too early
(-52431): down-sampling
02-22 15:27:30.745: D/VLC(1216): core audio output: resampling stopped
(drift: -12156 us)
02-22 15:27:30.805: W/VLC(1216): core audio output: playback too early
(-44011): down-sampling
02-22 15:27:31.295: D/VLC(1216): core audio output: resampling stopped
(drift: 11434 us)
02-22 15:27:31.785: W/VLC(1216): core audio output: playback too early
(-46984): down-sampling
02-22 15:27:31.815: D/VLC(1216): core audio output: resampling stopped
(drift: -16467 us)
02-22 15:27:32.275: W/VLC(1216): core audio output: playback too early
(-61286): down-sampling
02-22 15:27:32.335: D/VLC(1216): core audio output: resampling stopped
(drift: -19954 us)
02-22 15:27:32.355: W/VLC(1216): core audio output: playback too early
(-50627): down-sampling
02-22 15:27:32.855: D/VLC(1216): core audio output: resampling stopped
(drift: -12253 us)
02-22 15:27:33.265: W/VLC(1216): core audio output: playback too early
(-40240): down-sampling
02-22 15:27:33.305: D/VLC(1216): core audio output: resampling stopped
(drift: -5814 us)
02-22 15:27:33.335: W/VLC(1216): core audio output: playback too early
(-42803): down-sampling
02-22 15:27:34.785: D/VLC(1216): core audio output: resampling stopped
(drift: -12124 us)
02-22 15:27:35.375: W/VLC(1216): core audio output: playback too early
(-41216): down-sampling
02-22 15:27:35.825: D/VLC(1216): core audio output: resampling stopped
(drift: -12071 us)
02-22 15:27:35.845: W/VLC(1216): core audio output: playback too early
(-41591): down-sampling
02-22 15:27:35.965: D/VLC(1216): core access: object waitpipe triggered
02-22 15:27:35.965: D/VLC(1216): core input: control: stopping input
02-22 15:27:36.285: D/VLC(1216): core decoder: removing module "avcodec"
02-22 15:27:36.285: D/VLC(1216): avcodec decoder: ffmpeg codec (Vorbis
Audio) stopped
02-22 15:27:36.285: D/VLC(1216): core decoder: killing decoder fourcc
`vorb', 0 PES in FIFO
02-22 15:27:36.295: D/VLC(1216): core audio resampler: removing module
"ugly_resampler"
02-22 15:27:36.295: D/VLC(1216): core audio converter: removing module
"audio_format"
02-22 15:27:36.305: D/VLC(1216): core volume: removing module
"integer_mixer"
02-22 15:27:36.305: D/VLC(1216): core generic: keeping audio output
02-22 15:27:36.305: D/VLC(1216): core demux: removing module "ogg"
02-22 15:27:36.305: D/VLC(1216): core input: Program doesn't contain
anymore ES
02-22 15:27:36.305: D/VLC(1216): core stream: removing module "record"
02-22 15:27:36.305: D/VLC(1216): core access: removing module "http"
02-22 15:27:36.315: D/VLC(1216): core audio output: removing module
"opensles_android"
02-22 15:27:36.315: V/VLC/LibVLC(1216): Destroying LibVLC instance

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.

Regards,
Jorge.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20140222/0f16bccb/attachment-0001.html>


More information about the Android mailing list