Howplay mp4 songs using NAudio - naudio

Can we play mp4 songs using NAudio?
Please provide some code to play mp4 songs
I need a c# code that will help me play mp4 songs

You can play .mp4 files using NAudio, there is a demo in the official page.
Donwload the Demo-Apps and look for the "Media Foundation Demo". The C# code of the demo can be found at the Source Code of NAudio.
Link to Demo-Apps
Link to Source Code
The implementation is in the WasapiOutGuiThread class:
WasapiOutGuiThread : IWavePlayer

Update: NAudio can now play MP4 files using the MediaFoundationReader assuming you have the appropriate codecs installed. This works on Windows Vista and above, and if you are running Windows Server you may need to have the "Desktop Experience" installed.
Alternative approaches would be to see if the WPF Media Element can play it, or using the Windows Media Player ActiveX control (on an OS that can play MP4s).

Related

Render camera preview in Chrome using Native Client SDK

I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35.
There available examples in /examples/api/ folder: media_stream_audio and media_stream_video.
The audio example works fine - requests access to microphone and shows some kind of preview.
The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect, and Chrome asks for the web camera access. When I click “allow” - webcam indicator lights-up, chrome show that web page uses the web camera, and I see the camera settings icon. But the preview doesn't work, there still red rectangle instead.
I checked this on Windows 8.1, Windows 7 and Mac OS X, with five different webcams, and have no idea what can be wrong.
Maybe someone already encountered with the same problem?
Installing the pepper_37(dev) version of NaCl SDK solved the problem. Looks like it is unstable version currently, but it works.

Videojs player html5 and remote video

Hello I have a problem with videojs player,
I have mp4 videos on one file server and mp4 video on my main server.
When I start some video and video is on my main server the loading is ok, but if I try to start a video that is on file server, video doesn't start.
The patch is correct.
with flowplayer works fine, have you some ideas to fix this problem?
Sorry, my ffmpeg patch was wrong, I usend ffmpeg installed with: yum install ffmpeg instead of /bin/ffmpeg installed manually
I change ffmpeg's url in my script and now works fine!

Playing an ogg stream in iOS

Has anyone played an ogg stream from iOS? What can I use without having to write my own decoder?
I'm using Apple's AVPlayer to play the stream.
This question has been asked as part of this thread:
iOS online radio streaming questions but it hasn't been answered.
There is no built-in support for playing ogg files in iOS, however, the source code for ogg compression/decompression is readily available (from xiph.com). It is fairly straightforward to compile this code for iOS and use it in an app.
I had a chance to compile the libraries and have made them available: "Precompiled Ogg Vorbis Libraries for iOS".
I have also made some sample source code available on GitHub that shows how to play decoded Ogg Vorbis audio on iOS: IDZAQAudioPlayer
.ogg file may also be encoded in Opus or FLAC, refer to Ogg wiki. IDZAQAudioPlayer may not cover all cases.
For Opus codec, you may refer Telegram for iPhone source code: https://telegram.org/apps
Use the VLCKit – ibvlc bindings for macOS, iOS, iPadOS and tvOS in Objective-C.
It's a library from the well-known media player "VLC Media Player," and it supports Cocoapods and can play/stream .ogg files on iOS seamlessly.
pod 'MobileVLCKit'
Check out this blog post for a more detailed tutorial.

iPhone SDK - Converting .mov to .3gp

I need to convert a video in format ".mov" to ".3gp". I searched on Google and I found some people saying to use ffmpeg.
I search a lot but I don't found any tutorial to how compile ffmpeg for iPhone then convert the video.
Has anyone what have done this or know any tutorial?
Thanks a lot.
ffmpeg has already been ported to the iOS platform:
gabriel/ffmpeg-iphone-build # GitHub
Alternative: ffmpeg4iphone - Google Code

Audio and Video file

I am using mono 2.10.4 and monobjc. I want to be able to play H264 video file and an mp3 file. Monotouch has examples of playing the same on their web site(http://wiki.ios.xamarin.com/HowTo/Video/HowTo%3a_Playback_a_Video.).
But can the same be accomplished using mono and monobjc ?. What would be the libraries that I would need ?.
There is a sample application named QTKitPlayer that demonstrate how to play a movie by using the QuickTime API; it is part of the Monobjc distribution.