Script to convert videos for viewing on Ubuntu Touch
-
Hello I share this script to run it on the PC if anyone can use it.
The script in this case converts all mp4 and mkv files in the folder where you run it to an Ubuntu Touch readable mp4. The script does not delete the originals, it will put them in the Converted_videos folder at the same level.
#!/bin/bash mkdir Converted_videos for i in *.mp4 do withoutExtension=$(echo "$i" | cut -f 1 -d '.') ffmpeg -i "$i" Converted_videos/"$withoutExtension".mp4 done for i in *.mkv do withoutExtension=$(echo "$i" | cut -f 1 -d '.') ffmpeg -i "$i" Converted_videos/"$withoutExtension".mp4 done
I also share the original entry in Spanish
https://elcondonrotodegnu.wordpress.com/2024/05/28/my-scripts-v-convertir-videos-para-poder-verlos-en-ubuntu-touch-o-en-reproductores-no-compatibles/