python - Using VLC capturing the video, and saving the frame as jpeg, how? -
how video stream 1 frame , saved samp.jpeg (keep overwriting on same file 1 frame), can use in python canvas or gui rendering jpeg , in browser.
following test not work with.
#!/bin/bash ps aux | grep vlc | awk '{print $2}' | xargs kill -9; vlc -i dummy --no-audio --video-filter=scene --start-time=1 --stop-time=1 --scene-format=jpeg --scene-ratio=24 --scene-prefix=exec samp.jpeg vlc://quit
does not work
works:
there entry @ wiki.videolan.org/how_to_create_thumbnails : vlc c:\video\to\process.mp4 --rate=1 --video-filter=scene --vout=dummy --start-time=10 --stop-time=11 --scene-format=png --scene-ratio=24 --scene-prefix=snap --scene-path=c:\path\for\snapshots\ vlc://quit
if ffmpeg option, take @ http://ffmpeg.org/trac/ffmpeg/wiki/create%20a%20thumbnail%20image%20every%20x%20seconds%20of%20the%20video
i think vlc wrong vehicle creating image, guess 1 come solution based on mjpeg streaming.
Comments
Post a Comment