Skip to main content
15 votes
Accepted

How can I stream my desktop/screen to /dev/video1 as a (fake) "webcam" on Linux?

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, ...
dǝɥɔS ʇoıןןƎ's user avatar
13 votes
Accepted

How to fix choppy YouTube video playback? Enable WebRender

I'm writing this as I've just gone through hours of trial and error to find the answer; the problem presented itself after re-installing Debian 11, for whatever reason. Problem: YouTube video playback ...
nohatsatthetable's user avatar
6 votes
Accepted

Piping to file doesn't work with intermediate pipe

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 ...
Wildcard's user avatar
  • 37.5k
6 votes
Accepted

LiveView using gphoto2 and D3300

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 ...
Hogfeldt's user avatar
  • 306
4 votes
Accepted

tar flexibility for -f

-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 ...
Stephen Kitt's user avatar
4 votes

Stream text into a file while compressing it

You can try something like: ./a.out | gzip -c - > log.gz and you can decompress it with 7-zip But to avoid broken archive you should implement timer in to your program. If you interrupt it with ...
Romeo Ninov's user avatar
  • 19.5k
4 votes
Accepted

How to stream a local video to webcam using ffmpeg?

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
slm's user avatar
  • 380k
4 votes

How I can record stream radio in Linux?

I use ffmpeg. Example: ffmpeg -i "http://audio.wbhm.org:8000/live.mp3" out.mp3 To record a particular program you can do the following: Set a cron job. For example: 20 11 * * 0 /path/sermon-...
jbrock's user avatar
  • 1,221
4 votes
Accepted

Stream MP4 file over usb

Where to start? Is of course a very broad question. So, I can only give you a very rough overview: Linux can, given your SoC actually has the hardware, control an USB peripheral to act as a device (...
Marcus Müller's user avatar
4 votes

Ham Radio simulator: live streaming microphone audio between 2 browsers, connected via ubuntu 22

If you're looking for a simple open-source API solution, I recommend WebRTC. WebRTC is open source and was developed by Google under the BSD license. It is optimized for peer-to-peer audio/video ...
ReflectYourCharacter's user avatar
3 votes

linux to linux screen streaming through wifi

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 $...
ivanivan's user avatar
  • 5,085
3 votes
Accepted

Cannot play live Youtube on other streams in Opera - no h264 support

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 ...
Vlastimil Burián's user avatar
3 votes
Accepted

Shell script to filter string from a data stream and output to screen

You can do what you want just with grep with the -o option to only print the matching portion of the line and -P or -E for PCRE or extended regular expressions respectively, which let us use [^;]+ for ...
terdon's user avatar
  • 252k
3 votes

Can I stream Amazon Prime Video movies on a Fedora laptop?

You can stream Amazon Prime Video on your Fedora, but you need to adjust DRM (Digital Rights Management) and browser compatibility issues. Use a supported browser with DRM enabled, check for ...
ReflectYourCharacter's user avatar
2 votes

Stream contents of directory instead of reading all items

At the system level the readdir(3) call is used to return a stream of directory entries, until error or that list runs out: The readdir() function returns a pointer to the next directory entry in ...
thrig's user avatar
  • 35.8k
2 votes
Accepted

Port Forwarding without delay and high fps in a real time live stream using socat

I'm not an expert on socat, but after a quick view to its name (SOcket CAT), it seems that it goes through opening two sockets and operating them in user-space. As slm suggests, why do not ...
Javier Dev's user avatar
2 votes
Accepted

RTP Reverse Proxy

RTP is used in conjunction with the RTP Control Protocol (RTCP). While RTP carries the media streams (e.g., audio and video), RTCP is used to monitor transmission statistics and quality of service (...
Rasool Ziafaty's user avatar
2 votes
Accepted

How to use an handheld device with GNU/Linux and YouTube to protect from death threats?

The following is simplest procedure I came up with. It will work on any GNU/Linux handheld, but instructions for an Ubuntu touch device are provided, anyway. On the handheld device Ubuntu Touch ...
Scrooge McDuck's user avatar
2 votes
Accepted

Known Issues With CBS All Access Streaming?

I can't really give you much more information other then a confirmation of the same issue on half a dozen different Linux builds I tried today. I've been using CBS AA since 2017 and it's always worked ...
root's user avatar
  • 54
2 votes
Accepted

how to download partial content from remote video url in nodejs?

you can do just what you asked using ffmpeg command line tool like this: ffmpeg -ss [start timestamp] -i [video path or url] -t [duation] [outputname.mp4] or other format in your case, in nodejs you ...
Martin Wittick's user avatar
2 votes

Setting up permanent extra audio sinks/sources for streaming purposes?

I've been having similar problem. Even if I have a script that sets up these sinks upon login, actually saving the wire route doesn't seem to be implemented in the tools such as helvum as of yet. The ...
Zeth's user avatar
  • 21
2 votes

Package that uses earphones as antenna to listen to fm radio?

um, that's a hardware capability that your Linux laptop or desktop PC simply doesn't have. So, no, unless your Linux actually means "Linux in the shape of Android or another smartphone operating ...
Marcus Müller's user avatar
2 votes
Accepted

Is there a program that concatenates non-seekable streams (size not known in advance) and can separate them again?

What you're describing is multiplexing; something that requires a protocol (i.e., a formal specification on how to deal with data). There's a lot of approaches to that. For example, you'll notice that ...
Marcus Müller's user avatar
2 votes

Is there a program that concatenates non-seekable streams (size not known in advance) and can separate them again?

Crude implementations of those stream-cat, stream-sep could easily be written in perl: stream-cat() { perl -ne 'BEGIN{$/ = \0x7fff} print pack("n", $c|length()<<1), $_; ...
Stéphane Chazelas's user avatar
2 votes

Mount single remote file over HTTP for local playback

"Mounting" is a concept that applies only to directories on Linux. So, you couldn't even theoretically "mount" a single file somewhere. You might also be confusing rclone's WebDAV ...
Marcus Müller's user avatar
2 votes

Mount single remote file over HTTP for local playback

I found httpdirfs which does what I need. If you only want to access a single file, there is also a simplified Single File Mode. This can be especially useful if the web server does not present a HTTP ...
Gaz's user avatar
  • 29
1 vote

Stream Intel RealSense camera to network using Raspberry Pi 4 with FFMpeg

Actually Intel provides a software to utilize a RPi4 as backend, to make your camera available in your network and directly use all API commands: https://dev.intelrealsense.com/docs/open-source-...
Tomblarom's user avatar
  • 2,237
1 vote

Recording live audio stream on Ubuntu

You could use a combination of parec and ffmpeg/mpg123/lame, e.g. parec --monitor-stream="$(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}')" | ffmpeg -f s16le -ar 44.1k -...
Artem S. Tashkinov's user avatar

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