Help:Editing

(Difference between revisions)
Jump to: navigation, search
m
(Added help about Shockwave videos)
Line 6: Line 6:
 
** [http://meta.wikimedia.org/wiki/Help:Administrator%27s_Guide MediaWiki Administrator's Guide]
 
** [http://meta.wikimedia.org/wiki/Help:Administrator%27s_Guide MediaWiki Administrator's Guide]
 
** [http://meta.wikimedia.org/wiki/Regexp_wgWhitelistRead Regular expression hack for wgWhitelistRead]
 
** [http://meta.wikimedia.org/wiki/Regexp_wgWhitelistRead Regular expression hack for wgWhitelistRead]
 +
 +
=Embedding Adobe Shockwave Videos=
 +
You can create and embed [http://www.adobe.com/products/shockwaveplayer/ Adobe Shockwave] videos in MediaWiki. This is only possible
 +
if [http://www.mediawiki.org/wiki/Manual:%24wgRawHtml $wgRawHtml] is ''true'' in the configuration of the Mediawiki system. Note that
 +
this is a safety issue and therefore requires [http://www.mediawiki.org/wiki/Manual:%24wgWhitelistEdit $wgWhitelistEdit] to be ''true'' as well.
 +
# Create a public directory for the web-server.
 +
# Get Jeroen Wijering's free and open source [http://www.jeroenwijering.com/?item=JW_FLV_Player JW_FLV_Player] and copy the file '''flvplayer.swf''' into this directory.
 +
# [http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-selecting-codec.html Convert your video to Shockwave using MEncoder] and store the result in the same directory.
 +
# Use the tags ''html'' and ''embed'' to embed the video in a page.
 +
 +
This is the command line for creating a Shockwave video (FLV):
 +
<pre>
 +
mencoder input.avi -o output.flv -of lavf \
 +
    -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
 +
    -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
 +
</pre>
 +
You may have to specify ''-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames'' as additional parameter.
 +
 +
This is some example HTML-code for embedding a Shockwave video in a page of the Mediawiki:
 +
<pre>
 +
&lt;html&gt;
 +
  <div class="thumb tright">
 +
    <div style="width:360px;">
 +
      <embed style="width:360px; height:270px;" id="VideoPlayback" type="application/x-shockwave-flash"
 +
        src="http://vision.eng.shu.ac.uk/mypath/flvplayer.swf" width="360" height="270"
 +
        flashvars="file=myvideo.flv&image=http://vision.eng.shu.ac.uk/mypath/mypreview.jpg&displayheight=270">
 +
      </embed>My title and information about this video. <a href="Wikipage">See Wikipage for more ...</a>
 +
    </div>
 +
  </div>
 +
&lt;/html&gt;
 +
</pre>
 
=See Also=
 
=See Also=
 
* [[Help:Contents|Help contents]]
 
* [[Help:Contents|Help contents]]

Revision as of 16:57, 9 July 2007

Editing-Help

Embedding Adobe Shockwave Videos

You can create and embed Adobe Shockwave videos in MediaWiki. This is only possible if $wgRawHtml is true in the configuration of the Mediawiki system. Note that this is a safety issue and therefore requires $wgWhitelistEdit to be true as well.

  1. Create a public directory for the web-server.
  2. Get Jeroen Wijering's free and open source JW_FLV_Player and copy the file flvplayer.swf into this directory.
  3. Convert your video to Shockwave using MEncoder and store the result in the same directory.
  4. Use the tags html and embed to embed the video in a page.

This is the command line for creating a Shockwave video (FLV):

mencoder input.avi -o output.flv -of lavf \
    -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
    -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3

You may have to specify -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames as additional parameter.

This is some example HTML-code for embedding a Shockwave video in a page of the Mediawiki:

<html>
  <div class="thumb tright">
    <div style="width:360px;">
      <embed style="width:360px; height:270px;" id="VideoPlayback" type="application/x-shockwave-flash"
        src="http://vision.eng.shu.ac.uk/mypath/flvplayer.swf" width="360" height="270"
        flashvars="file=myvideo.flv&image=http://vision.eng.shu.ac.uk/mypath/mypreview.jpg&displayheight=270">
      </embed>My title and information about this video. <a href="Wikipage">See Wikipage for more ...</a>
    </div>
  </div>
</html>

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox