What sound formats does Sifteo support? - cubes

I'm trying to play some sounds on my cubes but no luck
I have a cheers.wav in my /assets/sounds
and i'm calling it like this:
Sound cheers = Sounds.CreateSound("cheers");
cheers.Play(1,0);
changing the name throws an exception in the CreateSound() Method, so I know its loading it

They are wav and mp3, although some wav's did not work for me, mp3 works fine

Related

Globbing a bunch of .pkl files into one, then converting to .fbx (on Windows)

I'm experimenting with the beautiful frankmocap, feeding a video and getting a quite accurate hands and body tracking. This tool also outputs a .pkl file (which I'm not familiar with) for each frame.
I'd like to convert these files into a usable 3D file but 1. I've discovered I can't use glob.h with ffmpeg on Windows and 2. I cant' get them converted in .fbx.
Along with frankmocap, I've tried VIBE but I still end up with the same problem.
Using miniconda3.
I hope someone can help me! Thank you for your time.
Someone has taken a useful script made for VIBE and adapted it to work with FrankMocap keypoints.
The script takes a folder of PKL frames generated by FrankMocap and then uses Blender to animate them into an FBX rig. It doesn't currently include the hands though, which is something I'm currently trying to solve in it myself (and how I found your question).
Link to the script: https://github.com/facebookresearch/frankmocap/files/5750266/fbx_output_FRANKMOCAP.zip

End Part of .WAV file is not converted to .MP3 file

As you can see the in the above image, the end part of the .wav file is not represented in the mp3 file. Here, I am making use of avcodec_decode_audio4() api to decode each packet, and using lame_encode_buffer() api to encode it in mp3 format. Here, I am seeing this issue for MONO streams( 1.wav -> 1.mp3 ). I just wanted to know why is this occuring, even when I am providing all the .wav file content. I am suspecting there is some caching that is happening, due to which I am unable to get whole data into the mp3 file. Any help here would be appreciated.
Add a section of silence at the end of the WAV file then reconvert to mp3

Create a m3u8 file with several qualities using ffmpeg?

I would like to create a m3u8 file like this one using ffmpeg (with all its qualities)
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=590000,RESOLUTION=480x270,CODECS="mp4a.40.2,avc1.77.30",CLOSED-CAPTIONS=NONE
https://videos-f.jwpsrv.com/content/conversions/LOPLPiDX/videos/jumBvHdL-24721146.mp4.m3u8?token=0_5b217886_0x0f48d5705daaf23a9dec01a5ef8298523a0565df
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=4300000,RESOLUTION=1920x1080,CODECS="mp4a.40.2,avc1.77.30",CLOSED-CAPTIONS=NONE
https://videos-f.jwpsrv.com/content/conversions/LOPLPiDX/videos/jumBvHdL-24721151.mp4.m3u8?token=0_5b217886_0xdc0d89087f519e76b149d7524f1ace8b2cde710f
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2050000,RESOLUTION=1280x720,CODECS="mp4a.40.2,avc1.77.30",CLOSED-CAPTIONS=NONE
https://videos-f.jwpsrv.com/content/conversions/LOPLPiDX/videos/jumBvHdL-24721148.mp4.m3u8?token=0_5b217886_0x6bda9f1d380f2a579f3afe5fa771782112210d4a
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=920000,RESOLUTION=720x406,CODECS="mp4a.40.2,avc1.77.30",CLOSED-CAPTIONS=NONE
https://videos-f.jwpsrv.com/content/conversions/LOPLPiDX/videos/jumBvHdL-24721147.mp4.m3u8?token=0_5b217886_0xadf9ee242ffa3ffa30103f2178d9274bd63f0184
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=330000,RESOLUTION=320x180,CODECS="mp4a.40.2,avc1.77.30",CLOSED-CAPTIONS=NONE
https://videos-f.jwpsrv.com/content/conversions/LOPLPiDX/videos/jumBvHdL-24721145.mp4.m3u8?token=0_5b217886_0x7379ef13ee1e9ae13bb015966c2167293eefb451
Does anyone know the magic order? (I use a vps that is under ubuntu)
Thank you in advance for any help

ffprobe fake file safety/mime content checking

Anyone know if ffprobe is safe to use as a method to check the content of a video? I want to determine if someone renames an exe to mp4 or some other video mime and I run ffprobe on it, would the file execute or fail safely without executing the content?
ffprobe should not execute content unless DirectDraw filter would do it itself (which is rather weird thing to think of).
Yet, AFAIK, ffprobe doesnt't produce nice MIME information, especially for not-multimedia-files. format_name/format_long_name are not very good.
For what you're looking for, the best approach is content sniffing described at https://mimesniff.spec.whatwg.org/
I have found that link in this SO question: MIME type for transcoded stream

How to create simple animations in 3gp format?

I am trying to create a simple animation which includes face of a famous character. For example Santa Clause. The face and the lips of the character will act according to the given input message. For example if a string is inputed then the lips of the character will be opened and closed till the end of the string while the given input message is vocalized using a text to speech converter. Moreover if the " :) " is used the character in the animation will smile. How could I do this? I was told that I can create this type of animations using "smill". But this is not convenient for the other purposes therefore I need to use a different method. Could you give me any suggestions?
Not totally sure about if you need only to convert an avi or the like video file to 3gp format, or wish something that involves quite more. If it is the first case, you can try the following free converter :
http://www.videohelp.com/tools/3GP_Converter

Resources