Page 1 of 1
python libvlc take snapshot from commandline
Posted: 28 May 2012 13:17
by maharg
Hi,
Having problems capturing a snapshot when using python libvlc to capture a UDP stream.
The following script does a grand job of making the recording but fails to get the snapshot
Code: Select all
import vlc
from time import sleep
# set up recording
vlc_instance = vlc.libvlc_new(0, [])
vlc_media = vlc.libvlc_media_new_location(vlc_instance, 'udp/ps://@227.1.0.1:11111')
vlc.libvlc_media_add_option(vlc_media, ':sout=#standard{mux=ps,dst=/home/vds/libvlc_poc/foo.ps,access=file} ')
vlc.libvlc_media_add_option(vlc_media, ':mtu=32768')
vlc.libvlc_media_add_option(vlc_media, ':start-time=0')
vlc.libvlc_media_add_option(vlc_media, ':stop-time=30')
vlc.libvlc_media_add_option(vlc_media, ':udp-caching=5000')
vlc.libvlc_media_add_option(vlc_media, ':snapshot-path=/home/vds/libvlc_poc/')
vlc.libvlc_media_add_option(vlc_media, ':snapshot-format=png')
vlc_player = vlc.libvlc_media_player_new_from_media(vlc_media)
vlc.libvlc_media_player_play(vlc_player)
# take a snapshot midway through
sleep(20)
print 'taking snapshot now....'
result = vlc.libvlc_video_take_snapshot(vlc_player, 0, '/home/vds/libvlc_poc/foo.png', 0, 0)
print 'taken snapshot... result was %s' % result
sleep(20)
The output from the script is:
Code: Select all
[vds@dev18 libvlc_poc]$ python record.py
[0x109e1e0] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
[0x109e1e0] main interface error: no suitable interface module
[0x7f4024004100] mux_ps mux: Open
taking snapshot now....
taken snapshot... result was -1
Any clues ? It seems that the result "-1" indicates that the video was not found...
Bonus points for telling me how to disable the dbus stuff - using the RPMForge rpm vlc-1.1.13-1.el6.rf.x86_64 on RHEL 6.2, which is obviously compiled with dbus enabled... I don't need dbus at all as these scripts will eventually run unattended under Django..
thanks for any input
Graham
Re: python libvlc take snapshot from commandline
Posted: 28 May 2012 15:27
by Rémi Denis-Courmont
You need to recompile VLC w/o D-Bus support. There is no way to turn off D-Bus at run-time.
Re: python libvlc take snapshot from commandline
Posted: 28 May 2012 17:00
by maharg
and the bonus points go to Rémi... Any ideas on the snapshot issue ?
Re: python libvlc take snapshot from commandline
Posted: 29 May 2012 10:59
by Jean-Baptiste Kempf
You need to give more logs.
Re: python libvlc take snapshot from commandline
Posted: 29 May 2012 13:56
by maharg
In response to
viewtopic.php?f=32&t=98491 Rémi has said
For the third time: there is currently no way to reach get the logs out of LibVLC.
I have pasted the output which is shown on the commandline. Can you point me to an example of how to get further logging, given Rémi's statement ?
Thanks in advance
Re: python libvlc take snapshot from commandline
Posted: 29 May 2012 14:25
by Rémi Denis-Courmont
Pass "-vv" to libvlc_new() and read the logs from stderr. The point is, there are no programmatic ways to get the logs in LibVLC version 2.0.
Re: python libvlc take snapshot from commandline
Posted: 29 May 2012 16:26
by maharg
Ah, thanks - I have updated the script to run the vlc recording in a separate thread but that doesn't seem to make any odds.
The script:
Code: Select all
import vlc
import threading
from time import sleep
class RecordingThread(threading.Thread):
def set_vlc_instance(self, vlc_instance):
self.vlc_instance = vlc_instance
def get_vlc_player(self):
return self.vlc_player
def run(self):
# create VLC media with a multicast MRI
vlc_media = vlc.libvlc_media_new_location(self.vlc_instance, 'udp/ps://@227.1.0.1:11111')
# record programme stream to file
vlc.libvlc_media_add_option(vlc_media, ':sout=#standard{mux=ps,dst=/home/vds/foo.ps,access=file} ')
# set the MTU
vlc.libvlc_media_add_option(vlc_media, ':mtu=32768')
# set duration
vlc.libvlc_media_add_option(vlc_media, ':start-time=0')
vlc.libvlc_media_add_option(vlc_media, ':stop-time=30')
# set up 5 seconds of udp caching
# -- omitting this for clarity of log -- vlc.libvlc_media_add_option(vlc_media, ':udp-caching=5000')
# snapshot options
vlc.libvlc_media_add_option(vlc_media, ':snapshot-path=/home/vds/')
vlc.libvlc_media_add_option(vlc_media, ':snapshot-format=png')
# create the player from the media and set it playing
self.vlc_player = vlc.libvlc_media_player_new_from_media(vlc_media)
vlc.libvlc_media_player_play(self.vlc_player)
def main():
# create VLC instance
vlc_instance = vlc.libvlc_new(1, ["-vv"])
# set up and start the recording thread
recording_thread = RecordingThread()
recording_thread.set_vlc_instance(vlc_instance)
recording_thread.start()
print 'recording thread started...'
# take a snapshot midway through
sleep(10)
print 'taking snapshot now....'
result = vlc.libvlc_video_take_snapshot(recording_thread.get_vlc_player(), 0, '/home/vds/foo.png', 0, 0)
print 'taken snapshot... result was %s' % result
sleep(25)
if __name__ == '__main__':
main()
The output with "-vv" then:
Code: Select all
[0x130a9f0] main libvlc debug: VLC media player - 1.1.13 The Luggage
[0x130a9f0] main libvlc debug: Copyright © 1996-2011 the VideoLAN team
[0x130a9f0] main libvlc debug: revision exported
[0x130a9f0] main libvlc debug: configured with ./configure '--build=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--disable-nls' '--disable-mozilla' '--disable-static' '--enable-aa' '--enable-alsa' '--enable-caca' '--enable-dirac' '--enable-dvbpsi' '--without-dvdcss' '--enable-dvdread' '--enable-faad' '--enable-fbosd' '--enable-ffmpeg' '--with-ffmpeg-a52' '--with-ffmpeg-faac' '--with-ffmpeg-mp3lame' '--enable-libamr-nb' '--enable-libamr-wb' '--with-ffmpeg-ogg' '--with-ffmpeg-theora' '--with-ffmpeg-vorbis' '--with--ffmpeg-zlib' '--enable-flac' '--enable-gnomevfs' '--enable-live555' '--enable-mozilla' '--enable-ncurses' '--enable-opencv' '--enable-portaudio' '--enable-pulse' '--enable-pvr' '--enable-real' '--enable-realrtsp' '--enable-shout' '--enable-snapshot' '--enable-svg' '--enable-svgalib' '--enable-switcher' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-v4l' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'LDFLAGS=-L/usr/X11R6/lib64' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig'
[0x130a9f0] main libvlc debug: translation test: code is "C"
[0x130a9f0] main libvlc debug: checking plugin modules
[0x130a9f0] main libvlc debug: loading plugins cache file /usr/lib64/vlc/plugins/plugins-04081e-1f8.dat
[0x130a9f0] main libvlc warning: cannot read /usr/lib64/vlc/plugins/plugins-04081e-1f8.dat (No such file or directory)
[0x130a9f0] main libvlc debug: recursively browsing `/usr/lib64/vlc/plugins'
[0x130a9f0] main libvlc debug: saving plugins cache /usr/lib64/vlc/plugins/plugins-04081e-1f8.dat
[0x130a9f0] main libvlc debug: module bank initialized (408 modules)
[0x130a9f0] main libvlc debug: CPU has capabilities MMX 3DNow! MMXEXT SSE SSE2 SSE3 FPU
[0x130a9f0] main libvlc debug: looking for memcpy module: 4 candidates
[0x130a9f0] main libvlc debug: using memcpy module "memcpymmxext"
[0x13c1a80] main input debug: Creating an input for 'Media Library'
[0x13c1a80] main input debug: Input is a meta file: disabling unneeded options
[0x13c1a80] main input debug: using timeshift granularity of 50 MiB
[0x13c1a80] main input debug: using timeshift path '/tmp'
[0x13c1a80] main input debug: `file/xspf-open:///home/vds/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/vds/.local/share/vlc/ml.xspf'
[0x13c1a80] main input debug: creating demux: access='file' demux='xspf-open' path='/home/vds/.local/share/vlc/ml.xspf'
[0x158c160] main demux debug: looking for access_demux module: 2 candidates
[0x158c160] main demux debug: no access_demux module matching "file" could be loaded
[0x158c160] main demux debug: TIMER module_need() : 0.248 ms - Total 0.248 ms / 1 intvls (Avg 0.248 ms)
[0x13c1a80] main input debug: creating access 'file' path='/home/vds/.local/share/vlc/ml.xspf'
[0x158c140] main access debug: looking for access module: 2 candidates
[0x158c140] filesystem access debug: opening file `/home/vds/.local/share/vlc/ml.xspf'
[0x158c140] main access debug: using access module "filesystem"
[0x158c140] main access debug: TIMER module_need() : 0.295 ms - Total 0.295 ms / 1 intvls (Avg 0.295 ms)
[0x158edc0] main stream debug: Using AStream*Stream
[0x158edc0] main stream debug: pre buffering
[0x158edc0] main stream debug: received first data after 0 ms
[0x158edc0] main stream debug: pre-buffering done 296 bytes in 0s - 11562 KiB/s
[0x158f110] main stream debug: looking for stream_filter module: 5 candidates
[0x158f110] main stream debug: no stream_filter module matching "any" could be loaded
[0x158f110] main stream debug: TIMER module_need() : 0.177 ms - Total 0.177 ms / 1 intvls (Avg 0.177 ms)
[0x158c2e0] main stream debug: looking for stream_filter module: 1 candidate
[0x158c2e0] main stream debug: using stream_filter module "stream_filter_record"
[0x158c2e0] main stream debug: TIMER module_need() : 0.156 ms - Total 0.156 ms / 1 intvls (Avg 0.156 ms)
[0x13c1a80] main input debug: creating demux: access='file' demux='xspf-open' path='/home/vds/.local/share/vlc/ml.xspf'
[0x158f0f0] main demux debug: looking for demux module: 1 candidate
[0x158f0f0] playlist demux debug: using XSPF playlist reader
[0x158f0f0] main demux debug: using demux module "playlist"
[0x158f0f0] main demux debug: TIMER module_need() : 0.252 ms - Total 0.252 ms / 1 intvls (Avg 0.252 ms)
[0x158c4d0] main demux meta debug: looking for meta reader module: 2 candidates
[0x158c4d0] lua demux meta debug: Trying Lua scripts in /home/vds/.local/share/vlc/lua/meta/reader
[0x158c4d0] lua demux meta debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/reader
[0x158c4d0] lua demux meta debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/reader/filename.luac
[0x158c4d0] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x158c4d0] main demux meta debug: no meta reader module matching "any" could be loaded
[0x158c4d0] main demux meta debug: TIMER module_need() : 1.343 ms - Total 1.343 ms / 1 intvls (Avg 1.343 ms)
[0x13c1a80] main input debug: `file/xspf-open:///home/vds/.local/share/vlc/ml.xspf' successfully opened
[0x1627360] main xml debug: looking for xml module: 2 candidates
[0x1627360] main xml debug: using xml module "xml"
[0x1627360] main xml debug: TIMER module_need() : 0.355 ms - Total 0.355 ms / 1 intvls (Avg 0.355 ms)
[0x158f0f0] playlist demux debug: parsed 0 tracks successfully
[0x1627360] main xml debug: removing module "xml"
[0x13c1a80] main input debug: EOF reached
[0x158f0f0] main demux debug: removing module "playlist"
[0x158c2e0] main stream debug: removing module "stream_filter_record"
[0x158c140] main access debug: removing module "filesystem"
[0x13c1a80] main input debug: TIMER input launching for 'Media Library' : 3.397 ms - Total 3.397 ms / 1 intvls (Avg 3.397 ms)
[0x13c1c10] main interface debug: looking for interface module: 1 candidate
[0x13c1c10] main interface debug: using interface module "hotkeys"
[0x13c1c10] main interface debug: TIMER module_need() : 0.492 ms - Total 0.492 ms / 1 intvls (Avg 0.492 ms)
[0x13c2eb0] main interface debug: looking for interface module: 1 candidate
[0x13c2eb0] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
[0x13c2eb0] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x13c2eb0] main interface debug: TIMER module_need() : 13.107 ms - Total 13.107 ms / 1 intvls (Avg 13.107 ms)
[0x13c2eb0] main interface error: no suitable interface module
recording thread started...
[0x7fdb5c008a90] main input debug: Creating an input for 'udp/ps://@227.1.0.1:11111'
[0x7fdb5c008a90] main input debug: thread (input) created at priority 10 (input/input.c:220)
[0x7fdb5c008a90] main input debug: thread started
[0x7fdb54000f10] main stream output debug: using sout chain=`standard{mux=ps,dst=/home/vds/foo.ps,access=file} '
[0x7fdb54000f10] main stream output debug: stream=`standard'
[0x7fdb54001310] main stream out debug: looking for sout stream module: 1 candidate
[0x7fdb54001310] main stream out debug: set config option: sout-standard-mux to ps
[0x7fdb54001310] main stream out debug: set config option: sout-standard-dst to /home/vds/foo.ps
[0x7fdb54001310] main stream out debug: set config option: sout-standard-access to file
[0x7fdb54001310] stream_out_standard stream out debug: creating `file/ps:///home/vds/foo.ps'
[0x7fdb54001310] stream_out_standard stream out debug: extension is ps
[0x7fdb54001310] stream_out_standard stream out debug: extension -> mux=ps
[0x7fdb54001310] stream_out_standard stream out debug: using `file/ps:///home/vds/foo.ps'
[0x7fdb54003cb0] main access out debug: looking for sout access module: 1 candidate
[0x13bf6e0] main playlist debug: Activated
[0x13bf6e0] main playlist debug: rebuilding array of current - root Playlist
[0x13bf6e0] main playlist debug: rebuild done - 0 items, index -1
[0x7fdb54003cb0] access_output_file access out debug: file access output opened (/home/vds/foo.ps)
[0x7fdb54003cb0] main access out debug: using sout access module "access_output_file"
[0x7fdb54003cb0] main access out debug: TIMER module_need() : 7.785 ms - Total 7.785 ms / 1 intvls (Avg 7.785 ms)
[0x7fdb54001310] stream_out_standard stream out debug: access opened
[0x7fdb540041b0] main mux debug: looking for sout mux module: 1 candidate
[0x7fdb540041b0] mux_ps mux: Open
[0x7fdb540041b0] main mux debug: using sout mux module "mux_ps"
[0x7fdb540041b0] main mux debug: TIMER module_need() : 0.149 ms - Total 0.149 ms / 1 intvls (Avg 0.149 ms)
[0x7fdb54000f10] main stream output debug: muxer support adding stream at any time
[0x7fdb54000f10] main stream output debug: muxer prefers to wait for all ES before starting to mux
[0x7fdb54001310] stream_out_standard stream out debug: mux opened
[0x7fdb54001310] main stream out debug: using sout stream module "stream_out_standard"
[0x7fdb54001310] main stream out debug: TIMER module_need() : 9.986 ms - Total 9.986 ms / 1 intvls (Avg 9.986 ms)
[0x7fdb5c008a90] main input debug: using timeshift granularity of 50 MiB
[0x7fdb5c008a90] main input debug: using timeshift path '/tmp'
[0x7fdb5c008a90] main input debug: `udp/ps://@227.1.0.1:11111' gives access `udp' demux `ps' path `@227.1.0.1:11111'
[0x7fdb5c008a90] main input debug: creating demux: access='udp' demux='ps' path='@227.1.0.1:11111'
[0x7fdb54002430] main demux debug: looking for access_demux module: 0 candidates
[0x7fdb54002430] main demux debug: no access_demux module matched "udp"
[0x7fdb54002430] main demux debug: TIMER module_need() : 0.068 ms - Total 0.068 ms / 1 intvls (Avg 0.068 ms)
[0x7fdb5c008a90] main input debug: creating access 'udp' path='@227.1.0.1:11111'
[0x7fdb540025e0] main access debug: looking for access module: 1 candidate
[0x7fdb540025e0] access_udp access debug: opening server=:0 local=227.1.0.1:11111
[0x7fdb540025e0] main access debug: net: opening 227.1.0.1 datagram port 11111
[0x7fdb540025e0] main access debug: Multicast group join request
[0x7fdb540025e0] main access debug: using access module "access_udp"
[0x7fdb540025e0] main access debug: TIMER module_need() : 2.711 ms - Total 2.711 ms / 1 intvls (Avg 2.711 ms)
[0x7fdb54002bd0] main stream debug: Using AStream*Block
[0x7fdb54002bd0] main stream debug: pre buffering
[0x7fdb54002bd0] main stream debug: received first data after 96 ms
[0x7fdb54002bd0] main stream debug: prebuffering done 16384 bytes in 0s - 165 KiB/s
[0x7fdb54002e40] main stream debug: looking for stream_filter module: 5 candidates
[0x7fdb54002e40] main stream debug: no stream_filter module matching "any" could be loaded
[0x7fdb54002e40] main stream debug: TIMER module_need() : 0.153 ms - Total 0.153 ms / 1 intvls (Avg 0.153 ms)
[0x7fdb54002e40] main stream debug: looking for stream_filter module: 1 candidate
[0x7fdb54002e40] main stream debug: using stream_filter module "stream_filter_record"
[0x7fdb54002e40] main stream debug: TIMER module_need() : 0.065 ms - Total 0.065 ms / 1 intvls (Avg 0.065 ms)
[0x7fdb5c008a90] main input debug: creating demux: access='udp' demux='ps' path='@227.1.0.1:11111'
[0x7fdb54003160] main demux debug: looking for demux module: 2 candidates
[0x7fdb54003160] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[0x7fdb54003160] main demux debug: using demux module "ps"
[0x7fdb54003160] main demux debug: TIMER module_need() : 0.292 ms - Total 0.292 ms / 1 intvls (Avg 0.292 ms)
[0x7fdb5c008a90] main input debug: starting in sync mode
[0x7fdb540025e0] access_udp access warning: unimplemented query in control
[0x7fdb54003440] main demux meta debug: looking for meta reader module: 2 candidates
[0x7fdb54003440] lua demux meta debug: Trying Lua scripts in /home/vds/.local/share/vlc/lua/meta/reader
[0x7fdb54003440] lua demux meta debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/reader
[0x7fdb54003440] lua demux meta debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/reader/filename.luac
[0x7fdb54003440] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x7fdb54003440] main demux meta debug: no meta reader module matching "any" could be loaded
[0x7fdb54003440] main demux meta debug: TIMER module_need() : 0.627 ms - Total 0.627 ms / 1 intvls (Avg 0.627 ms)
[0x7fdb5c008a90] main input debug: `udp/ps://@227.1.0.1:11111' successfully opened
[0x7fdb54003160] ps demux warning: garbage at input, trying to resync...
[0x7fdb54003160] ps demux warning: found sync code
[0x7fdb5c008a90] main input debug: selecting program id=0
[0x7fdb54011a00] main decoder debug: looking for packetizer module: 21 candidates
[0x7fdb54011a00] main decoder debug: using packetizer module "packetizer_mpegvideo"
[0x7fdb54011a00] main decoder debug: TIMER module_need() : 0.400 ms - Total 0.400 ms / 1 intvls (Avg 0.400 ms)
[0x7fdb54011a00] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301)
[0x7fdb54011a00] main decoder debug: thread started
[0x7fdb5c008a90] main input debug: Buffering 0%
[0x7fdb5c008a90] main input debug: switching to async mode
[0x7fdb5c008a90] main input debug: Buffering 1%
[0x7fdb5c008a90] main input debug: Buffering 2%
[0x7fdb5c008a90] main input debug: Buffering 3%
[0x7fdb5c008a90] main input debug: Buffering 4%
[0x7fdb5c008a90] main input debug: Buffering 5%
[0x7fdb5c008a90] main input debug: Buffering 6%
[0x7fdb5c008a90] main input debug: Buffering 7%
[0x7fdb5c008a90] main input debug: Buffering 8%
[0x7fdb5c008a90] main input debug: Buffering 9%
[0x7fdb5c008a90] main input debug: Buffering 11%
[0x7fdb54013960] main decoder debug: looking for packetizer module: 21 candidates
[0x7fdb54013960] main decoder debug: using packetizer module "mpeg_audio"
[0x7fdb54013960] main decoder debug: TIMER module_need() : 0.141 ms - Total 0.141 ms / 1 intvls (Avg 0.141 ms)
[0x7fdb54013960] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:301)
[0x7fdb54013960] main decoder debug: thread started
[0x7fdb5c008a90] main input debug: Buffering 12%
[0x7fdb5c008a90] main input debug: Buffering 12%
[0x7fdb5c008a90] main input debug: Buffering 13%
[0x7fdb5c008a90] main input debug: Buffering 15%
[0x7fdb5c008a90] main input debug: Buffering 16%
[0x7fdb5c008a90] main input debug: Buffering 17%
[0x7fdb5c008a90] main input debug: Buffering 18%
[0x7fdb5c008a90] main input debug: Buffering 19%
[0x7fdb5c008a90] main input debug: Buffering 20%
[0x7fdb5c008a90] main input debug: Buffering 21%
[0x7fdb54013960] mpeg_audio decoder debug: MPGA channels:1 samplerate:44100 bitrate:192
[0x7fdb5c008a90] main input debug: Buffering 22%
[0x7fdb54000f10] main stream output debug: adding a new sout input (sout_input:0x7fdb4c000930)
[0x7fdb540041b0] main mux debug: adding a new input
[0x7fdb540041b0] mux_ps mux debug: adding input codec=mpga
[0x7fdb5c008a90] main input debug: Buffering 23%
[0x7fdb5c008a90] main input debug: Buffering 24%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 25%
[0x7fdb5c008a90] main input debug: Buffering 26%
[0x7fdb5c008a90] main input debug: Buffering 27%
[0x7fdb5c008a90] main input debug: Buffering 28%
[0x7fdb5c008a90] main input debug: Buffering 29%
[0x7fdb5c008a90] main input debug: Buffering 30%
[0x7fdb5c008a90] main input debug: Buffering 32%
[0x7fdb5c008a90] main input debug: Buffering 32%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 34%
[0x7fdb5c008a90] main input debug: Buffering 35%
[0x7fdb5c008a90] main input debug: Buffering 36%
[0x7fdb5c008a90] main input debug: Buffering 37%
[0x7fdb5c008a90] main input debug: Buffering 38%
[0x7fdb5c008a90] main input debug: Buffering 39%
[0x7fdb5c008a90] main input debug: Buffering 40%
[0x7fdb5c008a90] main input debug: Buffering 41%
[0x7fdb5c008a90] main input debug: Buffering 42%
[0x7fdb5c008a90] main input debug: Buffering 42%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 43%
[0x7fdb5c008a90] main input debug: Buffering 44%
[0x7fdb5c008a90] main input debug: Buffering 45%
[0x7fdb5c008a90] main input debug: Buffering 47%
[0x7fdb5c008a90] main input debug: Buffering 48%
[0x7fdb5c008a90] main input debug: Buffering 49%
[0x7fdb5c008a90] main input debug: Buffering 50%
[0x7fdb5c008a90] main input debug: Buffering 51%
[0x7fdb5c008a90] main input debug: Buffering 52%
[0x7fdb5c008a90] main input debug: Buffering 53%
[0x7fdb5c008a90] main input debug: Buffering 54%
[0x7fdb5c008a90] main input debug: Buffering 55%
[0x7fdb5c008a90] main input debug: Buffering 56%
[0x7fdb5c008a90] main input debug: Buffering 57%
[0x7fdb5c008a90] main input debug: Buffering 58%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 59%
[0x7fdb5c008a90] main input debug: Buffering 60%
[0x7fdb5c008a90] main input debug: Buffering 61%
[0x7fdb5c008a90] main input debug: Buffering 62%
[0x7fdb5c008a90] main input debug: Buffering 63%
[0x7fdb5c008a90] main input debug: Buffering 64%
[0x7fdb5c008a90] main input debug: Buffering 65%
[0x7fdb5c008a90] main input debug: Buffering 66%
[0x7fdb5c008a90] main input debug: Buffering 67%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 68%
[0x7fdb5c008a90] main input debug: Buffering 69%
[0x7fdb5c008a90] main input debug: Buffering 70%
[0x7fdb5c008a90] main input debug: Buffering 71%
[0x7fdb5c008a90] main input debug: Buffering 73%
[0x7fdb5c008a90] main input debug: Buffering 74%
[0x7fdb5c008a90] main input debug: Buffering 75%
[0x7fdb5c008a90] main input debug: Buffering 76%
[0x7fdb5c008a90] main input debug: Buffering 76%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 77%
[0x7fdb5c008a90] main input debug: Buffering 78%
[0x7fdb5c008a90] main input debug: Buffering 79%
[0x7fdb5c008a90] main input debug: Buffering 80%
[0x7fdb5c008a90] main input debug: Buffering 81%
[0x7fdb5c008a90] main input debug: Buffering 82%
[0x7fdb5c008a90] main input debug: Buffering 83%
[0x7fdb5c008a90] main input debug: Buffering 84%
[0x7fdb5c008a90] main input debug: Buffering 85%
[0x7fdb5c008a90] main input debug: Buffering 87%
[0x7fdb5c008a90] main input debug: Buffering 88%
[0x7fdb5c008a90] main input debug: Buffering 89%
[0x7fdb5c008a90] main input debug: Buffering 90%
[0x7fdb5c008a90] main input debug: Buffering 91%
[0x7fdb5c008a90] main input debug: Buffering 92%
[0x7fdb5c008a90] main input debug: Buffering 92%
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb5c008a90] main input debug: Buffering 93%
[0x7fdb5c008a90] main input debug: Buffering 95%
[0x7fdb5c008a90] main input debug: Buffering 96%
[0x7fdb5c008a90] main input debug: Buffering 97%
[0x7fdb5c008a90] main input debug: Buffering 98%
[0x7fdb5c008a90] main input debug: Buffering 98%
[0x7fdb5c008a90] main input debug: Stream buffering done (300 ms in 286 ms)
[0x7fdb5c008a90] main input debug: Decoder buffering done in 0 ms
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: waiting for sequence start
[0x7fdb54011a00] packetizer_mpegvideo decoder debug: size 704x576 fps=25.000
[0x7fdb54000f10] main stream output debug: adding a new sout input (sout_input:0x7fdb58005820)
[0x7fdb540041b0] main mux debug: adding a new input
[0x7fdb540041b0] mux_ps mux debug: adding input codec=mpgv
taking snapshot now....
taken snapshot... result was -1
[0x7fdb5c008a90] main input debug: EOF reached
[0x7fdb54011a00] main decoder debug: removing module "packetizer_mpegvideo"
[0x7fdb54011a00] main decoder debug: killing decoder fourcc `mpgv', 0 PES in FIFO
[0x7fdb54000f10] main stream output debug: removing a sout input (sout_input:0x7fdb58005820)
[0x7fdb540041b0] mux_ps mux debug: removing input
[0x7fdb54013960] main decoder debug: removing module "mpeg_audio"
[0x7fdb54013960] main decoder debug: killing decoder fourcc `mpga', 0 PES in FIFO
[0x7fdb54000f10] main stream output debug: removing a sout input (sout_input:0x7fdb4c000930)
[0x7fdb540041b0] mux_ps mux debug: removing input
[0x7fdb540041b0] main mux warning: no more input streams for this mux
[0x7fdb5c008a90] main input debug: Program doesn't contain anymore ES
[0x7fdb54003160] main demux debug: removing module "ps"
[0x7fdb54002e40] main stream debug: removing module "stream_filter_record"
[0x7fdb540025e0] main access debug: removing module "access_udp"
[0x7fdb540025e0] main access debug: waitpipe: object killed
[0x7fdb5c008a90] main input debug: thread ended
Re: python libvlc take snapshot from commandline
Posted: 29 May 2012 16:34
by Rémi Denis-Courmont
Err, you do realize that snapshots cannot work with sout?
Re: python libvlc take snapshot from commandline
Posted: 29 May 2012 17:52
by maharg
I see. How may snapshots work whilst recording udp multicasts to disk in a command line environment ?
Re: python libvlc take snapshot from commandline
Posted: 30 May 2012 08:48
by Rémi Denis-Courmont
You need to render the video normally for snapshot to work.
Re: python libvlc take snapshot from commandline
Posted: 30 May 2012 12:36
by maharg
Ok, that's pretty clear cut, thanks Rémi.