PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Installing Zbarimg On Linux

Go down

Installing Zbarimg On Linux Empty Installing Zbarimg On Linux

Post by jamied_uk 30th June 2016, 19:03






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

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Installing Zbarimg On Linux Empty Re: Installing Zbarimg On Linux

Post by jamied_uk 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
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Installing Zbarimg On Linux Empty Re: Installing Zbarimg On Linux

Post by jamied_uk 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
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Installing Zbarimg On Linux Empty Re: Installing Zbarimg On Linux

Post by jamied_uk 8th July 2016, 23:30

Update Code Link

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

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Installing Zbarimg On Linux Empty Re: Installing Zbarimg On Linux

Post by jamied_uk 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
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Installing Zbarimg On Linux Empty Re: Installing Zbarimg On Linux

Post by jamied_uk 9th July 2016, 01:54

Reverse The String

jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Installing Zbarimg On Linux Empty Re: Installing Zbarimg On Linux

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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