cDima / Aerial

Aerial Apple TV screen saver for Windows
1.97k stars 181 forks source link

4K Video Support? #144

Open heeroyuyj opened 6 years ago

heeroyuyj commented 6 years ago

high resolution videos from Apple TV 4K is now aviable @ https://sylvan.apple.com/Aerials/2x/entries.json

each video got 2K SDR/HDR and 4K SDR/HDR, and coded with HEVC

im already download those 2K HDR, 4K HDR

Sonartek commented 6 years ago

https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LW_L001_C006_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LW_L001_C006_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LW_L001_C006_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LW_L001_C006_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D008_C010_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D008_C010_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D008_C010_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D008_C010_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A009_C009_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A009_C009_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A009_C009_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A009_C009_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/HK_B005_C011_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/HK_B005_C011_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/HK_B005_C011_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/HK_B005_C011_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C001_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C001_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C001_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C001_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A005_C009_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A005_C009_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A005_C009_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/LA_A005_C009_4K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C005_2K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C005_2K_HDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C005_4K_SDR_HEVC.mov https://sylvan.apple.com/Aerials/2x/Videos/DB_D001_C005_4K_HDR_HEVC.mov

jonathonwpowell commented 6 years ago

They switched the JSON format, so it is going to take a little work to get it to parse correctly. I'll look at it

jonathonwpowell commented 6 years ago

I have a pull request out that should add it to work fairly easily, though if you are impatient you can pull master and build it, from the exe go into Settings > Video Source, put in for the video source https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json then restart

ghost commented 6 years ago

@jonathonwpowell Thanks for this. Would you be able to send me the build with your changes? Something ready to go? Appreciated a ton.

jonathonwpowell commented 6 years ago

@Elkrite Sure, i'll try and remember when I get home

cDima commented 6 years ago

I can link to your version from the main readme if you'd like to provide a 4k version for the audience, since i'm lazily not actively working on the project. :)

On Tue, Oct 3, 2017 at 8:23 AM, jonathonwpowell notifications@github.com wrote:

Sure, i'll try and remember when I get home

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cDima/Aerial/issues/144#issuecomment-333877455, or mute the thread https://github.com/notifications/unsubscribe-auth/AADl3TxGKdWxJWQgPL52KcyDetUtvGjsks5solFhgaJpZM4PbxmJ .

-- Dmitry Sadakov Software Engineer @ Amazon | Seattle, WA sadakov.com | linkedin http://linkedin.com/in/sadakov | github https://github.com/cDima | facebook https://www.facebook.com/sadakov | vk http://vk.com/sadakov +16468531955 | sadakov@gmail.com

ghost commented 6 years ago

@jonathonwpowell Just wanted to remind you about this. Thank you!

jonathonwpowell commented 6 years ago

@Elkrite Here it is, no promises it will work right though. One of my computers won't play 4k videos using WMP for some reason, but it works on the other one. Go here and download the exe and the scr. Put the scr in the usual place, and open the exe and click the settings cog when you open, go to video source, and click the 4k button. You can also test out the full caching on the cache tab. Let me know if you have any issues

sabaatworld commented 6 years ago

does the 4K TV only displays these 9 videos? Or is there any other JSON feed as well? @heeroyuyj can you tell me how you obtained the link to the feed?

jonathonwpowell commented 6 years ago

@cDima created a pull request with an update to the readme for pulling my 4K fork. https://github.com/cDima/Aerial/pull/151

noelhibbard commented 6 years ago

This EXE isn't working for me on Win10 1709. I get a message that says the "This application could not be started. Do you want to view information about this issue?". You can click yes or no. If you click yes it directs you to this URL: https://support.microsoft.com/en-us/help/2715633/shim-errors-for-the--net-framework-version-and-platform-support

6.1 from the master branch of cDima works fine on this same machine.

jonathonwpowell commented 6 years ago

@noelhibbard I'll look into it over the weekend, looks like I may have built it with the wrong settings

jonathonwpowell commented 6 years ago

@noelhibbard Can you try starting the exe with it in the same folder as the .exe.config file?

noelhibbard commented 6 years ago

I had already tried that. No difference.

jonathonwpowell commented 6 years ago

@noelhibbard Tried re-building using a different config. Hopefully this does it (should be in the same spot as before)

noelhibbard commented 6 years ago

Same error. I have a clean VM that is a little outdated (Pre 1709). I will test this version in that VM. Then I will update that VM to 1709 and see if that breaks it. At least that would rule out if it's related to 1709. The most current non-4K build works fine on my machine though.

jonathonwpowell commented 6 years ago

@noelhibbard what version(s) of .net do you have on your machine?

noelhibbard commented 6 years ago

4.7.2556 3.5.30729.4926 2.0.50727.4927 3.0.30729.4926

noelhibbard commented 6 years ago

It works in my VM with only 4.6.1038. So my guess is 1709 upgraded 4.6 to 4.7 which causes your build to not work.

noelhibbard commented 6 years ago

I cloned the temp4krelease and running it in debug. I added a reg entry for JsonUrl with the value: https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json

Now it is at least running but hangs saying WMP can't play the file. Looks like these 4K files can't be played in WMP on a generic Win10 load. I downloaded one of the 4K files manually and then tried to play it on my 1709 load and in my VM that is on 1511 and neither of them will play the 4K files.

Has anyone been able to run this 4K build?

noelhibbard commented 6 years ago

Okay.. I installed K-Lite and now I can play one of the videos in WMP and now the screensaver sort of works. It gives me this error two times but then plays fine: https://i.imgur.com/uLQ5mYz.png

noelhibbard commented 6 years ago

Sorry for the rapid fire posts. Here is my guess on what is happening. Out of the box the 4K build has the Json URL set to the low res URL. The json handling in the 4K build expects a 4K entries.json and when it downloads the lowres version it blows up. If I override the URL in the registry with the 4K URL it works. But then you run into the next problem and that is that WMP can't play the 4K files with a vanilla Win10 install.

I need to follow the code some more to be sure. But regardless there seems to be some dependencies that aren't being met on a generic Win10 load that you apparently have on your Dev machine. Dependencies are always so much fun.

jonathonwpowell commented 6 years ago

@noelhibbard yeah I have tested it on two of my machines now, and one won't play the 4k video. I think it won't be trivial to fix, and Sally the machine it worked on is now gone

rexfm commented 6 years ago

1709 here, same issue with prebuilt app won't run. I tested some of the videos though in WMP.. so far all of the SDR ones work, HDR ones don't. so perhaps filtering for "SDR" will make it work for others?

jonathonwpowell commented 6 years ago

@rexfm Good catch, but I had tried to prevent that by linking to only the SDR ones in the pre-build version. Not really sure how to fix this one if WMP won't play the videos without a large refactor, so unless someone can find a fix for WMP it probably won't happen soon

FantDev commented 5 years ago

I got this one working with one security issue. I could download the mov and play them in wmp fine. However when i ran the .exe, i would get a security error from wmp. Something about the certificate. It looks like windows 10 doesn't trust the apple cert for sylvan.apple.com by default. I had to go to https://www.apple.com/certificateauthority/ and download the Apple Inc. Root Certificate and install it forcing it to go into the Current User\Trusted Root Certification Authorities. Once i did that and rebooted the exe/scr worked fine with the videos i manually downloaded to the cache folder. Hope this helps others if they run into the same issue.

noelhibbard commented 5 years ago

@FantDev, I can confirm this worked for me too!