vlc android can not play udp streaming

VLC for Android and Chrome OS specific usage questions
dellwust
New Cone
New Cone
Posts: 8
Joined: 28 Sep 2011 03:50

vlc android can not play udp streaming

Postby dellwust » 28 Sep 2011 04:31

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc android can not play udp streaming

Postby Rémi Denis-Courmont » 28 Sep 2011 08:48

Missing libdvbpsi and MPEG-TS plug-in.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dellwust
New Cone
New Cone
Posts: 8
Joined: 28 Sep 2011 03:50

Re: vlc android can not play udp streaming

Postby dellwust » 28 Sep 2011 11:52

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?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: vlc android can not play udp streaming

Postby Sébastien Escudier » 28 Sep 2011 13:06

Yes, the configure script does not find your libdvbpsi

dellwust
New Cone
New Cone
Posts: 8
Joined: 28 Sep 2011 03:50

Re: vlc android can not play udp streaming

Postby dellwust » 29 Sep 2011 09:08

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?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: vlc android can not play udp streaming

Postby Sébastien Escudier » 29 Sep 2011 09:25

ts demux warning: discontinuity received
this means packet lost

dellwust
New Cone
New Cone
Posts: 8
Joined: 28 Sep 2011 03:50

Re: vlc android can not play udp streaming

Postby dellwust » 29 Sep 2011 09:33

Thank you! But how to optimize the UDP receive?

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: vlc android can not play udp streaming

Postby Sébastien Escudier » 29 Sep 2011 09:46

increase your bandwith

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc android can not play udp streaming

Postby Rémi Denis-Courmont » 29 Sep 2011 09:47

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dellwust
New Cone
New Cone
Posts: 8
Joined: 28 Sep 2011 03:50

Re: vlc android can not play udp streaming

Postby dellwust » 29 Sep 2011 11:02

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?

khuchoangtuong
New Cone
New Cone
Posts: 5
Joined: 01 Apr 2011 10:40

Re: vlc android can not play udp streaming

Postby khuchoangtuong » 30 Sep 2011 01:51

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.

dellwust
New Cone
New Cone
Posts: 8
Joined: 28 Sep 2011 03:50

Re: vlc android can not play udp streaming

Postby dellwust » 30 Sep 2011 03:30

you can create libdvbpsi.pc manually.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc android can not play udp streaming

Postby Rémi Denis-Courmont » 30 Sep 2011 08:57

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

khuchoangtuong
New Cone
New Cone
Posts: 5
Joined: 01 Apr 2011 10:40

Re: vlc android can not play udp streaming

Postby khuchoangtuong » 03 Oct 2011 01:06

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!

mihaidsn
New Cone
New Cone
Posts: 1
Joined: 31 Aug 2011 09:08

Re: vlc android can not play udp streaming

Postby mihaidsn » 21 Nov 2011 18:12

I have same problem with "ps demux warning: found sync code".
Can someone point me exactly how to compile with dvbpsi suport?

kaishu
New Cone
New Cone
Posts: 4
Joined: 29 Oct 2011 00:00

Re: vlc android can not play udp streaming

Postby kaishu » 22 Dec 2011 04:04

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?


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 48 guests