View Single Post
Old 20th Jul 2011, 6:23 pm   #75
Kat Manton
Retired Dormant Member
 
Kat Manton's Avatar
 
Join Date: Jul 2005
Location: West Yorkshire, UK.
Posts: 1,700
Default Re: Simple memory card player idea

Just as an illustration of the sort of things ffmpeg can do (this doesn't do what you want); from one of many scripts I have lying around:
Code:
#!/bin/sh

nice -n 10 ionice -c3 ffmpeg \
-i "$1".mpg -flags ildct+ilme -top -1 \
-vf "crop=0.75*in_w,format=gray,scale=504:376" -aspect 235:189 \
-vcodec libx264 -vpre baseline -vpre fast -crf 28 \
-acodec copy \
-alang eng -vlang eng \
-threads 0 -y \
-f matroska "$1"BW.mkv
That crops the middle 4:3 chunk from a 16:9 .mpg movie (of any resolution), converts it to greyscale, scales it to 504 x 376, re-encodes it with H.264 then muxes the audio (copied unchanged) and video into a matroska container (without hogging my CPU or disk I/O; 'nice'/'ionice' before the command.) I put these lengthy commands in simple scripts to save typing the whole mess out every time. It's simple, honest...

Kat
Kat Manton is offline