1. Image
ffmpeg -pix_fmts ?
ffmpeg -i ImageSegmentation_threshold_histogram.jpg -f rawvideo -pix_fmt yuv420p ImageSegmentation_threshold_histogram_4032X3024_yuv420.yuv
2. audio
$ ffmpeg -i INPUT.ape output.wav
$ ffmpeg -i INPUT.ape output.mp3
ffmpeg -formats | grep yourEncoder
for mp3, ffmpeg must be built with libmp3lame (https://sourceforge.net/projects/lame)
Example ape to mp3
#!/bin/bash
for oneapefile in $( ls *.ape ); do
BASENAME=`echo $oneapefile |awk -F ".ape" '{print $1}'`
echo item: $oneapefile
echo item: $BASENAME
ffmpeg -i $oneapefile $BASENAME.mp3
done
./configure --enable-libmp3lame