FFmpeg: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 55: Line 55:
* [https://askubuntu.com/questions/323944/ FFmpeg » Ubuntu » Convert WebM to other formats]
* [https://askubuntu.com/questions/323944/ FFmpeg » Ubuntu » Convert WebM to other formats]
* [https://superuser.com/questions/326629/ FFmpeg » Ubuntu » Quieter/Less Verbose]
* [https://superuser.com/questions/326629/ FFmpeg » Ubuntu » Quieter/Less Verbose]
* [https://stackoverflow.com/questions/44510765/ FFmpeg » Ubuntu » GPU Acceleration]
* [https://www.reddit.com/r/IntelArc/comments/1at6gk0/need_help_with_ffmpeg_and_intel_arc_card/ FFmpeg » Ubuntu » Intel ARC GPU]
* [https://trac.ffmpeg.org/wiki/Hardware/QuickSync FFmpeg » Hardware]
* [https://www.ffmpeg.org/ FFmpeg]
* [https://www.ffmpeg.org/ FFmpeg]


Line 67: Line 70:
| valign="top" |
| valign="top" |
* [https://stackoverflow.com/questions/965053/ Linux » Bash » Extract Filename & Extension]
* [https://stackoverflow.com/questions/965053/ Linux » Bash » Extract Filename & Extension]
* [https://www.videolan.org/vlc VideoLAN » Linux » Download]
* [https://www.webmproject.org/code/ WebM » Codec]
* [https://www.webmproject.org/tools/ WebM » Tools]
* [https://www.videolan.org/ VideoLAN]
* [https://www.webmproject.org/ WebM]


| valign="top" |
| valign="top" |

Latest revision as of 02:21, 11 July 2024

echo 'apt-get update;echo;apt list -a --upgradable;apt-get upgrade -y'|sudo bash
echo 'apt-get install -y ffmpeg'|sudo bash

Convert » WebM » MP4

for webm in *.webm;do ffmpeg -v error -i "${webm}" -qscale 0 "${webm%.*}.mp4"; done
for webm in *.webm;do ffmpeg -v error -i "${webm}" "${webm%.*}.mp4"; done

Convert » MP4 » MP3

for mp4  in *.mp4; do ffmpeg -v error -i "${mp4}"  "${mp4%.*}.mp3";  done

Playground

mkdir -p ~/Documents/ffmpeg-playground
     cd  ~/Documents/ffmpeg-playground
for webm in *.webm;do echo ${webm%.*}; done
for webm in *.webm;do echo ${webm##*.};done
ffmpeg -hide_banner -loglevel error -h
ffmpeg -v error -h

for webm in *.webm;do ffmpeg -v error -i "${webm}" -qscale 0 "${webm%.*}.mp4"; done
for webm in *.webm;do ffmpeg -v error -i "${webm}" "${webm%.*}.mp4"; done
for mp4  in *.mp4; do ffmpeg -v error -i "${mp4}"  "${mp4%.*}.mp3";  done

Reference