SonsOfTone / RaspberrIP-Camera

Raspberry IP Camera - HD H264 Stream Over RTSP - Low Latency
94 stars 42 forks source link

No Video #2

Open pjbasson opened 9 years ago

pjbasson commented 9 years ago

Please help

I followed your instructions on configuring VLC to play the rtsp stream, but I'm not getting any video. It seems that VLC connects.

Ip address for Rpi: 192.168.2.17 rtsp port: 8554

If execute the following command on RPi : $ netstat -a

Results:

pi@raspberrypi ~ $ netstat -a Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 :8554 *: LISTEN tcp 0 0 :http *: LISTEN tcp 0 0 :ssh *: LISTEN tcp 0 0 192.168.2.17:8554 DELL-Theresa.net.:52104 ESTABLISHED tcp 0 320 192.168.2.17:ssh DELL-Theresa.net.:52053 ESTABLISHED udp 165184 0 :18888 *: udp 0 0 :18889 *: udp 0 0 192.168.2.17:ntp : udp 0 0 localhost:ntp : udp 0 0 :ntp *: Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] SEQPACKET LISTENING 526 /run/udev/control unix 2 [ ACC ] STREAM LISTENING 2658 /var/run/dbus/system_bus_socket unix 2 [ ] DGRAM 2539 /var/run/thd.socket unix 4 [ ] DGRAM 2557 /dev/log unix 3 [ ] STREAM CONNECTED 3638 unix 2 [ ] DGRAM 3635 unix 3 [ ] DGRAM 533 unix 3 [ ] DGRAM 534 unix 3 [ ] STREAM CONNECTED 3639 unix 3 [ ] STREAM CONNECTED 2662 unix 2 [ ] DGRAM 2709 unix 3 [ ] STREAM CONNECTED 2661

When I use mplayer with the command: mplayer rtsp://192.168.1.17:8554

Results:

Playing rtsp://192.168.2.17:8554/. Connecting to server 192.168.2.17[192.168.2.17]: 8554...

rtsp_session: unsupported RTSP server. Server type is 'unknown'. STREAM_LIVE555, URL: rtsp://192.168.2.17:8554/ file format detected. Initiated "video/H264" RTP subsession on port 18888 demux_rtp: Failed to guess the video frame rate VIDEO: [H264] 0x0 0bpp 0.000 fps 0.0 kbps ( 0.0 kbyte/s) FPS not specified in the header or invalid, use the -fps option. Load subtitles in rtsp://192.168.2.17:8554/ Load subtitles in C:/Users/Philip/Desktop/Raspberry Pi/mplayer-svn-37324/mplayer

/sub/

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 56.12.100 (internal)

Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

Audio: no sound Starting playback... V: 0.0 0/ 0 ??% ??% ??,?% 0 0

Exiting... (End of file)

C:\Users\Philip\Desktop\Raspberry Pi\mplayer-svn-37324>

SonsOfTone commented 9 years ago

Are you using wifi ?

pjbasson commented 9 years ago

Raspberry Pi on LAN. And running VLC on laptop that is connected to the LAN via a Wi-Fi connection

pjbasson commented 9 years ago

Ok, I made a direct connection between raspberry pi and laptop, now I get video. I would like to have both back on the network, if possible. Any suggestions would be appreciated.