howto:convert-images
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:convert-images [2024/10/20 21:07] – [3D VR SBS to 2D] Wulf Rajek | howto:convert-images [2025/05/20 11:23] (current) – [lossy conversion of png to jpg] Wulf Rajek | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| </ | </ | ||
| - | ===== lossless changing containers between webm/ | + | ===== lossy conversion of png to jpg ===== |
| + | Converts all png files in the directory recursively to jpg | ||
| + | < | ||
| + | find . -iname ' | ||
| + | </ | ||
| + | |||
| + | ===== png to ico ===== | ||
| + | To create favicon ico files, the following command creates multiple sizes and stores them in the ico file and keeps transparency. Adjust as required.: | ||
| + | < | ||
| + | convert logo.png -define icon: | ||
| + | </ | ||
| + | |||
| + | ===== lossless changing containers between webm/ | ||
| - | webm/ | + | webm/ |
| < | < | ||
| ffmpeg -i file.webm -c:a copy -c:v copy file.mkv | ffmpeg -i file.webm -c:a copy -c:v copy file.mkv | ||
| Line 38: | Line 50: | ||
| #find . -type f -iname ' | #find . -type f -iname ' | ||
| - | #lossless change container mkv, webm, mov -> mp4 | + | #lossless change container mkv, webm, mov, m4v -> mp4 |
| - | find . -type f \( -iname " | + | find . -type f \( -iname " |
| ffmpeg -i " | ffmpeg -i " | ||
| done | done | ||
| Line 217: | Line 229: | ||
| https:// | https:// | ||
| + | |||
| + | https:// | ||
| + | < | ||
| + | ffmpeg -i equirectangular.mp4 -filter:v " | ||
| + | </ | ||
| + | |||
| + | ===== Mono to Stereo MP3 ===== | ||
| + | |||
| + | Conversion using ffmpeg -ac 2 reduces volume by 3db, apparently to keep perceived loudness the same. To maintain the same volume use pan as below. | ||
| + | |||
| + | < | ||
| + | for i in {01..33}; do | ||
| + | ffmpeg -i " | ||
| + | done | ||
| + | </ | ||
howto/convert-images.1729454878.txt.gz · Last modified: by Wulf Rajek