![]() |
#106 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I "standardized" on 600x800 7 FPS for eink video. Whatever size audio buffer you settle on should be interleaved every so many frames. The audio should probably precede the video a bit. To play on a DX, there should probably be about a second of audio buffered before the video it belongs to. The buffer should be large enough to avoid dropouts when the video falls behind. Up to a second video lag is allowed before framedropping starts in gmplay, so we need at least one second (plus a couple frames) of audio buffered up. IMHO. Last edited by geekmaster; 07-11-2012 at 03:36 PM. |
|
![]() |
![]() |
![]() |
#107 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Ah, thanks very much.
I thought I was not being clear. So in essence either a) a hand made file: Slice up two seconds of audio - put as header (and any other data you want dumping in there), buffer it, splice in second of video (say), then swap back to audio etc. or b) just get a known format and handle it in that way - i.e higher priority to audio consumption. I like the sound of b) better. One thought: I will try cramming some dummy "audio" through that demo via loading a wave first and swapping it into the buffer, see what results. Start there come to think of it. (I asked the thread to be renamed as you suggested, thanks) Last edited by twobob; 07-11-2012 at 03:45 PM. Reason: Just had a thought |
![]() |
![]() |
![]() |
#108 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
running a strace on aplay does indeed seem to do some dsnoop jiggery-pokery. link here: https://www.mobileread.com/forums/sho...9&postcount=42 I posted the strace on here above. I'll have a shufty around and see if dsnoop is an option when I have alsa playing fully nicely again. Thanks Last edited by twobob; 07-11-2012 at 03:52 PM. Reason: added link for easy ref |
|
![]() |
![]() |
![]() |
#109 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
My video transcoder and player are just a tiny evolutionary step beyond my existing animation demos, designed to be easy to understand and reuse. Rather than designing a new container, a "real" player should just squeeze them into an output "driver" of a standard player (like ffmpeg or mplayer) that can play standard media containers (like MKV). But then of course, my super-simple codec just happens to compress extremely well with with gzip because the 8x8 dithering packs to 8-bit (LZ-friendly) boundaries. A "real" general purpose code may not compress kindle video quite so well. Last edited by geekmaster; 07-11-2012 at 03:57 PM. |
|
![]() |
![]() |
![]() |
#110 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
One that is the evolution of other stand-alone demos, which individually provide the capability to parse either standard media at really low rates and/or specially encoded media at device specific rates. I'm not afraid getting my hands dirty on some "faux gui" work in the medium term. after all there is a video driver for petes sake, putting stuff on the screen is not a problem. I am all for this. I personally would like to see more esoteric uses of the medium - I'm thinking real-time fft (on a 3!) and resulting graphics ![]() Time to get the welding gear out for some wave action |
|
![]() |
![]() |
![]() |
#111 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() ![]() Last edited by geekmaster; 07-11-2012 at 04:07 PM. |
|
![]() |
![]() |
![]() |
#112 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
staggering
Quote:
I see myself as the poor guy giving at the temple, I have almost nothing to give but I'm happy to give it all. I bought the full version of that book in the hopes that there are a few example gems in there for optimised audio crunchery. Read my way through much of the crunchery links you provided. People will be impressed to see a+v running on the 3 (I have a dxg so I can test on that too) I know all the people who saw your early demos around here were mind-blown and giving them access to something they understand - like videos with sound - is the first step to acceptance and uptake. I see your drivers as a genuine way to get all manner of info to the screen and coupled with - audio full duplex, keyboard and touch / gesture support / motion support - it's a goshdamned staggeringly powerful proposal, used correctly. My hats off to you, |
|
![]() |
![]() |
![]() |
#113 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Okay, I ran this on my K3 with no apparent video slowdowns:
zcat clock.gmv.gz|gmvid/gmplay & ./tones -f4000 -Dhw -c2 -v -r16000 -mdirect_write Sound and video playing nicely together (with no black eyes, bloody lips, or skinned knuckles). ![]() Last edited by geekmaster; 07-11-2012 at 04:53 PM. |
![]() |
![]() |
![]() |
#114 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
apparently it wants to be --disable-decoder=amrnb or it refuses to encode stuff. sigh. I'm throwing the kitchen sink in while I am at it, might as well I suppose. All day to get a file I can parse. sigh. lol. |
|
![]() |
![]() |
![]() |
#115 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Now that there is audio, I suppose I should resurrect some of my early algorithmic audio experiments that were done on a SC/MP microprocessor in about 1974 (before sound cards -- only 1-bit output). People at work borrowed all my audio tapes and never gave them back.
![]() People said they were hypnotic and mesmerizing, and they wanted to borrow them so friends and family could hear them. Last edited by geekmaster; 07-11-2012 at 05:37 PM. Reason: typo: here there -> hear them |
![]() |
![]() |
![]() |
#116 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() If you could make a static linked version so it will run on my DX and K5, that would be sweet! ![]() I detest library dependencies. |
|
![]() |
![]() |
![]() |
#117 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
I had "lost" all of the original copies. fortunately mine was available to purchase back! The countless hours of lost work in ones life doesn't bear thinking about ![]() That said, some of the largest things come from the most unlikely of sources so it pays to spread yourself thin ![]() I'm getting there. inch by inch. more demos would be awesome. definately Toppost them Last edited by twobob; 07-11-2012 at 05:09 PM. Reason: tiny details |
|
![]() |
![]() |
![]() |
#118 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
So a bit more testing. What does the overhead of running the audio mean in terms of performance visually? Well, this is the K3 we are talking about so it's not like watching an IMAX but the performance while running the sound comes out at a perfectly acceptable:
861 frames in 149.8 secs = 5.7 FPS Whereas without the sound it weighs in around: 969 frames in 149.8 secs = 6.5 FPS Showing us that a few frames were dropped but meh, it was not perceivable to my eyes thanks to GM's very tidy drop frame code. This gives me enough hope to try and squash some waves through the demo. and possibly - glue - the video code into my audio loop. |
![]() |
![]() |
![]() |
#119 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
do re mi fa so la te do
![]() this is an interesting project: http://hhallgrimur.wordpress.com/code/ And https://github.com/jxxcarlson/sf2sound ================================================== =============== SF2A README: 4/13/2011 ================================================== =============== DESCRIPTION ----------- sf2a is a unix command-line program for creating sound files from text such as moderato: do re mi. might have another look at that at some point. noted here for posterity Also cool is: http://hhallgrimur.wordpress.com/cod...nce=b2b25cb8c2 take file of quadruples (freq, dur, decay, amplitude) as input, produce file of sampled waveform as output Wav. Last edited by twobob; 07-11-2012 at 05:32 PM. Reason: added more cool. |
![]() |
![]() |
![]() |
#120 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Not sure how I missed this post. Understood, In the interim I shall be assassinating the project in my own inimitable style. ![]() |
|
![]() |
![]() |