I have a wireless IP cam that play sounds. I know how to play this sounds because i know the direction and the command. I tried it with this Terminal command: http://192.168.0.90/axis-cgi/playclip.cgi?clip=6
The problem is wget command download the clip and i only want to reproduce it. Beacuse i want to do into a program.
Any option to do it in terminal. Or directly from a C++ program.
Thanks in advance.
mplayer or vlc will stream the URL and play it as if it was a local file. As for doing it in C++, you have much more work to do (find an HTTP library, read the contents, decode it and reproduce it. Maybe the ffmpeg library can help you here.
Related
We would like to receive WebRTC stream.
The stream is sent from a browser and the receiver can be VLC or FFMPEG or some other application.
Is there a way to achieve this goal?
If so, how?
Is there a way to get the raw data?
Thanks,
Ronen
Try this: https://github.com/aiortc/aiortc/tree/main/examples/server
I won't copy/paste code here - aiortc is a python package you can install through pip, and then you can run the example - it worked out of the box for me.
Big thanks to the author of aiortc.
Recently I bought an uTOLED-G20 with the 4D Serial Adaptor. My current hardware connection is the following one (enclosed picture)
My goal is to show the camera in the uTOLED screen. But before to achieve this I would like to send "some picture (.gif, .bmp, .jpg) to the display", or some "Hello world".
Well this task is going me crazy. I was reading http://elinux.org/Serial_port_programming and nothing appears in the uToled.
I want able to develop some software in python or C, c++ in my Linux (RaspberryPI) and show the data in the screen.
Please could you help me from where I can start?
I will really appreciate all your feedback. :-)
The first thing I would do is connect the RX and TX on the RPi together to make sure you are sending and receiving characters on the RPi.
In follow up to the loopback test, you can do this with a few tricks from the command line. Essentially you can #echo "foo" > /dev/ttyAMA0 from one console, and #tail -f from another console. For more specific directions check out this older post: Serial port loopback/duplex test, in Bash or C? (process substitution)
I was wondering if there was a way to "sniff" the music that is going out to the local computers' speakers. I was hoping to do this in python because I want to port it over to the raspberry pi, although it isn't strictly required.
The idea is basically have something you run that is totally separate from your music player. So it wouldn't launch the music file, just look at the stream going from the other program to the computers speakers and act on it.
P.S. python please :)
PyAudio is a good tool for audio manipulation in Python. This person: record output sound in python was able to record sound output from their computer with PyAudio without access to the original file.
After a lot of posts in SO and Google, I could not find an answer to my problem. Most of similar questions are Windows/VB/.Net/C#/Java centric.
I need to send an ESC command to a Zebra USB printer (TTP2130) and get the status back using C/C++ . I am able to print fine (with Zebra generic driver set as default printer) using:
$ lpr file.prn
Used Zebra Toolbox to communicate in Windows and generate *.prn files with ESC commands.
But if I sent a file with a command that needs response from printer, nothing happens.
What would be the best approach to accomplish this? Maybe using libusb1.0 directly?
Thanks for any help!
Found a solution after searching for 'Swecoin'. This is the old manufacturer of Zebra's TTP line of printers. Swecoin on Wikipedia.
This guy made a simple and direct app to communicate with TTP printers (ttputil): http://www.rainbow-software.org/linux/
After downloading and compiling, I was able to send commands directly:
sudo ./ttputil enquiry sensor /dev/usblp0
I will modify its code to fit my needs.
Unfortunately, I haven't found a way to contact (and thank) the original developer from his website.
Well I had a similar issue and in the end this post helped me a lot: https://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/ it is Windows centric but the principle is the same also on Linux and Mac.
We already have a functionality of Video uploading in our webapplication[built using python with Django framework]. Now we are in the process of building a livestream site where people are able to use their webcam to record the live event and it's live streamed to different participants at the sametime.
I am wondering if somebody has any idea of how to go about building a functionality like this or any pointers that would be really helpful.
I sort of looked into this same question a while ago. The dominant solution seems to be Adobes Flash Media Server. It is closed source of course and quite pricey. There are companies who run it as a service, lowering the cost of entry. And there are open source contenders, the main one being Red5, which of course also relies on flash being available on the client side.
In the future we'll probably see viable HTML5 alternatives but if you're doing something right now my feeling is that the flash route is the simplest solution and has the largest install base.
I did a video vlc record with python and it was quite simple. VLC have a stream recorder and as I know you could launch a vlc stream with a simple python code who manage the video ans the stream. I think all you need is to manage the sources and then, doing a small script who takes care about the vlc stream.
VLC stream will be launch on a different port, so I think you've to search a good server.
see vlc docs :
https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/
Enjoy :)
Check VLC or Flumotion...
Probably Photolab as well..
The latter one doesn't support audio...
Gee