Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
1728 views
Capturing all frames with VLC scene-filter
I'm attempting to use VLC's `scene-filter` to extract *all* frames from an `mp4` video. The video in question runs at `25fps`, and is precisely `38s` long. In the command line, I ran with options: `--video-filter = scene --start-time = 0 --stop-time = 35 --scene-ratio = 1` I understood (?) that the...
I'm attempting to use VLC's scene-filter to extract *all* frames from an mp4 video. The video in question runs at 25fps, and is precisely 38s long. In the command line, I ran with options: --video-filter = scene --start-time = 0 --stop-time = 35 --scene-ratio = 1 I understood (?) that the scene ratio is the ratio of frames taken from total frames (that is, a ratio of 3 means 1/3 frames are saved). However, of the ~900 frames I'm expecting, I get only about 500 of them. I've tried using 25, -1, and the default scene-ratio values, to no avail. What am I doing wrong? The VLC docs aren't very clear about this.
10GeV (141 rep)
Feb 10, 2021, 07:08 AM • Last activity: Dec 22, 2022, 10:30 PM
1 votes
2 answers
1475 views
RTP Reverse Proxy
I've been trying to make a prototype of a video streaming server before I actually write code for it. So I used VLC to make streaming happen on my server using the following command: cvlc video.mpg --loop --sout '#transcode{vb=0,vcodec=mpgv,fps=20,ab=0,acodec=mpga,channels=2,venc=ffmpeg}:rtp{mux=ts,...
I've been trying to make a prototype of a video streaming server before I actually write code for it. So I used VLC to make streaming happen on my server using the following command: cvlc video.mpg --loop --sout '#transcode{vb=0,vcodec=mpgv,fps=20,ab=0,acodec=mpga,channels=2,venc=ffmpeg}:rtp{mux=ts,ttl=10,dst=127.0.0.1,port=9554}' The streaming service began running on **localhost** on port 9554. After a little research, I failed to bind VLC stream to a public IP, that's another problem worth sharing on another page. The thing is, to make streaming visible from the outside world I used NginX reverse proxy, and used **HTTP** streaming on VLC over **RTP**. cvlc video.mpg --loop --sout '#transcode{vb=0,vcodec=mpgv,fps=20,ab=0,acodec=mpga,channels=2,venc=ffmpeg}:http{mux=ts,ttl=10,dst=0.0.0.0:9554/live}' Well, That was a success to watch the streamed video on my phone except that I was not using **RTP** protocol. The problem raises when I have no idea how to reverse proxy a **UDP Stream**. Sure NginX will not work because it only proxies HTTP, and TCP on newer versions, of course. So, any idea how to reverse proxy a **UDP stream**? Any other relative answers are also welcome, in case you have any idea how to bind VLC to a public address instead of localhost.
Brian Salehi (422 rep)
Jul 29, 2019, 04:37 PM • Last activity: Jun 9, 2021, 01:52 PM
1 votes
2 answers
1343 views
Systemd + Python Script that runs VLC doesn't allow dbus control access to VLC
OK, this is weird. I have been battling this all day & have been unsuccessful as of yet. I am working on a project that is Python based. The project is started via systemd scripts. Weird thing is vlc/cvlc works to an extent, but there is no dbus control. If I run the python app from the command line...
OK, this is weird. I have been battling this all day & have been unsuccessful as of yet. I am working on a project that is Python based. The project is started via systemd scripts. Weird thing is vlc/cvlc works to an extent, but there is no dbus control. If I run the python app from the command line, everything works perfectly. Running the app from systemd is the wonkiness. For instance, when it is run with the following code & service script, I can't control vlc with dbus. If I run the python outside of systemd script, I can access the dbus. There is another weird issue that is a side effect of whatever is causing this problem. It will run 1080 vid just fine but not 4k. Try it out with the following & let me know if you can figure it out. I greatly appreciate any & all help. Thanks! PYTHON CODE (testvlc): #!/usr/bin/env python from subprocess import Popen, PIPE import time vid = 'somevideo.mp4' cmd = 'DISPLAY=:0 cvlc -f --no-osd %s -L' % vid Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE) while True: print("Hello!") time.sleep(5) SYSTEMD SCRIPT (testvlc.service): [Unit] Description=Test VLC From Python Script [Service] User=user ExecStart=/usr/bin/screen -D -S testvlc -m /home/user/testvlc [Install] WantedBy=multi-user.target
Rich Johnson (11 rep)
Jun 25, 2020, 01:26 AM • Last activity: Aug 17, 2020, 09:45 PM
7 votes
2 answers
8093 views
Trans-coding hevc / x265 video file using VLC and viewing it on a chromecast
I've been successful at getting VLC to stream a x264 encoded file from a network file share to an old chromecast (**which mine doesn't support hevc / x265 directly**) using the commands below. vlc -vv --sout "#chromecast" --sout-chromecast-ip=192.168.1.111 --sout-chromecast-conversion-quality=0 --de...
I've been successful at getting VLC to stream a x264 encoded file from a network file share to an old chromecast (**which mine doesn't support hevc / x265 directly**) using the commands below. vlc -vv --sout "#chromecast" --sout-chromecast-ip=192.168.1.111 --sout-chromecast-conversion-quality=0 --demux-filter=demux_chromecast "/home/vid/nfst/video1_x264.mp4" **I'm trying to do the same thing with an HEVC / x265 file** but it looks like it needs to be trans-coded "in real-time" before it gets to the chromecast. Does anybody know how I can go about doing this with VLC using command line syntax? Note: **I don't want to create another separate x264 file**. I wan't to trans-code the x265 file "in-real-time" to a x264 format and have it somehow streamed / played on the chromecast using VLC. PS: I have tried casting using the VLC GUI but my OLD chromecast doesn't support HEVC / x265 files. The audio in the file does play but the hevc / x265 video shows up as just a black screen on the chromecast. PPS: I'm using VLC media player 3.0.7.1 Vetinari (revision 3.0.7.1-0-gf3940db4af) running Ubuntu 18.04 64bit.
Rick T (357 rep)
Aug 4, 2019, 10:55 PM • Last activity: Jun 20, 2020, 08:04 PM
1 votes
0 answers
46 views
Usage of cvlc with coproc
I'm trying to feed to file descriptor `.mp3` files the with the dummy interface of `vlc`, i.e., `cvlc`, in order to add to a playlist on the fly or override the entire file descriptor with new data (new `.mp3` file): ``` coproc cvlc cvlc filename.mp3 >& OR >>&"${COPROC[1]}" ``` This will run but wil...
I'm trying to feed to file descriptor .mp3 files the with the dummy interface of vlc, i.e., cvlc, in order to add to a playlist on the fly or override the entire file descriptor with new data (new .mp3 file):
coproc cvlc
cvlc filename.mp3 >& OR >>&"${COPROC}"
This will run but will wait for the prompt to back which is not expected since its directing output to file descriptor.
amosmoses (11 rep)
Feb 24, 2020, 02:14 PM • Last activity: Feb 24, 2020, 02:56 PM
2 votes
1 answers
674 views
Use USB-Sound-Device with VLC on Headless RaspPi
I've got a headless Rasberry Pi with a USB Sound Device. I want to play mp3 files with VLC. aplay -l gives me card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3...
I've got a headless Rasberry Pi with a USB Sound Device. I want to play mp3 files with VLC. aplay -l gives me card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Device [USB Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 And i try to start vlc this way(s) cvlc --vout none --alsa-audio-device card\ 1 --play-and-exit sound.mp3 cvlc --vout none -aout usb --play-and-exit sound.mp3 cvlc --vout none --alsa-audio-device DEV=1 --play-and-exit sound.mp3 none worked.
Marcus (123 rep)
Feb 21, 2019, 06:27 PM • Last activity: Feb 26, 2019, 12:39 PM
1 votes
2 answers
2353 views
VLC not working on Linux Mint Mate 17.1
After install 'linux mint 17.1 mate (32 bit)' I can play media files on VLC. but after restart Linux Mint my VLS is not working. But I can play video on built in 'Videos' player. for this I again install 'linux mint mate 17.1' but same problem occours. vlc not working, also i try with SMPlayer. its...
After install 'linux mint 17.1 mate (32 bit)' I can play media files on VLC. but after restart Linux Mint my VLS is not working. But I can play video on built in 'Videos' player. for this I again install 'linux mint mate 17.1' but same problem occours. vlc not working, also i try with SMPlayer. its not working too. but built in 'Videos' player working fine. Why this problem occours? how to solve? **vlc** command output VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be) [0x92bd160] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0x9346da8] skins2 interface error: no suitable dialogs provider found (hint: compile the qt4 plugin, and make sure it is loaded properly) [0x9346da8] skins2 interface error: cannot instantiate qt4 dialogs provider [0x9346da8] [cli] lua interface: Listening on host "*console". VLC media player 2.1.4 Rincewind Command Line Interface initialized. Type help for help`
Talha F. (111 rep)
Feb 16, 2015, 04:56 PM • Last activity: Feb 19, 2018, 05:22 AM
1 votes
1 answers
4227 views
Installing VLC cli on Synology NAS
I am trying to install VLC CLI on a Synology NAS (DS212j) so that I can record live events for later playback. If there is a better venue for this question, please point me in the right direction. Anyway, I am able to use VLC CLI on Linux, OS X, and Windows to record the stream as an MP3. What I wou...
I am trying to install VLC CLI on a Synology NAS (DS212j) so that I can record live events for later playback. If there is a better venue for this question, please point me in the right direction. Anyway, I am able to use VLC CLI on Linux, OS X, and Windows to record the stream as an MP3. What I would like do is use my Synology - which is "always on" - to record the stream. At a predetermined time, it will run a bash script which will write the podcast XML file and move them to a public directory so that I can download from anywhere in the world. Any help doing this would be greatly appreciated.
Allan (1090 rep)
Sep 15, 2015, 11:47 PM • Last activity: Sep 15, 2015, 11:52 PM
2 votes
1 answers
2914 views
CVLC: alsa name?
Someone know how to pass an alsa device name to cvlc? I did aplay -L null Discard all samples (playback) or generate zero samples (capture) default:CARD=SB HDA ATI SB, VT1708S Analog Default Audio Device sysdefault:CARD=SB HDA ATI SB, VT1708S Analog Default Audio Device front:CARD=SB,DEV=0 HDA ATI S...
Someone know how to pass an alsa device name to cvlc? I did aplay -L null Discard all samples (playback) or generate zero samples (capture) default:CARD=SB HDA ATI SB, VT1708S Analog Default Audio Device sysdefault:CARD=SB HDA ATI SB, VT1708S Analog Default Audio Device front:CARD=SB,DEV=0 HDA ATI SB, VT1708S Analog Front speakers surround40:CARD=SB,DEV=0 HDA ATI SB, VT1708S Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=SB,DEV=0 HDA ATI SB, VT1708S Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=SB,DEV=0 HDA ATI SB, VT1708S Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=SB,DEV=0 HDA ATI SB, VT1708S Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=SB,DEV=0 HDA ATI SB, VT1708S Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers hdmi:CARD=SB,DEV=0 HDA ATI SB, VT1708S Digital HDMI Audio Output hdmi:CARD=NVidia,DEV=0 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=1 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=2 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=3 HDA NVidia, HDMI 0 HDMI Audio Output and then edited vlcrc alsa-audio-device=front:CARD=SB,DEV=0 I try also alsa-audio-device=front:CARD=SB,DEV=0,0 But when i run cvlc give me device didn't exist,why? The problem is on cvlc only,not on vlc gui This is detailed output cvlc VLC media player 2.0.6 Twoflower (revision 2.0.6-0-gbe9623c) [0x1940e28] dummy interface: using the dummy interface module... [0x7f502cc01ad8] main demux error: corrupt module: /usr/lib64/vlc/plugins/demux/libmpc_plugin.so [0x7f502cc01ad8] main demux error: corrupt module: /usr/lib64/vlc/plugins/demux/libsid_plugin.so [0x7f502cc02a28] main decoder error: corrupt module: /usr/lib64/vlc/plugins/codec/libfluidsynth_plugin.so [0x7f500c0069c8] main audio output error: corrupt module: /usr/lib64/vlc/plugins/audio_output/libpulse_plugin.so Fontconfig warning: FcPattern object size does not accept value "0" ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library (null) ALSA lib conf.c:3777:(snd_config_update_r) hooks failed, removing configuration [0x7f500c0069c8] alsa audio output error: cannot open ALSA device "sysdefault:CARD=SB": No such file or directory [0x7f500c0069c8] main audio output error: Audio output failed [0x7f500c0069c8] main audio output error: The audio device "sysdefault:CARD=SB" could not be used: No such file or directory. [0x7f500c0069c8] oss audio output error: cannot open audio device (/dev/dsp) [0x7f500c0069c8] main audio output error: no suitable audio output module Fontconfig warning: FcPattern object size does not accept value "0" [0x7f502cdd4798] main decoder error: failed to create audio output ^Clibgcc_s.so.1 must be installed for pthread_cancel to work A
elbarna (13690 rep)
May 11, 2015, 08:09 PM • Last activity: May 11, 2015, 09:58 PM
3 votes
1 answers
1770 views
How do I re-stream a filtered video stream using VLC?
I have an input RTSP stream that I want to apply the "cartoon" gradient filter to before streaming on http. I've managed to stream and apply the filter to the local playback, but the http stream does not have the filtering applied. cvlc -vvv input_stream rtsp://10.217.12.20:554/axis-media/media.amp?...
I have an input RTSP stream that I want to apply the "cartoon" gradient filter to before streaming on http. I've managed to stream and apply the filter to the local playback, but the http stream does not have the filtering applied. cvlc -vvv input_stream rtsp://10.217.12.20:554/axis-media/media.amp?videocodec=h264 --video-filter "gradient{type=1}" --sout '#duplicate{dst=http{vfilter=gradient{type=1},mux=ffmpeg{mux=flv},dst=:8080/coffeecam},dst=display}'
Yusufk (171 rep)
Feb 18, 2014, 05:57 PM • Last activity: Aug 6, 2014, 10:55 AM
1 votes
1 answers
678 views
How to change cVLC prompt?
I use `cvlc`, that is command-line version of VLC media player a lot. It has default prompt of '`>`' sign. I wonder if it is changeable, and if it is how can I reconfigure it ?
I use cvlc, that is command-line version of VLC media player a lot. It has default prompt of '>' sign. I wonder if it is changeable, and if it is how can I reconfigure it ?
easl (2088 rep)
Jul 27, 2013, 06:03 PM • Last activity: Nov 26, 2013, 03:21 PM
4 votes
1 answers
13130 views
How to disable VLC output in command-line mode?
When I play music on `vlc` or `cvlc` in terminal or console there is always this *(shown below)* non-stopping output that prevents me from issuing commands by pressing ENTER key. I want to disable it, I tried to start vlc with `vlc -q` switch in quite mode but it only gets rid of [ ] bracket parts,...
When I play music on vlc or cvlc in terminal or console there is always this *(shown below)* non-stopping output that prevents me from issuing commands by pressing ENTER key. I want to disable it, I tried to start vlc with vlc -q switch in quite mode but it only gets rid of [ ] bracket parts, the rest still remains and continues to grow. So, how to make vlc completely not to show this information and still be able to execute command-line commands like next, play, random etc? VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d) [0x255e418] dummy interface: using the dummy interface module... libdvdnav: Using dvdnav version 4.2.0 libdvdread: Encrypted DVD support unavailable. libdvdread: Attempting to use device /dev/sdb1 mounted on /run/media/easl/freyja for CSS authentication libdvdread: Could not open input: Permission denied libdvdread: Can't open /dev/sdb1 for reading libdvdread: Device /dev/sdb1 inaccessible, CSS authentication not available. libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO [0x24966b8] main playlist: stopping playback TagLib: MPEG::Header::parse() -- Invalid sample rate. TagLib: ID3v2.4 no longer supports the frame type TDAT. It will be discarded from the tag. TagLib: MPEG::Header::parse() -- Invalid sample rate. TagLib: MPEG::Header::parse() -- Invalid sample rate. TagLib: ID3v2.4 no longer supports the frame type TDAT. It will be discarded from the tag. TagLib: MPEG::Header::parse() -- Invalid sample rate.
easl (2088 rep)
Jul 4, 2013, 08:05 PM • Last activity: Jul 4, 2013, 08:32 PM
Showing page 1 of 12 total questions