<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Video and Media</title><link>http://forums.silverlight.net/forums/20.aspx</link><description>Discussions about video and media in Silverlight applications</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/240956.aspx</link><pubDate>Thu, 02 Jul 2009 18:35:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240956</guid><dc:creator>dmacdonald</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240956.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=240956</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry I&amp;#39;m a little confused. I&amp;#39;m having a similar issue, I&amp;#39;m trying to manually control playback of some h264 encoded video by setting the position manualyl within a timer (or a scrub bar). I have several seconds lag between any manual setting of the position and the video display actually updating. I dont understand your fix either visuallook (and it didnt seem to help me). Can you guys clarify? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Daniel &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/179812.aspx</link><pubDate>Thu, 26 Feb 2009 15:48:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:179812</guid><dc:creator>visuallook</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/179812.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=179812</wfw:commentRss><description>&lt;p&gt;hi N37,&lt;/p&gt;
&lt;p&gt;sorry for the last one ;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;moviePlayer.MediaOpened += &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;RoutedEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(moviePlayer_MediaOpened);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; moviePlayer_MediaOpened(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;RoutedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;moviePlayer.Position = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;TimeSpan&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.FromSeconds(s);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;moviePlayer.Play();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/179300.aspx</link><pubDate>Wed, 25 Feb 2009 20:08:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:179300</guid><dc:creator>N37-L0RD</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/179300.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=179300</wfw:commentRss><description>I changed visuallook&amp;#39;s fix to fit my application and it actually solved the problem. I can now change position without any issues.</description></item><item><title>Re: Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/178644.aspx</link><pubDate>Tue, 24 Feb 2009 13:46:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:178644</guid><dc:creator>MarauderzMY</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/178644.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=178644</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s what I did for my download progress.&lt;/p&gt;
&lt;p&gt;Like what you did, I decided to track when was the furthest played portion of the video. only thing is that I track at the MILISECOND scale, which I think offers a bit more granular than just using seconds. &lt;/p&gt;
&lt;p&gt;Also, when dealing with non fully downloadable videos, instead of diirectly jumping to the furthest played position, I always back up about a second. I know it might not be what you want to hear since you need EXACT video movement. but might be able to give you some ideas. &lt;/p&gt;</description></item><item><title>Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/178324.aspx</link><pubDate>Mon, 23 Feb 2009 23:49:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:178324</guid><dc:creator>brucechase</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/178324.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=178324</wfw:commentRss><description>&lt;p&gt;An update for those that find the Position call does not cause a proper&amp;nbsp;display update within&amp;nbsp;Silverlight..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On further testing, I have found a way to get the MediaElement.Position to work correctly on most videos.&amp;nbsp; If the original source of the video is MP4 for instance, and Expression Encoder cannot transcode the video to WMV format, I have had my Window&amp;#39;s service use FFMPEG to do the transcoding.&amp;nbsp; The resulting files play within Silverlight, but the Position call does not correctly update the display to the Position&amp;#39;s returned timespan.&amp;nbsp; But, if the transcoded WMV file (from FFMPEG) can then be put through Microsoft&amp;#39;s Expression Encoder and the resulting output (again, a WMV as well) will play correctly (as the original WMV file did) but a call to the Position function actually causes a screen update such that the video display and the Position call match.&lt;/p&gt;
&lt;p&gt;I find that nearly all the uploaded files to our site are not Expression Encoder compatible because nearly all are MP4 or a variation thereof.&amp;nbsp; The MOV files do encode correctly within Expression Encoder, but under 64-bit Windows Server 2003, it takes a little bit to get the correct codecs installed -- at least for us novices.&lt;/p&gt;
&lt;p&gt;So, encode with FFMEG to WMV and take the results and&amp;nbsp;encode with Expression Encoder to WMV again.&lt;/p&gt;</description></item><item><title>Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/177120.aspx</link><pubDate>Fri, 20 Feb 2009 16:41:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:177120</guid><dc:creator>brucechase</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/177120.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=177120</wfw:commentRss><description>&lt;p&gt;My problem is a bit different than the problem of seeking an exact position upon the opening event.&amp;nbsp; My problem is to get to a somewhat exact position (let&amp;#39;s say within a 10th of a second) after the video has played.&amp;nbsp; Within sports video, one may want to move forward and backward at small increments when replaying an event on the video. Silverlight does a fine job of seeking an exact position when moving forward quote, unquote, &amp;quot;frame by frame.&amp;quot;&amp;nbsp; The problem I have is stepping backward in a video.&amp;nbsp; When seeking a position, the Get part of the Position function returns a timespan that does not at all match the display.&amp;nbsp; In stepping back in the video, the display may not change for 2 seconds of incremental step-back of say, 20 x 0.1 seconds.&amp;nbsp; Then suddenly, the video displays 2 seconds prior to the original Position.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;This only occurs on lower quality videos that are encoded by FFMPEG from FLV files to WMV (so far).&amp;nbsp; Those videos files have a framerate of 29.97 fps.&lt;/p&gt;
&lt;p&gt;You can see the problem at:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.coachmesports.com/?xamlID=325d4256-f5e4-4f61-a493-df3387ecda60"&gt;http://www.CoachMeSports.com?xamlID=325d4256-f5e4-4f61-a493-df3387ecda60&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(The small &amp;quot;+&amp;quot; and &amp;quot;-&amp;quot; buttons on the video player allow one to step forward and backward in small steps,&amp;nbsp;respectively.)&lt;/p&gt;
&lt;p&gt;Another video, encoded from a MOV file to WMV (via Microsoft&amp;#39;s Expression Encoder) does not display the same problem:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.coachmesports.com/?xamlID=17b66798-07c3-4592-aead-64e746499a67"&gt;http://www.CoachMeSports.com?xamlID=17b66798-07c3-4592-aead-64e746499a67&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So, it appears that Silverlight handles the display of a video frames relative to the Position call differently depending upon the video source when moving backward in the video.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;This does not make or break an appliction. It is an annoyance.&lt;/p&gt;</description></item><item><title>Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/177032.aspx</link><pubDate>Fri, 20 Feb 2009 12:58:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:177032</guid><dc:creator>visuallook</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/177032.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=177032</wfw:commentRss><description>&lt;p&gt;Hello N37,&lt;/p&gt;
&lt;p&gt;Try&amp;nbsp;this..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;moviePlayer.MediaOpened += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;RoutedEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(moviePlayer_MediaOpened);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; mediaPlayer_MediaOpened(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;RoutedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;mediaPlayer.Position = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;TimeSpan&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.FromSeconds(s);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;mediaPlayer.Play();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/176647.aspx</link><pubDate>Thu, 19 Feb 2009 20:48:25 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:176647</guid><dc:creator>brucechase</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/176647.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=176647</wfw:commentRss><description>&lt;p&gt;I have a very similar problem.&amp;nbsp; The problem is much more acute with low-quality FLV files transcoded to WMV files.&amp;nbsp; The original FLV files may have been at 15 frames per second as a guess (I have not checked).&amp;nbsp; When high-quality video files taken from MPG4 or MOV are encoded to WMV format with about 30 frames per second, the use of MediaElement.Position is a bit better.&amp;nbsp; The Position works somewhat well if I position the video &lt;strong&gt;ahead&lt;/strong&gt; by just hundredths of a second (let&amp;#39;s say, about 1 frame) but Position does not work well in moving backward unless the increment is greater than 1 second.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am playing with all types of techniques.&amp;nbsp; I have repostioned&amp;nbsp;the video backward a few seconds and then put&amp;nbsp;a dynamic timeline marker into the Markers collection at the point where I want the video to stop (let&amp;#39;s say 6 hundredths of a second behind where I am) and played the video up to the point of the marker for which the Marker callback comes into play.&amp;nbsp; Within the callback, I stop the video.&amp;nbsp; The position should be right?&amp;nbsp; Nope.&amp;nbsp; The Marker referenced by the marker callback is actually 0.04 seconds late.&amp;nbsp; That is, the callback is finally used 0.04 (and up to 0.1) seconds after the position is hit by the media element. Now that may not seem like much&amp;nbsp;and relative to streaming content, it is not.&amp;nbsp; But it proves the difficulty in using all types of hacks in order to zero in on a specifc position within a video.&amp;nbsp; Even though the documentation speaks of how extremely&amp;nbsp;fine-grained the&amp;nbsp;Position is, the reality is&amp;nbsp;one cannot align the actual video content with the Position.&amp;nbsp; If one steps back in the video in 0.05 hundreds a&amp;nbsp;second increment, the video frame may not change for up to 2 or 3 seconds of step-backs.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;If I find a solution to this, I will let you know.&lt;/p&gt;</description></item><item><title>MediaElement seek (position) issue</title><link>http://forums.silverlight.net/forums/thread/176050.aspx</link><pubDate>Wed, 18 Feb 2009 20:06:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:176050</guid><dc:creator>N37-L0RD</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/176050.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=176050</wfw:commentRss><description>&lt;p&gt;Hello!
&lt;/p&gt;&lt;p&gt;
I have a very strange problem.&lt;/p&gt;&lt;p&gt; I&amp;#39;m loading a video in silverlight from a web server (i also tried silverlight streaming) and it all works well. I have an indicator of &amp;quot;already downloaded&amp;quot; (via DownloadProgress) and i use a slider overlayed with a rectangle (mouse events) to do the navigation.
&lt;/p&gt;&lt;p&gt;
The problem appears when i try to seek to a different position in the movie (the one WHO I&amp;#39;VE ALREADY SEEN - is downloaded). Click events are OK, time calculations are also fine (slider moves to the right spot, seconds are accurate), but when i do this:&lt;/p&gt;&lt;p&gt;

&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;this&lt;/span&gt;.moviePlayer.Position = TimeSpan.FromSeconds(s);&lt;/pre&gt;&amp;nbsp;&lt;p&gt;

...movie simply stops and &amp;quot;freezes&amp;quot;.&lt;/p&gt;&lt;p&gt;

It&amp;#39;s also interesting that it somehow works well in a short movie (5-10 sec).
&lt;/p&gt;&lt;p&gt;
Any ideas how to fix this?

Tnx in advance.&lt;/p&gt;</description></item></channel></rss>