Search found 491 matches

Go to advanced search

by sherington
07 Mar 2021 18:41
Forum: General VLC media player Troubleshooting
Topic: EmbeddedMediaPlayer Won't Allow Warning/Error Dialogs
Replies: 3
Views: 880

Re: EmbeddedMediaPlayer Won't Allow Warning/Error Dialogs

While documentation can always be better I don't agree in this case it's "quite lacking". vlcj even provides a simple example in its test sources showing how to use this dialog API.

Your follow-up question has no solution via the LibVLC API AFAIK.
by sherington
25 Feb 2021 11:38
Forum: General VLC media player Troubleshooting
Topic: EmbeddedMediaPlayer Won't Allow Warning/Error Dialogs
Replies: 3
Views: 880

Re: EmbeddedMediaPlayer Won't Allow Warning/Error Dialogs

The MediaPlayerFactory has a dialogs API for exactly this purpose.

LibVLC will call you back when it needs to display a dialog, but then it's up to you to display a dialog or whatever.

https://javadoc.io/static/uk.co.caprica ... gsApi.html
by sherington
29 Oct 2020 19:36
Forum: Development around libVLC
Topic: What is the best way to know when a track has ended ?
Replies: 5
Views: 494

Re: What is the best way to know when a track has ended ?

Yeah sorry, I translate end reached to finished in my own library. Oops.
by sherington
04 Oct 2020 22:07
Forum: Development around libVLC
Topic: Failed to convert image for snapshot with LibVlc 4.0
Replies: 13
Views: 1556

Re: Failed to convert image for snapshot with LibVlc 4.0

I don't know about this specific problem, I just wanted to mention there's a new native thumbnailer API provided with LibVLC 4.x that might be useful to you, look for e.g. libvlc_media_thumbnail_request_by_time. It's much easier IMO than doing set position and waiting for position changed and snapsh...
by sherington
11 Aug 2020 21:33
Forum: Development around libVLC
Topic: About positioning player
Replies: 2
Views: 404

Re: About positioning player

I see this quite often when using VLC 3.x with my own library that uses LibVLC.

Seeking like that is a LOT better in VLC 4.x, but that's not yet generally available of course.
by sherington
20 Apr 2020 15:36
Forum: Development around libVLC
Topic: Playing RTSP stream at an absolute timestamp
Replies: 6
Views: 2370

Re: Playing RTSP stream at an absolute timestamp

I don't know about playing RTSP streams specifically, but generally you can specify a start time (and end-time or duration if you want too), e.g. from the command line --start-time=30. Or if you use LibVLC, you pass e.g. ":start-time=30" as a media option when you play the media. The value...
by sherington
10 Apr 2020 21:43
Forum: Development around libVLC
Topic: Freeing a libvlc_video_viewpoint_t
Replies: 5
Views: 394

Re: Freeing a libvlc_video_viewpoint_t

Ah, I remember the mailing list discussion but didn't realise this was added back in.

Thanks for the suggestion.
by sherington
10 Apr 2020 19:58
Forum: Development around libVLC
Topic: Freeing a libvlc_video_viewpoint_t
Replies: 5
Views: 394

Re: Freeing a libvlc_video_viewpoint_t

I'm fine with that, thanks, I can call a native free.

It just seemed like maybe it's something that would be better encapsulated, other native API in LibVLC has destroy counterparts that's what prompted my question.
by sherington
10 Apr 2020 19:52
Forum: Development around libVLC
Topic: Freeing a libvlc_video_viewpoint_t
Replies: 5
Views: 394

Freeing a libvlc_video_viewpoint_t

A libvlc_video_viewpoint_t is created by libvlc_video_new_viewpoint(): LIBVLC_API libvlc_video_viewpoint_t *libvlc_video_new_viewpoint(void); IIRC this used to be able to be freed by libvlc_free, but as libvlc_free has been removed what now is the correct thing to do here? Should there be a correspo...
by sherington
13 Oct 2019 20:45
Forum: Development around libVLC
Topic: Streaming into resizable memory buffer
Replies: 7
Views: 841

Re: Streaming into resizable memory buffer

Do you really need to worry about resizing the buffer? When I do stuff like this, I keep the buffer the same size as that reported for the media, and then simply scale the output to fill my window (or texture), preserving aspect ratio. By scaling the output I mean setting some operation on the graph...
by sherington
12 Oct 2019 08:31
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1421

Re: Get track+media position when playing m3u

Probably you need to look at subitems.

So given your current libvlc_media_t (for the m3u with one item), use libvlc_media_subitems to get the subitems (each entry in the m3u will be a subitem).
by sherington
21 Jul 2019 09:29
Forum: Development around libVLC
Topic: IOS - How to swap streams between 2 vlc players
Replies: 4
Views: 1024

Re: IOS - How to swap streams between 2 vlc players

All the streams are playing at the same time? When I did something similar before, not using VLCKit, I wrote a custom layout that let me "focus" one of the streams. The custom layout changed the position and size of the various player panes without doing anything related to the media playe...
by sherington
07 Jul 2019 09:24
Forum: Development around libVLC
Topic: Opengl video output
Replies: 15
Views: 6927

Re: Opengl video output

VLC/LibVLC 4.x, currently in development, has new callbacks for OpenGL. LIBVLC_API bool libvlc_video_set_output_callbacks( libvlc_media_player_t *mp, libvlc_video_engine_t engine, libvlc_video_setup_cb setup_cb, libvlc_video_cleanup_cb cleanup_cb, libvlc_video_update_output_cb update_output_cb, libv...
by sherington
07 Jul 2019 09:19
Forum: Development around libVLC
Topic: Add audio track at run time?
Replies: 1
Views: 524

Re: Add audio track at run time?

Maybe libvlc_media_slaves_add is what you need. It has audio and subtitle types.
by sherington
02 Jul 2019 18:07
Forum: Development around libVLC
Topic: Video format callbacks
Replies: 13
Views: 2023

Re: Video format callbacks

I am no expert on this, but I suppose certain buffer formats might require e.g. aligning to 8/16/32 bit boundaries and that could explain the discrepancies you are seeing. So e.g. if the video height is 500, you'd actually need a buffer height of 504 to hold it (504/8 = 63.0 whereas 500/8 = 62.5). I...
by sherington
01 Jul 2019 19:42
Forum: Development around libVLC
Topic: Video format callbacks
Replies: 13
Views: 2023

Re: Video format callbacks

From a quick look, the only thing I do different is use RV32 format and a pitches value of width*4.

(I'm not saying RV32 is necessary but it was the only useful format I could get to work with the UI toolkit I was using).

You are definitely allocating enough memory for your *3 buffer size?
by sherington
28 Jun 2019 19:19
Forum: Development around libVLC
Topic: Video format callbacks
Replies: 13
Views: 2023

Re: Video format callbacks

What do you want to know? My implementation is deeply integrated in a Java library and I can't just cleanly pull the code out unfortunately.
by sherington
15 Jun 2019 20:01
Forum: Development around libVLC
Topic: jack connect regex question
Replies: 2
Views: 537

Re: jack connect regex question

Did you try and find your device using these other API methods? libvlc_audio_output_list_get libvlc_audio_output_device_enum libvlc_audio_output_device_list_get If you can find your device one of those methods will have the precise device string you need to set when you call libvlc_audio_output_devi...
by sherington
28 Apr 2019 13:01
Forum: Development around libVLC
Topic: Using libVLC ignores disabled hardware acceleration
Replies: 42
Views: 8301

Re: Using libVLC ignores disabled hardware acceleration

Honestly, I'm far from being knowledgeable on OpenGL... Anyway, I said before my implementation is deeply integrated into library code so it's a bit difficult to extract a code snippet. The best I can provide here is some pseudo code showing how I initialise the callbacks and link them to the LWJGL ...
by sherington
21 Apr 2019 11:54
Forum: Development around libVLC
Topic: There is no Qt after Contrib build
Replies: 8
Views: 1580

Re: There is no Qt after Contrib build

A brief foot-note from me, I was simply unable to get VLC 4.x building with Qt from contribs no matter what I tried. What was successful for me ultimately was to download and build the latest Qt source package in some external directory, and set the PKG_CONFIG_PATH to the resulting pkgconfig directo...
by sherington
19 Apr 2019 21:13
Forum: Development around libVLC
Topic: Using libVLC ignores disabled hardware acceleration
Replies: 42
Views: 8301

Re: Using libVLC ignores disabled hardware acceleration

@MikOfClassX What code snippet did you want?
by sherington
19 Apr 2019 21:11
Forum: Development around libVLC
Topic: There is no Qt after Contrib build
Replies: 8
Views: 1580

Re: There is no Qt after Contrib build

Hmm... I had a previous version of Qt installed (for building earlier versions of VLC) and building the newer Qt and QtQuick from the contribs directory worked for me just with just those make commands you used. Anyway hopefully you can get past that, and if so I think the next step to make vlc's bu...
by sherington
19 Apr 2019 10:57
Forum: Development around libVLC
Topic: There is no Qt after Contrib build
Replies: 8
Views: 1580

Re: There is no Qt after Contrib build

I also needed to do this:

Code: Select all

make .qtquickcontrols2
I still don't have myself a working build this way, but this might get you one step further.
by sherington
17 Apr 2019 20:52
Forum: Development around libVLC
Topic: Using libVLC ignores disabled hardware acceleration
Replies: 42
Views: 8301

Re: Using libVLC ignores disabled hardware acceleration

BTW Any success with LWJGL ? If you're asking me, then "yes"! I use my own build of vlc-git, and I have those new video callbacks working very nicely in an LWJGL application (on Linux). I was actually gob-smacked that it worked so easily, I knew next to nothing about OpenGL when I built t...

Go to advanced search