Installing Zbarimg On Linux

View previous topic View next topic Go down

Installing Zbarimg On Linux

Post by jamied_uk on 30th June 2016, 19:03






Code:
sudo apt-get install -y zbar-tools
avatar
jamied_uk
Admin

Posts : 2193
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Installing Zbarimg On Linux

Post by jamied_uk on 8th July 2016, 22:59

Bash Function For Linux Automation





Code:
#!/bin/bash
# Usage: ./AYD.sh https://youtu.be/0aTex-VPnpI
myvar="$@"
youtube-dl "$myvar"
a=1
for i in *.mp4; do
  new=$(printf "%04d.mp4" "$a") #04 pad to length of 4
  mv -- "$i" "$new"
  let a=a+1
done
ffmpeg -i 0001.mp4 -ss 00:00:01 -vframes 1 out.png
rm 0001.mp4
clear
zbarimg out.png


Example:

Code:
./AYD.sh https://youtu.be/0aTex-VPnpI


Last edited by jamied_uk on 9th July 2016, 00:34; edited 1 time in total
avatar
jamied_uk
Admin

Posts : 2193
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Installing Zbarimg On Linux

Post by jamied_uk on 8th July 2016, 23:18

You will need to install the following after the ffmpeg has been setup (or before).
Code:
sudo apt-get install -y youtube-dl zbarimg
avatar
jamied_uk
Admin

Posts : 2193
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Installing Zbarimg On Linux

Post by jamied_uk on 8th July 2016, 23:30

Update Code Link

app.box.com/s/9x5gaux72bv9drutzlmxk7yx6rad0oxa
avatar
jamied_uk
Admin

Posts : 2193
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Installing Zbarimg On Linux

Post by jamied_uk on 9th July 2016, 01:10

Generate QR Code From CLI On Linux




Code:
#!/bin/bash
clear
# Usage: ./Generate.sh "string or text / URL"
# Example: ./Generate.sh "boobies"
myvar="$@"
qrencode -o qrcode.png "$myvar"
echo "qrcode.png Created With Text $myvar"




The generated QR code ends up in the qrcode.png file. If the file already exists, it’s overwritten without prompting. If you have at least version 3.3.0 (qrencode -V), Qrencode can generate an EPS graphic,

Code:
qrencode -t EPS -o qrcode.eps 'Hello World!'

liinux-magazine.com/Online/Features/Generating-QR-Codes-in-Linux
avatar
jamied_uk
Admin

Posts : 2193
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Installing Zbarimg On Linux

Post by jamied_uk on 9th July 2016, 01:54

Reverse The String

avatar
jamied_uk
Admin

Posts : 2193
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Installing Zbarimg On Linux

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum