Playback RTP using Android media player - android

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

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

How to use VLC as a live Streaming server?

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

how to create ts (transport stream) video file from mp4 in android

In my project I need to implement an HLS (HTTP live Streaming) for an android device and it stream to an iOS device to play where android device will record the video and send it to server and iOS device will play the stream from the server using an m3u8 file. In the link below
Click Here
They have mention "Currently, the supported delivery format is MPEG-2 Transport Streams for audio-video".
Now problem is that in android you can record only in mp4 by default (correct me if i am wrong). Now I need some third party API or library like ffmpeg, Gstreamer, Xuggler, Jcodec to transcode recorded mp4 to ts files.
ffmpeg, jffmpeg and Gstreamer have a learning curve and to setup time and also need NDK. So I need some help because I don't have enough time to try one of these please refer me if you know any library which is easy to use and does not have a complex learning and setup time. Like Jcodec which is pure java base and plug and play type library but I don't think it can do this for me as they have mention in there documentation they support h262 codec support yet but i need h264 and ACC for audio.
FYI:
JJPMEG
It is a Java binding to FFmpeg and it have an android verison too. Maybe you can give it a try.
https://code.google.com/p/jjmpeg/
Or:
Maybe you can just record the video with supporting encoding and transcode the video in the server side?

Multicasting in android

We have enabled multicast streaming in one of our machines using VLC server. We use the following URL for streaming the multicast data.
rtp://239.1.2.11:5004 & udp://239.1.2.11:1234
But when we pass these links to the VideoView or mediaplayer in android, we get the message as "Sorry, the video can not be played".
Is it the case that multicast streaming is not supported in android? (Though multicastsocket class is present in library) or are we missing anything?
The links play well on the VLC client so we don't think there is any issue in VLC server.
We are using android v2.3 for development.
I am not at all an expert in video encoding, but I think the problem is not with the streaming, I think it is with the encoding of your videos. You should have a look at Android Supported Media Formats and make sure that your video encoding,format,resolution meet the recommendation specified there.

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.

Categories

Resources