http://wiki.linuxmce.org/api.php?action=feedcontributions&user=Buzzydex&feedformat=atomLinuxMCE - User contributions [en]2024-03-29T04:46:37ZUser contributionsMediaWiki 1.24.1http://wiki.linuxmce.org/index.php?title=Add_video_file_extensions&diff=21304Add video file extensions2009-09-30T05:33:34Z<p>Buzzydex: /* How to do it */</p>
<hr />
<div>=How to add valid file extensions for new Video formats=<br />
LinuxMCE maintains a list of video extensions in the "MediaType" table of the "pluto_main" database.<br />
<br />
==How to do it==<br />
''At a terminal prompt, type the following:''<br />
<br />
1.)<br />
mysql -u root -D pluto_main <enter><br />
<br />
''Password for "root" is <blank> by default. You'll now see a "mysql>" prompt''<br />
<br />
2.)<br />
select Extensions from MediaType WHERE Define = "pluto_StoredVideo"; <enter><br />
<br />
''You should see a result like this:''<br />
+---------------------------------------------------------+<br />
| Extensions |<br />
+---------------------------------------------------------+<br />
| mov,avi,mpeg,mpg,wmv,ts,tp,dvd,vdr,ogm,evo,m2ts,iso,mp4 |<br />
+---------------------------------------------------------+<br />
1 row in set (0.00 sec)<br />
<br />
3.)<br />
UPDATE MediaType SET Extensions = "<Insert Result from #2 here>,<new fileext sep by ,>" WHERE Extensions = "<Insert result from #2 here.>"; <enter><br><br />
''For Example:''<br />
UPDATE MediaType SET Extensions = "mov,avi,mpeg,mpg,wmv,ts,tp,dvd,vdr,ogm,evo,m2ts,iso,mp4,'''mkv,bin'''" WHERE Extensions = "mov,avi,mpeg,mpg,wmv,ts,tp,dvd,vdr,ogm,evo,m2ts,iso,mp4";<br />
<br />
4.)<br />
quit <enter><br />
<br />
== Another way ==<br />
If you need to add the ''flv'' extension:<br />
<br />
''At a terminal prompt, type the following:''<br />
<br />
1.)<br />
mysql -u root pluto_main<br />
2.)<br />
update MediaType set extensions=concat(extensions,',flv') where define='pluto_StoredVideo';<br />
quit<br />
<br />
<br />
<br />
[[Category: Tutorials]]</div>Buzzydex