Hi,

Just for the record somebody here in Barcelona today (a CS or applied
math prof?) said he makes movies (e.g., mpg) using some program, and
would like to very easily have the movies themselves be embedded in
the sage notebook.  Would it thus make sense to include Ondrej's video
player in Sage itself to make it easy to embed certain types of video
in Sage worksheets?

William

On Thu, Jul 2, 2009 at 4:57 AM, Rob Beezer<goo...@beezer.cotse.net> wrote:
>
> I spent some time today building on Ondrej's nice examples.  A few
> lessons learned the hard way for those who come along later.
>
> 1)  Rather than uploading largish videos to my website, I tried to
> experiment locally (ie loading web pages off my hard disk into my web
> browser).  Bad idea - the videos wouldn't play and no amount of
> debugging ever got results.  Maybe there is a way to make this work,
> but I'd suggest just experimenting with a real web server and a short
> clip.
>
> 2)  I used ffmpeg for the conversion, here's the command I settled on:
>
> ffmpeg -i infile.mpg -vcodec libx264 -acodec libfaac -b 600k -s
> 360x240 -f flv outfile.flv
>
> The size is a quarter of William's original video from Sage Days 15.
> The 600 kbit/sec bandwidth produced a file about a quarter the size of
> the MPEG2 original with about the same apparent quality as the
> original.  About 400MB/hour.
>
> 3)  Original video at 720x480 (3:2), but in a 16:9 aspect ratio (who
> knew pixels aren't square?).
> Dimensions by half:  360x240
> Stretch to original aspect ratio: (360*32/27)x240 ~ 427x240
> Add 24 pixels for controls at the bottom: 427x264
>
> So this is the size I used in the HTML/CSS to contain the player and
> it looks like the aspect ratio is correct.  Or close.
>
> 4)  Flowplayer is a pretty nifty tool.
>
> Probably better ways to do this, but this got results.
>
> Rob
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to