If I just play the RTSP stream with VLC I get clear picture and sound. However if I try to save to a file I only get picture. I have found that I can demonstrate the problem with any sout target including display. So
Code: Select all
vlc "rtsp://192.168.0.27/media/video1"
Code: Select all
vlc "rtsp://192.168.0.27/media/video1" --sout="#display"
I would expect both commands to have the same result, and this is certainly the case when I try a test RTMP stream.
The codec information when working is shown as
Code: Select all
Stream 0
Type: Video
Codec H264 - MPEG-4 AVC (part 10) (h264)
Resolution: 3840x2178
Display resolution: 3840x2160
Frame rate: 25
Decoded format: Planar 4:2:0 YUV
Stream 1
Type: Audio
Codec: MPEG AAC Audio (mp4a)
Channels: Stereo
Sample rate: 48000 Hz
However when I use --sout="#display" then codec information is shown as
Code: Select all
Stream 0
Type: Video
Codec: H264 - MPEG-4 AVC (part 10) (h264)
Stream 1
Type: Audio
Codec: MPEG AAC Audio (mp4a)
Sample rate: 48000 Hz
I have captured log files with
Code: Select all
--verbose=2 --file-logging --logfile=vlc.log
Working VLC command and Non-working VLC command with sout="#display".
Thanks,