Click here to Skip to main content
15,886,919 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Send String/Text to a other window [vb.net / API] Pin
Richard MacCutchan4-Dec-23 22:15
mveRichard MacCutchan4-Dec-23 22:15 
GeneralRe: Send String/Text to a other window [vb.net / API] Pin
Seek514-Dec-23 23:55
Seek514-Dec-23 23:55 
GeneralRe: Send String/Text to a other window [vb.net / API] Pin
Richard MacCutchan5-Dec-23 0:01
mveRichard MacCutchan5-Dec-23 0:01 
GeneralRe: Send String/Text to a other window [vb.net / API] Pin
jschell5-Dec-23 5:12
jschell5-Dec-23 5:12 
AnswerRe: Send String/Text to a other window [vb.net / API] Pin
jschell5-Dec-23 5:15
jschell5-Dec-23 5:15 
AnswerRe: Send String/Text to a other window [vb.net / API] Pin
Gerry Schmitz5-Dec-23 6:30
mveGerry Schmitz5-Dec-23 6:30 
AnswerRe: Send String/Text to a other window [vb.net / API] Pin
Andre Oosthuizen5-Dec-23 8:43
mveAndre Oosthuizen5-Dec-23 8:43 
QuestionLibVLCSharp hosted in mcr.microsoft.com/dotnet/aspnet:6.0 Docker image inside a linux context Pin
etodemerzel30-Nov-23 11:29
etodemerzel30-Nov-23 11:29 
Hello everyone,
I have a case with vlc on my ubuntu container. Indeed, my c# method :

<pre lang="C#">if (File.Exists(video.Path))
{
using (var libVLC = new LibVLC(enableDebugLogs: true))
{
this.logger.LogInformation($"ImageDetectionWorker.StartFramesPredictionVLC : VLC lib initialized")

if (Directory.Exists("/shared-volume/vlc" == false))
{
Directory.CreateDirectory("/shared-volume/vlc")
}

libVLC.SetLogFile($"/shared-volume/vlc/vlc.log";)

var absoluteVideoPath = new FileInfo(video.Path.FullName)

using (var media = new Media(libVLC, absoluteVideoPath, options: "--no-audio --no-xlib --no-sout-audio"))
{
this.logger.LogInformation($"ImageDetectionWorker.StartFramesPredictionVLC : VLC media initialized")

using (var mediaPlayer = new MediaPlayer(media))
{
this.logger.LogInformation($"ImageDetectionWorker.StartFramesPredictionVLC : VLC media player initialized")

mediaPlayer.ToggleMute()


Throw this logs in my container:

info: EigenVectors.PredictionWrite.Api.Workers.ImageDetectionWorker[0] ImageDetectionWorker.StartFramesPredictionVLC : Start to initialize VLC core info: EigenVectors.PredictionWrite.Api.Workers.ImageDetectionWorker[0] ImageDetectionWorker.StartFramesPredictionVLC : VLC core initialized [00007f897c0027e0] main libvlc debug: VLC media player - 3.0.20 Vetinari [00007f897c0027e0] main libvlc debug: Copyright © 1996-2023 the VideoLAN team [00007f897c0027e0] main libvlc debug: revision 3.0.20-0-g6f0d0ab126b [00007f897c0027e0] main libvlc debug: configured with ./configure '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-debug' '--config-cache' '--disable-update-check' '--enable-fast-install' '--docdir=/usr/share/doc/vlc' '--with-binary-version=3.0.20-0+deb11u1' '--enable-a52' '--enable-aa' '--enable-aribsub' '--enable-avahi' '--enable-bluray' '--enable-caca' '--enable-chromaprint' '--enable-chromecast' '--enable-dav1d' '--enable-dbus' '--enable-dca' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gles2' '--enable-gnutls' '--enable-harfbuzz' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-mad' '--enable-matroska' '--enable-mod' '--enable-mpc' '--enable-mpg123' '--enable-mtp' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-sdl-image' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-soxr' '--enable-spatialaudio' '--enable-speex' '--enable-svg' '--enable-svgdec' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vdpau' '--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-x265' '--enable-zvbi' '--with-kde-solid=/usr/share/solid/actions/' '--disable-aom' '--disable-crystalhd' '--disable-d3d11va' '--disable-decklink' '--disable-directx' '--disable-dsm' '--disable-dxva2' '--disable-fdkaac' '--disable-fluidlite' '--disable-freerdp' '--disable-goom' '--disable-gst-decode' '--disable-libtar' '--disable-live555' '--disable-macosx' '--disable-macosx-avfoundation' '--disable-macosx-qtkit' '--disable-mfx' '--disable-microdns' '--disable-opencv' '--disable-projectm' '--disable-schroedinger' '--disable-sparkle' '--disable-srt' '--disable-telx' '--disable-vpx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-dc1394' '--enable-dv1394' '--enable-libplacebo' '--enable-linsys' '--enable-nfs' '--enable-udev' '--enable-v4l2' '--enable-wayland' '--enable-libva' '--enable-vcd' '--enable-smbclient' '--disable-oss' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' '--disable-omxil' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/vlc-3.0.20=. -fstack-protector-strong -Wformat -Werror=format-security ' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/vlc-3.0.20=. -fstack-protector-strong -Wformat -Werror=format-security ' 'OBJCFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/vlc-3.0.20=. -fstack-protector-strong -Wformat -Werror=format-security' [00007f897c0027e0] main libvlc debug: searching plug-in modules [00007f897c0027e0] main libvlc debug: loading plugins cache file /usr/lib/x86_64-linux-gnu/vlc/plugins/plugins.dat [00007f897c0027e0] main libvlc debug: recursively browsing `/usr/lib/x86_64-linux-gnu/vlc/plugins' [00007f897c0027e0] main libvlc debug: plug-ins loaded: 519 modules [00007f897c001ad0] main logger debug: looking for logger module matching "any": 4 candidates [00007f897c001ad0] main logger debug: using logger module "console" [00007f897c0027e0] main libvlc debug: translation test: code is "C" [00007f8984270880] main keystore debug: looking for keystore module matching "memory": 4 candidates [00007f8984270880] main keystore debug: using keystore module "memory" [00007f897c0027e0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 FPU info: EigenVectors.PredictionWrite.Api.Workers.ImageDetectionWorker[0] ImageDetectionWorker.StartFramesPredictionVLC : VLC lib initialized info: EigenVectors.PredictionWrite.Api.Workers.ImageDetectionWorker[0] ImageDetectionWorker.StartFramesPredictionVLC : VLC media initialized info: EigenVectors.PredictionWrite.Api.Workers.ImageDetectionWorker[0] ImageDetectionWorker.StartFramesPredictionVLC : VLC media player initialized info: EigenVectors.PredictionWrite.Api.Workers.ImageDetectionWorker[0] ImageDetectionWorker.StartFramesPredictionVLC : True ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

My Dockerfile :

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
EXPOSE 80

COPY . .
RUN dotnet restore MyProject.csproj
RUN dotnet publish MyProject.csproj -c Release -o out --no-restore

FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build-env /app/out .
RUN apt-get update && apt-get install -y vlc && apt-get install libvlc-dev
ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
ENTRYPOINT ["dotnet", "MyProject.dll"]

I've tried a lot of package to install on the container without any success
AnswerRe: LibVLCSharp hosted in mcr.microsoft.com/dotnet/aspnet:6.0 Docker image inside a linux context Pin
Gerry Schmitz30-Nov-23 15:53
mveGerry Schmitz30-Nov-23 15:53 
QuestionHow to "update" old .NET code to current versions Pin
lewist5730-Nov-23 10:38
lewist5730-Nov-23 10:38 
QuestionRe: How to "update" old .NET code to current versions Pin
Ralf Meier30-Nov-23 11:26
mveRalf Meier30-Nov-23 11:26 
AnswerRe: How to "update" old .NET code to current versions Pin
Gerry Schmitz30-Nov-23 15:44
mveGerry Schmitz30-Nov-23 15:44 
AnswerRe: How to "update" old .NET code to current versions Pin
Richard Deeming30-Nov-23 21:50
mveRichard Deeming30-Nov-23 21:50 
AnswerRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan30-Nov-23 22:09
mveRichard MacCutchan30-Nov-23 22:09 
AnswerRe: How to "update" old .NET code to current versions Pin
lewist571-Dec-23 2:50
lewist571-Dec-23 2:50 
GeneralRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan1-Dec-23 3:34
mveRichard MacCutchan1-Dec-23 3:34 
GeneralRe: How to "update" old .NET code to current versions Pin
lewist571-Dec-23 3:53
lewist571-Dec-23 3:53 
GeneralRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan1-Dec-23 4:27
mveRichard MacCutchan1-Dec-23 4:27 
GeneralRe: How to "update" old .NET code to current versions Pin
Andre Oosthuizen1-Dec-23 22:09
mveAndre Oosthuizen1-Dec-23 22:09 
GeneralRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan1-Dec-23 22:18
mveRichard MacCutchan1-Dec-23 22:18 
GeneralRe: How to "update" old .NET code to current versions Pin
Andre Oosthuizen1-Dec-23 22:59
mveAndre Oosthuizen1-Dec-23 22:59 
GeneralRe: How to "update" old .NET code to current versions Pin
Dave Kreskowiak1-Dec-23 5:18
mveDave Kreskowiak1-Dec-23 5:18 
GeneralRe: How to "update" old .NET code to current versions Pin
jschell1-Dec-23 6:09
jschell1-Dec-23 6:09 
GeneralRe: How to "update" old .NET code to current versions Pin
Gerry Schmitz1-Dec-23 6:57
mveGerry Schmitz1-Dec-23 6:57 
AnswerRe: How to "update" old .NET code to current versions Pin
jschell1-Dec-23 6:23
jschell1-Dec-23 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.