Search found 130 matches

Go to advanced search

by mangokm40
10 Mar 2022 18:06
Forum: Development around libVLC
Topic: linking against vlc with the newest version 3.0.16
Replies: 3
Views: 625

Re: linking against vlc with the newest version 3.0.16

It's been a while since I looked at this. I think I wound up defining 'ssize_t' as 'SSIZE_T' for my VS2017 compile/link.
by mangokm40
02 Jun 2020 14:42
Forum: Development around libVLC
Topic: Using LibVLC in Visual Studio (C++) 2019
Replies: 2
Views: 2163

Re: Using LibVLC in Visual Studio (C++) 2019

I'm a neophyte. I'm posting this in case it matters to you.

VS 2017 has a SSIZE_T (capital letters) defined in basetsd.h. It is defined as LONG_PTR, which is a long long in my x64 project.
by mangokm40
30 Dec 2019 14:16
Forum: Development around libVLC
Topic: Extract art from media through libvlc
Replies: 3
Views: 1259

Re: Extract art from media through libvlc

I mentioned this in a previous thread. In Windows, I use the call to libvlc_media_get_meta() with "libvlc_meta_ArtworkURL". For ".mp3" files, this gives me a string that starts with "file:///". This string gives me the local path (ie: c:/folder/...). However, for "...
by mangokm40
10 Dec 2019 18:39
Forum: Development around libVLC
Topic: Get track+media position when playing m3u
Replies: 8
Views: 1291

Re: Get track+media position when playing m3u

"libvlc_media_list_player_play_item_at_index(media_list_player, /* previously saved playlist item id */);
libvlc_media_player_set_position(media_player, /* previously saved position (0 to 1.0) */);"

Might you be setiing position b4 media is playing?
Are you listening for playing event?
by mangokm40
04 Oct 2019 22:06
Forum: Development around libVLC
Topic: media_player_add_slave does not show SRT subtitle
Replies: 5
Views: 1058

Re: media_player_add_slave does not show SRT subtitle

In case it helps...
I've seen multiple subtitle files, for different languages, titled like this:
nameofmovie.mp4
nameofmovie.en.srt
nameofmovie.fr.srt
nameofmovie.es.srt
VLC then shows the language (English, French, Spanish) as the name of each subtitle.
by mangokm40
19 Mar 2019 12:50
Forum: Development around libVLC
Topic: How can I mute the video in MFC vc++ ?
Replies: 11
Views: 983

Re: How can I mute the video in MFC vc++ ?

libvlc_audio_get_mute will return -1 if there is no audio output. My point was merely to reply to this answer to the OP: "... can you try to issue your command after a libvlc_MediaPlayerESAdded event" I wanted to let him/her know that I have tried using that event. In my case, I create th...
by mangokm40
18 Mar 2019 14:03
Forum: Development around libVLC
Topic: How can I mute the video in MFC vc++ ?
Replies: 11
Views: 983

Re: How can I mute the video in MFC vc++ ?

// create the VLC instance vlcInstance = libvlc_new(argc, args); ...error chk... // create a VLC media player object vlcPlayer = libvlc_media_player_new(vlcInstance); ...error chk... // Get event manager for the player vlcEventManager = libvlc_media_player_event_manager(vlcPlayer); // docs claim no ...
by mangokm40
15 Mar 2019 19:18
Forum: Development around libVLC
Topic: How can I mute the video in MFC vc++ ?
Replies: 11
Views: 983

Re: How can I mute the video in MFC vc++ ?

"@mangokm40, could you send your code?"

Are you looking for code fragments, or a working sample? If the latter, I will have to work on one.
by mangokm40
15 Mar 2019 17:31
Forum: Development around libVLC
Topic: How can I mute the video in MFC vc++ ?
Replies: 11
Views: 983

Re: How can I mute the video in MFC vc++ ?

When I updated my crap to use libvlc 3.0, I couldn't find the correct event for this. In my case, I was trying to 'get_mute', instead of 'set_mute'. I tried "libvlc_MediaPlayerESAdded", without success. The call to "libvlc_audio_get_mute()" would fail when responding to that even...
by mangokm40
04 Feb 2019 14:49
Forum: Development around libVLC
Topic: getting art with libvlc_meta_ArtworkURL
Replies: 5
Views: 548

Re: getting art with libvlc_meta_ArtworkURL

Thanks for taking the time to respond. It's always nice (& rare) when I didn't mess up somewhere. :)
by mangokm40
25 Jan 2019 17:26
Forum: Development around libVLC
Topic: getting art with libvlc_meta_ArtworkURL
Replies: 5
Views: 548

Re: getting art with libvlc_meta_ArtworkURL

Thanks for the link.

Yes. This is with 3.0.6 libvlc.
by mangokm40
22 Jan 2019 17:27
Forum: Development around libVLC
Topic: getting art with libvlc_meta_ArtworkURL
Replies: 5
Views: 548

Re: getting art with libvlc_meta_ArtworkURL

"I notice the art is still copied to: %APPDATA%/Roaming/vlc/art/artistalbum/<ArtistName>/<AlbumName>"

Sorry! The art is only copied to %APPDATA% when I play the .flac file in VLC. I guess the code that does this is not part of libvlc.
by mangokm40
18 Jan 2019 19:31
Forum: Development around libVLC
Topic: getting art with libvlc_meta_ArtworkURL
Replies: 5
Views: 548

getting art with libvlc_meta_ArtworkURL

I've been using "libvlc_meta_ArtworkURL()" to display the art embedded in '.mp3' files. The function returns a "file:///" MRL. I had not used '.flac' files until today. When I call the function for these files, it returns an MRL like "attachment://picture0.jpg". I notic...
by mangokm40
03 Dec 2018 14:34
Forum: Development around libVLC
Topic: "libvlc_audio_set_volume" problem with VLC 3.0+
Replies: 8
Views: 1945

Re: "libvlc_audio_set_volume" problem with VLC 3.0+

If I remember correctly (rare), with 3.0.x, there were changes in the audio code. Since VLC 3, when my program runs, an application shows up in my volume mixer. When I change the volume from code, that volume is changed. If I change the volume from my Windows mixer, the volume in my application is c...
by mangokm40
22 Jun 2018 19:34
Forum: Development around libVLC
Topic: Problem when including "vlc.h" file to c++ win32
Replies: 8
Views: 2594

Re: Problem when including "vlc.h" file to c++ win32

Just add following type definition before line 368 of libvlc_media.h typedef unsigned int ssize_t; I believe that is wrong. "ssize_t" is supposed to be a "size type" that allows for an error value (-1). The comment in libvlc_media.h (#361) says the function returns "-1 on n...
by mangokm40
07 Mar 2018 20:50
Forum: Development around libVLC
Topic: libVLC api: seek, filters, etc
Replies: 3
Views: 1080

Re: libVLC api: seek, filters, etc

Does the function "libvlc_video_set_scale()" not do the "zoom" that you need? I don't think Crop is the same as zoom. I use "libvlc_video_set_crop_geometry()" as shown in these examples: libvlc_video_set_crop_geometry(vlcPlayer, "128+0+0+0"); // crop 128 pixel...
by mangokm40
26 Feb 2018 14:56
Forum: Development around libVLC
Topic: snapshots in jpeg-format with libvlc
Replies: 1
Views: 807

Re: snapshots in jpeg-format with libvlc

I am not a good source of information. However, a long time ago, I found this: https://forum.videolan.org/viewtopic.php?t=53245 Because of this, I am doing the conversion in my code AFTER the call to libvlc_video_take_snapshot(). I just checked the source for 3.0.0. In file "src/video_output/vi...
by mangokm40
14 Feb 2018 18:11
Forum: Development around libVLC
Topic: snapshot application
Replies: 5
Views: 912

Re: snapshot application

I am using VS C++ and snapshot is working like this:
int rc = libvlc_video_take_snapshot(vlcPlayer, 0, path, width, height);

For details, you can look here: https://www.videolan.org/developers/vlc ... b2d5a59143

Good luck! :)
by mangokm40
14 Feb 2018 17:32
Forum: Development around libVLC
Topic: Delay in audio changes using libvlc 3.0 rc5
Replies: 8
Views: 721

Re: Delay in audio changes using libvlc 3.0 rc5

Doubt this will be useful to anyone, but.... The delay in 3.0 happens when I have "caching" command-line settings. I just tested with/without "--file-caching=3000" and that makes the delay occur when changing audio values. Note this doesn't happen in 2.2.x. In fact, I had forgott...
by mangokm40
12 Feb 2018 21:10
Forum: Development around libVLC
Topic: snapshot application
Replies: 5
Views: 912

Re: snapshot application

I don't know if this helps, but in C, "libvlc_video_take_snapshot()" lets you select the location/filename.
I believe it only stores png format however. You'd have to convert after capture (I think).
by mangokm40
23 Jan 2018 21:20
Forum: Development around libVLC
Topic: Delay in audio changes using libvlc 3.0 rc5
Replies: 8
Views: 721

Re: Delay in audio changes using libvlc 3.0 rc5

I made a simple project and DID NOT get the weird delay. Sorry to have wasted your time. My best guess is a problem with event handling, since I did none in the simple project. Perhaps there's some updates in the event firing in version 3.0 and I have to update my handlers. Thanks (again) for your t...
by mangokm40
22 Jan 2018 15:41
Forum: Development around libVLC
Topic: Delay in audio changes using libvlc 3.0 rc5
Replies: 8
Views: 721

Re: Delay in audio changes using libvlc 3.0 rc5

Do you force a special audio output? I don't know how to do that. :) I don't think I'm providing enough information for anyone to help me. I'll just create a simple project. If the problem happens there, I will post the code. I found it perplexing because my code didn't change. I just linked libvlc...
by mangokm40
17 Jan 2018 20:45
Forum: Development around libVLC
Topic: Delay in audio changes using libvlc 3.0 rc5
Replies: 8
Views: 721

Re: Delay in audio changes using libvlc 3.0 rc5

"So, it works in VLC but not in libVLC? (in 3.0-rc5)"

Correct. To be clear, it still works. It just has a 'delay' that doesn't happen in vlc 3.0-rc5 or in libvlc 2.2.x.

I was just wondering if anyone else had gotten it. My code is the same as with 2.2.x.

Thanks
by mangokm40
09 Jan 2018 20:56
Forum: Development around libVLC
Topic: Delay in audio changes using libvlc 3.0 rc5
Replies: 8
Views: 721

Delay in audio changes using libvlc 3.0 rc5

My issue is a small delay when making audio changes such as volume, mute, or audio track. The change takes almost a second to occur. This delay is NOT happening in the vlc rc5 executable. It also doesn't happen with libvlc 2.2.x. I'm just wondering if anyone else has seen this. It's most annoying wh...

Go to advanced search