pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.
Apache License 2.0
214 stars 66 forks source link

Cannot stream RTSP #75

Closed annyjasmin39 closed 2 years ago

annyjasmin39 commented 2 years ago

I tried with demo app,but in VLC it is giving error. Code is working fine,no error or exceptions..after play method...it immediately comes to teardown method and disconnects the client.

-- logger module started -- main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. main: playlist is empty faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) live555 error: Failed to connect with rtsp://192.168.1.33:1935 live555 error: TCP rollover failed, aborting faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) live555 error: Failed to connect with rtsp://192.168.1.33:1935 live555 error: TCP rollover failed, aborting faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) live555 error: no data received in 10s, aborting faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) live555 error: no data received in 10s, aborting faad error: Failed to initialize faad using extra data avcodec error: cannot start codec (aac) live555 error: Failed to connect with rtsp://192.168.1.33:1935 live555 error: TCP rollover failed, aborting -- logger module stopped --

annyjasmin39 commented 2 years ago

main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000) main error: Could not convert timestamp 50810072107 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716129 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716151 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716162 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716173 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716195 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716206 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716217 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716228 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716239 for FFmpeg main error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000) main error: Could not convert timestamp 50908716250 for FFmpeg

annyjasmin39 commented 2 years ago

Could you please help

annyjasmin39 commented 2 years ago

image

annyjasmin39 commented 2 years ago

only green screen getting nothing

pedroSG94 commented 2 years ago

Hello,

Are you using app example? Do you have preview using app example? Can you tell me VLC version and OS used? Also, let me know device used.

annyjasmin39 commented 2 years ago

VLC Version-3.0.17.4 OS-Windows device-Samsung galaxy When I checked the logcat ,i found lot of rgb2nv12 failed it seems to be related to rgb coversion, tried with surfaceview,openglview with camera2

Now I switched back to camera1 but there also video is stuck from the beginning.

i think this is vlc problem,in ffplay it is working fine,but i still have to work on rgb2nv12 issue...for camera2 api with openglview

pedroSG94 commented 2 years ago

If the problem is only with VLC. Try to disable codec hardware acceleration: https://www.winxdvd.com/video-transcoder/vlc-hardware-acceleration-gpu-decoding.htm

annyjasmin39 commented 2 years ago

closing this issue,as this is much related to encoding issue,opening new issue in the library project