jvolker / Openframe-VLC

Openframe extension to play video and image content via VLC.
2 stars 1 forks source link

no image (black screen but sound) when playing video from youtube and vimeo #1

Open 10001001011010111010 opened 5 years ago

10001001011010111010 commented 5 years ago

Pi 3B+ (2017) Rasbian Buster VLC 3.0.7

Clips tested: https://vimeo.com/andreynep/zeroing https://www.youtube.com/watch?v=8Qn_spdM5Zg

Additional information: 7 inch screen 1024x600 running in portrait mode (rotated 90 degrees) gpu ram at default 64

jvolker commented 5 years ago

I've successfully tested both videos with:


Let's try some more things to see what's causing this.

Can you please try the following things and try again after each step:

Hope any of this helps.

10001001011010111010 commented 5 years ago

> Do you get any errors? Are there any errors in the log file you could post here? I'm totally new to this Raspi world, Openframe is my first project. When would those errors occur? Where would I find this log file?

> Are you able to play any other content? Yes, from the openframe stream most shaders work, some images and the nice stop motion video with the foil runs fine (even it takes some time to load). I hosted some test videos on imgur and dropbox in the native resolution (600x1024), they also run flawlessly with the standard mp4-player in Openframe even with 50 or 60 fps (https://i.imgur.com/6VQAHZd.mp4 or https://i.imgur.com/Gd4UYnb.mp4)

> Is Openframe working fine in general? Are other extensions working? Yes, Raspi boots and autostarts Openframe just fine. I installed the processing extension and tried the examples from the stream but only get a black screen.

> change GPU memory to 256 or 512 MB Tried both with no effect

> on the command line run cvlc https://vimeo.com/andreynep/zeroing Did that, still only sound with black screen. I ended the playback somehow and got back to the console (see screenshot). vlc_console

> try lower resolution content Tried 240p and 480p contend but still no image, only black screen with audio

> try loading the same videos in VLC after logging into/starting x server Both videos (Starwars trailers and the vimeo clip) play fine in VLC when started from the desktop.

> update VLC How would I do that?

I wonder if the problem has something to do with the screen being rotated 90 degrees or with a special (hardware accelerated) renderer one has to choose in VLC.

Thank you very much for your efforts!

10001001011010111010 commented 5 years ago

Addendum: I just downloaded that vimeo clip "Zeroing" in 1080p, uploaded it to dropbox and tried that with the default openframe mp4 player. Played fine as one would expect (screen shows cropped middle part from the 16:9 video).

jvolker commented 5 years ago

with a special (hardware accelerated) renderer one has to choose in VLC

Yeah, maybe. Could you please try to update VLC:

sudo apt-get update
sudo apt-get install vlc

If that doesn't help run cvlc https://vimeo.com/andreynep/zeroing --verbose=2 --file-logging --logfile=~/vlc-log.txt you should then find the log file in your users directory. Please post the content here. I'm not an expert on VLC either, but maybe we can find something in there.

I don't think the rotated screen should have an influence but you could, of course, rotate it back to default and try again.

jvolker commented 5 years ago

I installed the processing extension and tried the examples from the stream but only get a black screen.

This is most likely a different problem. Could you please file another issue in https://github.com/jvolker/Openframe-Processing. Please

10001001011010111010 commented 5 years ago

> Could you please try to update VLC

Did that and - voilà - finally an image! OF-vlc played back all test files without any hickups but the image is not resized/cropped correctly. Tried different fit/aspect/crop options in VLC with no luck. I used this test screen: https://www.youtube.com/watch?v=RdXqKCQzgPY (you find it also in the public OF stream, thought it might be useful for others, too). testscreen_thumb

This here is how it looks in OF-vlc on my frame. The aspect ratio seems correct, but it's not cropped centered and doesn't fill the screen. of_vlc_fullscreen_1

The funny/strange thing is, even when using VLC from the desktop in windowed mode the player shows only that same cropped area and the rest of the 16:9 image is black, which makes absolutely no sense to me. of_vlc_windowed_1

Whatever youtube / vimeo clip I played VLC only showed just that left part of the full frame and I have no clue how to tackle that problem. For some reason VLC seems to be confused by the rotated screen in combination with the display resolution or there is some magic lines missing in config.txt regarding the configuration of the display.

This is how the test screen should look in of-vlc with proper cropping / filling. (default of-mp4 player linked to clip on drop box). of_default_mp4_1

> I don't think the rotated screen should have an influence but you could, of course, rotate it back to default and try again.

Will test this next.

10001001011010111010 commented 5 years ago

> I don't think the rotated screen should have an influence but you could, of course, rotate it back to default and try again.

Rotated to default and of-vlc showed the correct image of_vlc_rotate_0

Tried 90 degree rotation in VLC 3.0.8 on Win10 (64bit) and it cropped and filled the screen properly. win10_vlc_rotate-90

Since that worked as expected I think there's a bug/issue with the Raspi version of VLC when it comes to screen rotation. Maybe you could rotate your Raspi screen by 90 degree and try the test screen in VLC. Maybe you have more luck to get the correct image output.

Thank you!

jvolker commented 5 years ago

Could you please try to update VLC

Did that and - voilà - finally an image!

Great to hear. I'm going to add those update routines to the install script.

Thanks for testing so thoroughly and posting your results here. I've tested with rotated screen and found the same situation. height or width or autoscale are not working either. I agree, it looks like it's mixing up the height and width of the screen resolution.

I've created a bug report and used your images to describe it. Hope that's okay: https://trac.videolan.org/vlc/ticket/23048#ticket

This might be related to this: https://trac.videolan.org/vlc/ticket/22128

10001001011010111010 commented 5 years ago

Thank you! Will look at the processing issue next... ;-)