ofxDSHapVideoPlayer (Windows)


#21

I’ve uploaded it to wetransfer (~77mb apologies but I didn’t want to tamper with it in any way)
https://we.tl/vhWBL3BaRG

I looked into this because I thought it might be the reason but according to ffmpeg its rgb0 which suggests it has another channel but the videoSize is correct (960 * 540 * 3) so I don’t think there is an alpha channel. At any rate, the sample video that does work also shows as being rgb0 on ffmpeg too!

I tried encoding a different video into Hap Alpha to see if somehow that would fix it but no luck


#22

Hi, I have been trying this addon and performance seems great, thanks for the hard work. I have been testing with a 4K hap encoded AVI, it works fine for me in windows media player and it plays very smooth with the addon in OF, however there is a lot of colour banding when I play back in OF vs when I use windows media player.

The video is rendered clouds with a lot of detail and small changes in colour gradient. I get the colour banding an moire whether I play pix for pixel (my screen is less than 4k) or if I scale to fit my screen - even with a nice easy 1/4 res.

I encoded the file from proress with adobe media encoder.

Any ideas where the degradation could come from?


#23

@fresla,

sorry for the late response. i’m not 100% sure where the quality degradation comes from–it could either be OpenGL’s decompression of DXT images or the DirectShow playback.

the best way to test if it’s an issue with the OF implementation (Direct Show) would be to save a particularly problematic frame as a still image, then export to a DXT file, then use OpenGL’s DXT display functionality to decompress and draw the image.

https://www.opengl.org/wiki/S3_Texture_Compression

you’ll find the code to display DXT images in the HAP addon. reach out if you have any other questions.

oh–another thing to test is whether or not you’re using snappy compression in addition to DXT (see your export settings in Adobe Media Encoder). using snappy could lead to more artifacts.

you can also try using the high quality HAP codec and see if there are any improvements.

hope that helps!


#24

Hey @oscarw, sorry I didn’t respond. I didn’t get it working and ended up with an entirely different solution. Did you find anything else?


#25

Thanks, Jeremy. I ended up with a different solution, but I’m not sure where the crash was happening. Were you able to see anything from the file that Oscarw sent? I’m away from that system, but I’ll see if I can find out where it was crashing.


#26

hi @ptterb, i did just push one fix that was allowed files that whose encoding did not include the total frame size to be playable. this worked (sometimes?) for files that were created using mpegstreamclip. but it sounded like the problem you were experiencing–with null pointer exceptions–was different. feel free to share that problematic file.


#27

awesome! you save me !! a lot!
with this DSHap codec, I can save CPU usage!


#28

Hi @ptterb, apologies for the slow response. Jeremy was great and did the fix which meant I could use it with files from mpegstreamclip.

On the off chance if’s useful for anyone else I ended up converting them all with Adobe Media Encoder first from .mov with hap encoding into .mov with no hap encoding and then into .avi with the hap codec because if I tried it without the intermediate step it still wasn’t happy.


#29

Hello,
I am having a hard time converting my videos to Hap Alpha AVI files.
My input is Animation MOV files with RGBA.

  • Using Adobe Media Encoder my video doesn’t have Alpha channel, just a black background on OF
  • Using MpegStreamClip my video doesn’t play on OF
  • Using ffmpeg my video doesn’t play on OF

Any clue to have a good process for converting Animation Mov videos with alpha channel to Hap Alpha AVI?

Thanks a lot,

Benjamin


#30

@I33N,

In Adobe Media Encoder, are you specifying that the file be encoded with HAP Alpha? There are 3 HAP codecs and HAP Alpha is the only one that supports alpha channels.

It would also be helpful to know if files without transparencies working for you.

Thanks,

Jeremy


#31

I’m trying to get this plugin to work with x64 compiler, but I get the following error

ofxDSHapVideoPlayer.obj : error LNK2019: unresolved external symbol gluErrorString referenced in function "public: virtual bool __cdecl ofxDSHapVideoPlayer::load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?load@ofxDSHapVideoPlayer@@UEAA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>bin\ofxDSHapVideoPlayerExample_debug.exe : fatal error LNK1120: 1 unresolved externals

any hints? :slight_smile:


#32

Hello @haelbichalex ,

I am getting the same error. Did you manage to get it work?

Thanks!