Page 1 of 1
vlc android can not play udp streaming
Posted: 28 Sep 2011 04:31
by dellwust
I have checked out vlc andorid source code(git clone git://git.videolan.org/vlc/vlc-android.git) and compiled on ubuntu without any modification, when i debug it on my samsung gt-i9003 cell phone, i found that it can not play udp streaming. I always seen "ps demux warning: found sync code" and "ps demux warning: garbage at input, trying to resync..." on logcat. The test stream is 3GP format, video coedc is H.263, audio codec is AMR, and streaming it by VLC 1.1.9 on windows. Can anybody help me. thank you!
Re: vlc android can not play udp streaming
Posted: 28 Sep 2011 08:48
by Rémi Denis-Courmont
Missing libdvbpsi and MPEG-TS plug-in.
Re: vlc android can not play udp streaming
Posted: 28 Sep 2011 11:52
by dellwust
Thank you! I add "--enable-dvbpsi" in extra/package/android/configure.sh and recompiled, but there is an error:
checking for DVBPSI... no
configure: error: Package requirements (libdvbpsi) were not met:
No package 'libdvbpsi' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables DVBPSI_CFLAGS
and DVBPSI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
is there any mistake?
Re: vlc android can not play udp streaming
Posted: 28 Sep 2011 13:06
by Sébastien Escudier
Yes, the configure script does not find your libdvbpsi
Re: vlc android can not play udp streaming
Posted: 29 Sep 2011 09:08
by dellwust
add dvbpsi plugin successful, but there many warning like below and see nothing on surface when play MP4(V_Codec MPEG4, A_Codec AAC) streaming through UDP on my device.
W/vlc (24946): [0x2f12bc] packetizer_h264 packetizer warning: waiting for SPS/PPS
W/vlc (24946): [0x2e3bc4] ts demux warning: discontinuity received 0x0 instead of 0xa (pid=68)
W/vlc (24946): [0x2e3bc4] ts demux warning: discontinuity received 0xe instead of 0x8 (pid=69)
D/vlc (24946): [0x2de82c] main input debug: Buffering 76%
W/vlc (24946): [0x2f12bc] packetizer_h264 packetizer warning: waiting for SPS/PPS
W/vlc (24946): [0x2f12bc] packetizer_h264 packetizer warning: waiting for SPS/PPS
W/vlc (24946): [0x2f12bc] packetizer_h264 packetizer warning: waiting for SPS/PPS
in fact, everyting is ok when play the same file on local.
can somebody give me same suggestions?
Re: vlc android can not play udp streaming
Posted: 29 Sep 2011 09:25
by Sébastien Escudier
ts demux warning: discontinuity received
this means packet lost
Re: vlc android can not play udp streaming
Posted: 29 Sep 2011 09:33
by dellwust
Thank you! But how to optimize the UDP receive?
Re: vlc android can not play udp streaming
Posted: 29 Sep 2011 09:46
by Sébastien Escudier
increase your bandwith
Re: vlc android can not play udp streaming
Posted: 29 Sep 2011 09:47
by Rémi Denis-Courmont
Are you using multicast? Multicast works very very badly over WiFi. And in any case, you should probably use TS/RTP/UDP rather than raw TS/UDP to deal with packet reordering.
Re: vlc android can not play udp streaming
Posted: 29 Sep 2011 11:02
by dellwust
Thank you very much! I have changed multicast to ubicast, and streaming a TS(VCode H.264, ACodec AAC)file, now its playing normally, and i still have two questions:
1. If i streaming a MP4 file(same AV Codec whit TS file mentioned), i can see "packetizer_h264 packetizer warning: waiting for SPS/PPS" and no video displayed, does this means that android VLC can only support TS streaming normally?
2. Its possbile that enable GPU acceleration on android VLC?
Re: vlc android can not play udp streaming
Posted: 30 Sep 2011 01:51
by khuchoangtuong
I have the same error when handling UDP streaming. Checking in pkg-config folder, I found that there is no libdvbpsi.pc for pkg-config tool. But in lib folder I found libdvbpsi.a. So why is no .pc file for pkg-config tool?
I must add DVBPSI flags & dvbpsi path in configure.sh to has right configuration with libdvbpsi. How to fix this error?
And is there a way to make vlc-android wait for packets with longer time? If it can be done, UDP video will be more smooth.
Re: vlc android can not play udp streaming
Posted: 30 Sep 2011 03:30
by dellwust
you can create libdvbpsi.pc manually.
Re: vlc android can not play udp streaming
Posted: 30 Sep 2011 08:57
by Rémi Denis-Courmont
Waiting longer cannot solve anything. In fact, VLC waits infinitely long for UDP packets.
Use RTP if you have reordering problems. Use unicast if multicast has packet loss problems.
Re: vlc android can not play udp streaming
Posted: 03 Oct 2011 01:06
by khuchoangtuong
Now I have some new errors when playing UDP streaming.
This is my logcat:
D/vlc ( 1182): [0x595d44] main scale debug: looking for video filter2 module: 14 candidates
D/vlc ( 1182): [0x595d44] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)
D/vlc ( 1182): [0x595d44] main scale debug: using video filter2 module "swscale"
D/vlc ( 1182): [0x595d44] main scale debug: TIMER module_need() : 7.665 ms - Total 7.665 ms / 1 intvls (Avg 7.665 ms)
D/vlc ( 1182): [0x59636c] main scale debug: looking for video filter2 module: 14 candidates
D/vlc ( 1182): [0x59636c] yuvp scale debug: YUVP to YUVA converter
D/vlc ( 1182): [0x59636c] main scale debug: using video filter2 module "yuvp"
D/vlc ( 1182): [0x59636c] main scale debug: TIMER module_need() : 0.364 ms - Total 0.364 ms / 1 intvls (Avg 0.364 ms)
D/vlc ( 1182): [0x52c5b4] main video output debug: Deinterlacing available
D/vlc ( 1182): [0x52c5b4] main video output debug: deinterlace 0, mode blend, is_needed 0
D/vlc ( 1182): [0x52c5b4] main video output debug: Opening vout display wrapper
D/vlc ( 1182): [0x5dab7c] main generic debug: looking for vout display module: 3 candidates
D/vlc ( 1182): [0x5dab7c] main generic debug: VoutDisplayEvent 'fullscreen' 0
D/vlc ( 1182): [0x5dab7c] main generic debug: using vout display module "vout_android"
D/vlc ( 1182): [0x5dab7c] main generic debug: TIMER module_need() : 3.063 ms - Total 3.063 ms / 1 intvls (Avg 3.063 ms)
D/vlc ( 1182): [0x5dab7c] main generic debug: A filter to adapt decoder to display is needed
D/vlc ( 1182): [0x5dc4bc] main filter debug: looking for video filter2 module: 14 candidates
D/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter debug: I420(320x240) to RV32(320x240)
D/vlc ( 1182): [0x5dc4bc] main filter debug: using video filter2 module "i420_rgb_neon"
D/vlc ( 1182): [0x5dc4bc] main filter debug: TIMER module_need() : 0.519 ms - Total 0.519 ms / 1 intvls (Avg 0.519 ms)
D/vlc ( 1182): [0x5dab7c] main generic debug: Filter 'i420_rgb_neon' (0x5dc4bc) appended to chain
D/vlc ( 1182): [0x52c5b4] main video output debug: original format sz 320x240, of (0,0), vsz 320x240, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
D/vlc ( 1182): [0x595a4c] main spu text debug: removing module "dummy"
D/vlc ( 1182): [0x595a4c] main spu text debug: looking for text renderer module: 1 candidate
D/vlc ( 1182): [0x595a4c] main spu text debug: using text renderer module "dummy"
D/vlc ( 1182): [0x595a4c] main spu text debug: TIMER module_need() : 0.271 ms - Total 0.271 ms / 1 intvls (Avg 0.271 ms)
D/vlc ( 1182): [0x556834] avcodec decoder debug: using direct rendering
D/vlc ( 1182): [0x556834] main decoder debug: End of video preroll
W/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter warning: can't get output picture
D/vlc ( 1182): [0x52c5b4] main video output debug: Post-processing available
E/vlc ( 1182): [0x5dab7c] main generic error: Failed to set on top
W/vlc ( 1182): [0x556834] avcodec decoder warning: cannot decode one frame (504 bytes)
picture
W/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter warning: can't get output picture
W/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter warning: can't get output picture
W/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter warning: can't get output picture
W/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter warning: can't get output picture
W/vlc ( 1182): [0x5dc4bc] i420_rgb_neon filter warning: can't get output picture
Help me!
Re: vlc android can not play udp streaming
Posted: 21 Nov 2011 18:12
by mihaidsn
I have same problem with "ps demux warning: found sync code".
Can someone point me exactly how to compile with dvbpsi suport?
Re: vlc android can not play udp streaming
Posted: 22 Dec 2011 04:04
by kaishu
Could you tell me how to "add dvbpsi plugin successful"?
I tried to modify configure.sh and rebuild, the setting is:
......
DVBPSI_CFLAGS="$VLC_SOURCEDIR/extras/contrib/hosts/arm-eabi/include/dvbpsi" \
DVBPSI_LIBS="$VLC_SOURCEDIR/extras/contrib/hosts/arm-eabi/lib -ldvbpsi" \
sh $VLC_SOURCEDIR/configure --host=arm-eabi-linux --build=x86_64-unknown-linux $EXTRA_PARAMS \
--enable-static-modules \
--enable-dvbpsi \
......
but LogCat still displays:
12-18 21:05:42.085: D/vlc(19672): [0x4d8d1c] packetizer_mpegvideo packetizer debug: waiting for sequence start
12-18 21:05:41.718: W/vlc(19672): [0x4c0e14] ps demux warning: garbage at input, trying to resync...
12-18 21:05:41.718: W/vlc(19672): [0x4c0e14] ps demux warning: found sync code
12-18 21:05:41.718: D/vlc(19672): [0x4c0e14] ps demux debug: force SCR: 77802775234
12-18 21:05:41.718: W/vlc(19672): [0x4c0e14] ps demux warning: garbage at input, trying to resync...
It looks like "ts" is not loaded...
Anything did i missed?