A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| The reason why `git push` always failed for a forked `git_training` repository is due to multiple account settings in the same computer. | |
| Aren't you curious why does the git not ask you about the password? | |
| I don't spend more to dive into the problem. Just use `ssh` instead. | |
| The following links are the steps about how to set up the ssh connection. | |
| ``` | |
| https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ | |
| ``` | |
| ``` | |
| https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ |
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| Check the version | |
| ```bash | |
| import django #django is a framework which should be installed by pip. It's listed in requirements.txt | |
| print(django.VERSION) |
| virtual environment | |
| # python run module as script | |
| python -m | |
| python3 -m venv myvenv # not working on ubuntu |
| https://pythontips.com/2013/08/04/args-and-kwargs-in-python-explained/ | |
| Workable! | |
| ---python | |
| def stupid(data, *args, **kwargs): | |
| print("data: {}".format(data)) | |
| for i in args: | |
| print(i) | |
| for k in kwargs: |
| If you would like to use # to jump to certain part of the web page. | |
| Caller: | |
| #+id | |
| Callee: | |
| Please give the any tag with the corresponded id. | |
| Source: | |
| https://stackoverflow.com/questions/2835140/how-do-i-link-to-part-of-a-page-hash |
| Python Environment Setup | |
| Update the `pip` to latest version; older version might have trouble with dependency | |
| ```python | |
| pip3 install --upgrade pip | |
| ``` | |
| Then install `jupyter Notebook` | |
| ```python | |
| pip3 install jupyter | |
| ``` |
| import json | |
| import os | |
| import time | |
| import requests | |
| from PIL import Image | |
| from StringIO import StringIO | |
| from requests.exceptions import ConnectionError | |
| def go(query, path): | |
| """Download full size images from Google image search. |