I have got a MPEGTS file that contains multi programs PID's recorded from UDP stream.
How to switch Playback->Program in VLC via command line.
The option is --program <service_id>. For full usage information you can do vlc -H.
Related
Hello so I would like to begin with that I am not extremely tech savvy. I am trying to download a video so that I can reformat it. I keep on receiving and error that says "unable to extract video data 't' is not recognized as an internal or external command. I tried to update youtube-dl, but it said it couldn't find an new version. I'm not sure if the issue I am having is that I can't update youtube-dl or if there is an issue with me downloading the video itself.
Here is the script line that I used to download the video.
C:\Users\name> YouTube-dl.exe -f bestvideo+bestaudio https://www.youtube.com/watch?v=llRfY17n-Lo&t=321s
[youtube] llRfY17n-Lo: Downloading webpage
ERROR: llRfY17n-Lo: YouTube said: Unable to extract video data
't' is not recognized as an internal or external command,
operable program or batch file.
Here is the scripts I used to try and update Youtube dl.
C:\Users\name>youtube-dl.exe -U
ERROR: can't find the current version. Please try again later.
C:\Users\name>youtube-dl -U
ERROR: can't find the current version. Please try again later.
I had similar problems with the following errors:
'v' is not recognized as an internal or external command,
operable program or batch file.
and
'feature' is not recognized as an internal or external command,
operable program or batch file.
I fixed the error and was able to download the file by entering the following command in command line and pressing enter:
youtube-dl **video identifier**
where video identifier is the series of digits that comes after "v=".
For example, if your video URL is https://www.youtube.com/watch?v=dMH0bHeiRNg --> the identifier is dMH0bHeiRNg and the whole command is:
youtube-dl dMH0bHeiRNg
Actually I have found another solution to this:
in Windows, open the folder that you want to download the video in, say it is C:\Users\username
Then press CTRL+L and write cmd and press enter. Now the command line opens at the desired folder. (Make sure the folder is not under Windows or system32.)
Write youtube-dl youtube.com/your_url and press enter and it should download the video just fine.
I am a newbie to vxworks, and I have a target with Vxworks5.5, one application is running on it. I want to ping other host with local keyboard and monitor or telnet. After the ctrl+c is pressed, the task is going on after being interrupted for several seconds, and I can see >-,which means that it's now in C-interpreter mode. After PING command was entered, I was told that there's no such command.
I read the manual, and know that there is also a command mode. How can I switch to command mode and use the PING command?
VxWorks 5.5 has only C interpreter shell and does not support command shell.
Define INCLUDE_PING in configAll.h or in your Tornado project. Try -> ping "8.8.8.8"
VxWorks 6.x has C interpreter shell and command shell. Use cmd to switch to the command shell and C to switch to the C interpreter shell.
-> ping "8.8.8.8"
-> cmd
[vxWorks]# ping 8.8.8.8
[vxWorks]# C
->
If using VxWorks 6.x, switch to the command shell by entering cmd in the C shell. There, you can issue command help to list available commands. If ping is not present, you can add it via the workbench.
From the workbench, add component INCLUDE_IPPING_CMD and rebuild VxWorks on the target. Then you should be able to issue ping commands in the form ping 1.2.3.4 from the command shell. Typically, to use commands that are not included by default in the command shell, you'll need to add components to your VxWorks project in the form INCLUDE_CommandName_CMD.
Can anybody please guide procedure to setup tool-chain for MSP430 in Linux (particularly Ubuntu) ? I am using MSP430 launchpad (MSP-EXP430G2), and I need to setup compiler/build tools and debugger drivers.
If you install Texas Instruments' CCS IDE, Linux version, it will install the tool-chain. There are, however, other problems in developing for MSP430 in Linux. The bugs and fixes are detailed in my post here:
MSP430 / eZ430-RF2500 Linux support Guide
"Compile code using Code Composer Studio (CCS)
Download CCS for Linux.
Create a new CCS project with a Custom MSP430 Device or any other.
Compile the code. The result binary image will be in the workspace. The workspace path can be found in “File” / “Switch workspace”.
The file that should be programmed to the device is the project-name.out file.
Program and run device using mspdebug
Download and Install mspdebug
From the directory with the file project-name.out run:
$ sudo mspdebug rf2500
Now you are in mspdebug’s command line shell. Run the following to program and run the device:
(mspdebug) prog project-name.out
(mspdebug) run
Use Ctrl+c to pause run and get command line back.
Fix a Linux Kernel bug that prevents Minicom to communicate with device
The device path in /dev is /dev/ttyACM0. Currently, connecting to it
serially using utilities such as minicom is not possible, and you get the message “/dev/ttyACM0: No such file or directory”.
The bug is in Kernel module “cdc_acm”. The solution is to fix the bug in the source code, recompile the module and plug it instead of the existing one.
Find out Linux version:
$ uname -r
cdc_acm’s source is the files cdc-acm.c and cdc-acm.h. They are under the Linux path drivers/usb/class/.
Download these two files from a repository that matches your Linux version. Such repos are available in lxr.free-electrons.com and www.kernel.org.
Create a new directory and move the files to it.There are two code segments need to be removed or commented out:
The next lines appear in function “acm_port_activate()” on newer versions and in “acm_tty_open()” in older ones:
// if (0 > acm_set_control(acm, acm->ctrlout = ACM_CTRL_DTR | ACM_CTRL_RTS) &&
// (acm->ctrl_caps & USB_CDC_CAP_LINE))
// goto bail_out;
The next line appears in function “acm_port_shutdown()” on newer versions “acm_port_down()” in older ones:
// acm_set_control(acm, acm->ctrlout = 0);
Create a Makefile and compile:
$ echo 'obj-m += cdc-acm.o' > Makefile
$ make -C /lib/modules/`uname -r`/build M=$PWD modules
You should have a new cdc-acm.ko file in the directory
Replace the existing module (This change will be discarded after boot):
$ sudo rmmod cdc-acm
$ sudo insmod ./cdc-acm.ko
Communicate via the serial port using Minicom
Launch minicom setup from command line:
$ minicom -s
In the menu, choose:
Serial port setup
Press ‘A’ (for “Serial Device”).
Replace Current device path with:
/dev/ttyACM0
Press ‘E’ (for “Bps/Par/Bits”).
Set the correct data rate for your device.To lower the rate (to 1200, for instance), keep pressing ‘B’ (for “previous”) until the top line shows:
Current: 1200 8N1
Press “Enter” until returning to main menu, there, press “Exit”.This will exit the setup menu and start running on the device. From now on you should see messages over the serial connection: It is up to you to program the device with such messages."
Download the pre-compile tool-chain (.run file) form http://www.ti.com/tool/msp430-gcc-opensource
Unzip
Execute chmod +x <downloaded file>
Run the installer
enjoy!
I have condition that i have to flash multiple output files one by one to the mpc controller. We use GUI for lauterbach to do the flashing and running software. Now i want to do the same via >command line argument. Some one please explain me what all things are needed for controlling the lauterbach through command prompt.
I want to use Lauterbach Powerdebug interface/ usb2 for the debugging purpose.
You can remote-control trace32 via a UDP port using the t32rem command.
t32rem is typically installed in C:\T32\bin\windows64\
Your t32 configuration file (config.t32) must have "RCL=NETASSIST" in it.
And you need to enable the API port, either via the t32start options or in your custom xxx.ts2 (configuration file).
Out of the box you should then be able to run any t32 command. E.g.:
C:\T32\bin\windows64\t32rem.exe localhost port=20000 data.dump 100000
Replace "data.dump 100000" with anything T32 understands, e.g. "do pgm_my_flash.cmm"
You can also use telnet to remote control the debugger. NETASSIST must be set.
In the vxWorks RTOS, there is a shell that allows you to issue command to your embedded system.
The documentation refers to kernel shell, host shell and target shell. What is the difference between the three?
The target shell and kernel shell are the same. They refer to a shell that runs on the target. You can connect to the shell using either a serial port, or a telnet session.
A task runs on the target and parses all the commands received and acts on them, outputting data back to the port.
The host shell is a process that runs on the development station. It communicates with the debug agent on the target. All the commands are actually parsed on the host and only simplified requests are sent to the target agent:
Read/Write Memory
Set/Remove Breakpoints
Create/Delete/Suspend/Resume Tasks
Invoke a function
This results in less real-time impact to the target.
Both shells allow the user to perform low level debugging (dissassembly, breakpoints, etc..) and invoke functions on the target.
There are some differences between host shell and target shell, you can use h command to get the actual commands the two shell support.
The host shell support more command line edit functions like auto complement and symbol lookup etc.