How to play RTSP on Google TV ( or use ffmpeg ) - android-ndk

In short, I have to play RTSP on a Google TV device (Sony nsz-gs7). How can I do it?
Things I tried:
Use NDK to compile ffmpeg, then ffmpeg converts rtsp to udp etc. - Fails because NDK is not supported in Google TV (see: https://developers.google.com/tv/faq#ndk). This method uses ffmpeg as library.
Put ffmpeg executable (compiled with NDK) in an application, then call the app from command line. (see: http://gimite.net/en/index.php?Run%20native%20executable%20in%20Android%20App - first method). I can deploy executable and set its permissions, but cannot execute it; i get "not found" error (its path is correct). If only I could run an executable file in Google TV, the problem would be solved, I think.
Tried to display in VideoView, like Google TV VideoView playing YouTube rtsp videos, it didn't work either.
These approaches all work on Android phones, but I couldn't make them work on Google TV.
Any tips for displaying RTSP or running executable files? Or do I have to wait for NDK support?
Update: If there is an application which can play RTSP streams, we can also use it as a temporary fix.

The current version of Google TV is based on FFMpeg internally and is supposed to play RTSP content of course, if you try that example, you'll want to refresh the url for the RTSP content as YouTube doesn't keep them live long. Since RTSP is a transport format, not a codec, you might want to say what your encoding is.
That said, I've never made RTSP work myself - so I'm not speaking from experience, but I do trust my colleague Shawn who wrote the answer to the link above.
One of the features we announced at Google I/O 2012 was the ability to write your own transport stream and codec's in Java. That software is currently on the LG and will be on most of the others in the next few months.
If your need is urgent write me at Google or on Google+.

Related

How does Scratch play sounds without any problem on mobile?

If you are familiar with scratch, you'll know that Scratch 3 was built to support mobile.
Javascript audio isn't working on mobile devices shows that mobile doesn't support auto playback of audio
Scratch seems to play audio without a problem...
Does anyone know the secret behind Scratch mobile audio playing capabilities? (share pieces of code which scratch uses to play audio on mobile)
(Incase you're wondering why I need to know this, I need to use it on my website)
Read the answer carefully.
Some mobile browsers support automatic playback of audio, but ios, chrome and others require interactive actions to trigger the sound playback.You can try working with the mute attribute..
Scratch can't play sounds automatically. You have to click the Start button on any project. By "interactive actions" they mean clicks, scroll etc,.

How to turn off system sound when starting video recording in Windows 10 mobile (UWP app)

I would like to mute the system sound when starting/stopping video recording in Windows 10 mobile. There are apps like 6sec and Instagram UWP Beta that can do it. I did research about MediaCapture API but found nothing related to the problem.
I thought the system did it automatically..
A possible workaround can be to play a media file before starting the camera, like a super short mp3 file with no sound..
I haven't tested it, but it should work.. Maybe there's a better solution.. Let me know!

Chrome does not play MP4

I get several emails everyday to my Gmail account, from my security camera system. Such mail contains links to video clips (aprox 20 sec each) from cameras in MP4 format.
Strange is that on Mageia based PC after clicking on such link the clip is open and playback in new separate browser card. And it is correct situation for me. But on Ubuntu based PC, Chrome always download video clip to HDD instead playback one.
I dont know is it Linux distribution related problem but both installations use Chrome ver 38.
How can I change/setup to have MP4 files always be playback instead downloaded ?
Are you using Google Chrome or Chromium on Ubuntu, as a matter of interest? Either way the issue may be that MP4 support has not been enabled.
To enable it you need to install the support for mp4 codec:
sudo apt-get install chromium-codecs-ffmpeg
The reason for this is that some codecs are not fully open source, because they may be subject to patents for example, and hence they can't be included in a fully open source release.
See some discussion and references:
https://github.com/videojs/video.js/issues/675
https://launchpad.net/ubuntu/precise/+package/chromium-codecs-ffmpeg-extra
I resolved the problem by emailing not direct link to particular video clip but by email link to WEB page containing HTMLv5 code with "video" statement. It is more flexible because it works in any environment and in any browser compatible with HTMLv5.

playing mp3 audio file in firefox browser

I have searched for various articles about playing mp3 files in firefox but no luck.
I want something similar to this website for playing my audio files:
http://www.waatea603am.co.nz/podcasts
Can anyone tell me how is the audio files being played in the website. I want to do something similar. I cant figure out how it is being done.
Thanks
Here's the JavaScript that makes the links play sound:
http://www.waatea603am.co.nz/Resources/JavaScript/podcast-audio.js
It's basically using the HTML5 Audio element:
<script type="text/javascript">
var snd = new Audio("file.mp3"); // buffers automatically when created
snd.play();
</script>
http://www.w3.org/wiki/HTML/Elements/audio
This isn't really a "programming" question, as much as a "Firefox configuration" question.
Personally:
I don't really have any preferences of "media player" for Linux
I simply use Windows media player for Windows
Windows Media player comes built in with all recent versions of Windows
Windows media is the default file association for .mp3 on all recent versions of Windows
Consequently, Firefox automatically uses Windows Media player to play .mp3's
Here's more info:
Issues:_Sound">http://kb.mozillazine.org/Mozilla_Suite_:Issues:_Sound
http://support.mozilla.org/en-US/kb/fix-common-audio-and-video-issues
'Hope that helps .. PSM
PS:
Unfortunately, most commercial Internet radio stations seem to use Flash to broadcast audio streams. Sigh...

Play Apple's .caf audio file on a webserver?

Play Apple's .caf audio file on a webserver? I have .caf audio files (Apple's open audio format) stored on my webserver and want to play them from a web browser on any O/S.
I understand, this doesn't seem like the solution you're looking for, but...
Several weeks ago we faced the same problem. We have several clients which are posting audio files to the web site from theirs iPhones, and we need to play audios on the web site.
But we didn't find any suitable flash player with .caf format support.
So we decided to convert .caf to .mp3 on the server through the ffmpeg.exe utility.
Happily, there a lot of flash players with .mp3 support.
Now I have not tried this... but...
This website:
http://modmyi.com/forums/skinning-themes-discussion/1769-how-do-i-create-caf-file.html
Seems to suggest that .CAF and .AIF may work interchangeably (It suggests that to convert to .CAF you convert to .AIF` and then rename the file).
Have you tried renaming it to .AIF and trying to play in a flash/java browser player? Alternatively just send it as a stream to the web-browser and let the client OS work out what to do with it (Like quicktime running inside the browser).
Let me know how it goes.

Resources