RTSP Streaming is not working in few Android Devices

VLC for Android and Chrome OS specific usage questions
jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 21 Oct 2014 07:56

We are using libVLC in an Android Application for RTSP Streaming. It is running successfully. But in few devices when we try to stream RTSP we get the following error message.

Code: Select all

10-21 10:49:00.085: E/MemoryHeapBase(2695): mmap(fd=75, size=0) failed (Invalid argument) 10-21 10:49:00.510: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.510: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.510: E/VLC(2695): mediacodec decoder: Exception in MediaCodec.dequeueOutputBuffer (GetOutput) 10-21 10:49:00.510: E/VLC(2695): mediacodec decoder: Exception occurred in MediaCodec.dequeueInputBuffer 10-21 10:49:00.510: E/VLC(2695): mediacodec decoder: Exception in MediaCodec.dequeueOutputBuffer (GetOutput) 10-21 10:49:00.590: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.590: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648)

These are the devices we tested RTSP Streaming.

Streaming Working
Nexus 5 (API 4.4)
Nexus 4 (4.4)
Moto G (4.4)
XIOMI MI3 (4.4)
Samsung Grand (4.2.2)

Streaming Not Working
Samsung Galaxy S3 (4.3)
Micromax Canvas 4 (4.2.1)
Micromax Canvas 2.2 (4.2.2)
XOLO Q3000 (4.2)
Huawei Ascend y300 (4.1)

We have tested using the VLC Android Application in all these devices as well. We are getting the same error message in VLC Android Application.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 21 Oct 2014 22:52

What is the hardware codec you are using? (You can see this earlier in the whole log)

jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

Re: RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 22 Oct 2014 06:39

Hi Edward,

Here is the entire log we are getting when we stream RTSP.

Code: Select all

10-21 10:48:59.705: I/VLC/JNI/main(2695): LibVLC initialized: 0x41b2ef88 10-21 10:48:59.705: D/VLC(2695): core libvlc: VLC media player - 2.2.0-pre4 Weatherwax 10-21 10:48:59.705: D/VLC(2695): core libvlc: Copyright © 1996-2014 the VideoLAN team 10-21 10:48:59.705: D/VLC(2695): core libvlc: revision 2.2.0-pre3-94-gf7fe01d 10-21 10:48:59.705: D/VLC(2695): core libvlc: configured with ../configure '--host=arm-linux-androideabi' '--build=x86_64-unknown-linux' '--enable-neon' '--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' '--enable-dvdread' '--enable-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' '--disa 10-21 10:48:59.705: D/VLC(2695): core generic: creating audio output 10-21 10:48:59.705: D/VLC(2695): core audio output: looking for audio output module matching "opensles": 4 candidates 10-21 10:48:59.705: W/libOpenSLES(2695): class OutputMix interface 0 requested but unavailable MPH=43 10-21 10:48:59.705: D/VLC(2695): core audio output: using audio output module "opensles_android" 10-21 10:48:59.705: D/VLC(2695): core generic: keeping audio output 10-21 10:48:59.710: D/VLC(2695): core input: Creating an input for 'rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' 10-21 10:48:59.725: D/VLC(2695): core input: using timeshift granularity of 50 MiB, in path '/tmp' 10-21 10:48:59.725: D/VLC(2695): core input: `rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' gives access `rtsp' demux `' path `192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' 10-21 10:48:59.725: D/VLC(2695): core input: specified demux `any' 10-21 10:48:59.725: D/VLC(2695): core input: creating demux: access='rtsp' demux='any' location='192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' file='(null)' 10-21 10:48:59.725: D/VLC(2695): core demux: looking for access_demux module matching "rtsp": 7 candidates 10-21 10:48:59.725: D/VLC(2695): live555 demux: version 2014.07.25 10-21 10:48:59.750: D/ProgressBar(2695): updateDrawableBounds: left = 0 10-21 10:48:59.750: D/ProgressBar(2695): updateDrawableBounds: top = 0 10-21 10:48:59.750: D/ProgressBar(2695): updateDrawableBounds: right = 96 10-21 10:48:59.750: D/ProgressBar(2695): updateDrawableBounds: bottom = 96 10-21 10:48:59.750: D/VLC(2695): core playlist: meta ok for (null), need to fetch art 10-21 10:48:59.750: D/VLC(2695): core input: Creating an input for '(null)' 10-21 10:48:59.755: D/VLC(2695): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-21 10:48:59.755: D/VLC(2695): core art finder: no meta fetcher modules 10-21 10:48:59.755: D/VLC(2695): core playlist: art not found for (null) 10-21 10:48:59.770: D/VLC(2695): core playlist: meta ok for (null), need to fetch art 10-21 10:48:59.770: D/VLC(2695): core input: Creating an input for '(null)' 10-21 10:48:59.770: D/VLC(2695): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-21 10:48:59.770: D/VLC(2695): core art finder: no meta fetcher modules 10-21 10:48:59.770: D/VLC(2695): core playlist: art not found for (null) 10-21 10:48:59.785: D/VLC(2695): core playlist: meta ok for (null), need to fetch art 10-21 10:48:59.785: D/VLC(2695): core input: Creating an input for '(null)' 10-21 10:48:59.790: D/VLC(2695): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-21 10:48:59.790: D/VLC(2695): core art finder: no meta fetcher modules 10-21 10:48:59.790: D/VLC(2695): core playlist: art not found for (null) 10-21 10:48:59.810: D/VLC(2695): core playlist: meta ok for (null), need to fetch art 10-21 10:48:59.810: D/VLC(2695): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-21 10:48:59.810: D/VLC(2695): core art finder: no meta fetcher modules 10-21 10:48:59.810: D/VLC(2695): core playlist: art not found for (null) 10-21 10:48:59.840: E/ViewRootImpl(2695): sendUserActionEvent() mView == null 10-21 10:48:59.950: D/VLC(2695): live555 demux: RTP subsession 'audio/PCMU' 10-21 10:48:59.960: D/VLC(2695): core input: selecting program id=0 10-21 10:48:59.960: D/VLC(2695): live555 demux: RTP subsession 'video/H264' 10-21 10:48:59.965: D/VLC(2695): live555 demux: setup start: 0.000000 stop:0.000000 10-21 10:48:59.970: D/VLC(2695): live555 demux: We have a timeout of 60 seconds 10-21 10:48:59.970: D/VLC(2695): live555 demux: spawned timeout thread 10-21 10:48:59.970: D/VLC(2695): live555 demux: play start: 0.000000 stop:0.000000 10-21 10:48:59.970: D/VLC(2695): core demux: using access_demux module "live555" 10-21 10:48:59.970: D/VLC(2695): core decoder: looking for decoder module matching "mediacodec,iomx,all": 34 candidates 10-21 10:48:59.970: D/VLC(2695): g711 decoder: samplerate:8000Hz channels:1 10-21 10:48:59.975: D/VLC(2695): core decoder: using decoder module "g711" 10-21 10:48:59.975: D/VLC(2695): core decoder: looking for decoder module matching "mediacodec,iomx,all": 34 candidates 10-21 10:49:00.045: I/OMXClient(2695): Using client-side OMX mux. 10-21 10:49:00.070: D/VLC(2695): mediacodec decoder: Number of profile levels: 36 10-21 10:49:00.070: D/VLC(2695): mediacodec decoder: using OMX.SEC.avc.dec 10-21 10:49:00.070: I/OMXClient(2695): Using client-side OMX mux. 10-21 10:49:00.085: E/MemoryHeapBase(2695): mmap(fd=75, size=0) failed (Invalid argument) 10-21 10:49:00.100: D/VLC(2695): core decoder: using decoder module "mediacodec" 10-21 10:49:00.100: D/VLC(2695): core packetizer: looking for packetizer module matching "any": 21 candidates 10-21 10:49:00.100: D/VLC(2695): packetizer_h264 packetizer: found NAL_PPS (pps_id=0 sps_id=0) 10-21 10:49:00.100: D/VLC(2695): core packetizer: using packetizer module "packetizer_h264" 10-21 10:49:00.105: D/VLC(2695): core demux meta: looking for meta reader module matching "any": 1 candidates 10-21 10:49:00.105: D/VLC(2695): core demux meta: no meta reader modules matched 10-21 10:49:00.105: D/VLC(2695): core input: `rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' successfully opened 10-21 10:49:00.110: D/VLC(2695): core input: Buffering 0% 10-21 10:49:00.110: D/VLC(2695): core generic: reusing audio output 10-21 10:49:00.110: D/VLC(2695): core input: Buffering 0% 10-21 10:49:00.115: I/com.tj.rtsp$MyHandler(2695): Player status:MediaPlayerPlaying 10-21 10:49:00.115: D/VLC(2695): packetizer_h264 packetizer: found NAL_SPS (sps_id=0) 10-21 10:49:00.115: D/VLC(2695): core input: Buffering 0% 10-21 10:49:00.115: D/VLC(2695): core input: Buffering 0% 10-21 10:49:00.120: D/VLC(2695): core input: Buffering 2% 10-21 10:49:00.120: D/VLC(2695): core input: Buffering 5% 10-21 10:49:00.150: D/VLC(2695): core input: Buffering 8% 10-21 10:49:00.155: D/VLC(2695): core input: Buffering 10% 10-21 10:49:00.195: D/VLC(2695): core input: Buffering 10% 10-21 10:49:00.195: D/VLC(2695): core input: Buffering 13% 10-21 10:49:00.195: D/VLC(2695): core input: Buffering 13% 10-21 10:49:00.200: D/VLC(2695): core input: Buffering 13% 10-21 10:49:00.250: D/VLC(2695): core input: Buffering 16% 10-21 10:49:00.300: D/VLC(2695): core input: Buffering 18% 10-21 10:49:00.300: D/VLC(2695): core input: Buffering 18% 10-21 10:49:00.350: D/VLC(2695): core input: Buffering 21% 10-21 10:49:00.355: D/VLC(2695): core input: Buffering 24% 10-21 10:49:00.395: D/VLC(2695): core input: Buffering 26% 10-21 10:49:00.395: D/VLC(2695): core input: Buffering 26% 10-21 10:49:00.400: D/VLC(2695): core input: Buffering 26% 10-21 10:49:00.405: I/Reverb(2695): getpid() 2695, IPCThreadState::self()->getCallingPid() 2695 10-21 10:49:00.405: D/VLC(2695): core input: Buffering 26% 10-21 10:49:00.415: D/VLC(2695): core audio output: output 's16l' 8000 Hz Stereo/Mono frame=1 samples/4 bytes 10-21 10:49:00.415: D/VLC(2695): core volume: looking for audio volume module matching "any": 3 candidates 10-21 10:49:00.415: D/VLC(2695): core volume: using audio volume module "integer_mixer" 10-21 10:49:00.415: D/VLC(2695): core audio output: input 's16l' 8000 Hz Mono frame=1 samples/2 bytes 10-21 10:49:00.415: D/VLC(2695): core audio filter: looking for audio filter module matching "scaletempo": 13 candidates 10-21 10:49:00.415: D/VLC(2695): scaletempo audio filter: format: 8000 rate, 1 nch, 4 bps, fl32 10-21 10:49:00.415: D/VLC(2695): scaletempo audio filter: params: 30 stride, 0.200 overlap, 14 search 10-21 10:49:00.415: D/VLC(2695): scaletempo audio filter: 1.000 scale, 240.000 stride_in, 240 stride_out, 192 standing, 48 overlap, 112 search, 400 queue, fl32 mode 10-21 10:49:00.415: D/VLC(2695): core audio filter: using audio filter module "scaletempo" 10-21 10:49:00.415: D/VLC(2695): core audio output: conversion: 's16l'->'f32l' 8000 Hz->8000 Hz Mono->Mono 10-21 10:49:00.415: D/VLC(2695): core audio converter: looking for audio converter module matching "any": 7 candidates 10-21 10:49:00.415: D/VLC(2695): audio_format audio converter: s16l->f32l, bits per sample: 16->32 10-21 10:49:00.415: D/VLC(2695): core audio converter: using audio converter module "audio_format" 10-21 10:49:00.415: D/VLC(2695): core audio output: conversion pipeline complete 10-21 10:49:00.415: D/VLC(2695): core audio output: conversion: 'f32l'->'s16l' 8000 Hz->8000 Hz Mono->Stereo/Mono 10-21 10:49:00.415: D/VLC(2695): core audio converter: looking for audio converter module matching "any": 7 candidates 10-21 10:49:00.415: D/VLC(2695): core audio converter: using audio converter module "trivial_channel_mixer" 10-21 10:49:00.415: D/VLC(2695): core audio converter: looking for audio converter module matching "any": 7 candidates 10-21 10:49:00.415: D/VLC(2695): audio_format audio converter: f32l->s16l, bits per sample: 32->16 10-21 10:49:00.415: D/VLC(2695): core audio converter: using audio converter module "audio_format" 10-21 10:49:00.415: D/VLC(2695): core audio output: conversion pipeline complete 10-21 10:49:00.415: D/VLC(2695): core audio resampler: looking for audio resampler module matching "any": 1 candidates 10-21 10:49:00.415: D/VLC(2695): core audio resampler: using audio resampler module "ugly_resampler" 10-21 10:49:00.415: D/VLC(2695): core decoder: End of audio preroll 10-21 10:49:00.450: D/VLC(2695): core input: Buffering 29% 10-21 10:49:00.500: D/VLC(2695): core input: Buffering 32% 10-21 10:49:00.510: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.510: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.510: E/VLC(2695): mediacodec decoder: Exception in MediaCodec.dequeueOutputBuffer (GetOutput) 10-21 10:49:00.510: E/VLC(2695): mediacodec decoder: Exception occurred in MediaCodec.dequeueInputBuffer 10-21 10:49:00.510: E/VLC(2695): mediacodec decoder: Exception in MediaCodec.dequeueOutputBuffer (GetOutput) 10-21 10:49:00.510: I/com.tj.rtsp$MyHandler(2695): Player status: HardwareAccelerationError 10-21 10:49:00.550: D/VLC(2695): core input: Buffering 34% 10-21 10:49:00.555: D/VLC(2695): core input: Buffering 34% 10-21 10:49:00.555: D/VLC(2695): core input: Buffering 37% 10-21 10:49:00.590: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.590: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.595: D/VLC(2695): core input: Buffering 40% 10-21 10:49:00.595: D/VLC(2695): core input: Buffering 40% 10-21 10:49:00.600: D/VLC(2695): core input: Buffering 40% 10-21 10:49:00.650: D/VLC(2695): core input: Buffering 42% 10-21 10:49:00.650: D/VLC(2695): core input: Buffering 42% 10-21 10:49:00.670: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.670: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.725: D/VLC(2695): core input: Buffering 45% 10-21 10:49:00.750: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.750: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.755: D/VLC(2695): core input: Buffering 48% 10-21 10:49:00.755: D/VLC(2695): core input: Buffering 50% 10-21 10:49:00.795: D/VLC(2695): core input: Buffering 50% 10-21 10:49:00.795: D/VLC(2695): core input: Buffering 53% 10-21 10:49:00.800: D/VLC(2695): core input: Buffering 53% 10-21 10:49:00.805: D/VLC(2695): core input: Buffering 53% 10-21 10:49:00.830: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.830: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.855: D/VLC(2695): core input: Buffering 56% 10-21 10:49:00.910: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.910: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.915: D/VLC(2695): core input: Buffering 58% 10-21 10:49:00.915: D/VLC(2695): core input: Buffering 58% 10-21 10:49:00.955: D/VLC(2695): core input: Buffering 61% 10-21 10:49:00.960: D/VLC(2695): core input: Buffering 64% 10-21 10:49:00.990: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:00.990: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:00.995: D/VLC(2695): core input: Buffering 66% 10-21 10:49:00.995: D/VLC(2695): core input: Buffering 66% 10-21 10:49:01.010: D/VLC(2695): core input: control type=0 10-21 10:49:01.010: D/VLC(2695): core input: control: stopping input 10-21 10:49:01.010: D/VLC(2695): core decoder: discarded audio buffer 10-21 10:49:01.010: D/VLC(2695): core decoder: removing module "g711" 10-21 10:49:01.010: D/VLC(2695): core decoder: killing decoder fourcc `mlaw', 7 PES in FIFO 10-21 10:49:01.010: D/VLC(2695): core audio resampler: removing module "ugly_resampler" 10-21 10:49:01.010: D/VLC(2695): core audio converter: removing module "audio_format" 10-21 10:49:01.010: D/VLC(2695): core audio filter: removing module "scaletempo" 10-21 10:49:01.010: D/VLC(2695): core audio converter: removing module "trivial_channel_mixer" 10-21 10:49:01.010: D/VLC(2695): core audio converter: removing module "audio_format" 10-21 10:49:01.020: D/VLC(2695): core volume: removing module "integer_mixer" 10-21 10:49:01.020: D/VLC(2695): core generic: keeping audio output 10-21 10:49:01.020: D/VLC(2695): core decoder: removing module "mediacodec" 10-21 10:49:01.070: E/ACodec(2695): [OMX.SEC.avc.dec] ERROR(0x90000004) 10-21 10:49:01.075: E/MediaCodec(2695): Codec reported an error. (omx error 0x90000004, internalError -2147483648) 10-21 10:49:01.090: D/VLC(2695): core decoder: killing decoder fourcc `h264', 0 PES in FIFO 10-21 10:49:01.090: D/VLC(2695): core packetizer: removing module "packetizer_h264" 10-21 10:49:01.090: D/VLC(2695): core demux: removing module "live555" 10-21 10:49:01.095: D/VLC(2695): core input: Program doesn't contain anymore ES 10-21 10:49:01.095: D/VLC(2695): core input: Destroying the input for 'rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' 10-21 10:49:01.095: D/VLC(2695): core audio output: removing module "opensles_android" 10-21 10:49:01.160: I/com.tj.rtsp$MyHandler(2695): Player status:MediaPlayerStopped 10-21 10:49:01.160: D/AbsListView(2695): onVisibilityChanged() is called, visibility : 0 10-21 10:49:01.160: D/AbsListView(2695): unregisterIRListener() is called 10-21 10:49:01.290: D/AbsListView(2695): unregisterIRListener() is called 10-21 10:49:01.295: D/AbsListView(2695): unregisterIRListener() is called 10-21 10:49:01.365: I/com.tj.rtsp(2695): Live video onstop called

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 22 Oct 2014 16:29

It seems that OMX.SEC.avc.dec may be at fault.

jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

Re: RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 22 Oct 2014 17:16

Can you please guide me on how to fix this issue?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 22 Oct 2014 17:18

Does it perform acceptably without hardware decoding (i.e. software decoding)?

jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

Re: RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 22 Oct 2014 17:31

Hi Edward,

I am new to this. I don't know to play video in software decoding mode using LibVLC.
I am using the following the code inside the LibVLC java class to play RTSP.

Code: Select all

String[] myOption = { ":codec=mediacodec,iomx,all" }; playMRL(mLibVlcInstance, mrl, myOption);
Can you please guide me on how to play video in software decoding mode. So that I can check If this resolves the issue.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 22 Oct 2014 17:34

:codec=all

jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

Re: RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 22 Oct 2014 17:45

I have made changes which you told.

But RTSP link is not loading in device.

Here is the log I am getting.

Code: Select all

10-22 21:11:14.806: V/VLC/LibVLC(22135): Initializing LibVLC 10-22 21:11:14.807: D/VLC/JNI/main(22135): Using deblocking level 3 10-22 21:11:14.807: D/VLC/JNI/main(22135): Chroma set to "" 10-22 21:11:14.807: D/VLC/JNI/main(22135): Subtitle encoding set to "" 10-22 21:11:14.817: I/VLC/JNI/main(22135): LibVLC initialized: 0x60fbd5a8 10-22 21:11:14.817: D/VLC(22135): core libvlc: VLC media player - 2.2.0-pre4 Weatherwax 10-22 21:11:14.817: D/VLC(22135): core libvlc: Copyright © 1996-2014 the VideoLAN team 10-22 21:11:14.817: D/VLC(22135): core libvlc: revision 2.2.0-pre3-94-gf7fe01d 10-22 21:11:14.817: D/VLC(22135): core libvlc: configured with ../configure '--host=arm-linux-androideabi' '--build=x86_64-unknown-linux' '--enable-neon' '--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' '--enable-dvdread' '--enable-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' '--disa 10-22 21:11:14.818: D/VLC(22135): core generic: creating audio output 10-22 21:11:14.818: D/VLC(22135): core audio output: looking for audio output module matching "opensles": 4 candidates 10-22 21:11:14.818: D/VLC(22135): core audio output: using audio output module "opensles_android" 10-22 21:11:14.819: D/VLC(22135): core generic: keeping audio output 10-22 21:11:14.820: D/VLC(22135): core input: Creating an input for 'rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' 10-22 21:11:14.824: D/VLC(22135): core playlist: meta ok for (null), need to fetch art 10-22 21:11:14.824: D/VLC(22135): core input: Creating an input for '(null)' 10-22 21:11:14.828: D/VLC(22135): core input: using timeshift granularity of 50 MiB, in path '/tmp' 10-22 21:11:14.828: D/VLC(22135): core input: `rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' gives access `rtsp' demux `' path `192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' 10-22 21:11:14.828: D/VLC(22135): core input: specified demux `any' 10-22 21:11:14.828: D/VLC(22135): core input: creating demux: access='rtsp' demux='any' location='192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' file='(null)' 10-22 21:11:14.828: D/VLC(22135): core demux: looking for access_demux module matching "rtsp": 7 candidates 10-22 21:11:14.829: D/VLC(22135): live555 demux: version 2014.07.25 10-22 21:11:14.834: D/VLC(22135): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-22 21:11:14.834: D/VLC(22135): core art finder: no meta fetcher modules 10-22 21:11:14.834: D/VLC(22135): core playlist: art not found for (null) 10-22 21:11:14.837: D/VLC(22135): core playlist: meta ok for (null), need to fetch art 10-22 21:11:14.837: D/VLC(22135): core input: Creating an input for '(null)' 10-22 21:11:14.845: D/VLC(22135): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-22 21:11:14.845: D/VLC(22135): core art finder: no meta fetcher modules 10-22 21:11:14.845: D/VLC(22135): core playlist: art not found for (null) 10-22 21:11:14.849: D/VLC(22135): live555 demux: RTP subsession 'audio/PCMU' 10-22 21:11:14.850: D/VLC(22135): core playlist: meta ok for (null), need to fetch art 10-22 21:11:14.851: D/VLC(22135): core input: Creating an input for '(null)' 10-22 21:11:14.853: D/VLC(22135): core input: selecting program id=0 10-22 21:11:14.854: D/VLC(22135): live555 demux: RTP subsession 'video/H264' 10-22 21:11:14.855: D/VLC(22135): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-22 21:11:14.855: D/VLC(22135): core art finder: no meta fetcher modules 10-22 21:11:14.855: D/VLC(22135): core playlist: art not found for (null) 10-22 21:11:14.858: D/VLC(22135): live555 demux: setup start: 0.000000 stop:0.000000 10-22 21:11:14.862: D/VLC(22135): live555 demux: We have a timeout of 60 seconds 10-22 21:11:14.864: D/VLC(22135): live555 demux: spawned timeout thread 10-22 21:11:14.864: D/VLC(22135): live555 demux: play start: 0.000000 stop:0.000000 10-22 21:11:14.865: D/VLC(22135): core demux: using access_demux module "live555" 10-22 21:11:14.865: D/VLC(22135): core decoder: looking for decoder module matching "all": 34 candidates 10-22 21:11:14.866: D/VLC(22135): g711 decoder: samplerate:8000Hz channels:1 10-22 21:11:14.866: D/VLC(22135): core decoder: using decoder module "g711" 10-22 21:11:14.866: D/VLC(22135): core playlist: meta ok for (null), need to fetch art 10-22 21:11:14.867: D/VLC(22135): core art finder: looking for meta fetcher module matching "any": 0 candidates 10-22 21:11:14.867: D/VLC(22135): core art finder: no meta fetcher modules 10-22 21:11:14.867: D/VLC(22135): core playlist: art not found for (null) 10-22 21:11:14.868: D/VLC(22135): core decoder: looking for decoder module matching "all": 34 candidates 10-22 21:11:14.868: D/VLC(22135): avcodec decoder: CPU flags: 0x0000003f 10-22 21:11:14.873: D/VLC(22135): avcodec decoder: trying to use direct rendering 10-22 21:11:14.873: D/VLC(22135): avcodec decoder: allowing 4 thread(s) for decoding 10-22 21:11:14.873: E/VLC(22135): avcodec decoder: cannot open codec (H264 - MPEG-4 AVC (part 10)) 10-22 21:11:14.873: D/VLC(22135): core decoder: no decoder modules matched 10-22 21:11:14.874: D/VLC(22135): core packetizer: looking for packetizer module matching "any": 21 candidates 10-22 21:11:14.874: D/VLC(22135): packetizer_h264 packetizer: found NAL_PPS (pps_id=0 sps_id=0) 10-22 21:11:14.874: D/VLC(22135): core packetizer: using packetizer module "packetizer_h264" 10-22 21:11:14.874: E/VLC(22135): core decoder: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported. 10-22 21:11:14.874: E/VLC(22135): core decoder: Codec not supported 10-22 21:11:14.874: E/VLC(22135): core decoder: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10)) 10-22 21:11:14.874: D/VLC(22135): core decoder: killing decoder fourcc `h264', 0 PES in FIFO 10-22 21:11:14.874: D/VLC(22135): core packetizer: removing module "packetizer_h264" 10-22 21:11:14.874: D/VLC(22135): core demux meta: looking for meta reader module matching "any": 1 candidates 10-22 21:11:14.874: D/VLC(22135): core demux meta: no meta reader modules matched 10-22 21:11:14.875: D/VLC(22135): core input: `rtsp://192.168.120.42:554/livestream?streamid=175f4a0f-64d1-4c50-a4ff-5f33e7f429d6' successfully opened 10-22 21:11:15.302: D/VLC(22135): core input: Buffering 0% 10-22 21:11:15.304: D/VLC(22135): core input: Buffering 0% 10-22 21:11:15.305: D/VLC(22135): core input: Buffering 0% 10-22 21:11:15.343: D/VLC(22135): core input: Buffering 4% 10-22 21:11:15.343: D/VLC(22135): core generic: reusing audio output 10-22 21:11:15.351: D/VLC(22135): core audio output: output 's16l' 8000 Hz Stereo/Mono frame=1 samples/4 bytes 10-22 21:11:15.352: D/VLC(22135): core volume: looking for audio volume module matching "any": 3 candidates 10-22 21:11:15.352: D/VLC(22135): core volume: using audio volume module "integer_mixer" 10-22 21:11:15.352: D/VLC(22135): core audio output: input 's16l' 8000 Hz Mono frame=1 samples/2 bytes 10-22 21:11:15.353: D/VLC(22135): core audio filter: looking for audio filter module matching "scaletempo": 13 candidates 10-22 21:11:15.354: D/VLC(22135): scaletempo audio filter: format: 8000 rate, 1 nch, 4 bps, fl32 10-22 21:11:15.354: D/VLC(22135): scaletempo audio filter: params: 30 stride, 0.200 overlap, 14 search 10-22 21:11:15.355: D/VLC(22135): scaletempo audio filter: 1.000 scale, 240.000 stride_in, 240 stride_out, 192 standing, 48 overlap, 112 search, 400 queue, fl32 mode 10-22 21:11:15.355: D/VLC(22135): core audio filter: using audio filter module "scaletempo" 10-22 21:11:15.355: D/VLC(22135): core audio output: conversion: 's16l'->'f32l' 8000 Hz->8000 Hz Mono->Mono 10-22 21:11:15.356: D/VLC(22135): core audio converter: looking for audio converter module matching "any": 7 candidates 10-22 21:11:15.356: D/VLC(22135): audio_format audio converter: s16l->f32l, bits per sample: 16->32 10-22 21:11:15.357: D/VLC(22135): core audio converter: using audio converter module "audio_format" 10-22 21:11:15.357: D/VLC(22135): core audio output: conversion pipeline complete 10-22 21:11:15.357: D/VLC(22135): core audio output: conversion: 'f32l'->'s16l' 8000 Hz->8000 Hz Mono->Stereo/Mono 10-22 21:11:15.357: D/VLC(22135): core audio converter: looking for audio converter module matching "any": 7 candidates 10-22 21:11:15.358: D/VLC(22135): core audio converter: using audio converter module "trivial_channel_mixer" 10-22 21:11:15.358: D/VLC(22135): core audio converter: looking for audio converter module matching "any": 7 candidates 10-22 21:11:15.358: D/VLC(22135): audio_format audio converter: f32l->s16l, bits per sample: 32->16 10-22 21:11:15.358: D/VLC(22135): core audio converter: using audio converter module "audio_format" 10-22 21:11:15.359: D/VLC(22135): core audio output: conversion pipeline complete 10-22 21:11:15.359: D/VLC(22135): core audio resampler: looking for audio resampler module matching "any": 1 candidates 10-22 21:11:15.360: D/VLC(22135): core audio resampler: using audio resampler module "ugly_resampler" 10-22 21:11:15.360: D/VLC(22135): core decoder: End of audio preroll 10-22 21:11:15.447: D/VLC(22135): core input: Buffering 4% 10-22 21:11:15.690: D/VLC(22135): core input: Buffering 4% 10-22 21:11:15.704: D/VLC(22135): core input: Buffering 33% 10-22 21:11:15.704: D/VLC(22135): core input: Buffering 37% 10-22 21:11:15.848: D/VLC(22135): core input: Buffering 37% 10-22 21:11:15.960: D/VLC(22135): core input: Buffering 66% 10-22 21:11:15.962: D/VLC(22135): core input: Buffering 70% 10-22 21:11:16.096: D/VLC(22135): core input: Buffering 70% 10-22 21:11:16.197: D/VLC(22135): core input: Buffering 70% 10-22 21:11:16.304: D/VLC(22135): core input: Buffering 100% 10-22 21:11:16.305: D/VLC(22135): core input: Stream buffering done (1040 ms in 1002 ms) 10-22 21:11:16.305: D/VLC(22135): core input: Decoder wait done in 0 ms 10-22 21:11:16.316: W/VLC(22135): core audio output: playback way too early (-280133): playing silence 10-22 21:11:16.317: D/VLC(22135): core audio output: inserting 2241 zeroes 10-22 21:11:16.717: W/VLC(22135): core audio output: playback way too early (-342323): playing silence 10-22 21:11:16.717: D/VLC(22135): core audio output: inserting 2738 zeroes 10-22 21:11:17.027: W/VLC(22135): core audio output: playback way too late (324963): flushing buffers 10-22 21:11:17.048: W/VLC(22135): core audio output: playback way too early (-1140939): playing silence 10-22 21:11:17.048: D/VLC(22135): core audio output: inserting 9127 zeroes 10-22 21:11:17.200: W/VLC(22135): core audio output: playback way too early (-168610): playing silence 10-22 21:11:17.200: D/VLC(22135): core audio output: inserting 1348 zeroes 10-22 21:11:17.312: W/VLC(22135): core audio output: playback too late (162705): up-sampling 10-22 21:11:17.551: W/VLC(22135): core audio output: playback too early (-68015): down-sampling 10-22 21:11:17.700: D/VLC(22135): core audio output: resampling stopped (drift: -36752 us) 10-22 21:11:18.052: W/VLC(22135): core audio output: playback too late (65751): up-sampling

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 22 Oct 2014 18:25

Then your device is not powerful enough for software decoding.

jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

Re: RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 22 Oct 2014 19:03

ok. In that case I am assuming that we have to go with hardware decoding itself.

How to fix "OMX.SEC.avc.dec" issue, so that we can play RTSP Streaming?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 23 Oct 2014 01:35

It may or may not be fixable.

Do you have a regular file which causes the same problem? (e.g. dump part of the stream to a file and play it)

jickson.tj
Blank Cone
Blank Cone
Posts: 28
Joined: 20 Oct 2014 20:05

Re: RTSP Streaming is not working in few Android Devices

Postby jickson.tj » 29 Oct 2014 06:18

Hi Edward,

I checked the nightly build of 27 October 2014, http://nightlies.videolan.org/build/android-armv7/.
Streaming is working fine with this build. Currently I am using software decoding to stream rtsp.

Thanks a lot for the fix.

Thanks & Regards,
Jickson

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: RTSP Streaming is not working in few Android Devices

Postby edwardw » 29 Oct 2014 06:22

Cool.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 16 guests