Giter Site home page Giter Site logo

Comments (27)

crossle avatar crossle commented on July 21, 2024

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.

joncevski avatar joncevski commented on July 21, 2024

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.

crossle avatar crossle commented on July 21, 2024

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.

joncevski avatar joncevski commented on July 21, 2024

Is there any solution for this problem? Thanks for your help.

from vitamiobundle.

Fella123 avatar Fella123 commented on July 21, 2024

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.

crossle avatar crossle commented on July 21, 2024

Can you playback it on your computer?

from vitamiobundle.

Fella123 avatar Fella123 commented on July 21, 2024

Yes, with VCL

from vitamiobundle.

crossle avatar crossle commented on July 21, 2024

@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.

crossle avatar crossle commented on July 21, 2024

I use VLC build a rstp stream on my computer, test it use Vitamio, it's playback OK.

from vitamiobundle.

crossle avatar crossle commented on July 21, 2024
$ 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.

Fella123 avatar Fella123 commented on July 21, 2024

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.

crossle avatar crossle commented on July 21, 2024

@Fella123 I use vlc server record PC Camera, VPlayer playback ok.

from vitamiobundle.

Fella123 avatar Fella123 commented on July 21, 2024

Is it possible to make Vitamio to ignore "Session" field ?

from vitamiobundle.

imasd88 avatar imasd88 commented on July 21, 2024

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.

crossle avatar crossle commented on July 21, 2024

@imasd88 Are you use WMServer as rtsp server?

from vitamiobundle.

imasd88 avatar imasd88 commented on July 21, 2024

No, Darwin Streaming Server

from vitamiobundle.

djfkue avatar djfkue commented on July 21, 2024

@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.

Fella123 avatar Fella123 commented on July 21, 2024

@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.

djfkue avatar djfkue commented on July 21, 2024

@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.

Fella123 avatar Fella123 commented on July 21, 2024

@djfkue
It's working! Thank you!

from vitamiobundle.

joncevski avatar joncevski commented on July 21, 2024

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.

Fella123 avatar Fella123 commented on July 21, 2024

@joncevski
Remove "Metadata data = mp.getMetadata();"
And leave only "mCanPause = mCanSeekBack = mCanSeekForward = true;"

from vitamiobundle.

djfkue avatar djfkue commented on July 21, 2024

@joncevski You have to comment getMetadata()

    // Metadata data = mp.getMetadata();

from vitamiobundle.

joncevski avatar joncevski commented on July 21, 2024

Thanks a lot, that worked.

from vitamiobundle.

crossle avatar crossle commented on July 21, 2024

@djfkue WOW! Nice! This may be reason @Fella123 said VPlayer can playback ok!

from vitamiobundle.

crossle avatar crossle commented on July 21, 2024

Del getMetadata

from vitamiobundle.

yusufonderd avatar yusufonderd commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.