VLC command line issue - vlc

Im very confused , the following command does not work it just opens the video , how ever if i stream manually using GUI it streams perfectly ,
i used the same code for other streams but for some reason its hit or miss whether it works or not
vlc http://192.168.1.213:8866/live?channel=3&client=1 --transcode{vcodec=h264,vb=800,scale=Auto}:http{mux=ffmpeg{mux=flv},dst=:8080/} :sour-keep
Also tried
vlc -vvv http://192.168.1.213:8866/live?channel=3&client=1 --transcode{vcodec=h264,vb=800,scale=Auto}:http{mux=ffmpeg{mux=flv},dst=:8080/} :sour-keep
and tried
--sout=#transcode{vcodec=h264,vb=700,vfilter=deinterlace,fps=25,scale=Auto,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/} :sout-keep
could someone shed some light on why the command is hit or miss for different links and any mistakes i have made
Thanks

I would try to do it like this:
--sout "#transcode{vcodec=h264,vb=700,vfilter=deinterlace,fps=25,scale=Auto,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8080/}"

Related

Program white-screening all of a sudden

I've been working for a few days on an electron application. When I was done working for the day yesterday, the program was working and running just fine. I came in this morning to start working on it again, and now all of a sudden partway through the program it just whitescreens now. I have not changed anything from the time of working on it last (last known working) to current time.
I do not see any errors being logged to the powershell console after running npm start (Program does not work packaged either), and when I use inspect element it just says:
DevTools was disconnected from the page.
Once page is reloaded, DevTools will automatically reconnect.
But it just sits on this white page forever.
This page has quite a lot of code (531 lines), but I am completely unable to pinpoint the problem because there are no errors logged. That said, I began taking pieces out of my code trying to get it to work, and I was able to narrow it down to the code below.
What can I do to fix my application?
This is the code I narrowed it down to, when I comment out this code, the page runs fine.
var audio = require('win-audio').speaker;
weirdly enough, this is one of the first pieces of code that I had written in this page of the application, and it has worked until just today.
I just found out that if I plug in some speakers, the program no longer whitescreens. But this isn't really a good fix, because this program will be ran on hundreds of computers a day that may or may not have speakers.
UPDATE::
Ok, I think I have fixed it. To try it out:
Download my fork at: https://github.com/11AND2/win-audio
In your terminal change dir (cd) into the directory e.g. "cd C:\...\win-audio"
run command "npm run install" - this rebuilds the module
To test it run "node sample.js" and activate/disable your audio devices
If at any point you want to check if the device is alive just run
var audio = require('win-audio').speaker;
var _vol_alive = audio.get();
if (_vol_alive === -999) {
console.log("this device is dead :-(");
}
in your application. Please note that I have not changed the API at all so there should be no need to change your application code.
Please give me a heads up if the fix works for you so I can create a pull request for the fix. I am not the creator of this plugin, all my changes are public domain.
DEPRECATED::
Ok, I have found a fix for you. Would it be ok if:
var audio = require('win-audio').speaker;
returns -1 if no device is found?
So you could do:
if (audio !== -1) {
audio.set(30);
}
Please give me a short heads up and I will post the implementation route.

VLC 3.0 not working with input-repeat=-1

This is my first post, not sure this is the correct place for it, if not please let me know.
I have C++ code running using VLCLib (from 0.x to 2.2.8) which works the way I intended.
Background info: I simply do a loadlibrary on libvlc.dll and then do a GetProcAddress on the entry points. (This works fine on both 2.2.x and 3.0)
Here is my new issue/question.
Using 2.2.8 I can play a file and it loops infinitely as requested, running the exact same code with VLC 3.0 plays the file only once, and does not loop/repeat.
// This is the line of code responsible for the looping.
pfnlibvlc_media_add_option(m_pVLCMedia, "input-repeat=-1");
In VLC 3.0 I set the libvlc_MediaPlayerEndReached event, but it never hits, I tried other events as sanity checks such as libvlc_MediaPlayerPlaying and this triggered.
Does anyone know if VLC 3.0 functionality has changed? I searched both the VLC wiki and StackOverflow and I can't find anything on this.
Thanks for the advice,
Marc
So, for the VLC >3.0 you can't add the negative value of "input-repeat" to the parameter. Your string must look like input-repeat=65545 References to the issue - https://github.com/ZeBobo5/Vlc.DotNet/issues/96

Getting error while execution through universal g code sender

I am trying to create a CNC machine and using GRBL 0.9i Firmware and universal g code sender. after creating the gcode in inkspace and sending the gcode to machine
,
I am getting error as following
An error was detected while sending 'M18': error: Unsupported command. Streaming has been paused.
**** Pausing file transfer. ****"
I am quite new to this and any help would be wonderful and greatly appreciated.
Thanks
Jaideep
GRBL does not support M18 (Spindle Orient) so you will need to remove all M18s from your program before running it. If you you can't prevent inkspace (I'm not familiar with it) from using that code you might have to use a text editor to replace all M18

How can I add a link as a parameter inside a link so I can start from terminal

I need to start the following link from the terminal
vidyo://login/?username=x&password=y&portal=https://nexi.alpha.vidyo.com&minimize=true
I get this error:
zsh: parse error near `&'
Now I'm a android programmer, so I did in a android app a console log on Uri.parse(link), but I get the same link, as "parsed"
But that doesn't feel right.
What do I need to do to my portal in order for the link to be parsed correctly
PS: I also tried this:
vidyo://login/?username=x&password=y&portal=https%3A%2F%2Fnexi.alpha.vidyo.com&minimize=true
But no luck
PS: I figured out that if I try
vidyo://login/?portal=https%3A%2F%2Fnexi.alpha.vidyo.com&minimize=true
It works, and the same for
vidyo://login/?username=x&password=y
Apparently adding the 3rd parameter gives me an parse error in terminal, why?
open "vidyo://login/?username=test2&password=test2&6portal=https://nexi.alpha.vidyo.com&minimize=false" works, or open vidyo://login/?username=test2%26password=test2%26portal=https://nexi.alpha.vidyo.com%26minimize=false also works. The issue was the second "&"

ffmpeg, vlc - Unable to find input stream

Good day to all... I have some "little" problems with ffserver and ffmpeg...
What I need to do is to broadcast a live video. So I got the cam... used vlc and used send stream option. I sent it to 192.168.1.9:64555, which is a virtual machine on the same computer, running centos.
On the virtual machine I run the command ffmpeg -i 192.168.1.9:64555 output.mpg.
The response is "unable to find file whatever".
Can any1 tell me what I did wrong?
Thank you and have a great day.
Print-screen with error:
Seems that ffmpeg don't realize that it asked to open a network stream. So, it try to open the file with name "192.168.1.9:65444", not to connect a network on this address.
I suggest you consult the manual of ffmpeg. The network stream should have some prefix like udp:// or rtp:// or anything (the vlc itself uses such prefix)
Good day. I found the answer at the question. The problem was that ffmpeg can't manage live streams. It should be created a pipe.

Resources