|
Post by wanderson on Oct 29, 2020 17:23:48 GMT -8
Hello!
I'm trying to run the video1.ino script
#include <EEPROM.h> #include <SPI.h> #include <GD2.h>
void setup() { GD.begin(); }
void loop() { MoviePlayer mp;
mp.begin("fun-1500.avi"); mp.play(); }
But I get this error message:
|
|
|
Post by jamesbowman on Oct 30, 2020 12:57:20 GMT -8
Looks like Arduino have changed the SPI interface again!
Have you tried this with the current version of the IDE, 1.8.13?
Thanks.
|
|
|
Post by wanderson on Oct 30, 2020 19:45:30 GMT -8
Looks like Arduino have changed the SPI interface again! Have you tried this with the current version of the IDE, 1.8.13? Thanks. Hi James,
I update to 1.8.2 version and the code work (I had 1.0.5 version)!!!
What's the resolution of AVI file? Can I use MP4 video?
Thanks for your help!
|
|
|
Post by jamesbowman on Oct 31, 2020 7:39:51 GMT -8
Aha, that's good. The videos must be AVIs encoded as MJPEG (motion JPEG). This is the script I use for conversion on Linux, video-convert: github.com/jamesbowman/gd2-assetIt's tested on Ubuntu 18 and 20.
|
|
|
Post by wanderson on Oct 31, 2020 11:05:13 GMT -8
Aha, that's good. The videos must be AVIs encoded as MJPEG (motion JPEG). This is the script I use for conversion on Linux, video-convert: github.com/jamesbowman/gd2-assetIt's tested on Ubuntu 18 and 20. Hi James,
I can not convert....
++++++++++++++++++++++++
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'open.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2018-11-14T00:51:53.000000Z Duration: 00:02:06.43, start: 0.000000, bitrate: 351 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 252 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: creation_time : 2018-11-14T00:51:53.000000Z handler_name : ISO Media file produced by Google Inc. Created on: 11/13/2018. Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default) Metadata: creation_time : 2018-11-14T00:51:53.000000Z handler_name : ISO Media file produced by Google Inc. Created on: 11/13/2018. Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis)) Press [q] to stop, [?] for help [libx264 @ 0x55ce7fcf1480] -qscale is ignored, -crf is recommended. [libx264 @ 0x55ce7fcf1480] width not divisible by 2 (363x272) Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed!
|
|
|
Post by jamesbowman on Oct 31, 2020 12:13:51 GMT -8
OK, there was an obsolete option in the script. Please try again. By the way, the gd2-lib is only for Gameduino. It does not look like that 2.2" shield is a Gameduino. You can buy a Gameduino from Amazon, or from Excamera Labs.
|
|
|
Post by tapierscheisse on Dec 4, 2022 7:19:08 GMT -8
Hi, I just found this thread, as it seems to adress the problem that I am Working on:
I am using hr Gameduino 3, 4,2" with an Arduino Uno. My goal is to have it play videos, which are triggered by an RFID chip. All is well, as long as i use the provided sample Videos. But as soon as I try to use different files, the screen illuminates, but stays black.
To be sure I didn't mess up the code, I went back to the sample scripts of video1. It works with the provided AVI File. So neither a software nor a hardware issue. But again, my own videos fail as discribed before. I tried different ways to vreate the viedeo files, none of wich worked.
The things I tried: - Convert mp4 Video online to avi - resize mp4 videos to 480x270 and a bitrate of 1000 - converted mpeg files with EVE Asset Builder (2.7.1) from Bridgetek to avi. - I used 480 x 272 AND 479 x 270 Size
I found James Bowmen's Python based Vidoe Converter (gd3asset) BUT I can neither make heads or tails out of it. I never used Python, I am a Windows User and in the Windpws command line, i do not find any option to do the Video Conversion...
|
|
|
Post by tftlcdcyg on Dec 5, 2022 14:33:22 GMT -8
You can convert 1920x1080 videos with the asset builder 2.7.1, and convert them to a size and quality suitable for the FT81x graphics chip. But you must adapt the aspect ratio of the video to the proportions of the screen.
The ratio you should keep is: 1080/1920 = 0.5625
The FT81x chip supports a maximum of 800x480 px, in order not to exceed the limits you must convert the video to these dimensions:
(797)(0.5625) = 448.31 px
This is: 797x448 or 797x450 px. It can work very well 455 px in the height, but you have to see how the screen responds, since sometimes failures can occur in the video sequence or the audio.
The gameduno 3 does the job in AVR environments with some limitations, not so much because of the hardware but because of the available libraries. Video playback not only requires speed from the MCU, it also requires good performance on the microSD memory, plus the power demand on the MCU is relatively high.
Don't get me wrong, the gameduino 3 excels at the hardware standards it was designed upon, if we want to get more out of it, we have to go outside the standards for higher performance.
|
|
|
Post by tftlcdcyg on Dec 9, 2022 8:35:25 GMT -8
By keeping the pixel ratio of the base video in the converted video, you should have no problem playing it on your gameduino 3. I have tried using the shield on other platforms. I got the gameduino 3 to play video on a black STM32F407VG board  With minimal modifications to the initial time table settings, it is possible to use screens of a similar size (480x272) as the NHD-4.3"-FT813.  Regarding audio, I have noticed that the 3.5 stereo jacks do not make good contact with the audio input of the screen.
|
|