Search found 38 matches

Go to advanced search

by peppy.player
30 Jan 2024 09:23
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Missing argument --alsa-audio-device
Replies: 4
Views: 1618

Re: Missing argument --alsa-audio-device

It looks like it has ALSA support on 32-bit OS version but doesn't have on 64-bit. I'm not sure why it works this way. The command 'vlc --list' returns much shorter list in case of 64-bit OS.
by peppy.player
30 Jan 2024 03:33
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Missing argument --alsa-audio-device
Replies: 4
Views: 1618

Re: Missing argument --alsa-audio-device

Does it mean that I should recompile VLC manually and include that output plugin?
by peppy.player
29 Jan 2024 08:44
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Missing argument --alsa-audio-device
Replies: 4
Views: 1618

Missing argument --alsa-audio-device

I'm using the latest Raspberry OS Lite Bookworm. VLC was installed by using the command: sudo apt-get install vlc I've got the following error when I was trying to play a testing audio file with output ALSA device 'default': $ vlc --aout=alsa --alsa-audio-device=default test.wav VLC media player 3.0...
by peppy.player
20 Jun 2023 23:23
Forum: Development around libVLC
Topic: Handling m4b chapters using Python binding
Replies: 2
Views: 574

Re: Handling m4b chapters using Python binding

Thank you! I was able to get chapetrs this way after starting the playback: self.player.play() chapters = [] try: descriptions = self.player.get_full_chapter_descriptions(0) for d in descriptions: chapters.append({ "name": d.name, "time_offset": d.time_offset, "duration"...
by peppy.player
17 Jun 2023 19:45
Forum: Development around libVLC
Topic: Handling m4b chapters using Python binding
Replies: 2
Views: 574

Handling m4b chapters using Python binding

Hi,

Is it possible to list audiobook chapters and select a particular audiobook chapter using the Python binding?

Thank you!
by peppy.player
10 Mar 2023 07:15
Forum: Development around libVLC
Topic: How to get codec info using Python binding?
Replies: 5
Views: 767

Re: How to get codec info using Python binding?

Bits per sample are useless. It's almost always 32 since VLC almost always decodes to single precision.

OK, but it's not hard-coded, right? I hope there should be some object in the Python bindings from which it could be fetched.
Thank you!
by peppy.player
09 Mar 2023 03:44
Forum: Development around libVLC
Topic: How to get codec info using Python binding?
Replies: 5
Views: 767

Re: How to get codec info using Python binding?

https://github.com/oaubert/python-vlc/blob/38a90baf1d6c1e9a6131433ec3819766f308612c/generated/3.0/vlc.py#L1114-L1130 Thank you! I was able to get the bitrate using the referenced MediaStats object: media_stats = MediaStats() if self.media.get_stats(media_stats): bitrate = round(media_stats.demux_bi...
by peppy.player
22 Feb 2023 02:10
Forum: Development around libVLC
Topic: How to get codec info using Python binding?
Replies: 5
Views: 767

Re: How to get codec info using Python binding?

^^^ Any Python binding expert here who could answer the question? Thank you!
by peppy.player
12 Feb 2023 23:17
Forum: Development around libVLC
Topic: How to get codec info using Python binding?
Replies: 5
Views: 767

How to get codec info using Python binding?

Hi, Using the Python binding I need to get the codec info about HTTP stream. In the VLC UI it looks like this: https://raw.githubusercontent.com/project-owner/Peppy.doc/master/files/codec-info-1.png Using this Python code: track_info = self.media.get_tracks_info() I can get the following information...
by peppy.player
06 May 2022 22:07
Forum: Development around libVLC
Topic: Streaming - Works from CMD but not from Python
Replies: 12
Views: 2545

Re: Streaming - Works from CMD but not from Python

Never mind, I found the problem - it should be 'sout' not '--sout'. So, this code works: import vlc import time inst = vlc.Instance() url = "https://rockthecradle.stream.publicradio.org/rockthecradle-tunein.mp3" param=[url, "sout=#transcode{acodec=flac}:std{access=http,mux=flac,dst=:8...
by peppy.player
06 May 2022 21:41
Forum: Development around libVLC
Topic: Streaming - Works from CMD but not from Python
Replies: 12
Views: 2545

Re: Streaming - Works from CMD but not from Python

Actually Rémi's right, --sout won't work on any recent libvlc version (sort of since renderer API in libvlc). A media option will work though, by passing the option to `media_new`, because it's no different than what VLC does, but as always it's not "public supported API" and might break ...
by peppy.player
05 May 2022 18:02
Forum: Development around libVLC
Topic: Streaming - Works from CMD but not from Python
Replies: 12
Views: 2545

Re: Streaming - Works from CMD but not from Python

Hmm, the second post in this thread is saying that it works. Though my example which follows that code doesn't actually work. Then it looks like the Python binding for libVLC doesn't support streaming output. Though I was able to use it about 4-5 years ago: https://github.com/oaubert/python-vlc/issu...
by peppy.player
05 May 2022 17:07
Forum: Development around libVLC
Topic: Streaming - Works from CMD but not from Python
Replies: 12
Views: 2545

Re: Streaming - Works from CMD but not from Python

OK, how does the player stream without selecting renderer when I start it from command line?

Code: Select all

vlc --sout=#transcode{acodec=flac}:std{access=http,mux=flac,dst=10.0.0.6:8080} "https://rockthecradle.stream.publicradio.org/rockthecradle-tunein.mp3"
Does it use some default renderer?
Thanks!
by peppy.player
05 May 2022 00:02
Forum: Development around libVLC
Topic: Streaming - Works from CMD but not from Python
Replies: 12
Views: 2545

Re: Streaming - Works from CMD but not from Python

Hi, I've prepared the following code using the example from this thread: import vlc import time inst = vlc.Instance() url = "https://rockthecradle.stream.publicradio.org/rockthecradle-tunein.mp3" param=[url, "--sout=#transcode{acodec=flac}:std{access=http,mux=flac,dst=10.0.0.6:8080}&q...
by peppy.player
31 Aug 2021 16:34
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Issues with DACs on Linux
Replies: 11
Views: 3032

Re: Issues with DACs on Linux

Does it mean that only PulseAudio can set the MMAP mode? Does it also mean that there is the issue in VLC in RW mode and I need to open the bug?
Thanks!
by peppy.player
29 Aug 2021 20:30
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Issues with DACs on Linux
Replies: 11
Views: 3032

Re: Issues with DACs on Linux

I've found that everything works fine when PulseAudio is in use for example in the 'Raspberry Pi OS with desktop and recommended software'. In this case the content of the /proc/asound files is like this: /proc/asound/card2/pcm0p/sub0/sw_params: tstamp_mode: ENABLE period_step: 1 avail_min: 661 star...
by peppy.player
24 Aug 2021 20:37
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Issues with DACs on Linux
Replies: 11
Views: 3032

Re: Issues with DACs on Linux

I use VLC as a default player and it would be great to fix the issue. You mentioned that 'the device driver fails to provide stable enough timestamps'. Is that driver the part of the OS or the part of the VLC? Here is the output from the command 'cat /proc/asound/card2/stream0' for the DAC which has...
by peppy.player
23 Aug 2021 16:59
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Issues with DACs on Linux
Replies: 11
Views: 3032

Re: Issues with DACs on Linux

Why are there up/down sampling messages in the log when I use the following parameters when I start VLC?
--audio-resampler=disable --no-audio-time-stretch
by peppy.player
23 Aug 2021 00:33
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Issues with DACs on Linux
Replies: 11
Views: 3032

Re: Issues with DACs on Linux

Why different DACs work differently? One works without issues with VLC and another with issues. Doesn't VLC use the same device driver for both DACs? Thanks!
by peppy.player
20 Aug 2021 22:55
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Issues with DACs on Linux
Replies: 11
Views: 3032

Issues with DACs on Linux

Hi, I use VLC 3.0.12 on Raspberry Pi 4 runnning Raspberry Lite OS 32-bit. I connect DACs to Pi over USB. So far I tested 3 different DACs and two players: VLC and MPV. - Alien DAC (PCM2702) doesn't have any issues with VLC and MPV players. - Topping E30 and Khadas Tone Board DAC have issues (no audi...
by peppy.player
18 Aug 2020 05:10
Forum: VLC media player for Linux and friends Troubleshooting
Topic: Requesting help on Raspbian for python vlc playing audio -
Replies: 6
Views: 3961

Re: Requesting help on Raspbian for python vlc playing audio -

Hi theodore_dream, I've been using python-vlc for a long time with ALSA and never faced the issues which you described. I install it the same way (with 'sudo' for apt-get): sudo apt-get install vlc sudo apt-get install python3-pip pip3 install python-vlc I use the following startup parameters: --aou...
by peppy.player
15 Aug 2020 06:21
Forum: VLC media player for Linux and friends Troubleshooting
Topic: python-vlc - cannot use streaming
Replies: 0
Views: 161

python-vlc - cannot use streaming

Does anybody know how to make python-vlc working as a streaming server? I described the issue here:
https://github.com/oaubert/python-vlc/issues/105

Thanks in advance!
by peppy.player
15 Sep 2019 03:34
Forum: VLC media player for Linux and friends Troubleshooting
Topic: CVLC executable
Replies: 9
Views: 5802

Re: CVLC executable

This is a workaround rather than the answer to your question. There is no cvlc on Windows either but I was able to run 'vlc' without any garphical window this way:

Code: Select all

vlc -I dummy --dummy-quiet ...other vlc options
This way you can stream without playing file in a graphical window.
by peppy.player
08 Sep 2019 20:41
Forum: Development around libVLC
Topic: Python binding: Player created from binding doesn't work as a streaming server
Replies: 0
Views: 469

Python binding: Player created from binding doesn't work as a streaming server

Hi, If I'm creating player this way: from vlc import Instance instance = Instance("--sout=#transcode{acodec=flac}:std{access=http,mux=flac,dst=10.0.0.6:8080}") player = self.instance.media_player_new() and then trying to play some file I cannot connect to the player as a streaming server. ...

Go to advanced search