Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: pbfy0 on March 11, 2014, 10:02:05 pm

Title: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 11, 2014, 10:02:05 pm
Nvid is a video player for the Nspire. It is not the first such project, but it is unique in that it uses vp8 video. This allows long videos to be stored with a relatively small file size and good quality, although it results in somewhat slow playback.

Nvid supports both the Nspire CX, in full color, and the Touchpad/Clickpad in grayscale.

One example video is included, sintel.ivf.tns. To create your own videos, drag any video onto wrapper.bat in the "converter" folder. This creates a file called output.ivf.tns that can be transferred to the calculator.

Nvid does not have a file browser, so you need a version of ndless that supports file association. Run nvid.tns once to install the file association. After that, you should be able to open an ivf file and have it play.

Download here:
https://github.com/pbfy0/nvid/releases/download/v1.1/nvid.zip (https://github.com/pbfy0/nvid/releases/download/v1.1/nvid.zip)
Spoiler For File format details:
The file format is 320x240 YUV420P vp8 IVF. Any file of that format should work; you don't need to use the encoder.
Title: Re: nvid - Compressed video player for the Nspire
Post by: Hayleia on March 12, 2014, 02:08:38 am
I don't know about vp8-encoded videos so I'll ask questions.
Is it lossless ?
Is the compress ratio better than the one used in nspiremovieplayer (sorry, I can't give you a link, they are all broken on Omnimaga for the moment and I can't use Google to find the topic) ?
Title: Re: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 12, 2014, 08:28:56 am
The compression is lossy. It plays movies that are about 1.5 megabytes per minute of video, compared to 4 for nspire movie player. The quality is also better.
Title: Re: nvid - Compressed video player for the Nspire
Post by: Legimet on March 12, 2014, 08:43:56 am
Looks cool. VP8 is the encoding used in Google's WebM, right?
Title: Re: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 12, 2014, 11:50:02 am
Yes, although the player doesn't actually use the Webm container.
Title: Re: nvid - Compressed video player for the Nspire
Post by: Hayleia on March 12, 2014, 03:08:53 pm
Well lossy and more compressed than nspire movie player, but is it less lossy than nspire movie player ? :P
And I'll try that, but could you make screenshots or videos of it in action for the lazy ones ones who don't have their calc at immediate availability ?
Title: Re: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 12, 2014, 03:19:18 pm
Sorry if I was unclear:
Title: Re: nvid - Compressed video player for the Nspire
Post by: Hayleia on March 12, 2014, 03:47:15 pm
Ok, I got it :)

And I just tried it, indeed, quality is really great seeing how little space it uses. I got a full video clip in 7Mo only :D
However, it plays a bit laggy :(

And you should include a readme, I had to open your bat file to see what it does and understand what I have to do :P
You could also say that "ivf" is the extension you are using and that you must add in the cfg.

But great work overall ! :)
Title: Re: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 12, 2014, 03:47:57 pm
I thought it added the association automatically...
Title: Re: nvid - Compressed video player for the Nspire
Post by: Hayleia on March 12, 2014, 03:50:28 pm
Oh, sorry, I forgot to read the first post again before trying x.x
But yeah, automatic installation is a thing you could say in the readme too, because some people who will download without reading that post (they can have heard of it from another website who gave the link without giving a description).
Title: Re: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 12, 2014, 03:52:39 pm
I know, it is kind of slow. I have a few ideas for optimizations, but i'm not sure how much effect they will have. The README is a good idea, too.
Title: Re: nvid - Compressed video player for the Nspire
Post by: kevinkore3 on March 12, 2014, 06:20:58 pm
Will the speed be better if the fps is reduced? I think this uses 24 fps while nspire movie player does 15 fps.
Title: Re: nvid - Compressed video player for the Nspire
Post by: pbfy0 on March 12, 2014, 06:24:18 pm
Well, if the fps is reduced, it will play closer to the correct speed. However, it won't increase the framerate on the calculator; that will stay low.
Title: Re: nvid - Compressed video player for the Nspire
Post by: DJ Omnimaga on March 12, 2014, 11:16:32 pm
I'll have to give this a try at one point, hoping I can use it on this computer.
Title: Re: nvid - Compressed video player for the Nspire
Post by: Hayleia on March 13, 2014, 10:15:09 am
I am personnally too lazy to open a command prompt, and I am too lazy to edit the bat to change the input file and the output file names. What I want is just to drag and drop the file and have an output with the right name.
So I edited the wrapper.bat file and replaced the ".\ffmpeg ..." line with this one (basically, just change the end):
.\ffmpeg.exe -i "%1" -r 24 -vcodec libvpx -vf "scale='if(gt(a,4/3),320,-1)':'if(gt(a,4/3),-1,240)',pad=320:240:(320-in_w)/2:(240-in_h)/2" -f ivf "%1".ivf.tns

I just wanted to share in case other people are as lazy as me, or if you want to put this in your final release :)
With this, you could also rename the wrapper "drag over me.bat" or something.