The converter tool uses ffmpeg, the commands it uses are below.
They are basically the same between models, just changing the resolution and increasing the quality on TinyTV 2.
TinyTV 2 (210x135)
TinyTV Mini (64x64)
TinyTV DIY Kit (96x64)
It would be more work to automate the normalize option, but this is the command it uses:
You would run this on the file and parse the max_volume result. A result of max_volume: -1.9 dB means you would use volume=1.8dB in the commands above instead of volume=0.0dB
They are basically the same between models, just changing the resolution and increasing the quality on TinyTV 2.
TinyTV 2 (210x135)
- Contain/LetterboxCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=210:135:force_original_aspect_ratio=decrease,format=yuv444p,pad=210:135:(ow-iw)/2:(oh-ih)/2,format=yuv420p,hqdn3d -b:v 1500k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
- Cover/ZoomCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=210:135:force_original_aspect_ratio=increase,crop=210:135:exact=1,hqdn3d -b:v 1500k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
- ScaleCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=210:135,hqdn3d -b:v 1500k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
TinyTV Mini (64x64)
- Contain/LetterboxCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=64:64:force_original_aspect_ratio=decrease,format=yuv444p,pad=64:64:(ow-iw)/2:(oh-ih)/2,format=yuv420p,hqdn3d -b:v 300k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
- Cover/ZoomCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=64:64:force_original_aspect_ratio=increase,crop=64:64:exact=1,hqdn3d -b:v 300k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
- ScaleCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=64:64,hqdn3d -b:v 300k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
TinyTV DIY Kit (96x64)
- Contain/LetterboxCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=96:64:force_original_aspect_ratio=decrease,format=yuv444p,pad=96:64:(ow-iw)/2:(oh-ih)/2,format=yuv420p,hqdn3d -b:v 300k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
- Cover/ZoomCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=96:64:force_original_aspect_ratio=increase,crop=96:64:exact=1,hqdn3d -b:v 300k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
- ScaleCode Select
ffmpeg.exe -i "in.mp4" -r 24 -pix_fmt yuv420p -vf scale=96:64,hqdn3d -b:v 300k -c:v mjpeg -ac 1 -acodec pcm_u8 -af volume=0.0dB,aresample=10000,aresample=async=1000,aresample=osf=u8,asetnsamples=n=210:p=0 -y "out.avi"
It would be more work to automate the normalize option, but this is the command it uses:
Code Select
ffmpeg.exe -i "in.mp4" -vn -ac 1 -af aresample=10000,aresample=async=1000,asetnsamples=n=210:p=0,aresample=osf=u8,volumedetect -f null /dev/null
You would run this on the file and parse the max_volume result. A result of max_volume: -1.9 dB means you would use volume=1.8dB in the commands above instead of volume=0.0dB