Page 1 of 1

vlc-android rtsp error

Posted: 15 Feb 2011 09:30
by fangsong
To test the rtsp vlc-android features, I modify mLibVlc.readMedia ("/sdcard/test.mp4"); to mLibVlc.readMedia ("rtsp:// 59.56.174.206:8000/264.ts");
But it doesn't work,logs:
main input error: open of 'rtsp: / / 59.56.174.206:8000 / 264.ts' failed
main input error: Your input can't be opened
main input error: VLC is unable to open the MRL 'rtsp: / / 59.56.174.206:8000 / 264.ts'. Check the log for details

If anyone encountered the same problem, please help, thank you!

Re: vlc-android rtsp error

Posted: 15 Feb 2011 09:38
by Jean-Baptiste Kempf
you need more logs, (-vvv)

Re: vlc-android rtsp error

Posted: 15 Feb 2011 09:47
by fangsong
more logs;

02-15 16:49:16.481: VERBOSE/LibVLC(10770): Reading rtsp://59.56.174.206:8000/264.ts
02-15 16:49:16.481: DEBUG/dalvikvm(10770): +++ not scanning '/system/lib/libwebcore.so' for 'readMedia' (wrong CL)
02-15 16:49:16.481: DEBUG/dalvikvm(10770): +++ not scanning '/system/lib/libmedia_jni.so' for 'readMedia' (wrong CL)
02-15 16:49:16.481: DEBUG/dalvikvm(10770): +++ not scanning '/system/lib/libexif.so' for 'readMedia' (wrong CL)
02-15 16:49:16.481: DEBUG/dalvikvm(10770): +++ not scanning '/system/lib/libsrec_jni.so' for 'readMedia' (wrong CL)
02-15 16:49:16.481: DEBUG/vlc(10770): [0x3d175c] main input debug: Creating an input for 'rtsp://59.56.174.206:8000/264.ts'
02-15 16:49:16.481: DEBUG/vlc(10770): [0x3d175c] main input debug: thread (input) created at priority 10 (../../src/input/input.c:215)
02-15 16:49:16.504: DEBUG/vlc(10770): [0x3d175c] main input debug: thread started
02-15 16:49:16.504: DEBUG/vlc(10770): [0x3d175c] main input debug: using timeshift granularity of 50 MiB
02-15 16:49:16.504: DEBUG/vlc(10770): [0x3d175c] main input debug: using timeshift path '/tmp'
02-15 16:49:16.504: DEBUG/vlc(10770): [0x3d175c] main input debug: `rtsp://59.56.174.206:8000/264.ts' gives access `rtsp' demux `' path `59.56.174.206:8000/264.ts'
02-15 16:49:16.504: DEBUG/vlc(10770): [0x3d175c] main input debug: creating demux: access='rtsp' demux='' location='59.56.174.206:8000/264.ts' file='(null)'
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d5124] main demux debug: looking for access_demux module: 0 candidates
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d5124] main demux debug: no access_demux module matched "rtsp"
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d5124] main demux debug: TIMER module_need() : 10.742 ms - Total 10.742 ms / 1 intvls (Avg 10.742 ms)
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d175c] main input debug: creating access 'rtsp' location='59.56.174.206:8000/264.ts', path='(null)'
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d5124] main access debug: looking for access module: 0 candidates
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d5124] main access debug: no access module matched "rtsp"
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d5124] main access debug: TIMER module_need() : 1.800 ms - Total 1.800 ms / 1 intvls (Avg 1.800 ms)
02-15 16:49:16.520: ERROR/vlc(10770): [0x3d175c] main input error: open of `rtsp://59.56.174.206:8000/264.ts' failed
02-15 16:49:16.520: ERROR/vlc(10770): [0x3d175c] main input error: Your input can't be opened
02-15 16:49:16.520: ERROR/vlc(10770): [0x3d175c] main input error: VLC is unable to open the MRL 'rtsp://59.56.174.206:8000/264.ts'. Check the log for details.
02-15 16:49:16.520: DEBUG/vlc(10770): [0x3d175c] main input debug: thread ended

Re: vlc-android rtsp error

Posted: 15 Feb 2011 18:50
by Rémi Denis-Courmont
Your VLC build has no RTSP client support whatsoever.

Re: vlc-android rtsp error

Posted: 16 Feb 2011 03:04
by fangsong
Your VLC build has no RTSP client support whatsoever.
thank you for your reply!
I modified (extras / package / android / configure.sh), add - enable-realrtsp - enable-live555, and re-compiled result is the same. Did I miss something?, please advice, thank you.

my configure info:
./configure --host=arm-eabi-linux --build=x86_64-unknown-linux \
--enable-static-modules \
--enable-debug \
--disable-qt4 \
--disable-skins2 \
--disable-mad \
--disable-mkv \
--enable-realrtsp \
--enable-live555 \
--disable-libgcrypt \
--disable-remoteosd \
--disable-lua \
--enable-swscale \
--enable-avcodec \
--enable-avformat \
--disable-xcb \
--disable-dbus \
--disable-vcd \
--disable-v4l2 \
--disable-atmo \
--disable-vlc \
--disable-opensles \
--enable-android \
--disable-egl-android

Re: vlc-android rtsp error

Posted: 17 Feb 2011 01:09
by Jean-Baptiste Kempf
Was it compiled?
Was it linked in the binary, at the end?

Re: vlc-android rtsp error

Posted: 18 Feb 2011 03:50
by fangsong
Was it compiled?
Was it linked in the binary, at the end?
my mistake,I just re-compiled (vlc-android/builddir/).
but i add live555 to (extras/contrib), and re-build contrib, but compile live555 failed.
compile info:

"/usr/bin/wget" -c --passive http://live555.com/liveMedia/public/liv ... est.tar.gz
--2011-02-17 18:36:01-- http://live555.com/liveMedia/public/liv ... est.tar.gz
Resolving live555.com... 4.79.217.242
Connecting to live555.com|4.79.217.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 480478 (469K) [application/x-tar]
Saving to: `live555-latest.tar.gz'

100%[==========================================================================================>] 480,478 26.9K/s in 12s

2011-02-17 18:36:15 (39.2 KB/s) - `live555-latest.tar.gz' saved [480478/480478]

rm -rf live || true
gunzip -c live555-latest.tar.gz | tar xf - --exclude='[*?:<>\|]'
mv live555-latest live || true
mv: cannot stat `live555-latest': No such file or directory
touch live
patch -p0 < Patches/live-uselocale.patch
patching file live/liveMedia/include/Locale.hh
patching file live/liveMedia/Locale.cpp
patching file live/liveMedia/RTSPClient.cpp
Hunk #1 succeeded at 469 (offset -550 lines).
Hunk #2 succeeded at 483 (offset -550 lines).
patching file live/liveMedia/RTSPClient.cpp
Hunk #1 succeeded at 919 (offset -16 lines).
patching file live/liveMedia/RTSPCommon.cpp
Hunk #1 FAILED at 136.
1 out of 1 hunk FAILED -- saving rejects to file live/liveMedia/RTSPCommon.cpp.rej
make[1]: *** [live] Error 1
make[1]: Leaving directory `/home/fs/vlc-android/extras/contrib/build-src'
make: *** [using-src] Error 2

Re: vlc-android rtsp error

Posted: 18 Feb 2011 11:47
by Sébastien Escudier
get latest git version of vlc (1.1 or 1.2 branch), the live555 patch should work now.

Re: vlc-android rtsp error

Posted: 21 Feb 2011 06:32
by fangsong
get latest git version of vlc (1.1 or 1.2 branch), the live555 patch should work now.
I am using vlc-android.

Re: vlc-android rtsp error

Posted: 21 Feb 2011 10:32
by Sébastien Escudier
ok, so you could take this patch from 1.1-bugfix branch, or wait until tomorrow, android branch should be updated.

Re: vlc-android rtsp error

Posted: 22 Feb 2011 03:13
by fangsong
ok, so you could take this patch from 1.1-bugfix branch, or wait until tomorrow, android branch should be updated.
Thank you very much for your help, live555 patch works.and then I modified the config.armlinux, cross-compile live555 ok in(extra / contrib) directory. and Build the contribs okay.

I modified /extra/package/android/configure.sh,add (--enable-live555 --with-live555-tree=/home/fs/vlc-android/extras/contrib/build-src/live)
and I start the VLC compilation,but fail.
compile error info:

/bin/bash ../../libtool --tag=CXX --mode=compile /home/fs/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -I../../../modules/demux -I../.. -I../../../include -I../../include -I/home/fs/android-ndk-r5b/platforms/android-8/arch-arm/usr/include -I/home/fs/vlc-android/builddir/../extras/contrib/hosts/arm-linux-androideabi/include -DSYS_LINUX `top_srcdir="../../.." top_builddir="../.." ../../vlc-config --cxxflags builtin liblive555_plugin_la-live555.lo` -nostdlib -I/home/fs/vlc-android/builddir/../extras/contrib/hosts/arm-linux-androideabi/include -MT liblive555_plugin_la-live555.lo -MD -MP -MF .deps/liblive555_plugin_la-live555.Tpo -c -o liblive555_plugin_la-live555.lo `test -f 'live555.cpp' || echo '../../../modules/demux/'`live555.cpp
ERROR : ../../../modules/demux/live555.cpp:50: 20: iostream: No such file or directory
../../../modules/demux/live555.cpp: In function 'int Control(demux_t*, int, va_list)':
../../../modules/demux/live555.cpp:1563: note: the mangling of 'va_list' has changed in GCC 4.4
make: *** [all] Error 2

Re: vlc-android rtsp error

Posted: 22 Feb 2011 08:48
by Sébastien Escudier
I don't know about android, but it looks like you're missing some c++ header.

Re: vlc-android rtsp error

Posted: 22 Feb 2011 09:51
by fangsong
I don't know about android, but it looks like you're missing some c++ header.
anyway thank you for your help!

Re: vlc-android rtsp error

Posted: 23 Feb 2011 06:16
by fangsong
....

Re: vlc-android rtsp error

Posted: 23 Feb 2011 08:37
by fangsong
Problem solved, thank you for the help.

Re: vlc-android rtsp error

Posted: 11 Mar 2011 08:06
by KeithJiang
Was it compiled?
Was it linked in the binary, at the end?
my mistake,I just re-compiled (vlc-android/builddir/).
but i add live555 to (extras/contrib), and re-build contrib, but compile live555 failed.
compile info:

"/usr/bin/wget" -c --passive http://live555.com/liveMedia/public/liv ... est.tar.gz
--2011-02-17 18:36:01-- http://live555.com/liveMedia/public/liv ... est.tar.gz
Resolving live555.com... 4.79.217.242
Connecting to live555.com|4.79.217.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 480478 (469K) [application/x-tar]
Saving to: `live555-latest.tar.gz'

100%[==========================================================================================>] 480,478 26.9K/s in 12s

2011-02-17 18:36:15 (39.2 KB/s) - `live555-latest.tar.gz' saved [480478/480478]

rm -rf live || true
gunzip -c live555-latest.tar.gz | tar xf - --exclude='[*?:<>\|]'
mv live555-latest live || true
mv: cannot stat `live555-latest': No such file or directory
touch live
patch -p0 < Patches/live-uselocale.patch
patching file live/liveMedia/include/Locale.hh
patching file live/liveMedia/Locale.cpp
patching file live/liveMedia/RTSPClient.cpp
Hunk #1 succeeded at 469 (offset -550 lines).
Hunk #2 succeeded at 483 (offset -550 lines).
patching file live/liveMedia/RTSPClient.cpp
Hunk #1 succeeded at 919 (offset -16 lines).
patching file live/liveMedia/RTSPCommon.cpp
Hunk #1 FAILED at 136.
1 out of 1 hunk FAILED -- saving rejects to file live/liveMedia/RTSPCommon.cpp.rej
make[1]: *** [live] Error 1
make[1]: Leaving directory `/home/fs/vlc-android/extras/contrib/build-src'
make: *** [using-src] Error 2
Hello,fangsong!
I fell into troubles when compiling vlc-android whit rtsp surpported. Could you tell me how to add live555 to (extras/contrib)?
Thank you

Re: vlc-android rtsp error

Posted: 18 Apr 2011 09:32
by khuchoangtuong
Hi fangsong,
I have this issue too.
May you share your experiences about solving the problem? Or anyone else know?
Thx.
Besides, anyone know fangsong's email?