Transcoding a video stream for http

About encoding, codec settings, muxers and filter usage
JK010
New Cone
New Cone
Posts: 7
Joined: 20 Oct 2017 07:05

Transcoding a video stream for http

Postby JK010 » 21 Nov 2017 04:41

I'm wondering what the best options are for transcoding a video stream (with no audio) via VLC command line, and then for playing it in JWPlayer (or any other JS HTML player)?

I've been testing it with quite a few options (that I've found in the docs and on this forum) but I can't seem to get the video to play in VLC Player (in the first instance), before I try to display it in the HTML.

When I use: .\vlc -I dummy -vvv stream_input_url --”sout=#transcode{vcodec=h264,acodec=none}:standard{mux=mp4,dst=:8081/c.mp4,access=http}”

the transcoder and streamer starts to run, but after a few seconds the window crashes and closes.

Then when I use the following example (different vcodec):
.\vlc -I dummy -vvv stream_input_url --”sout=#transcode{vcodec=FLV1,acodec=none}:standard{mux=mp4,dst=:8081/c.mp4,access=http}”

The transcoder and streamer runs successfully, I get the following error log in VLC Player:
core debug: adding item `http://localhost/c.mp4' ( http://localhost/c.mp4 )
core debug: processing request item: http://localhost/c.mp4, node: null, skip: 0
core debug: rebuilding array of current - root Playlist
core debug: rebuild done - 11 items, index 10
core debug: starting playback of the new playlist item
core debug: resyncing on http://localhost/c.mp4
core debug: http://localhost/c.mp4 is at 10
core debug: creating new input thread
core debug: Creating an input for 'http://localhost/c.mp4'
core debug: requesting art for http://localhost/c.mp4
core debug: meta ok for (null), need to fetch art
core debug: looking for meta fetcher module matching "any": 1 candidates
core debug: looking for meta fetcher module matching "any": 1 candidates
core debug: using timeshift granularity of 50 MiB, in path 'C:\Users\JK\AppData\Local\Temp'
core debug: `http://localhost/c.mp4' gives access `http' demux `' path `localhost/c.mp4'
core debug: specified demux `any'
core debug: creating demux: access='http' demux='any' location='localhost/c.mp4' file='c.mp4'
core debug: looking for access_demux module matching "http": 12 candidates
core debug: no access_demux modules matched
core debug: creating access 'http' location='localhost/c.mp4', path='c.mp4'
core debug: looking for access module matching "http": 21 candidates
http debug: querying proxy for http://localhost/c.mp4
http debug: no proxy
http debug: http: server='localhost' port=80 file='/c.mp4'
core debug: net: connecting to localhost port 80
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: connection succeeded (socket = 3508)
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: no meta fetcher modules matched
core debug: searching art for http://localhost/c.mp4
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: looking for art finder module matching "any": 2 candidates
core debug: no meta fetcher modules matched
core debug: searching art for http://localhost/c.mp4
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: using meta fetcher module "lua"
core debug: removing module "lua"
core debug: searching art for http://localhost/c.mp4
core debug: looking for art finder module matching "any": 2 candidates
core debug: using meta fetcher module "lua"
core debug: removing module "lua"
core debug: searching art for http://localhost/c.mp4
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua scripts in C:\Users\JK\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
qt4 debug: IM: Setting an input
core debug: no art finder modules matched
core debug: art not found for http://localhost/c.mp4
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: art not found for http://localhost/c.mp4
http debug: protocol 'HTTP' answer code 404
http error: error: HTTP/1.1 404 Not Found
http debug: switching to HTTP version 1.0
core debug: net: connecting to localhost port 80
core debug: connection succeeded (socket = 3508)
http debug: protocol 'HTTP' answer code 404
http error: error: HTTP/1.1 404 Not Found
core debug: net: connecting to localhost port 80
core debug: connection succeeded (socket = 3480)
access_mms error: error: HTTP/1.1 404 Not Found
core debug: no access modules matched
core error: open of `http://localhost/c.mp4' failed
core debug: finished input
core debug: dead input
core debug: changing item without a request (current 10/11)
core debug: nothing to play
qt4 debug: IM: Deleting the input
I just want to check which vcodec option I should be using (or which would be best for what I'm trying to do) and if any of my settings look incorrect, or if there is any other settings that I should be looking at?

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests