Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can vlc work on SFML window?  (Read 3623 times)

0 Members and 1 Guest are viewing this topic.

JasonLeon

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Can vlc work on SFML window?
« on: March 15, 2024, 07:24:36 pm »
I tried mciSendString, but it created a new window to play the video.
Besides, I don't quite understand how to install sfeMovies in my project(CMake, CLion)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Can vlc work on SFML window?
« Reply #1 on: March 16, 2024, 10:33:52 am »
I've no idea how VLC can be integrated into other applications.

Have you followed the Getting Started section: https://sfemovie.yalir.org/latest/start.php
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

JasonLeon

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Can vlc work on SFML window?
« Reply #2 on: March 16, 2024, 07:18:06 pm »
I've no idea how VLC can be integrated into other applications.

Have you followed the Getting Started section: https://sfemovie.yalir.org/latest/start.php

I had trouble building sfeMovies. That's why I had to look for some libraries else.

vadax

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Can vlc work on SFML window?
« Reply #3 on: April 06, 2024, 09:06:21 am »
When integrating libVLC with SFML for media playback, you typically need to retrieve the video frames from libVLC and then copy them into an SFML texture to display them in an SFML window. This process involves using callbacks provided by libVLC to access the video frames and then transferring them to an SFML texture for rendering.

kojack

  • Sr. Member
  • ****
  • Posts: 343
  • C++/C# game dev teacher.
    • View Profile
Re: Can vlc work on SFML window?
« Reply #4 on: April 06, 2024, 01:07:16 pm »
I've used OpenCV with SFML, it was pretty easy to get it to do video playback into an SFML texture (only takes about 4 lines of code to get an OpenCV video frame into an SFML texture).

It's only good for video though, no audio.


 

anything