I'm playing around with streaming to a simple mediaelement in silverlight from VLC, but i'm having no such luck. I'm using the following code;
mediaelement.Source = new Uri("http://localip:8080", UriKind.Absolute);
mediaelement.play();
On the VLC end i'm using the following video settings (which i believe WP supports)
Method: HTTP
Container: MP4
Video: H-264
Audio: MP3
All i get is a black screen, no error, no video and no sound. I've read that WP doesnt like playing media etc whilst zune is running, so i've ran the project with my phone connected using wpconnect instead but still have the same issue.
Can anyone give me a few tips?
thanks
See this article for configuration and compatible audio and video formats:
From this article:
http://ipaddress:port;stream.nsv :sout=#transcode
vcodec=WMV2,vb=5000,fps=30,scale=1,acodec=wma2,ab=128,channels=1,samplerate=44100}:std{access=mmsh,mux=asfh,dst=MyIP:PortNo}
:no-sout-rtp-sap :no-sout-standard-sap :sout-keep
Related
I am using an FFMPEG component in embarcadero C++ Builder to capture video from a Direct show video camera. The capture works fine and gives me good quality mp4 files which I can play back using VLC player or FFMPEG, but the video file is not compatible with windows media player and windows won't give the nice video image when you view a file list with windows explorer.
I have seen suggestions which say you simply need to set the capture format to YUV420P, however if I do this, FFMPEG raises an exception -5 (input / Output error) and the capture device will not open.
Is there any other setting I should be looking at to allow FFMPEG to open the camera and capture the stream so media player will accept it.
I am using libVLCSharp (Xamarin bindings to the libvlc library) for video playback. I am adding a feature to transcode / compress downloaded videos to the local filesystem. Normally I'd use mobile-ffmpeg for this, but since internally VLC uses ffmpeg with different build configurations, ffmpeg transcoding does not work - android it crashes the app, ios returns a 'Invalid data found when processing input' error message when attempting to convert. The code works fine when libvlcsharp is uninstalled and there is only one instance of the ffmpeg library being used.
So, I'm looking for video compression / transcode options for Xamarin.iOS.
I've looked into the docs for libvlcsharp and it sounds like we can transcode, but it's somewhat vague on how to do that:
https://github.com/videolan/libvlcsharp/blob/3.x/docs/how_do_I_do_X.md
How do I do transcoding?
Pretty similarly to how you would do it from the CLI. Read https://wiki.videolan.org/Transcode/ and try media options with Media.AddOption.
In my case, I'd like to transcode non-interactively / in the background of the app. There is a 'dummy' option in the command line interface for doing this, so I was wondering how we'd do this from libvlc / libvlcsharp.
So far, my code from these docs looks like this:
using(var vlc = new LibVLC())
{
Media media = new Media(vlc, source, FromType.FromLocation);
media.AddOption($":sout=#transcode{{vcodec=h264,venc=x264{{cfr=40}},vb=2048,scale=auto,acodec=mp4a,ab=96,channels=2,samplerate=44100}}:std{{access=file,mux=ts,dst={destination}}}");
media.AddOption("dummy");
//How do I start the transcoding non interactively??
}
As replied on the libvlc discord server, when you are transcoding a video, it is not displayed at all and you just don't need to create a VideoView, the MediaPlayer alone is enough.
The rest is finding the correct transcoding options, and you already found the correct wiki page for that.
We are trying to supply video in emails and it will fall back to a static image if html5 video is not supported. We are having issues with Windows Phones mail client in that it appears to support HTML video because it loads the player. You can see the play icon in the middle but it does not play. It is totally unresponsive.
Does anyone know if there is a specific format videos need to be supplied in? Or if it is just an incompletely finished feature? It is worth noting I am testing this on WP7, not WP8 as I don't currently have access to that device.
Cheers
I think you should use H264 codec for your video with MP4 format.
This link can help you : HTML5 support in IE9 mobile.
To do this, you can use ffmpeg
ffmpeg -i you_video_file.[avi/mp4/mkv] -vcodec libx264 output.mp4
I want to stream an audio from server using windows phone 7
the audio extension is mp3. I have tried Mp3MediaStreamSource class but the problem was that it downloads all the audio then start playing it.
I want to know what is the best way to play audio in WP7 for platform 7.0 ( with buffering -> not waiting until the entire audio file is downloaded.
Thanks in advance
I use Background Audio agent do stream mp3 radio broadcast. Take a look at this tutorial http://msdn.microsoft.com/en-us/library/hh202978(v=VS.92).aspx
I want to receive and play live video streaming on Windows Phone 7
I'm using VLC Player to Achieve that.
(HTTP, destination with .wmv extension , transcoding into wmv )
on the Windows Phone 7
I drag and drop media element the code like that
mediaElement1.Source=new URI(http://localhost:8080/go.wmv
but nothing is played
plz help
Convert the stream in H264 instead of wmv. This should work.