Hi,
sorry for late answer...
No, it's not possible to transcode and simultaneously show an video taken from a directShow device. Tried with another grabber today, same result (with the win32 versions "3.0.0", "3.0.1" and nightly build "vlc-4.0.0-20180311-0303-dev-win32".
I have extended the batch file with additional entries so now it writes an logfile.
Code: Select all
start vlc.exe dshow:// :dshow-vdev="USB2.0 Grabber" --snapshot-path=D:\GE\temp\ --snapshot-prefix=tempSnapshot --snapshot-format=jpg :dshow-aspect-ratio=4\:3 :dshow-size=720x576 :dshow-fps=25.0 :dshow-video-input=1 --extraintf=logger --verbose=2 --logmode=text --file-logging --logfile=D:\GE\temp\vlc.log :sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=6000,fps=25.0,threads=4,width=720,height=576}:duplicate{dst={standard{access{file,append},mux=ts,dst=D:\GE\temp\tempView4.mpg}},dst=display}
This is the content of the logfile created with the "3.0.0" version (i hope it's ok to post the logfile in this way).
nmi
-- logger module started --
main debug: VLC media player - 3.0.0 Vetinari
main debug: Copyright © 1996-2018 the VideoLAN team
main debug: revision 3.0.0-2-0-gaf3950764d
main debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=i686-w64-mingw32' '--with-breakpad=
https://win.crashes.videolan.org' 'host_alias=i686-w64-mingw32' 'PKG_CONFIG_LIBDIR=/home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x86/contrib/i686-w64-mingw32/lib/pkgconfig'
main debug: using multimedia timers as clock source
main debug: min period: 1 ms, max period: 1000000 ms
main debug: searching plug-in modules
main debug: loading plugins cache file D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\plugins\plugins.dat
main warning: cannot read D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\plugins\plugins.dat: No such file or directory
main debug: recursively browsing `D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\plugins'
main debug: plug-ins loaded: 488 modules
main debug: opening config file (C:\Users\Norbert\AppData\Roaming\vlc\vlcrc)
main debug: looking for logger module matching "any": 2 candidates
file debug: opening logfile `D:\GE\temp\vlc.log'
main debug: using logger module "file"
main debug: translation test: code is "en_GB"
main debug: looking for keystore module matching "memory": 3 candidates
main debug: using keystore module "memory"
main debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 3DNow! FPU
main debug: Creating an input for 'Media Library'
main debug: Input is a meta file: disabling unneeded options
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path: C:\Users\Norbert\AppData\Local\Temp
main debug: `file/directory:///C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf' gives access `file' demux `directory' path `/C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf'
main debug: creating demux: access='file' demux='directory' location='/C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf' file='C:\Users\Norbert\AppData\Roaming\vlc\ml.xspf'
main debug: looking for access_demux module matching "file": 15 candidates
main debug: no access_demux modules matched
main debug: creating access: file:///C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf
main debug: (path: C:\Users\Norbert\AppData\Roaming\vlc\ml.xspf)
main debug: looking for access module matching "file": 25 candidates
main debug: using access module "filesystem"
main debug: looking for stream_filter module matching "prefetch,cache_read": 24 candidates
cache_read debug: Using stream method for AStream*
cache_read debug: starting pre-buffering
cache_read debug: received first data after 1 ms
cache_read debug: pre-buffering done 304 bytes in 0s - 296 KiB/s
main debug: using stream_filter module "cache_read"
main debug: looking for stream_filter module matching "any": 24 candidates
playlist debug: using XSPF playlist reader
main debug: using stream_filter module "playlist"
main debug: stream filter added to 0391c310
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 file:///C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf
main debug: looking for stream_filter module matching "record": 24 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='directory' location='/C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf' file='C:\Users\Norbert\AppData\Roaming\vlc\ml.xspf'
main debug: looking for demux module matching "directory": 55 candidates
main debug: using demux module "directory"
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Norbert\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\reader
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `file/directory:///C:/Users/Norbert/AppData/Roaming/vlc/ml.xspf' successfully opened
main debug: looking for xml reader module matching "any": 1 candidates
main debug: using xml reader module "xml"
main debug: EOF reached
main debug: removing module "directory"
main debug: removing module "record"
main debug: removing module "playlist"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: creating audio output
main debug: looking for audio output module matching "any": 6 candidates
mmdevice debug: using default device
mmdevice debug: version 2 session control unavailable
mmdevice debug: volume from -63.000000 dB to +0.000000 dB with 1.500000 dB increments
mmdevice debug: display name changed: VLC media player (LibVLC 3.0.0)
main debug: using audio output module "mmdevice"
main debug: keeping audio output
main debug: looking for interface module matching "logger,none": 16 candidates
logger error: The logger interface no longer exists.
logger: As of VLC version 0.9.0, use --file-logging to write logs to a file.
main debug: no interface modules matched
main error: no suitable interface module
main error: interface "logger,none" initialization failed
main debug: looking for interface module matching "hotkeys,none": 16 candidates
main debug: using interface module "hotkeys"
main debug: looking for interface module matching "globalhotkeys,none": 16 candidates
main debug: using interface module "win32"
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main debug: looking for interface module matching "any": 16 candidates
main debug: looking for extension module matching "any": 1 candidates
lua debug: Opening Lua Extension module
lua debug: Trying Lua scripts in C:\Users\Norbert\AppData\Roaming\vlc\lua\extensions
lua debug: Trying Lua scripts in D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\extensions
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\extensions\VLSub.luac
lua debug: Scanning Lua script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\extensions\VLSub.luac
lua debug: Script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\extensions\VLSub.luac has the following capability flags: 0x5
main debug: using extension module "lua"
main debug: using interface module "qt"
main debug: processing request item: null, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting playback of new item
main debug: resyncing on dshow://
main debug: dshow:// is at 0
main debug: creating new input thread
main debug: Creating an input for 'dshow://'
main debug: requesting art for new input thread
main debug: using sout chain=`transcode{venc=ffmpeg,vcodec=mp2v,vb=6000,fps=25.0,threads=4,width=720,height=576}:duplicate{dst={standard{access{file,append},mux=ts,dst=D:\GE\temp\tempView4.mpg}},dst=display}'
main debug: stream=`duplicate'
main debug: looking for sout stream module matching "duplicate": 23 candidates
duplicate debug: creating 'duplicate'
duplicate debug: * adding `standard{access{file,append},mux=ts,dst=D:\GE\temp\tempView4.mpg}'
main debug: stream=`standard'
main debug: looking for sout stream module matching "standard": 23 candidates
main debug: set config option: sout-standard-access to {file,append}
main debug: set config option: sout-standard-mux to ts
main debug: set config option: sout-standard-dst to D:\GE\temp\tempView4.mpg
main debug: looking for sout access module matching "any": 9 candidates
main warning: option file is unknown
main debug: set config option: sout-file-append to (null)
file debug: file access output opened (D:\GE\temp\tempView4.mpg)
main debug: using sout access module "file"
main debug: looking for sout mux module matching "ts": 11 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
mux_ts debug: shaping=200000 pcr=70000 dts_delay=400000
main debug: using sout mux module "mux_ts"
main debug: muxer support adding stream at any time
main debug: muxer prefers to wait for all ES before starting to mux
stream_out_standard debug: using `{file,append}/ts://D:\GE\temp\tempView4.mpg'
main debug: using sout stream module "stream_out_standard"
duplicate debug: * adding `display'
main debug: stream=`display'
main debug: looking for sout stream module matching "display": 23 candidates
main debug: using sout stream module "display"
main debug: using sout stream module "duplicate"
main debug: stream=`transcode'
main debug: looking for sout stream module matching "transcode": 23 candidates
lua debug: Trying Lua scripts in C:\Users\Norbert\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\fetcher
main debug: set config option: sout-transcode-venc to ffmpeg
main debug: no meta fetcher modules matched
main debug: set config option: sout-transcode-vcodec to mp2v
main debug: looking for art finder module matching "any": 2 candidates
main debug: set config option: sout-transcode-vb to 6000
main debug: set config option: sout-transcode-fps to 25.0
main debug: set config option: sout-transcode-threads to 4
main debug: set config option: sout-transcode-width to 720
main debug: set config option: sout-transcode-height to 576
stream_out_transcode debug: Checking video codec mapping for mp2v got mp2v
stream_out_transcode debug: codec video=mp2v 720x576 scaling: 0.000000 6000kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path: C:\Users\Norbert\AppData\Local\Temp
main debug: `dshow://' gives access `dshow' demux `any' path `'
main debug: creating demux: access='dshow' demux='any' location='' file='(null)'
main debug: looking for access_demux module matching "dshow": 15 candidates
lua debug: Trying Lua scripts in C:\Users\Norbert\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\00_musicbrainz.luac
dshow debug: dshow-vdev: USB2.0 Grabber
dshow debug: dshow-adev:
dshow debug: width x height 720x576
lua debug: skipping script (unmatched scope) D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
dshow debug: found device: USB2.0 Grabber
dshow debug: asking for device: USB2.0 Grabber
qt debug: IM: Setting an input
dshow debug: asked for USB2.0 Grabber, binding to USB2.0 Grabber
dshow debug: using device: USB2.0 Grabber
dshow debug: EnumDeviceCaps: output pin: Capture
dshow debug: EnumDeviceCaps: input pin: Analoger Videoeingang
dshow debug: EnumDeviceCaps: trying pin Capture
dshow debug: EnumDeviceCaps: input pin default format configured
dshow debug: EnumDeviceCaps: input pin accepts chroma: YUY2, width:720, height:576, fps:25.000000
dshow debug: CaptureFilter::JoinFilterGraph
dshow debug: connecting filters
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::ConnectedTo [not connected]
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryPinInfo
dshow debug: CapturePin::ConnectedTo [not connected]
dshow debug: CapturePin::QueryPinInfo
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryAccept [OK] (width=720, height=576, chroma=YUY2, fps=25.000000)
dshow debug: CapturePin::ReceiveConnection [OK]
dshow debug: CapturePin::Disconnect [OK]
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryAccept [OK] (width=720, height=576, chroma=YUY2, fps=25.000000)
dshow debug: CapturePin::ReceiveConnection [OK]
dshow debug: CapturePin::Disconnect [OK]
dshow debug: OpenDevice: Removing filters
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::ConnectedTo [not connected]
dshow debug: CaptureFilter::SetSyncSource
dshow debug: CaptureFilter::JoinFilterGraph
dshow debug: CaptureFilter::GetState 0
dshow debug: CaptureFilter::~CaptureFilter
dshow debug: CapturePin::~CapturePin
dshow error: can't open video device
dshow debug: found device: Digitale Audioschnittstelle (2-
dshow debug: asking for default device: Digitale Audioschnittstelle (2-
dshow debug: asked for Digitale Audioschnittstelle (2-, binding to Digitale Audioschnittstelle (2-
dshow debug: using device: Digitale Audioschnittstelle (2-
dshow debug: EnumDeviceCaps: output pin: Capture
dshow debug: EnumDeviceCaps: input pin: Hauptlautst�rke
dshow debug: EnumDeviceCaps: trying pin Capture
dshow debug: EnumDeviceCaps: input pin default format configured
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:44100 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:44100 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:44100 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:32000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:32000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:22050 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:22050 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:11025 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:11025 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:8000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:8000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:44100 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:44100 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:22050 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:22050 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:11025 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:11025 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:8000 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:8000 bits/sample:8
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:48000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:48000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:96000 bits/sample:16
dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:96000 bits/sample:16
dshow debug: CaptureFilter::JoinFilterGraph
dshow debug: connecting filters
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::ConnectedTo [not connected]
dshow debug: CapturePin::QueryPinInfo
dshow debug: CaptureFilter::QueryFilterInfo
dshow debug: CapturePin::QueryPinInfo
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryAccept [OK] (channels=2, samples/sec=44100, bits/samples=16, format=araw)
dshow debug: CapturePin::ReceiveConnection [OK]
dshow debug: CapturePin::NotifyAllocator
dshow debug: filters connected successfully !
dshow debug: MEDIATYPE_Audio
dshow debug: selected audio pin accepts format: araw
dshow debug: Playing...
dshow debug: CapturePin::QueryPinInfo
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::QueryPinInfo
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CaptureFilter::EnumPins
dshow debug: CapturePin::QueryDirection
dshow debug: CapturePin::ConnectedTo [OK]
dshow debug: CaptureFilter::SetSyncSource
dshow debug: CaptureFilter::Pause
dshow debug: CaptureFilter::Run
main debug: selecting program id=0
main debug: using access_demux module "dshow"
main debug: looking for packetizer module matching "any": 24 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\Norbert\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\reader
lua debug: Trying Lua playlist script D:\GE\Player\vlc-3.0.0-win32\vlc-3.0.0\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `dshow://' successfully opened
main debug: switching to sync mode
copy debug: need valid dts
main debug: Buffering 0%
main debug: Buffering 36%
main debug: adding a new sout input for `s16l` (sout_input: 03a32568)
stream_out_transcode debug: not transcoding a stream (fcc=`s16l')
duplicate debug: duplicated a new stream codec=s16l (es=0 group=0)
main debug: adding a new input
mux_ts warning: rejecting stream with unsupported codec s16l
main error: cannot add this stream
duplicate debug: - failed for output 0
main debug: looking for audio decoder module matching "any": 23 candidates
araw debug: samplerate:44100Hz channels:2 bits/sample:16
main debug: using audio decoder module "araw"
duplicate debug: - added for output 1
main debug: Buffering 73%
main debug: Stream buffering done (330 ms in 330 ms)
main debug: Decoder wait done in 0 ms
main debug: creating audio output
main debug: looking for audio output module matching "any": 6 candidates
mmdevice debug: using default device
mmdevice debug: display name changed: VLC media player
mmdevice debug: display name changed: VLC media player
mmdevice debug: display name changed: VLC media player
mmdevice debug: display name changed: VLC media player
mmdevice debug: display name changed: VLC media player
mmdevice debug: version 2 session control unavailable
mmdevice debug: volume from -63.000000 dB to +0.000000 dB with 1.500000 dB increments
main debug: using audio output module "mmdevice"
main debug: looking for aout stream module matching "any": 2 candidates
wasapi debug: buffer size : 88200 frames
wasapi debug: maximum latency: 5805000 ns
wasapi debug: default period : 10158700 ns
wasapi debug: minimum period : 3000000 ns
main debug: using aout stream module "wasapi"
main debug: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
main debug: looking for audio volume module matching "any": 2 candidates
main debug: using audio volume module "integer_mixer"
main debug: input 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
main debug: looking for audio filter module matching "scaletempo": 16 candidates
scaletempo debug: format: 44100 rate, 2 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: conversion: 's16l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: looking for audio converter module matching "any": 8 candidates
audio_format debug: s16l->f32l, bits per sample: 16->32
main debug: using audio converter module "audio_format"
main debug: conversion pipeline complete
main debug: conversion: 'f32l'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: looking for audio converter module matching "any": 8 candidates
audio_format debug: f32l->s16l, bits per sample: 32->16
main debug: using audio converter module "audio_format"
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "ugly"
main debug: inserting 2249 zeroes
mmdevice debug: state changed: 1
mmdevice debug: state changed: 1
main warning: playback too late (61670): up-sampling
-- logger module stopped --