Export Audio in UnityScript - unityscript

I need to export audio in Unity to the user and anything I try isn't working. Sav.Wav.Save doesn't work. Please respond in UnityScript.

Related

Capture and Record Desktop Screen with/as Webcam Video

Webcam lets others view either still pictures or motion video of a user or other object in front of it. I want to configure Webcam in a way that it start capturing desktop screen instead of what is in front of it.
I want to manipulate desktop screen captured through Webcam using FFMPEG library. Such as:
ffmpeg -f dshow -i video="Integrated Webcam" -f mp4 cam_stream.mp4
I want to use this same application to capture my Desktop Screen that will be possible just in that case when Webcam will be able to capture my Desktop Screen instead. So above command will start recording what Webcam will be capturing that I want it to capture my desktop screen.
Note: I know other ways to capture, record or stream desktop screen but I want to achieve it through Webcam.
What I tried so far: I tried some Fake/Virtual Webcam software (manycam, sparkocam etc.) but I don't think they fulfil what I exactly want.
P.S. I posted the same question in another community but didn't get any response.
Please guide me if there is any way to achieve this? Thanks
Solution to this problem would be to capture desktop directly by using ffmpeg.
Follow the link Capture Desktop using ffmpeg
Ive been searching all day for a similar thing.
Ive found this: https://streamshark.io/blog/using-obs-as-a-virtual-webcam-on-windows-and-macos/ With this software you can create a virtual cam that can utilize a portion of your screen as a fake webcam output.
Exactly what I need and what I think the OP is talking about.
So for future ref, bumped.
(Why do I need this for instance?: I dont have a smartphone, but a virtualbox android. I want to install the windows desktop app versions of certain apps. For which I need to "hold the phone (virtualbox) in front of a computer screen (main os)"...
On this forum see this post on capturing the desktop:
Capture Windows screen with ffmpeg
If I understand well, you also want to add views from your webcam. The above mentioned link on capturing the desktop shows how to use dshow. So the desktop and the webcam are both input streams for your output mp4.
I suggest to add your webcam as input:
-f dshow
-i <webcam>
Next, e.g. use the overlay filter to put both the desktop and the webcam on one view.

Embedding Movie in Quartz Composer screen saver

I am working on Quartz Composer Screen Saver, Using One animated video which i created. I used Movie Importer Patch for this. in movie location set the video location and connected the image with another patch 'Resize Image If in Preview'.
the screen saver created and it works fine in my machine. what i want is how can i embed this video that the screen saver can work in other machin. right now if i change the video name or location then screen saver not working, nor i can send to other machine to view the screen.
is there any way that i can user remote location of video, like i will host video on my server use that http path in movie location path.. i tried this but its not working.
need help in this either to embed video or to use remote video location to run the screen saver.!
Quartz Composer for screen saver
ok, i find solution by my own, host video on remote server and use that http path in movie import location. in my case issue was that the video file was .mp4 but was not proper mp4, so i converted video properly and then start working.

Audio not working in YouTube player helper app

I'm writing an app that plays videos from YouTube using the YouTube helper library ( https://developers.google.com/youtube/v3/guides/ios_youtube_helper#controlling_playback ).
The video works well, but when it plays there is no audio. I am new to using audio in apps, so it is quite possible that there is a very simple setting that I need to change in my xcode project, but I don't know what it is. Any help is greatly appreciated.
It turns out that my phone was simply on silent. YTPlayerView cannot produce any sound when the ring/silent switch is in the silent position
Actually you can make the YTPlayerView reproduce sound even with the switch in the silent position: Check this answer
To play Youtube even when in silent mode, add the following to your code. Can be anywhere, like in AppDelegate:
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback)
}
catch {
// report for an error
}
Original code copied from here
YoutubePlayer cannot produce any sound when the ring/silent switch is in the silent position and sound will be active

Shockwave and PowerPoint

I tried finding information on the web, but could not, so I was wondering if anyone has some information:
We have made a Flash animation
We have embedded it in a PowerPoint slide
Everything is working on our side
I just want to make sure before I send it to the client that it will work if someone has no Shockwave plugin installed? In other words, does PowerPoint include the "Codec" to view the item when the PowerPoint file is generated?
I tried uninstalling my Shockwave, but for some reason I am unable to, so I am not sure how to test this.
Any ideas will be appreciated.
Thanks!
Kobus
If the playback computer doesn't have the correct plug-in, it won't be able to play the Flash animation. Flash playback doesn't use CODECs in the same sense that WMVs and other movie formats do.

Generating thumbnails for movies from iTunes file sharing data?

i´m using the itunes file sharing feature to import customized data from the user.
I need to play videos when tapping on a customized UIButton. Therefore i want to know if its possible to set a thumbnail image from a video to each instance of MyButton.
I´ve played already with the MPMoviePlayerController and its "thumbnailImageAtTime:timeOption" function. It works great after selecting and playing that one video. But i need to generate thumbnails for all videos before.
When syncing videos on any iOS device via itunes, apple generates thumbnails for the camera roll instantly. So thats the way i´m looking for.. Any ideas how apple is doing it?
I´ve got it. Using the AVFoundationFramework with "AVAssetImageGenerator" ;)
Getting a thumbnail from a video url or data in iPhone SDK

Resources