General :: Trying To Use Pipe Or Awk To Work With MPlayer
Feb 11, 2010
I have a text file containing the URL I wanted for mplayer to play. Currently, I play those in commend line using the following steps:
1)cat playlist
2)use mouse to highlight the link
3)type: mplayer then click both left/right mouse button
I was hoping if I can do this in comment line without mouse. I've tried the following without luck. (assume there's only 1 address in the text file)
1) cat playlist |mplayer
2) cat playlist |awk '{print $1}'| mplayer
View 4 Replies
ADVERTISEMENT
Mar 2, 2011
I've written a simple server in linux used fork to create a FIFO pipe.The server create two FIFO pipe.One for server read data from client and write data to client.Then another pipe for client read data from server and write data to server.When the server read data from a client used server-pipe and then write data to client.But ,if the client no read open the pipe,the server side write will be crashed because of a broken-pipe SIGPIPE. How to check whether the read side is opened?Or,how to catch the SIGPIPE,and then my server will still execute on,not crashed!!
View 5 Replies
View Related
Apr 10, 2009
I'm doing ping between 2 RH servers through a VPN site2site tunnel and in some times I got in the result pipe 2 and another pipe 3 as I mark it in blue color below.
e.g.
64 bytes from 192.168.1.10: icmp_seq=0 ttl=128 time=0.229 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=128 time=0.287 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=128 time=0.278 ms
[code]....
What's the difference between pipe 2 and pipe 3 and what's the meaning of it?
View 1 Replies
View Related
Mar 3, 2011
This should be a very elementary question. I have a URL like http://SERVERNAME/file.wmv. When I enter it in "Open Location" in gnome-mpLayer it connects to the server and plays the stream. But when I run
mplayer "URL"
in the terminal I get a crazy endless loop of
Playing URL.
Resolving SERVERNAME for AF_INET6...
Couldn't resolve name for AF_INET6: SERVERNAME
Resolving SERVERNAME for AF_INET...
Connecting to server SERVERNAME[xxx.xx.xxx.xx]: 80...
Cache size set to 320 KBytes
I think my usage of mplayer in the terminal is correct, since I can watch other URL's.It's only this specific one that doesn't work (I am not authorized to write the URL because they want it to be private.So my question is: Does anyone know why I get this loop? Or is it possible to see how mplayer is called by gnome-mplayer and what output messages it generates?I use gnome-mplayer 0.9.9.2 and mplayer 1.0rc4-4.4.5 on Ubuntu 10.10.
View 1 Replies
View Related
May 8, 2010
Code:
$ mplayer *.avi
MPlayer SVN-r31061-4.4.3 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing *.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 480x360 24bpp 25.000 fps 1004.6 kbps (122.6 kbyte/s)
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory .....
MPlayer interrupted by signal 2 in module: sleep_timer
A: 53.9 V: 53.9 A-V: -0.000 ct: 0.183 1349/1349 6% 0% 3.0% 0 0
Exiting... (Quit)
But still no sound.
On KDE 4 everything fine.
View 7 Replies
View Related
Jun 17, 2011
I use a net install CD to install the Debian 6.0.1(squeeze). After installation of gnome, I use apt install the mplayer. But when I use the mplayer open a avi file, it failed. The mplayer don't crash but give the following instruction:
Mplayer interrupted by signal 6 in module: filter_video
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you thin it's MPlayer's fault, please read DOCS/HTML/en/bugreports.html and follow the instructions there. [This binary of MPlayer in Debian is currently compiled with '--enable-debug'; the debugging symbols are in the package 'mplayer-dbg'.] I don't know why this happen, because all the package is installed with apt.
View 5 Replies
View Related
Feb 24, 2011
I use nv18 with nouveau. Why equlizer does not work?
View 5 Replies
View Related
Feb 5, 2010
I got a webcam and it works fine with cheese, skype and many other programs. But with jmf or mplayer it doesn't work.
With mplayer I used this command mplayer tv:// -tv driver=v4l:width=640:height=480:device=/dev/video0
Both jmf and mplayer just give static looking like this [url]
View 1 Replies
View Related
Mar 26, 2010
I'm setting up a gui-less music server so there's no login, and I've tried using mplayer's lirc interface as well as irexec (sending mplayer slave commands to a fifo). But I can't get mplayer to work unless I start either irexec or mplayer from a logged in session. So my S99test is something like:
Code:
#!/bin/sh
#irexec -d
#OR
#mplayer myfile.mp3
If I use the "mplayer" line, I do hear music at startup, but no lirc control. Yet if I log in and kill the mplayer and rerun S99test as root, all works fine.
View 2 Replies
View Related
Aug 7, 2011
Im trying to get sound to work in mplayer for my myth tv box. My hardware setup is a nvidia motherboard with hdmi (not used) and a geforce 210 with hdmi (that is used). The hdmi is connect to an external amplifier that should handle most things. Sound works fine in mythtv - the audio output device used is:
ALSA:hdmi:Card=Nvidia_1,DEV=1
When I try using the command line speaker-test utility it all works:
speaker-test -Dplughw:2,7 -c6
However, aplay and mplayer both dont give any sound - with neither outputting any error messages.
[code]...
View 1 Replies
View Related
Jan 23, 2011
I am having trouble getting sound to work through hdmi, I changed the device in the kde settings for multimedia and it now works in Amarok but Mplayer and VLC are refusing.
This is the error i am getting with mplayer:
I have disabled my sound card in the bios to save confusion (on my part) Upgraded my kernel to 2.6.37. My gfx card is a NV gt 430 xt
View 6 Replies
View Related
Jan 10, 2010
Fullscreen video playback doesn't work in MPlayer. I don't know if or where this should be reported.
mplayer 2:1.0~rc3+svn2
Ubuntu 9.10 on i386
Code:
mplayer -vo gl filename
[URL]
View 2 Replies
View Related
Aug 2, 2011
I am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command:mcrypt -k key < file > named_pipethen from my laptop I try to scp it:$ scp me@server:~/dir/named_pipe d it says scp:users/home/me/dir/named_pipe: not a regular file
View 1 Replies
View Related
Dec 23, 2010
I'm on the command line, as the install for the proprietary ATI driver has failed. I'm following the instructions for troubleshooting here but the pipe "|" key is not working - a tilda "~" shows up when I press it.I'm wondering if this is because of the keyboard being set as UK instead of US? I did have to change this setting at the graphical login initally, whether from choosing this setting by mistake or the installer choosing it automatically when I chose English UK for the language.
View 3 Replies
View Related
Sep 7, 2010
i ran into a problem when i installed mplayer on suse 11.1 from source, it works just fine BUT it has no GUI.When i try to use the command "gmplayer", it returns 'bash: gmplayer: command not found
View 3 Replies
View Related
Apr 22, 2010
We want to kill a process provided that only process name is given and we are to first find out the process id and then kill the process. Yes, in one go! That is, using pipe.
So, I tried this (the bold text):
[Code]...
View 17 Replies
View Related
Apr 11, 2010
I am trying to install gnome mplayer and later mplayer codecs.script run
Code:
root@zorro:/home/siawacsh/Downloads/MPlayer/mplayer/slackbuild/gnome-mplayer# ./gnome-mplayer.SlackBuild
gnome-mplayer-0.9.8/
[code]....
View 16 Replies
View Related
Aug 21, 2010
I don't quite understand how pipes work in bash. I know that it takes an output from one command as the input in another command. What an output is I can get because it's what the command prints out to the screen. But how do I know what input a command will take? Here is an example I thought would work:
Which gem | rm
Unfortunately it didn't.
Which gem prints out "/usr/bin/gem" so that must be the output right? I thought that was given to rm so it would be "rm /usr/bin/gem" but I was wrong. How do I know what input a command takes?
View 4 Replies
View Related
Dec 14, 2010
I have two Linux processes communicating via a nameless pipe. How can monitor the traffic in the pipe? How can I inject data into the pipe? I have root access and know the pipe inode.
View 2 Replies
View Related
May 26, 2011
I'm storing a list of strings in a file and would like to read the file and pipe each line returned to grep which in turn searches a directory for files containing the string.However this is not returning any output.
View 2 Replies
View Related
Jul 25, 2010
Two processes are communicating through a pipe: A | B. A is writing data faster than B is reading it in. Is there any way to have A limit its writing rate to match B's reading rate?
AFAIK the pipe will get full, and will make A's writing block, waiting for B to read in more data. But is there a way to limit A's writing rate before the pipe fills up? (In a way it's like having a pipe with a really small capacity, but as far as I know pipe capacity is a constant compiled into the kernel.)
Code:
EXAMPLE FOR CLARIFICATION
Right now the command is printing out the following in 1-second intervals:
But with flow control it should print out (again in 1-second intervals):
...since "date" would block on the writing loop due to the slow reading loop.
View 4 Replies
View Related
Aug 9, 2011
this is the simple backup script which i used to take backup the databases of my clients
Code:
#!/bin/bash
date=`date +%d-%m-%Y_%H.%M.%S`
[code]....
View 6 Replies
View Related
Jul 21, 2011
I need to pipe the output of date command, to form a command like this:
mycommand -f 20110721
where 20110721 is current YearMonthDay.
View 1 Replies
View Related
Apr 1, 2010
I would like to pipe a raw email from cPanel to curl, using curl to send the raw email via a post variable.wever, I am unsure of the command line syntax that would receive the piped email and post using curl.Ideally, the email would pipe to the curl command "curl -d 'emailvar=RAWEMAILHERE'
View 2 Replies
View Related
Jun 29, 2010
How can I pipe the output of a shell command into a new buffer in Vim? The following obviously wouldn't work, but you can see what I'm getting at:
:!echo % | :newtab
View 2 Replies
View Related
Apr 13, 2011
I have an OLED screen on my laptop that I have configured to show status information. The current driver I have installed in Linux for it is able to display messages by sending them to a script as an argument separated by spaces.Example: the command /opt/asusg50oled/utils/notify.sh Hi Everybody "Hello World" displays on the oled screen:
Hi
Everybody
Hello World
If another message is sent before the old ones disappear and it reverts to status info, it pushes off the top message. Example: less than 30 seconds after the previous example, /opt/asusg50oled/utils/notify.sh "Bananas have potassium" is executed:
Everybody
Hello World
Bananas have potassium
What I want to do is have kernel messages (the kind you see by running dmesg) forwarded to this script. For example, when I insert a USB drive, the following information would show on the OLED screen as they're logged:........
View 3 Replies
View Related
Sep 16, 2010
I am tying to read a file in with nawk whilst trying to take input from a pipe. I've come across the getline option and no matter how hard I try, I can't figure out the correct syntax. What I want to do is to take some input from the pipe and make a comparison with all of the values in a file and print a match.
Code:
View 2 Replies
View Related
Mar 20, 2010
Is there any way to pipe video from the screen to a video device that can be used as if it came from a webcam? I assume it uses udev somehow...
View 4 Replies
View Related
Sep 30, 2010
Is there a way to process the output of a locate command on the spot within bash. The output is 3 lines, ex:
Code:
[root@server confluence]# locate .timestamp
/opt/confluence/confluence-persistent/index/.timestamp
[code]....
View 3 Replies
View Related
Jul 12, 2011
What is a pipe? and why a file is a named pipe? I am just learning linux.
View 2 Replies
View Related