Hello from CHILE! I need your help

Welcome to newcomers! Don't hesitate to introduce yourself.
Please don't post tech support questions here
Post Reply
VvN12345
Level 1
Level 1
Posts: 2
Joined: Wed Oct 03, 2018 6:05 am

Hello from CHILE! I need your help

Post by VvN12345 » Wed Oct 03, 2018 6:31 am

My name is Vicente, I'm from Santiago of Chile and this is my sad history, jk this is my story.

Let me start by saying that this is my first week on Linux, and also my very first week in front of a programming language (bash). I started Linux last week because I had an old laptop with windows 10 running like a square wheel. After some reading I found out that Linux existed! So I downloaded a "Distro" called Mint 19 Xfce and performed the install. Omg I was amazed how smoothly everything was running.

Out of boredom that day, I tried to make a GIF out of a video of my high quality anime collection. According to google, ffmpeg was the way to go. I installed ffmpeg and . . . Where is it. I was like "where is the window, where is the program, what is this crap". Five minutes later I understood what is Linux and terminals and shells and bash. I understood that many programs on Linux run the same way that ffmpeg, just command. And I just wanted a GIF.

Long story short, in order to make my GIF from a video on a potato computer, I knew I had to learn how to use that scary "terminal" and those scary scripts!. So I started reading, youtube, stack flow was heaven, and indian programmers on youtube were angels. I started making a bash interface to get those gifs out more quickly. But it wasnt friendly at all. Then I learned about GUI's and tried out zenity, but as I learned more and more zenity became too limitted for my needs. Finally I read on some post about Yad, and I went balls to the wall with this one. By the way I have to mention that in this last week, I been trough literall quote double quote backsticks backslash hell. It was a tough battle staring my screen trying to understand what went wrong. Anyway

VTOG or Video to GIF
This is my project to learn bash and I may say that is working out pretty well. I prepared a short video you to show you how it works. Why you may ask. Because I came here for help. I need kind people who is willing to try this script in other resolutions or maybe other distros or just use it to see if it fails in some way that I missed to predict and tell me your opinions, comments or everything. The code is rough but I tried my best to imitate the coding of the examples in stack flow and all those tutorial vids. I even learned how to make a simple installer for this post. As I said I'm new, if Im skipping some mandatory steps for this please let me know! give me guidance!

I saw that all these things are posted in github so I made one too.
https://github.com/VvN12345/VTOG

Well thats it hope you enjoyed to story!

User avatar
xenopeek
Level 24
Level 24
Posts: 23128
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Hello from CHILE! I need your help

Post by xenopeek » Wed Oct 03, 2018 7:39 am

Welcome to the Linux Mint forums.

Impressive first week! Being able to automate your own needs is a handy skill :) Do you have prior programming experience?

There are similar tools available, like Gifcurry https://github.com/lettier/gifcurry. I think I like yours better but perhaps for inspiration.

Having taken a look at your program, I'd suggest you check the difference between old style if [ ] and new style if [[ ]]. The latter is easier to use and has less programming pitfalls. The Bash FAQ explains difference between [ ] and [[ ]] tests: https://mywiki.wooledge.org/BashFAQ/031. Besides the Bash FAQ the accompanying Bash Guide is also a good read if you have time to go through it: https://mywiki.wooledge.org/BashGuide.
Image

VvN12345
Level 1
Level 1
Posts: 2
Joined: Wed Oct 03, 2018 6:05 am

Re: Hello from CHILE! I need your help

Post by VvN12345 » Wed Oct 03, 2018 10:31 am

Thanks! I will look into that IF update! after all I used that thing like a hundred times in the script. Better get it right.

User avatar
jimallyn
Level 18
Level 18
Posts: 8469
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Hello from CHILE! I need your help

Post by jimallyn » Wed Oct 03, 2018 2:10 pm

Welcome aboard, Vicente! Wow, you believe in jumping in headfirst to the deep end of the pool, don't you! I like your attitude!

There are many things in Linux that can be done from the command line, but most of them can also be done from the GUI. A number of often used Linux programs are just GUI frontends for commands that have been around forever. As an example, I have been using youtube-dl from the command line to download videos from Youtube and other sites (for years), and now somebody has made a GUI for it, youtube-dlg. I still mostly use it from the command line, but when I do a Linux install for a friend, I usually give them the graphic version, too.

Just about anything you want to do in Linux, there is a GUI program to do it, and most of us don't need to use the command line very often. But there are times when the command line can be VERY powerful. A while back a guy wanted to take all the audio books he had, break them into 10 minute segments, number all the segments, put all of each book in it's own folder, and I don't know what all else he wanted to do. One of the experienced forums members gave him a one line command that did it in nothing flat. Not one at a time, but all of his audio books at once, with each in its own folder. One line command.

I have a feeling you are going to love Linux, and that you will soon be able to help other Linux users! As xenopeek said, impressive first week!
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
kc1di
Level 13
Level 13
Posts: 4736
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Hello from CHILE! I need your help

Post by kc1di » Thu Oct 04, 2018 11:30 am

Hello Vicente and Welcome to the Linux Mint Forums,
Great story :)
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

User avatar
WharfRat
Level 20
Level 20
Posts: 11715
Joined: Thu Apr 07, 2011 8:15 pm

Re: Hello from CHILE! I need your help

Post by WharfRat » Sun Oct 07, 2018 10:47 am

Hello Vicente Image

Welcome to Linux Mint and the Linux Mint forum :)
ImageImage

User avatar
phd21
Level 17
Level 17
Posts: 7284
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Hello from CHILE! I need your help

Post by phd21 » Sun Oct 07, 2018 2:48 pm

Hi Vicente, VvN12345,

Welcome to the wonderful world of Linux Mint and its excellent forum!

I just read your post and the good replies to it. Here are my thoughts on this as well.

It would help to know more about your system setup like which edition and version of Linux Mint you are using. If you run "inxi -Fxzd" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.
Vicente-VvN12345 wrote:Out of boredom that day, I tried to make a GIF out of a video of my high quality anime collection. According to google, ffmpeg was the way to go. I installed ffmpeg and . . . Where is it. I was like "where is the window, where is the program, what is this crap". Five minutes later I understood what is Linux and terminals and shells and bash. I understood that many programs on Linux run the same way that ffmpeg, just command. And I just wanted a GIF.
Out of curiosity, why create an animated ".gif"? One of the easiest methods for creating a ".gif" animation or editing them is by going to the superb "ezgif.com" website linked below. What video format are your "anime" videos in? Click the link below and choose "video to gif", browse to your anime video and follow the prompts. There are some file size limitations, and it can only convert certain video formats, but it is easy to convert videos or audio formats from one format to another that could be used with this using a multimedia converter "WinFF-GTK", etc... Install "ffmpeg", "x264", and "x265" from the "Synaptic Package Manager (SPM)" .

Animated GIF editor and GIF maker
https://ezgif.com/

The console terminal is very versatile but not for "newbies" (new inexperienced users).

+1 for using "Gifcurry" as member "xenopeek" suggests.

Linux ubuntu convert anime - Google Search
https://www.google.com/search?ei=plS6W8 ... f6V3jbpYA4

* Best GIF Recorder Tools For Linux In 2018 | It's FOSS
https://itsfoss.com/best-gif-recorder-linux/

*** Make a GIF from Video on Linux Using Gifcurry - OMG! Ubuntu!
https://www.omgubuntu.co.uk/2017/09/cre ... -linux-app

gifcurry AppImage download link.
https://github.com/lettier/gifcurry/releases/


Linux ubuntu animated gif - Google Search
https://www.google.com/search?ei=ulS6W9 ... HwpoMPAzFU

Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
xenopeek
Level 24
Level 24
Posts: 23128
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Hello from CHILE! I need your help

Post by xenopeek » Sun Oct 07, 2018 5:25 pm

phd21 wrote:
Sun Oct 07, 2018 2:48 pm
One of the easiest methods for creating a ".gif" animation or editing them is by going to the superb "ezgif.com" website linked below.
Vicente's tool is free from ads, doesn't embed anything Google (ezgif uses Google AdSense, Google Analytics and Google Fonts), can be used offline, doesn't require uploading or downloading anything, doesn't share the before or after files with a 3rd party, is free/libre software, is in Vicente's control to change how it works and to keep it working and (we may assume) does what Vicente needs. ezgif.com really doesn't compare :)
Image

User avatar
phd21
Level 17
Level 17
Posts: 7284
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Hello from CHILE! I need your help

Post by phd21 » Sun Oct 07, 2018 7:44 pm

Hi xenopeek and Vicente,

As I already posted +1 for "Gifcurry" that you suggested. It is a pretty cool application for converting videos to Gif format and it seems to work really well. It appears to be a perfect option for "Vicente" rather than using "ffmpeg" through the console terminal. Thanks xenopeek for sharing this.

As far as I know "ezgif.com" does not embed anything in the resulting "gif" files, it is free to use, nor do I know if they share anything anyone does with anyone else. But, it does only work online requires uploading and downloading, has limits to the size of videos that can be converted or created, I do not see any ads but I have ad blockers working. It does have optimization and other effects (ie: speed up or slow down, etc...) not available with gifcurry which people creating typical gif animations from multiple still images might want to use.

I do not know much about anime videos, so I just wanted to know from Vicente why someone would want to convert anime videos to gif format rather than a more common video format like ".mp4", ".mkv", ".webm", ".avi", etc...?
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
xenopeek
Level 24
Level 24
Posts: 23128
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Hello from CHILE! I need your help

Post by xenopeek » Mon Oct 08, 2018 2:57 am

phd21 wrote:
Sun Oct 07, 2018 7:44 pm
It appears to be a perfect option for "Vicente" rather than using "ffmpeg" through the console terminal.
Seems you missed Vicente wrote his own GUI front-end and is showing that off on this topic. Take a look at the link :wink:
VvN12345 wrote:
Wed Oct 03, 2018 6:31 am
VTOG or Video to GIF
This is my project to learn bash and I may say that is working out pretty well. I prepared a short video you to show you how it works. Why you may ask. Because I came here for help. I need kind people who is willing to try this script in other resolutions or maybe other distros or just use it to see if it fails in some way that I missed to predict and tell me your opinions, comments or everything. The code is rough but I tried my best to imitate the coding of the examples in stack flow and all those tutorial vids. I even learned how to make a simple installer for this post. As I said I'm new, if Im skipping some mandatory steps for this please let me know! give me guidance!

I saw that all these things are posted in github so I made one too.
https://github.com/VvN12345/VTOG
Image

User avatar
lsemmens
Level 6
Level 6
Posts: 1158
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: Hello from CHILE! I need your help

Post by lsemmens » Mon Oct 08, 2018 4:25 am

Welcome, Vincente, you sound like you are way ahead of most Linux newbies. I doubt that you'll ever find your way back to the other side again. :D
Kernel: 4.15.0-36-generic x86_64 bits: 64
Desktop: Cinnamon 3.8.9
Distro: Linux Mint 19 Tara

Laptop T4500 Dualcore 4Gb RAM
Server AMD Phenom 9650 - GEForce 9400GT 6Gb RAM
+ three other Linux Mint machines
Out of my mind - please leave a message

Post Reply

Return to “Introduce yourself”