VLC CLI - Can stream out local file, but not rtsp camera stream

About encoding, codec settings, muxers and filter usage
haydent
New Cone
New Cone
Posts: 8
Joined: 07 Jun 2018 07:33

VLC CLI - Can stream out local file, but not rtsp camera stream

Postby haydent » 25 Sep 2018 01:14

i have this posted on superuser too: https://superuser.com/questions/1361028 ... era-stream

So using the following commands I can re-stream and play on the same machine a .ts or .mp4 saved from a camera stream, but i cannot do the same with the stream itself... (fyi: debian 9 w/ vlc 3.0.3)

I can play the stream (and save it with needed code(not shown)):

Code: Select all

vlc rtsp://192.168.60.200:554/2
i can stream the saved file:

Code: Select all

vlc 2018_09_14__13_02_56.ts --sout '#std{access=udp,mux=ts,dst=127.0.0.1:1234}'
and play it back on same machine with:

Code: Select all

vlc udp://@127.0.0.1:1234
but this does not work, there are no obvious errors, the playback stream just 'hunts' not starting/connecting...

Code: Select all

vlc rtsp://192.168.60.200:554/2 --sout '#std{access=udp,mux=ts,dst=127.0.0.1:1234}'
this is the properties of the stream when played by vlc:

Code: Select all

> status ( new input: rtsp://192.168.60.200:554/2 ) ( audio volume: 256 ) ( state playing ) > info +----[ Meta data ] | | filename: 2 | +----[ Stream 0 ] | | Video resolution: 1024x576 | Type: Video | Chroma location: Left | Color space: ITU-R BT.709 Range | Buffer dimensions: 1024x578 | Orientation: Top left | Codec: H264 - MPEG-4 AVC (part 10) (h264) | Color primaries: ITU-R BT.709 | Color transfer function: ITU-R BT.709 | Decoded format: Planar 4:2:0 YUV full scale | +----[ Stream 1 ] | | Sample rate: 48000 Hz | Channels: Stereo | Codec: MPEG AAC Audio (mp4a) | Type: Audio | Bits per sample: 32 | +----[ end of stream info ]

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 33 guests