How to Stream Motion JPEG to RTSP via Command Line?

About encoding, codec settings, muxers and filter usage
pittpanther
New Cone
New Cone
Posts: 1
Joined: 20 Apr 2019 05:47

How to Stream Motion JPEG to RTSP via Command Line?

Postby pittpanther » 20 Apr 2019 05:57

Hello all - I have been digging through a number examples without any success... looking to take a public facing Motion JPEG stream and stream it via RTSP.

The sample stream I am using is:
http://121.146.226.15:8001/mjpg/video.mjpg

It appears to be an Axis camera. I am able to open the stream successfully through the VLC UI.

I am trying to auto-launch VLC and the stream using the following command:

start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "http://121.146.226.15:8001/mjpg/video.mjpg" :sout=#rtp{sdp=rtsp://:8554/stream} :sout-all

Here is what I am seeing in the VLC log file:

main debug: `http://121.146.226.15:8001/mjpg/video.mjpg' gives access `http' demux `any' path `121.146.226.15:8001/mjpg/video.mjpg'
main debug: creating demux: access='http' demux='any' location='121.146.226.15:8001/mjpg/video.mjpg' file='\\121.146.226.15:8001\mjpg\video.mjpg'
main debug: looking for access_demux module matching "http": 15 candidates
main debug: no access_demux modules matched
main debug: creating access: http://121.146.226.15:8001/mjpg/video.mjpg
main debug: (path: \\121.146.226.15:8001\mjpg\video.mjpg)
main debug: looking for access module matching "http": 26 candidates
http debug: resolving 121.146.226.15 ...
http debug: outgoing request:
GET /mjpg/video.mjpg HTTP/1.1
Host: 121.146.226.15:8001
Accept: */*
Accept-Language: en_US
User-Agent: VLC/3.0.6 LibVLC/3.0.6
Range: bytes=0-
qt debug: IM: Setting an input
http debug: incoming response:
HTTP/1.0 200 OK
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Connection: close
Content-Type: multipart/x-mixed-replace; boundary=myboundary
main debug: using access module "access"
main debug: looking for stream_filter module matching "prefetch,cache_block": 24 candidates
prefetch debug: using 16777216 bytes buffer, 16384 bytes read
main debug: using stream_filter module "prefetch"
main debug: looking for stream_filter module matching "any": 24 candidates
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for http://121.146.226.15:8001/mjpg/video.mjpg
main debug: looking for stream_filter module matching "record": 24 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='http' demux='any' location='121.146.226.15:8001/mjpg/video.mjpg' file='\\121.146.226.15:8001\mjpg\video.mjpg'
main debug: looking for demux module matching "any": 55 candidates
main debug: looking for xml reader module matching "any": 1 candidates
main debug: using xml reader module "xml"
webvtt debug: subtitle demux discarded
ts debug: TS module discarded (lost sync)
mod debug: MOD validation failed (ext=mjpg)
mjpeg debug: discard MIME header: Content-Length: 577096
main debug: selecting program id=0
main debug: using demux module "mjpeg"
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "copy"
main debug: starting in async mode
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\labuser.TMLAB\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `http://121.146.226.15:8001/mjpg/video.mjpg' successfully opened
mjpeg debug: MIME boundary not found in 15360 bytes of data

pforpianist
New Cone
New Cone
Posts: 4
Joined: 22 Oct 2019 03:34

Re: How to Stream Motion JPEG to RTSP via Command Line?

Postby pforpianist » 24 Oct 2019 03:46

did you get any success on this?

Megaman
New Cone
New Cone
Posts: 1
Joined: 26 Nov 2019 09:48

Re: How to Stream Motion JPEG to RTSP via Command Line?

Postby Megaman » 26 Nov 2019 09:50

Did anyone get this to work, trying to do similar, having the same issue.

Thanks


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 28 guests