TinyCircuits Forum

TinyCircuits Products => TinyTV & Tiny Video Player => Topic started by: NatetheMac on October 11, 2024, 07:58:45 AM

Title: TinyTV2 encoding parameters - Handbrake?
Post by: NatetheMac on October 11, 2024, 07:58:45 AM
Just purchased a couple of TinyTV2s as gifts and was disappointed to learn the TinyTVConverter app (neither 1.0.5 nor 1.0.1b) would launch on my 10.14.6 Mac OS.

I've got both Handbrake (and ffmpegX) installed and wanted to do some batch converting (without the terminal, if possible).  I also wanted to make the most of the new TinyTV2s increased 216x135 resolution over the original TinyTV (which I have seen shared in a prior forum topic).

Can anyone share the TinyTV2 settings I should use in Handbrake? 

Thanks!
Title: Re: TinyTV2 encoding parameters - Handbrake?
Post by: ang-tinytv on June 18, 2025, 06:22:37 PM
Hello, I was wondering if you ever worked this out and what you did for this? I am also looking for a way to convert my videos (also on a Mac) to the specific AVI format that is needed for the TinyTV and would appreciate any info you can give.

Thank you!  :)
Title: Re: TinyTV2 encoding parameters - Handbrake?
Post by: CocoJacksVille on December 03, 2025, 07:09:02 AM
@NatetheMac
@ang-tinytv

I'm using HandBrake to convert my videos from MKV to MP4 first, with a resolution of 216 × 134 pixels, a variable bitrate, constant quality set to RF 20, and the audio track set to AAC Mono at 128 kbps. After that, I convert the file with FFmpeg using the following terminal command on macOS:

ffmpeg -i input.mp4 \
  -c:v mjpeg -pix_fmt yuv420p -r 24 -s 210x135 \
  -c:a pcm_u8 -ar 10000 -ac 1 \
  output.avi

What works even better for me is adding the quality parameter (-q:v) and setting it to 1, which noticeably increases overall sharpness. For most videos, setting it to 2 should be fine as well. Also there is a volume parameter (-af "volume=[val]dB")  which might come in handy:

ffmpeg -i input.mp4 \
-c:v mjpeg -q:v 1 -pix_fmt yuv420p -r 24 -s 210x135 \
-c:a pcm_u8 -ar 20000 -ac 1 -af "volume=2dB" \
output.avi

Interestingly, setting the audio sample rate to 20 kHz works just as well as 10 kHz, and my TinyTV 2 still plays it without any issues. I thought higher sample rates weren't supported, but it seems like they are!