Comments (27)
It can play, but buffer slowly, you can swith rtsp transport layer to TCP https://github.com/yixia/VitamioBundle/wiki/Use-FFmpeg-AVOption-in-Vitamio-4.1.0
from vitamiobundle.
Tried that already in the MediaPlayerDemo and keep getting the same error. Maybe is something wrong with the stream
rtsp://62.162.58.55/TVTera but it plays with other players.
from vitamiobundle.
Hi @joncevski, I test it found 454 Session Not Found, The RTSP session identifier in the Session header is missing, invalid, or has timed out. http://tools.ietf.org/html/rfc2326#section-11.3.5
from vitamiobundle.
Is there any solution for this problem? Thanks for your help.
from vitamiobundle.
I've the same problem, same "Fatal signal 11" error
I was using this stream for testing in VideoViewDemo:
rtsp://62.240.13.114/skyplus
And these devices:
Galaxy S4, Galaxy Tab 2 10.1, Galaxy Note 10.1
It does not work at all, on any device and with any rtsp stream :(
I tried previous versions of Vitamio with no success.
The funny thing that it's perfectly working in VPlayer and VCL
So I wonder, does VPlayer use the same code as the demo for playing video streams?
from vitamiobundle.
Can you playback it on your computer?
from vitamiobundle.
Yes, with VCL
from vitamiobundle.
@Fella123 VPlayer can't playback rtsp://62.240.13.114/skyplus, I try use VLC on my computer, playback ok, but other player can't playback.
@joncevski @Fella123 What's rstp server you used? ffserver?
from vitamiobundle.
I use VLC build a rstp stream on my computer, test it use Vitamio, it's playback OK.
from vitamiobundle.
$ curl -I rtsp://62.162.58.55/TVTera
RTSP/1.0 200 OK
Public: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER, OPTIONS
Allow: OPTIONS, GET_PARAMETER
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.microsoft.wm.startupprofile
Date: Wed, 09 Oct 2013 02:06:33 GMT
CSeq: 1
Server: WMServer/9.1.1.5001
$ curl -I rtsp://62.240.13.114/skyplus
RTSP/1.0 200 OK
Public: DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER, OPTIONS
Allow: OPTIONS, GET_PARAMETER
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.microsoft.wm.startupprofile
Date: Wed, 09 Oct 2013 02:06:59 GMT
CSeq: 1
Server: WMServer/9.6.7600.16564
I found you use WMServer
, the main reason 454 Session Not Found, I think you can delete the OPTIONS field and try again.otherwise add Session:
field in your RSTP stream.
from vitamiobundle.
Hi Crossle
VPlayer plays rtsp://62.240.13.114/skyplus without any problems, on Galaxy S4, I even can record a video for you if you don't believe me )
Yes, may be it's working from VCL server to Vitamio, but I started this issue from the problem when I was not able to receive video from my IP camera, rtsp://192.168.0.0.1/ipcam.sdp (edimax camera, MPEG4, H.264 compression)
I would try your advice but unfortunately I can't control rtsp stream.
from vitamiobundle.
@Fella123 I use vlc server record PC Camera, VPlayer playback ok.
from vitamiobundle.
Is it possible to make Vitamio to ignore "Session" field ?
from vitamiobundle.
I am facing same Problem. I have 4.1.1 running on HTC One X. I even tried running the application on Galaxy y, it too do not run the app and an error of buffering disabled warning messages..
P.S. I used old library files too..
from vitamiobundle.
@imasd88 Are you use WMServer as rtsp server?
from vitamiobundle.
No, Darwin Streaming Server
from vitamiobundle.
@Fella123 @crossle I have the same problem, I found that if I commit the code “mMediaPlayer.getMetadata();” in source file MediaPlayerDemo_Video.java, the demo will runs OK.
I think maybe there is something wrong about get metadata from live stream for Vitamio.
Hope this info may help u.
from vitamiobundle.
@djfkue Wow! You've made my day!
Commenting "mMediaPlayer.getMetadata()" indeed solved the problem!
BTW do you know if there is similar fix for VideoView code ?
from vitamiobundle.
@Fella123 If you want to fix it in VideoView, you can search getMetaData() in the VideoView.java, It's about from line 100 to 111. I just commenting these codes, and set the mCanPause, mCanSeekBack etc to true. It's just workaround.
from vitamiobundle.
@djfkue
It's working! Thank you!
from vitamiobundle.
djfkue how did you solve it?
I did
Metadata data = mp.getMetadata();
mCanPause = mCanSeekBack = mCanSeekForward = true;
if (data != null) {
mCanPause = !data.has(Metadata.PAUSE_AVAILABLE)
|| data.getBoolean(Metadata.PAUSE_AVAILABLE);
mCanSeekBack = !data.has(Metadata.SEEK_BACKWARD_AVAILABLE)
|| data.getBoolean(Metadata.SEEK_BACKWARD_AVAILABLE);
mCanSeekForward = !data.has(Metadata.SEEK_FORWARD_AVAILABLE)
|| data.getBoolean(Metadata.SEEK_FORWARD_AVAILABLE);
} else {
mCanPause = mCanSeekBack = mCanSeekForward = true;
}
from vitamiobundle.
@joncevski
Remove "Metadata data = mp.getMetadata();"
And leave only "mCanPause = mCanSeekBack = mCanSeekForward = true;"
from vitamiobundle.
@joncevski You have to comment getMetadata()
// Metadata data = mp.getMetadata();
from vitamiobundle.
Thanks a lot, that worked.
from vitamiobundle.
@djfkue WOW! Nice! This may be reason @Fella123 said VPlayer can playback ok!
from vitamiobundle.
Del getMetadata
from vitamiobundle.
I have same issue . I am getting 454 sesion not found . My code as below :
`public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
private String path;
//private HashMap<String, String> options;
private VideoView mVideoView;
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (!LibsChecker.checkVitamioLibs(this))
return;
setContentView(R.layout.activity_main);
mVideoView = (VideoView) findViewById(R.id.vitamio_videoView);
path = "rtsp://localip:554/sub1";
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mediaPlayer) {
mediaPlayer.setPlaybackSpeed(1.0f);
}
});
}
}`
How can I solve ?
from vitamiobundle.
Related Issues (20)
- demo自带的mp3播放都报错,不能播放音频了??
- Vitamio[Scanner]: avformat_open_input: Transport endpoint is not connected : -107
- When frame size changed then video play blur in live stream playing using RTMP url
- Black Stripe on Bottom
- Vitamio.jar HOT 1
- 本地m3u8文件首次黑屏,第二次正常,求解决
- 在线播放M3u8格式视频,卡顿怎么办?已经设置了512*1024的缓存。
- How can I modify the shape and rotation angle of the video frames?
- x86_64 support HOT 3
- f********k
- Native libs libvvo.7.so not exists!
- Unable to stop activity ava.lang.IndexOutOfBoundsException: Index: 2, Size: 2 HOT 3
- A lot of minor issues on 4.2.2
- linker: "/data/data/test.com.livetest/libs/libffmpeg.so" has text relocations
- 一切都整好了为什么会出现这样的问题? HOT 1
- h265协议视频播放只有音频没有画面 HOT 1
- Is this project dead? Not updated for so many years?
- Is g711a format audio supported?
- 不支持arm64-v8a
- vs导入vitamio后找不到io.vov.vitamio.BuildConfig类
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitamiobundle.