|
Post by lightcalamar on Dec 30, 2017 7:28:28 GMT -8
Hello to all. I experimented to put audio to the videos of the new Gameduino 3 shield review. Now the videos have sound. This be the test; You have to modify the library simply with two lines. Locate in GD2.h(line 1344); GD.cmd_playvideo(OPT_MEDIAFIFO | OPT_FULLSCREEN); and replace by; GD.cmd_playvideo(OPT_MEDIAFIFO | OPT_FULLSCREEN | OPT_SOUND); Then you put new line add (after line 945): #define OPT_SOUND 32 Restart IDE Arduino. You need for example a video and an audio file, or transform yours. Use FFMPEG and SoX. Audio files must be mono 4/8 bit IMA ADPCM format or u-Lab, please follow documentation; FT81x Programmer Guide page 170. I leave an example; examples filesUsing SoX convert audio file format (example file .mp3); sox -e ima-adpcm -r 8000 -b 8 myfile.mp3 audio.wav Using FFMPEG, join sound with video; ffmpeg -i fish.avi -i audio.wav -c:v copy -c:a copy fish_aud.avi Connect Gameduino3 headphones output to an amplifier and play file ... Enjoy! P.S. Please exuse my bad english in the video
|
|
|
Post by jamesbowman on Dec 30, 2017 13:29:18 GMT -8
Very nice! Thanks for this.
OK, I have added OPT_SOUND to the GD header file, and updated the library.
|
|
|
Post by DevBen (same guy) on Sept 30, 2018 3:54:54 GMT -8
The example files dont seem to work for me with or without the audio and with the extra code
|
|