problem on decode stream finding data from sdp

VLC for Android and Chrome OS specific usage questions
giorgino
Blank Cone
Blank Cone
Posts: 11
Joined: 23 Oct 2009 12:09

problem on decode stream finding data from sdp

Postby giorgino » 15 Oct 2012 19:59

Hi all, I have the following problem. I used the previous git for the vlc for android in order to read an sdp file:///mnt/sdcard/stream.sdp in order to receive and decode an mpeg4 streaming and everything worked well. Now with android 4.0 it doesn't work so I tried to use the beta application of vlc (0.0.5 version). Also using this version I'm not able to recover the stream and decode it. Please someone can check that everything works well with live555 using an sdp recovered by file:/// access. Tell me how I can give you information in order to better describe and solve this issue. From debug I don't receive any particular information.

Thanks for all
G.

giorgino
Blank Cone
Blank Cone
Posts: 11
Joined: 23 Oct 2009 12:09

Re: problem on decode stream finding data from sdp

Postby giorgino » 15 Oct 2012 21:24

Hi All. I would like to better explain the situation. I develop an android application where I integrate vlc in order to visualize a video stream. When I press a button the application open vlc passing (file:///mnt/sdcard/test.sdp) where the sdp is this one

o=- 132 362358265 IN IP4 127.0.0.0
s=QuickTime
t=0 0
a=range:npt=now-
a=control:rtsp://127.0.0.1/stream.sdp
m=video 1234 RTP/AVP 96
c=IN IP4 127.0.0.1
b=AS:6000
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=5;config=000001010000012000845d4c28b421e0a21f
a=mpeg4-esid:201
a=cliprect:0,0,320,240
a=framesize:96 320-240


In this android application I used the git://git.videolan.org/vlc/vlc-android.git that now is not more used. In every case with all version of android the code worked well showing video that another application sent to the IP address of the phone. Now with android 4.0 that code doesn't work anymore, so I compiled and used the vlc for
android 0.0.5. Using this application I can't able to see the video. It not seems that there are errors but there isn't video in the application . Using logcat I have:


V/VLC/AudioService(15250): Creating on-the-fly Media object for file:///mnt/sdcard/test.sdp
D/VLC (15250): [0x8029a8]: main playlist playlist threads correctly activated
D/VLC (15250): [0x8029a8]: main playlist rebuilding array of current - root Playlist
D/VLC (15250): [0x8029a8]: main playlist rebuild done - 0 items, index -1
D/VLC (15250): [0x8930d0]: main input Creating an input for 'test.sdp'
D/VLC (15250): [0x8bcc68]: main demux meta no meta fetcher module matched "any"
D/VLC (15250): [0x8029a8]: main playlist searching art for test.sdp
D/VLC (15250): [0x8d0fc0]: main art finder looking for art finder module: 1 candidate
D/VLC (15250): [0x8d0fc0]: main art finder no art finder module matching "any" could be loaded
D/VLC (15250): [0x8029a8]: main playlist art not found for test.sdp
I/SurfaceFlinger( 1905): id=474(5) createSurface 0x62ffcc (1x1),1 flag=0, Caricamento in corso……
D/KeyguardViewMediator( 2097): setHidden false
D/VLC/MediaItem(15250): Title test.sdp
D/VLC/MediaItem(15250): Artist Artista sconosciuto
D/VLC/MediaItem(15250): Genre Genere sconosciuto
D/VLC/MediaItem(15250): Album Album sconosciuto
D/VLC (15250): [0x8029a8]: main playlist no fetch required for (null) (art currently (null))
D/VLC (15250): [0x893350]: main input Creating an input for 'test.sdp'
D/VLC (15250): [0x893350]: main input using timeshift granularity of 50 MiB, in path '/tmp'
D/VLC (15250): [0x893350]: main input `file:///mnt/sdcard/test.sdp' gives access `file' demux `' path `/mnt/sdcard/test.sdp'
D/VLC (15250): [0x893350]: main input creating demux: access='file' demux='' location='/mnt/sdcard/test.sdp' file='/mnt/sdcard/test.sdp'
D/VLC (15250): [0x90a230]: main demux no access_demux module matched "file"
D/VLC (15250): [0x893350]: main input creating access 'file' location='/mnt/sdcard/test.sdp', path='/mnt/sdcard/test.sdp'
D/VLC (15250): [0x90a230]: main access looking for access module: 2 candidates
D/VLC (15250): [0x90a230]: filesystem access opening file `/mnt/sdcard/test.sdp'
D/VLC (15250): [0x90a230]: main access using access module "filesystem"
D/VLC (15250): [0x90a560]: main stream Using stream method for AStream*
D/VLC (15250): [0x90a560]: main stream starting pre-buffering
D/VLC (15250): [0x90a560]: main stream received first data after 0 ms
D/VLC (15250): [0x90a560]: main stream pre-buffering done 323 bytes in 0s - 765 KiB/s
D/VLC (15250): [0x90a380]: main stream looking for stream_filter module: 8 candidates
D/VLC (15250): [0x90a380]: main stream no stream_filter module matching "any" could be loaded
D/VLC (15250): [0x90a600]: main stream no stream_filter module matched "stream_filter_record"
D/VLC (15250): [0x893350]: main input creating demux: access='file' demux='' location='/mnt/sdcard/test.sdp' file='/mnt/sdcard/test.sdp'
D/VLC (15250): [0x90b5b8]: main demux looking for demux module: 48 candidates
D/VLC (15250): [0x90b5b8]: live555 demux version 2012.09.13
D/VLC (15250): [0x90b5b8]: live555 demux RTP subsession 'video/MP4V-ES'
D/VLC (15250): [0x893350]: main input selecting program id=0
D/VLC (15250): [0x90b5b8]: live555 demux setup start: 0.000000 stop:0.000000
D/VLC (15250): [0x90b5b8]: live555 demux play start: 0.000000 stop:0.000000
D/VLC (15250): [0x90b5b8]: main demux using demux module "live555"
D/VLC (15250): [0x893350]: main input looking for a subtitle file in /mnt/sdcard/
D/VLC (15250): [0x90cc60]: main decoder looking for decoder module: 27 candidates
D/VLC (15250): [0x90cc60]: avcodec decoder trying to use direct rendering
D/VLC (15250): [0x90cc60]: avcodec decoder allowing 4 thread(s) for decoding
D/STATUSBAR-NotificationService( 2097): enqueueNotificationInternal - pkg:XXX.XXXXXXXX.XXX, id:3, tag:null
D/VLC/AudioService(15250): Updating widget
D/STATUSBAR-NotificationService( 2097): Noti Alert - mSystemReady:true, AlertEnabled:true
D/VLC (15250): [0x90cc60]: avcodec decoder avcodec codec (MPEG-4 Video) started
D/VLC (15250): [0x90cc60]: avcodec decoder using frame thread mode with 4 threads
D/VLC (15250): [0x90cc60]: main decoder using decoder module "avcodec"
D/VLC (15250): [0x921c10]: main demux meta looking for meta reader module: 1 candidate
D/VLC (15250): [0x921c10]: main demux meta no meta reader module matching "any" could be loaded
D/VLC (15250): [0x893350]: main input `file:///mnt/sdcard/test.sdp' successfully opened
D/VLC/JNI/main(15250): vlc_event_callback: failed to get JNI environment, assuming native thread

I/VLC/AudioService(15250): MediaPlayerPlaying

D/VLC/VLCAppWidgetProvider(15250): widget.onReceive(org.videolan.vlc.widget.UPDATE)

D/KeyguardViewMediator( 2097): setHidden false
D/KeyguardViewMediator( 2097): setHidden false
D/KeyguardViewMediator( 2097): setHidden false
I/SurfaceFlinger( 1905): id=474 Removed Caricamento in corso…… idx=4 Map Size=4
I/SurfaceFlinger( 1905): id=474 Removed Caricamento in corso…… idx=-2 Map Size=4
D/KeyguardViewMediator( 2097): setHidden false

V/WindowOrientationListener( 2097): nearestRotation : 0 Angle: 355 tilt: 29
E/VLC (15250): [0x90b5b8]: live555 demux no data received in 10s, aborting
D/VLC (15250): [0x893350]: main input EOF reached
D/VLC/JNI/main(15250): vlc_event_callback: failed to get JNI environment, assuming native thread
D/VLC (15250): [0x90cc60]: main decoder removing module "avcodec"
D/VLC (15250): [0x90cc60]: avcodec decoder ffmpeg codec (MPEG-4 Video) stopped
D/VLC (15250): [0x90cc60]: main decoder killing decoder fourcc `mp4v', 0 PES in FIFO
D/VLC (15250): [0x90b5b8]: main demux removing module "live555"
D/VLC (15250): [0x90a230]: main access removing module "filesystem"
D/VLC (15250): [0x893350]: main input Program doesn't contain anymore ES
I/VLC/AudioService(15250): MediaPlayerEndReached
D/dalvikvm(15250): GC_FOR_ALLOC freed 682K, 6% free 16209K/17223K, paused 29ms
D/VLC/AudioService(15250): Updating widget
D/VLC (15250): [0x893350]: main input Destroying the input for 'test.sdp'
D/VLC/AudioService(15250): Updating widget
D/STATUSBAR-NotificationService( 2097): cancelNotification - pkg:XXX.XXXXXXXX.XXX, id:3, tag:null
D/STATUSBAR-NotificationService( 2097): updateLightsLocked() : Turn off notification light
I/AudioService( 2097): AudioFocus abandonAudioFocus() from android.media.AudioManager$41903b98org.videolan.vlc.AudioService$3$41938878
D/KeyguardViewMediator( 2097): setHidden false
D/VLC/VLCAppWidgetProvider(15250): widget.onReceive(org.videolan.vlc.widget.UPDATE)
D/VLC/VLCAppWidgetProvider(15250): widget.onReceive(org.videolan.vlc.widget.UPDATE)

I/SurfaceFlinger( 1905): id=475 Removed Toast idx=6 Map Size=4
I/SurfaceFlinger( 1905): id=475 Removed Toast idx=-2 Map Size=4
D/KeyguardViewMediator( 2097): setHidden false
D/PowerManagerService( 2097): releaseWakeLockLocked flags=0x0 tag=KEEP_SCREEN_ON_FLAG myUID=1000 myPID=2097 myTID=2156
W/PowerManagerService( 2097): Timer 0x3->0x3|0x0


I can't understand how I can solve this issue. Please give me some advices.
Thanks
G.

giorgino
Blank Cone
Blank Cone
Posts: 11
Joined: 23 Oct 2009 12:09

Re: problem on decode stream finding data from sdp

Postby giorgino » 16 Oct 2012 09:24

Hi. Excuse me if I write another time but it is quite important for me. I tried the same streaming with a desktop vlc (an old version) and it works, so I have to conclude that there is a problem with the last android vlc build. Could someone check or suggest me something in order to treat this issue, beacuse it is quite difficult to individuate points in the code to modify in order to try to solve the problem.

Thanks.
G.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 36 guests