User Tools

Site Tools


howto:convert-images

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:convert-images [2024/10/20 21:07] – [3D VR SBS to 2D] Wulf Rajekhowto:convert-images [2025/01/05 18:28] (current) Wulf Rajek
Line 26: Line 26:
 find . -name '*.png' -type f -exec bash -c 'cwebp -z 9 "$0" -o "${0%.png}.webp"' {} \; find . -name '*.png' -type f -exec bash -c 'cwebp -z 9 "$0" -o "${0%.png}.webp"' {} \;
 #find . -type f -name '*.png' -delete #find . -type f -name '*.png' -delete
 +</code>
 +
 +===== lossy conversion of png to jpg =====
 +Converts all png files in the directory recursively to jpg
 +<code>
 +find . -iname '*.png' | while read i; do mogrify -format jpg "$i" && rm "$i"; echo "Converted $i to ${i%.*}.jpg"; done
 </code> </code>
  
Line 218: Line 224:
  
  
 +https://github.com/paulpaul999/vr-video-notes/blob/main/vr-to-flat/README.md
 +<code>
 +ffmpeg -i equirectangular.mp4 -filter:v "v360=input=hequirect:output=flat:in_stereo=sbs:out_stereo=2d:d_fov=125:w=1920:h=1080:pitch=+5" -map 0 -c copy -c:v h264 -pix_fmt yuv420p flat.mp4
 +</code>
howto/convert-images.1729454878.txt.gz · Last modified: 2024/10/20 21:07 by Wulf Rajek