How to use VLC as a live Streaming server? - android

I'm working on android app which can stream video to Facebook via compiled VLC-library. After recent changes in Facebook policy https://developers.facebook.com/blog/post/v2/2019/04/16/live-video-uploads-rtmps/ VLC stopped to stream video. There is message in the log:
standard stream out: no suitable sout access module for
'rtmp/flv://rtmps://live-api-s.facebook.com:443/rtmp/xxxxxxxxx.....'
Can anyone help me to understand - what should be done to re-enable streaming? My guess was to compile VLC with --enable-gnutls flag, but I'm not sure how to do this with current VLC sources

Direct use of Network Stream is one option you can try from here
Overview of the VideoLAN streaming solution -
Documentation
Related to your doubt on stream video to Facebook Preset with rtmp

Which version of VLC on Android are you using?
Could you provide a longer version of the logs?
According to this issue: https://code.videolan.org/videolan/vlc-android/issues/158
By setting the flag --enable-sout in compile-libvlc.sh it should maybe start working

Related

Exoplayer Android. How to record the streamed RTSP video

I am successful in streaming the RTSP live video via hikvision IPCamera to my android app. Now I want to record the streaming video in the mobile app itself. How would I do it? Can I have some guidance?
I solved the issue myself. I was successful in streaming the rtsp feed in my app using pedroSG94/vlc-example-streamplayer . But I was unable to record the stream in my android app. After a week of trial and failure using different techniques, I finally found the actual vlc-android compiled sdk posted by vlc themself. This library had both the streaming and recording feature which helped me accomplish my goal. Thank you vlc
I finally found the actual vlc-android compiled sdk posted by vlc themself.
VLC library for android implementation.
('org.videolan.android:libvlc-all:3.3.14')
Use this library for streaming and recording RTSP video

Sending live video stream to wowza streaming engine with Android devices

I want to send live video stream from my android device to wowza streaming engine. I am using sample in this blog but I can not see the result on Test Players page.
Do I need to have a web server serving a page with a video player pointed to this video/app on wowza?
I found this little (but very useful) library with three examples: libstreaming
It works like a charm! Easy to install and develop.
Main point is to look at Wowza logs to understand if stream was successfully published or not.
Then, according to logs you will know what Application, Application instance and Stream name are used for publishing.
So you'll be able to set up any player (VLC for example) with those values and look if stream is viewable or not.
Accepted answer is ok. Libstreaming is working (kinda) but it did not fulfill my expectations so that it can be pushed to some production app. Since this question is quite old, i will share mine up-to-date solution (AS 2.1.2 - Marshmallow) which is using JavaCV. I've built boilerplate for android so it can be used in no time.
Here is url:
How to stream live video from android to Wowza via RTMP

Playback RTP using Android media player

I want to playback RTP video session that is being send to my tablet through a socket port , but the media player in android 3.0 only support RTSP or file sources , what is the best way to implement this ?
Unfortunately this is not possible with Android SDK. There is even an issue to resolve this http://code.google.com/p/android/issues/detail?id=8959&q=rtp&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
Your best option would be to explore using ffmpeg under Android.
the easy way:
download videolan.
and check this how to streaming with videolan
the "complicated" way is creating a server with gstreamer rtspserver, darwin... real... etc

How to stream over RTMP on Android?

I'm trying to play video file on a remote server. Video format is flv and server is Flash Media Server3.5.
I'm going to connect to server over RTMP and to implement the palyback of video file using Android Media Player.
Really,is it possible? Any help is my pleasure.
http://www.aftek.com/afteklab/aftek-RTMP-library.shtml
I found this one, but haven't had much luck, there are very few docs and after jigging it to try and support Video (no examples as i can see) i found that the core method RtmpStreamFactory.getRtmpStream(); failed.
This one has also cropped up, but i haven't looked at this yet.
http://code.google.com/p/android-rtmp-client/
It looks like that for me i'll be looking at getting the media server to deliver rtsp instead and this is supported by android. You may also find that later versions of Android i.e. 3> support rtmp.

Video streaming using RTSP: Android

I'm trying to install a Wowza server on my Linux machine to enable the RTSP streaming for my Android application.
On Android client side what sort of changes do I need to make in my application? I'm using Videoview to simply play a video file stored locally.
Now I want to get the video content get streamed through the server that I've installed. If necessary I can move to any other streaming server as right now I'm doing a research on streaming servers.
For rtsp streaming you can also try following servers:
Darwin Streaming Server - linux package is available
Windows Media Services - can be installed on Windows Server Trial
VLC - standalone application
For testing purposes of your application i would also recommend you to use existing mobile video services like:
m.youtube.tv
m.wp.tv
You can extract video links from those sites and use them to test your application.
Try to follow Android ApiDemos, you can find video streaming player example at:
...android-sdk-windows\platforms\android-x\samples\ApiDemos\src\com\example\android\apis\media\MediaPlayerDemo_Video.java
VLC+Android Owns.
I used the following one-liner to stream video of our kittens to our cell phones.
We used the launchRTSP free app to leverage the built-in RTSP viewing capabilities of Android, to access the URL over the internet.
You may want to tweak the frame rate and such. As shown below, it's perfect for webcam streaming.
vlc -vvvvvvvvvvvvvvvvvvvvvvv -I dummy v4l2://:vdev=/dev/video:width=640:height=480:fps=2 --sout "#transcode{vcodec=mp4v,fps=5,vb=800,acodec=mpga,samplerate=8000,ab=64,deinterlace,channels=1,sfilter='mosaic:marq{marquee=%m-%d-%Y_%H:%M:%S,size=16,color=16711680,position=5,opacity=64}'}:rtp{sdp=rtsp://0.0.0.0:5858/kittens.sdp}"
WCS4 server can deliver WebRTC stream as RTSP.
So you can send WebRTC live stream from Android or desktop Chrome/FF browser and then connnect to this stream via VLC or Android by RTSP.

Categories

Resources