Hot answers tagged

34

You can use wget over ssh to open an HTTP connection and output stream data, then mplayer on the local machine to play it. ssh <user>@<host> "wget <stream> -O -" | mplayer -cache 512 - The subtleties: wget's -O (capital letter oh) option sets its output file; - (dash) implies stdout. mplayer's -cache option causes a configurable amount ...


18

You can use ssh's -L flag to create a tunnel from your system to a remote: ssh -L <localport>:<streamhost>:<streamport> <user>@<remote> You can then connect to your end of the tunnel with mplayer as you would otherwise: mplayer localhost:<localport>


13

If you are running Arch Linux I suppose you know how to install a rubygem. Take a look at https://rubygems.org/gems/airstream - a simple command-line-tool you can use to send remote and local image and video files to your apple-tv (tested with generation 3). If you need any help leave a comment on http://blog.lipautz.org/linux-and-apple-tv/.


8

You can set up a SOCKS proxy: ssh -D localhost:8080 user@remotehost mplayer http_proxy://localhost:8080/http://stream You can use tell any other application, such as your web browser, to use this proxy too.


6

sshfs is a wonderful tool for cases like this. It hides many a firewall and allows you to use whatever player you choose (though mplayer is still a nice choice). sudo apt-get install sshfs # your favorite packager here sshfs me@mydomain.org:/home/arthur/Music ~/Music I also run Subsonic listening to port 4040 on localhost and then ssh-tunnel home with ...


6

I found this tool that matches my need exactly, called logtop. According to the documentation: logtop displays real-time count of strings received in standard input. Examples Is useful for some cases, like getting the IP flooding your server: $ tail -f /var/log/apache2/access.log | cut -d' ' -f1 | logtop Or the top buzzing article of your blog: $ ...


6

Here are some suggestions: iTunes alternatives - linux iTunes open source alternatives


5

Sounds like a job for tee: build | tee /some/file ami_name=$(do_something_to /some/file) deploy "$ami_name"


4

GUI Audacity If you want a GUI to do this you can do it using Audacity. excerpt from wiki In the drop-down menu on Audacity's Device Toolbar, choose “Wave Out” or “Stereo Mix” as the input source. (The exact name may be different, depending on your computer's sound drivers). On Windows, if you don't have a “Wave Out” or “Stereo Mix” option, or ...


4

One clunky solution would be to use virtualbox to emulate a lightweight xp install which would host the itunes software. Create a samba share of your media files on the linux box and map that share to a network drive within the virtual pc, then add that mapped drive to the itunes library on the virtual machine. Its not an elegant solution but at least it ...


4

mpd doesn't accept pulseaudio input sources, so there is no direct way to route pulseaudio through mpd. However, what you want to accomplish is still possible, with the help of gstreamer and some cleverness. I accomplished this a few years ago. I wrote this program which implements the "Gstreamer Pipeline Script" component of this diagram: To sum up the ...


4

Without experience with screencasts, this is the way to search the repository for keywords like this: apt-cache search screencast byzanz - Small screencast creator gtk-recordmydesktop - Graphical frontend for recordmydesktop istanbul - Desktop session recorder producing Ogg Theora video The result is from xUbuntu 9.10 - your result may vary; give it a ...


4

The Ubuntu Screencast Team uses gtk-recordmydesktop.


4

Google Hangout supports screen sharing, cross platform and only needs a browser plugin.


3

Sure. You are looking for tee not fork(): ps -ef | tee file | grep http


3

Try mplayer, it's usually the audio and video player that supports the widest range of formats. If you have a supposedly RTSP source which is actually an HTTP URL, first retrieve the contents of the URL; you'll get a file containing just another URL, this time rtsp:// (sometimes you get another HTTP URL that you need to follow too). Pass the rtsp:// URL to ...


3

I've read about using ffmpeg for screengrabbing before. Check out ffmpeg with X11 grabbing + ffserver. There may be some progressive deterioration in A/V syncing though.


3

VLC has a built-in desktop stream. I don't recall if it does audio too, howerver. If you need something quick you can try Big Blue Button's VMware image. It sets up a server that can stream desktop, video, audio, and whiteboard.


3

I will explain how to stream h264 using gstreamer. First, you need Linux kernel 3.2 or later to have "H264 pixel format" supported in the v4l2 drivers. Use v4l2-ctl to check that you have proper H.264 support for the camera: # v4l2-ctl --list-formats # v4l2-ctl --list-formats-ext Next, you will need video4linux libraries and utilities. These include: ...


3

One workaround: Setup Apache on the Linux box to serve up the media files and links. (I probably went a bit overboard here and created a PHP app that serves files along with metadata, album art/DVD covers etc as a web page. You wouldn't need to do that to just prove the concept.) Go to the new webpage on an iPad/iPhones(s) and browse and select music or ...


3

For simply playing music, I've never been able to go past Amarok. It's also possible to sync your iPod using it.


3

For copying stuff into your iPod, use gtkpod, works for my iPod Shuffle at least For streaming, and support of spotify / last.fm etc., use clementine.


3

I like Clementine, it's a good clone of what Amarok 1.x used to be like before they (IMO) messed it up with the version 2.x release. On a more general note, pretty nearly anything is better than iTunes - Apple is usually excellent with user-interface design, but that program is an unusable abomination. I'd think "WTF were they thinking?" except that it's ...


3

You can try using pulseaudio sound server daemon in the raspberry pi and configuring pulseaudio client with the internal network ip of the server in the configuration. For example if you are using Debian and raspbian. In raspbian: echo "snd_bcm2835" > /etc/modules /* load the sound module \*/ apt-get install pulseaudio pulseaudio-module-zeroconf ...


3

You can have your cake and eat it too by using tee to save one copy of the output to disk, while feeding the other to data-processing-program: output-data | tee data | data-processing-program > processed-data This will leave a properly time-stamped copy of data for other targets in your makefile. There are any number of ways to associate this ...


2

Well, rather confusing but anyway... Judging by the output of mosquitto_sub -d -t +/# 2> >(grep PUBLISH) your app seems to output to both stderr and stdout (otherwise you should only get lines matching PUBLISH in your output). It prints the debug messages (Sending... and Received...) to stderr and the actual data (810,5440995,6143...) to stdout. ...


2

deployArgs=`build | tee /dev/tty | extractDeployArgs` && deploy "$deployArgs" #won't run unless extractDeployArgs suceeded tee /dev/tty will print directly to the terminal and pass the output to the next command in the pipeline at the same time. (Feel free to replace it with some other file (or /dev/fd/"$someFileDescriptor" if you need want ...


2

You can use tee and process substitution >(...) for this: zcat my_data_file.gz | # Count number of lines in stream tee >(wc -l > /tmp/linecount) | # Further processing process_data.py Note that pipes can be used for line continuation and that comments may be interspersed between commands, a nice feature when building complicated pipelines.


2

If you look at this page they show this technique of using ffmpeg to do the slicing and then having it forward it to the ffserver: $ ffmpeg \ -f v4l2 -s 320x240 -r 25 -i /dev/video0 \ -f alsa -ac 1 -i hw:0 \ http://localhost:8090/feed1.ffm The above command is doing the following: The first part -f v4l2 -s 320x240 -r 25 -i /dev/video0 ...


2

Check my radio: Example WeFunkRadio. For the first download playlist and get server address & port: # http://www.wefunkradio.com/play/shoutcast.pls # cat shoutcast.pls [playlist] NumberOfEntries=2 File1=http://wefunkhub.com/radiodrops/introdrop-keithmurray2.mp3 File2=http://stream-90.shoutcast.com:80/wefunk_radio_mp3_64kbps This is the address of ...



Only top voted, non community-wiki answers of a minimum length are eligible