Nov. 29th, 2015

apt-get install usbmount

vi /etc/usbmount/usbmount.conf

MOUNTOPTIONS="noexec,nodev,noatime,nodiratime"
FS_MOUNTOPTIONS="-fstype=vfat,umask=0000"

:wq

vi /etc/samba/smb.conf
[fleshka]
path = /media/usb0
browseable = yes
writeable = yes
guest ok = yes
read only = no
;valid users = root
create mask = 666
directory mask = 0777

итого

в getstream.sh

if mount |grep usb; then
        echo "USB  mounted";
        VLC_OUTDIR=/media/usb0/2see
        mkdir -p $VLC_OUTDIR
else
        echo "USB not mounted";
        VLC_OUTDIR=/home/2see
fi
echo "VLC_OUTDIR is  $VLC_OUTDIR";

timeout $2m cvlc $1  --sout file/ts:$VLC_OUTDIR/$3-`date +%F-%k%M`.mp4
sync
Не смешите наши F-16



posted via robin poster

Profile

robinbobin

December 2016

S M T W T F S
     1 2 3
45 6 7 8 910
1112 13 14 15 16 17
18192021 22 23 24
25262728293031

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 9th, 2025 08:57 pm
Powered by Dreamwidth Studios