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 ...


19

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 if ...


19

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>


11

Solved. Steps to solve: Unload previous v4l2loopback sudo modprobe -r v4l2loopback git clone https://github.com/umlaeute/v4l2loopback/ make && sudo make install (if you're using secure boot, you'll need to sign it first https://ubuntu.com/blog/how-to-sign-things-for-secure-boot) sudo depmod -a Load the videodev drivers sudo modprobe videodev sudo ...


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.


7

I've found that the ffmpeg utilities are often more reliable. Try: $ ffplay 'rtsp://username:password@ip_address:port/url' Also note that IP camera RTSP streams frequently require a username and password. The defaults for Foscam-compatible cameras: port is 88 and url is either videoMain, videoSub, or audio. More details are available at the ffmpeg manual....


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

node "$SUMAN_PROJECT_ROOT/server.js" &> ${LOG_FILE} & First let's examine the working command. This says to take the standard output AND standard error of the node command, and redirect both to the log file. (And you need to quote your variable; it will break if LOG_FILE includes whitespace. See Why does my shell script choke on whitespace ...


5

You should look into installing the plex backend and plexconnect (https://github.com/iBaa/PlexConnect) on your laptop. Once you've installed plex, you change your dns server to that of your laptop and it intercepts the trailers app to play any videos you have in plex.


5

Open-source, works on all platforms, support streaming to popular services out of the box: https://obsproject.com/


5

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: stream diagram ...


5

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


4

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.


4

The simple solutions with (GNU) awk: Every one in 100 (lines with number divisible by 100): do_something | awk 'NR % 100 == 0' or pseudorandomly: do_something | awk 'rand() < 0.01' The numbers will likely not be exactly uniform and it may be necessary to add BEGIN{ srand() } to initialize a new seed for each run.


4

You can use --start=MM:SS to start your video at MM minutes SS seconds. For example: mpv --start=45:00 'https://www.youtube.com/watch?v=<video-id>' Will start the video at 45 minutes.


4

Based on this AU Q&A titled: Is there any way ffmpeg send video to /dev/video0 on Ubuntu? you can do the following: $ ffmpeg -re -i trial_video.mp4 -map 0:v -f v4l2 /dev/video1


4

-f doesn’t change tar’s behaviour with regards to streams or files or anything like that; it specifies the name of the archive to use. I’m not aware of any variant of tar which can handle the absence of an argument to the -f option, nor am I aware of any reliable way to do so. As cas says, you need to remember that -f always takes an argument. One way to ...


3

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 ...


3

A tip related to answer of user170267: You can avoid overwriting previous recording by making use of date&time for file name: curl --output ~/Downloads/Radio/CostaDelMar_$(date '+%F_%T').mp3 http://sc-costadelmar.1.fm:10156


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

I'm not familiar with screamer, but it sounds like streamripper is what you want. It may already be available in your distro or you can get it at http://streamripper.sourceforge.net/


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 ...


3

If you have GNU sort on your machine, which supports -R (--random-sort), you could just $ sort -R myfile | head -n 1000 To get 1000 random lines from the file. Does not work on streams though as sort needs to read the complete input to do anything.


3

Get a decent cache with youtube-dl (to avoid the issue in the first place) youtube-dl.py -q -f "(137/136)+(141/140)" "$URL" Play the cache with any player (ffplay, vlc, omxplayer, c2play, mpv, etc) If you still want to seek; ffplay -ss 30:00 *.mp4 . vlc --start-time=1800 *.mp4 . omxplayer --pos 00:30:00 *.mp4 . c2play --time 00:30:00.00 *.mp4 . ...


3

Why not just SSH into the powerful laptop, forward X, and use your lower-power machine as keyboard/monitor/mouse? Start individual applications, or start a new X server on your local and set your $DISPLAY to be that one, and launch an entire desktop session (ie, mate-session)


3

The solution may vary depending on the operating system. See the Chrome base version of Opera at opera://about/. For version 65.0.3325.181, download the opera-ffmpeg-codecs package from ArchLinux repository: wget http://ftp5.gwdg.de/pub/linux/archlinux/community/os/x86_64//opera-ffmpeg-codecs-65.0.3325.181-1-x86_64.pkg.tar.xz Extract it: tar -xJf opera-...


3

I have just had the exact same error code with a Nikon DSC D5200. I made an issue on github and got a respond from the one of the developers, which solved my problem. In my case code 0x80000000 meant according to the SDK that "The Exposure Program Mode property (...) is set to anything other than P/S/A/M.". My camera was set to auto, so when i ...


2

Perhaps fapg + ezstream is the right toolchain for this job. fapg generates the playlist file in a format of your choosing from a list of folders containing audio files ezstream can take the playlist file and stream it to your icecast server.


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