This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Using FFMPEG | |
| --- | |
| ffmpeg -i input.mp4 -s 320x240 -b 64k -vcodec mpeg1video -acodec copy output.mp4 | |
| Change parameters to get tradeoff quality and size | |
| - Resolution via -s 320x240 | |
| - Bitrate via -b 64k | |
| Using AVCONV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inherit extrausers | |
| EXTRA_USERS_PARAMS = "usermod -P hello root;" | |
| - This sets the root password to "hello". | |
| - These lines can be added into your core-image-base.bbappend file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Yocto build was showing a warning of "QA Issue: No GNU_HASH in the elf binary". | |
| - The fix was to make sure that linker command line used by the respective application is using parameters used by Yocto build system. | |
| - Just for information $(LDFLAGS) used by Yocto is having -Wl,--hash-style=gnu. | |
| Ref: For inside of GNU_HASH: https://blogs.oracle.com/ali/entry/gnu_hash_elf_sections |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To determine device tree model (dts/dtb) used by the linux kernel | |
| cat /proc/device-tree/model | |
| # For example: | |
| # root@nitrogen6x:~# cat /proc/device-tree/model | |
| # Freescale i.MX6 Quad SABRE Lite Board |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| avconv -i input.mp4 -vf transpose=1 output.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In case you are having ldconfig error in Ubuntu 14.04.5 LTS related to Nvidia EGL use follow fixes | |
| Error | |
| --- | |
| /sbin/ldconfig.real: /usr/lib/nvidia-384/libEGL.so.1 is not a symbolic link | |
| /sbin/ldconfig.real: /usr/lib32/nvidia-384/libEGL.so.1 is not a symbolic link | |
| Fix | |
| --- | |
| sudo mv /usr/lib/nvidia-384/libEGL.so.1 /usr/lib/nvidia-384/libEGL.so.1.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To convert dts file into dtb | |
| <kernel-source>/scripts/dtc/dtc -I dts -O dtb <dts_file> -o <dtb_file> | |
| # To convert dtb to dts | |
| <kernel-source>/scripts/dtc/dtc -I dtb -O dts <dtb_file> -o <dts_file> | |
| # Both of above commands are using dtc built with linux kernel source. | |
| # However you can also use dtc binary comes with ubuntu packages. For this you | |
| # need to install following package: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Incase you are interested to find out docker short, full id, hostname and ip address | |
| # of the running container, execute following commands from inside of your container | |
| # To find out docker container id (short form) | |
| DOCKER_ID=`cat /etc/hostname` | |
| echo $DOCKER_ID | |
| # To find out docker container host name using /etc/hosts | |
| HOST_NAME=`grep $DOCKER_ID /etc/hosts | sed 's/\s/\n/g' | tail -1` | |
| # - grep: search for the line having docker id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Commands are tested on Ubuntu 14.04 | |
| # | |
| # Issue following command to verify which GCC version is installed | |
| gcc --version | |
| --- OR --- | |
| g++ --version | |
| gcc (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Commands are tested on Ubuntu 14.04 | |
| # | |
| # Install the python3 as Ubuntu 14.04 comes with Python2 | |
| sudo apt-get update -y && \ | |
| sudo apt-get install python-pip python3 python3-pip | |
| # Let's manage two versions |