Recent Posts

61
TinyTV & Tiny Video Player / Re: Parameters for ffmpeg conversion
« Last post by RavenWorks on July 30, 2023, 02:51:42 PM »
While I think of it, I might as well document that the other situation that sometimes stymies my ffmpeg conversions is trying to convert a video that completely *lacks* an audio track;  I fix it by first running something like this on the input file:

Code: [Select]
ffmpeg -f lavfi -i anullsrc -i inputfile.mp4 -shortest -c:v copy -c:a aac outputfile.mp4
to add an audio track of silence, and then running the typical tinytv ffmpeg command on this previous command's result.

62
TinyTV & Tiny Video Player / Re: Parameters for ffmpeg conversion
« Last post by RavenWorks on July 30, 2023, 02:50:38 PM »
I was getting the blue "file is invalid" screen (or whatever it says, I forget exactly) on some converted videos.   I eventually narrowed it down to the source files being *not* chroma subsampled, which ffmpeg respects and carries over to the converted files unless you say otherwise;  non-420 video formats are fairly rare in standard video-playback contexts, but you'll run into it if you're rendering out something lossless to be compressed by a separate program, or something like a .PNG image sequence (or a .GIF) that you're asking ffmpeg to turn into a video.
63
TinyTV & Tiny Video Player / Re: Guide for building TinyTV2 firmware?
« Last post by RavenWorks on July 30, 2023, 02:41:07 PM »
The Arduino IDE is telling me there's updates for all three of the copied-in libraries (IRRemote, JPEGDEC, SdFat);  should I update them, or does it need precisely the version it came with?
64
TinyTV & Tiny Video Player / Re: Parameters for ffmpeg conversion
« Last post by Ben Rose on July 25, 2023, 05:25:04 PM »
Thank you for posting those details! Can you let me know what "-pix_fmt yuv420p" fixed for you? Maybe we can integrate it into the app.
65
TinyTV & Tiny Video Player / Re: Guide for building TinyTV2 firmware?
« Last post by RavenWorks on July 25, 2023, 05:23:57 PM »
Wonderful, thank you!  I'll give it a shot soon...
66
TinyTV & Tiny Video Player / Re: Tiny TV Converter app won't open
« Last post by Ben Rose on July 25, 2023, 05:22:35 PM »
Hi- can you let me know what version of MacOS you tested on? We haven't had any recent reports of issues on 12.0.0+, but hopefully we can figure out what is going on.

Thanks,
Ben
67
TinyTV & Tiny Video Player / Re: Guide for building TinyTV2 firmware?
« Last post by Ben Rose on July 25, 2023, 05:20:37 PM »
It's been a little while but we have some instructions at https://github.com/TinyCircuits/TinyCircuits-TinyTVs-Firmware ready for an initial test- let me know how it goes. We might have some missing steps if you're not already a little familiar with the Arduino IDE.

Thanks,
Ben
68
TinyTV & Tiny Video Player / Re: Parameters for ffmpeg conversion
« Last post by RavenWorks on July 25, 2023, 08:13:50 AM »
Assuming you've already installed ffmpeg:  if you've got an input file named IN.MP4, you would open the terminal in the folder that the video file is in, and then type

Code: [Select]
ffmpeg -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 -maxrate 1500k -bufsize 64k -c:v mjpeg -acodec pcm_u8 -ar 10000 -ac 1 "OUT.AVI"
and you can change the bit after -vf according to the suggestions in the earlier post to get different results (like squashing the content, or having letterboxes).

Actually, here's one that I like:

Code: [Select]
-vf "crop=1024:658:112:62,scale=210:135,hqdn3d"
The screen is so tiny that sometimes I like to focus in on just a specific portion of the frame, to make the subject as visible as possible.   This setting takes a 1024x658 region of the original video, that's 112 pixels over and 62 pixels down from the top left corner of the original video.  Obviously that's just the numbers that fit the last video that I did this way, and you'd replace them with whatever works best for the video you're converting, based on measuring a screenshot of the original video.
69
TinyTV & Tiny Video Player / Re: Parameters for ffmpeg conversion
« Last post by standardman on July 23, 2023, 05:44:38 PM »
hi, would you mind explaining to a total noob how to do this?
70
TinyTV & Tiny Video Player / Re: Parameters for ffmpeg conversion
« Last post by RavenWorks on July 23, 2023, 10:37:22 AM »
I'll also toss in here that you'll need a
Code: [Select]
-pix_fmt yuv420p if the source video isn't in that format already.
SMF spam blocked by CleanTalk