Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is:issue is:open Can't using VLC player to view rtsp streaming #1

Closed
anhlt309 opened this issue Jul 28, 2017 · 10 comments
Closed

is:issue is:open Can't using VLC player to view rtsp streaming #1

anhlt309 opened this issue Jul 28, 2017 · 10 comments

Comments

@anhlt309
Copy link

I have some video .mp4 at /webapps/vod/streams/. The server started successful, but when using VLC player to view streaming, I had got debug:
[DEBUG] [pool-11-thread-4] com.antstreaming.rtsp.RtspMinaIoHandler - sent message: RTSP/1.0 461 Unsupported transport

And Vlc player inform Your input can't be opened.

So, how can i use vlc player to view streaming and how to enable unicast stream from server or enable TCP stream.?
Thank you!

@mekya
Copy link
Contributor

mekya commented Jul 29, 2017

Hi @anhlt309 ,
There may be a couple of issues you need to check. Could you please write down to full address that you plan to play?

Secondly, ant Media Server supports UDP transportation, please uncheck TCP in RTSP streaming if it is checked. Do you know where to change this settings? I can send a screenshot if you need.

@anhlt309
Copy link
Author

anhlt309 commented Aug 1, 2017

Here my local address: rtsp://192.168.0.3:5554/vod/mu-mc-icc.mp4
I just paste this link to VLC Player and get error output at ant media server:
[DEBUG] [pool-11-thread-6] com.antstreaming.rtsp.RtspMinaIoHandler - RTSP Server Receive Message:
SETUP rtsp://192.168.0.3:5554/vod/mu-mc-icc.mp4/streamid=1 RTSP/1.0
CSeq: 7
User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;unicast;client_port=55476-55477

[DEBUG] [pool-11-thread-6] com.antstreaming.rtsp.RtspMinaIoHandler - sent message: RTSP/1.0 461 Unsupported transport
CSeq: 7

How to change TCP to UDP in RTSP streaming? Thank you!

@anhlt309
Copy link
Author

anhlt309 commented Aug 1, 2017

Another problem: When I was playing rtsp url at client, ant server output error and video was paused:

[rtp @ 0x7fd00c0180c0] Packet with invalid duration -9223372036854775808 in stream 0
[rtp @ 0x7fd00c0180c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 12635460 >= NOPTS
[WARN] [RTMPConnectionScheduler-13] com.antstreaming.rtsp.PacketSenderRunnable - Error muxing packet with error: -22

@mekya
Copy link
Contributor

mekya commented Aug 1, 2017

Hi,
I have just sent a commit (8813987) to the repo, you can clone repo and compile project or
you can download and extract the attached file to Ant Media Server folder and then try again. Please let me know if you encounter any problem.

ant-media-server.jar.zip

@anhlt309
Copy link
Author

anhlt309 commented Aug 2, 2017

Thank you, now I can play by VLC player but when I was playing rtsp url at client, ant server output error and video was paused:

[rtp @ 0x7fd00c0180c0] Packet with invalid duration -9223372036854775808 in stream 0
[rtp @ 0x7fd00c0180c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 12635460 >= NOPTS
[WARN] [RTMPConnectionScheduler-13] com.antstreaming.rtsp.PacketSenderRunnable - Error muxing packet with error: -22

@anhlt309
Copy link
Author

anhlt309 commented Aug 2, 2017

I attach a log file from ant media server when start to play an url on VLC player. You can read for more details.
ant-rtsp-log.txt

@mekya
Copy link
Contributor

mekya commented Aug 2, 2017

Hi @anhlt309 ,

Yeah "[rtp @ 0x7fd00c0180c0] Packet with invalid duration -9223372036854775808 in stream 0" is an issue on ffmpeg library. It gives this error when it does not find timestamp for the packet. Especially in rtsp streaming, it always gives this error for some initial packets even if you use ffmpeg in command prompt. Fourtunately, it is not a problem for streaming.

@anhlt309
Copy link
Author

anhlt309 commented Aug 3, 2017

Thank you. And Can I change path to local video files for rtsp streaming, not only /webapps/vod/streams ?

@mekya
Copy link
Contributor

mekya commented Aug 3, 2017

You may need to create soft link on webapps/vod/streams directory to point to local video files.

It is a simple issue with a shell script. I can write a shell script for you ;) That you can give directory names as parameter.

@mekya
Copy link
Contributor

mekya commented Aug 10, 2017

Closing issue. If you have any problem, please let know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants