What is the best way to record audio in browser? [closed] - web-audio-api

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 days ago.
Improve this question
Now I try to record audio in browser in small pices by RecordRtc js library.
What I've explored for this moment:
Inspite of what codec and format I point in RecordRtc options Chrome want to record only webm;codecs=opus audio, Firefox want to work only with ogg and only firefox know what the ogg is this, my android-mobile-webview records wav (I haven't checked Ff, but chrome is definitely not gonna work with wav)
Is there any crossbrowser solution in this branch? maybe I just need to explore another js recorders? Or I have to be prepared to recode every formats from one to another by my hands if I want to unify audio format in my project.
I event cannot find any generalized information about what codecs-browsers supporting pairs there are.
Next I'm gonna send these blobs to another user one by one and than play it by MediaSource.souresBuffer that of cource have pretty much differences in its way to work in defferent browsers too.
May you share any experience or good practices in all this browser-audio-recording stuff with me?
I alredy have been checking different combinations of borwsers and codecs, talking with chatgpt about possible solutions, but it only advice to checking codecs suppornig by methods like MediaRecorder.isTypeSupported and recoding audio by ffmpeg.js if sth wrong.

Related

Improving my uml class diagram for a media library [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm making a class diagram for a media library, like iTunes or Windows Media Player. My library contains audio, video and images.
I'm fairly new to this, so I'm not sure if I'm heading in the right direction. This is what I got so far:
I feel like there should be a few more classes. Does anyone have some tips/suggestions on how to improve/expand this class diagram?
EDIT!
I've tried to make the playlists a bit more clearer. I've also added an interface:
It seems fine to me in the main lines:
The Media specialization seems correct
The Person specialization seems correct
The Directs and Composes relationships seem right
Nothing seems wrong here. But the Playlist composition is however not very clear. I have no obvious alternative, but here is the point...
How it is introduced, your playlist might be composed by images, videos, audio records. The question is the relationship between the compositions.
If you wish a playlist composed by image OR videos OR audio records non-exclusively, the playlist should be composed by medias in general.
If you wish a playlist composed by image OR videos OR audio records exclusively, things become quite subtle. In your representation this is not obvious at all. At least a note should be welcome in order to specify the exclusive composition relationship. A solution would be to specialize the playlists: the specialized version would be instantiated on the insertion of the first element. This is up to what you really want to show. In any case, an explanation note would be very useful.

Streaming webcam to my webpage [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to build a webpage that shows the video of a webcam on live.
Right now, I have no webcam, so I'll have to buy one. I don't mind how much it costs, I just want it working with a good resolution (at least 720p).
I don't know which kind of camera I should buy and which programming language is better for that (if it's possible I would prefer not to use Flash).
Can you help me?
Sorry for my bad English, I'm trying to improve ;)
Alex
To show in a webpage, you can use IP-Camera. They cost a little more, but they can serve their images as independent network node. They also supports voice and live compression (H264 and MPEG4).
Best brand is Axis, but there are lots of options.
For Axis camera models, adding view to page would be as easy as add this item to your page:
<img src='http://192.168.1.20/axis-cgi/mjpg/video.cgi'>
It works for most browser, not IE. For IE, they have support as well here.

RTSP video streaming for iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to display on the iPhone screen video stream RTSP. Can throw the source code of the project or details on how to implement it. Found 2 project, but they have not compiled:
https://github.com/mooncatventures-group/RTSPPlay
https://github.com/mooncatventures-group/RtspFrames-test
Source code from the site VLC also does not compile, no files.
Tell me, is it possible to record the stream to a video file? And how is it implemented?
Thanks in advance.
You can use FFmpeg for displaying RTSP video stream.
As example you can look at my project hosted on github.
It's movie player for iOS using ffmpeg and OpenGLES.
For me appears that the best choice is
https://github.com/durfu/DFURTSPPlayer
Yes, it's pretty old and it won't work out of the box, but if you'll update mpeg libraries to 3.0, refactor project to ARC and get rid of deprecated mpeg methods, it seems to be a good choice. Definitely better than VLC.
All above can be found here https://github.com/rozum-dev/DFURTSPPlayer

Where to find quality audio samples for looping [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am working on a musical instrument app for iPhone and need sample sounds that I can use for the various wind instruments. I'll be using OpenAL with looping, so a 1 second sample that is spot-on in-tune and without vibrato or other variation is essential.
My question is: Where can I find audio samples that are, or can be converted to .CAF format for looping play? Need these to be "realistic" sounding, not electronic sounding. Not looking for freebie, looking for professional quality.
Thanks in advance!
Here's the command for converting to CAF format:
/usr/bin/afconvert -f caff -d LEI16#44100 myaudiofile.wav myaudiofile.caf;
Regarding finding samples, there's a ton out there. Search Google with "free audio samples".
Magazines like Sound On Sound and Computer Music will often have deals. Although sometimes you'll need to buy the magazine, or be a subscriber. They do lots of reviews of commercial sample CDs. Often these are quite reasonably priced (e.g. $50).
As with everything, the key is to check the license carefully to make sure it's full use and that you can redistribute in your app. That also applies to samples that you can download for free.

How does CamScanner, Genius Scan, and JotNot work? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was looking at CamScanner, Genius Scan, and JotNot and trying to figure out how they work.
They are known as 'Mobile Pocket Document Scanners.' What each of them do is take a picture of a document through the iPhone camera, then they find the angle/position of the document (because it is nearly impossible to shoot it straight on), straightens the photo and readjusts the brightness and then turns it into a pdf. The end-result is what looks like a scanned document.
Take a look here of one of the apps, Genuis Scan, in action:
http://www.youtube.com/watch?v=DEJ-u19mulI
It looks pretty difficult to implement but I'm thinking someone smart on stackoverflow can point me in the right direction!
Does any know how one would go about developing something like that? What sort of library or image processing technologies do you think they're using? Anyone know if there is something open source that is available?
I found an open source library that does the trick:
http://code.google.com/p/simple-iphone-image-processing
It probably is pretty difficult, and you will likely need to find at least some algorithms or libraries capable of detecting distorted text within bitmaps, analyzing the likely 2D and 3D geometric distortion within a text image, image processing to correct that distortion with its inverse, and DSP filtering to adaptively adjust the image contrast... plus use of iOS APIs to take photos in the first place.