Home » Technology » FFMPEG Settings / ConversionMatrix used by ivideo-converter Ubuntu developed by – Keshav Bhatt

FFMPEG Settings / ConversionMatrix used by ivideo-converter Ubuntu developed by – Keshav Bhatt

ivideo-converter is application being developed by Keshav Bhatt – the founder and author of armybharti.in and software developer at Ubuntu.com .

these are the ffmpeg conversion matrix used in the application ivideo-converter

Apple Format Conversions

DeviceScreen ResolutionCommand
iPod (Classic / Nano)320×480ffmpeg -i INPUT -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipod.mp4
iPod Touch640×480ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipod.mp4
iPod Touch 4+960×640ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipod.mp4
iPhone640×480ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.iphone.mp4
iPhone 4+960×640ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.iphone.mp4
iPhone 51920×1080ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.iphone.mp4
iPad1024×768ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipad.mp4
iPad 31920×1080ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipad.mp4
Apple Universal1280×720ffmpeg -i INPUT -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.appleuniversal.mp4
Apple TV1280×720ffmpeg -i INPUT -acodec aac -ac 2 -strict experimental -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.appletv.mp4

Android Conversions

base ffmpeg command: -i {input} -y -acodec aac -ab 160k -s {ssize} -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -f mp4 -threads 0 {output}

ManufacturerDeviceScreen Resolution
SamsungGalaxy Y240×320
SamsungGalaxy Mini240×320
SamsungGalaxy Ace320×480
SamsungAdmire320×480
SamsungDroid Charge480×800
SamsungGalaxy S / SII / S Plus480×800
SamsungGalaxy SIII720×1280
SamsungGalaxy Nexus720×1280
SamsungGalaxy Tab600×1024
SamsungGalaxy Tab 10.1800×1280
SamsungGalaxy Note800×1280
SamsungGalaxy Note II1080×1920
SamsungInfuse 4G800×1280
SamsungEpic Touch 4G480×800
HTCWildfire240×320
HTCDesire480×800
HTCDroid Incredible480×800
HTCThunderbolt480×800
HTCEvo 4G480×800
HTCSensation540×960
HTCRezound720×1280
HTCOne X720×1280
MotorolaDroid X854×480
MotorolaDroid X21280×720
MotorolaRAZR960×540
MotorolaXOOM1280×800
SanyoZio480×800
More DevicesSmall (480×320)480×320
More DevicesNormal (800×480)800×480
More DevicesLarge 720p1280×720
More DevicesLarge 1080p1920×1080

Output Formats

Conversion OptionSizeCommand
MP4mp4ffmpeg -i {input} -acodec aac -ab 96k -vcodec libx264 -preset slow -f mp4 -crf 22 {output}
MP3 (audio only)mp3ffmpeg -i INPUT -f mp3 -y OUTPUT
Ogg Theora (video)ogvffmpeg -i {input}-f ogg -vn -acodec libvorbis -aq 60
Ogg Vorbis (audio)oggffmpeg -i {input} -f ogg -vn -acodec libvorbis -aq 60 {output}
H.264 Web HD720p-i {input} -s hd720 -vcodec libx264 -preset slow -crf 24 -acodec aac -ab 96k -ar 44100{output1} ; qt-faststart {output1} {$output2}
H.264 Web SD480p-i {input} -s hd480 -vcodec libx264 -preset slow -crf 24 -acodec aac -ab 96k -ar 44100{output1} ; qt-faststart {output1} {$output2}
WebM HD720p-i {input} -s hd720 -vcodec libvpx -g 120 -lag-in-frames 16 -deadline good -cpu-used 0 -vprofile 0 -qmax 51 -qmin 11 -slices 4 -b:v 2M -acodec libvorbis -ab 112k -ar 44100 -f webm {output1}
WebM SD480p-i {input} -s hd480 -vcodec libvpx -g 120 -lag-in-frames 16 -deadline good -cpu-used 0 -vprofile 0 -qmax 63 -qmin 0 -b:v 768k -acodec libvorbis -ab 112k -ar 44100 -f webm{output1}
DNxHD 1080p Ingest1080p-i {input} -r 23.976 -s hd1080 -vcodec dnxhd -b:v 175M -acodec pcm_s16be -ar 48000{output1}
DNxHD 720p Ingest780p-i {input} -r 23.976 -s hd720 -vcodec dnxhd -b:v 90M -acodec pcm_s16be -ar 48000{output1}
ProRes 1080p Ingest1080p-i {input} -s hd1080 -vcodec prores -profile 2 -acodec pcm_s16be -ar 48000 {output1}
ProRes 720p Ingest780p-i {input} -s hd720 -vcodec prores -profile 2 -acodec pcm_s16be -ar 48000 {output1}
AVC Intra 1080p Ingest1080p-i {input} -s hd1080 -vcodec libx264 -pix_fmt yuv422p -crf 0 -intra -b:v 100M -acodec pcm_s16be -ar 48000 {output1}
AVC Intra 720p Ingest780p-i {input} -s hd1080 -vcodec libx264 -pix_fmt yuv422p -crf 0 -intra -b:v 100M -acodec pcm_s16be -ar 48000 {output1}

Other Devices

Kindle Fire

DeviceScreen ResolutionCommand
Kindle Fire1224×600
Input Video Size > 1024×600
ffmpeg -i INPUT -acodec aac -ab 96k -vcodec libx264 -vpre slow -f mp4 -crf 22 -s 1024x600 -strict experimental OUTPUT
Input Video Size <= 1024×600
ffmpeg -i INPUT -acodec aac -ab 96k -vcodec libx264 -vpre slow -f mp4 -crf 22 -strict experimental OUTPUT

PSP

DeviceScreen ResolutionCommand
PSP320×480ffmpeg -i INPUT -s 320x240 -b 512000 -ar 24000 -ab 64000 -f psp -r 29.97 OUTPUT

 

302 comments .

Govt Jobs By State

Get Jobs By Category


Share Your Thoughts, Queries & Problems With Us Using The Comment Form.
"armybharti.in is best Place To Discus Jobs & Exams."   Download Our Android app

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.