can someone explain me why the killing the vlc recording of a video with audio takes by far more time than killing one without audio? This is how I record:
Code: Select all
#!/bin/bash
DURATION=21600
cvlc --color --run-time=$DURATION
v4l2:///dev/video2:width=320:height=240 :input-slave=alsa://hw:0,0 :v4l2-standard=0 :sout='#transcode{vcodec=mp4v,vb=1500,scale=1,acodec=mpga,ab=128,sfilter=marq}:std{access=file,mux=mp4,dst=output.mp4}' --sub-filter marq --marq-marquee "%D %H:%M:%S" --marq-position 6 &
PID=$!
# Takes up to 20min to kill vlc
kill $PID
wait $PID
In contrast the same recording without audio (remove :input-slave=alsa://hw:0,0 and replace acodec=mpga,ab=128 with acodec=none) is killed with no delay.
Code: Select all
#!/bin/bash
DURATION=21600
cvlc --color --run-time=$DURATION
v4l2:///dev/video2:width=320:height=240 :v4l2-standard=0 :sout='#transcode{vcodec=mp4v,vb=1500,scale=1,acodec=none,sfilter=marq}:std{access=file,mux=mp4,dst=output.mp4}' --sub-filter marq --marq-marquee "%D %H:%M:%S" --marq-position 6 &
PID=$!
# Takes up to 20min to kill vlc
kill $PID
wait $PID
Thank you,
Ralf