gmarty/DVD.js: Playing DVD in JavaScript for the ... - GitHub

文章推薦指數: 80 %
投票人數:10人

Playing DVD in JavaScript for the sake of interoperability - GitHub - gmarty/DVD.js: Playing DVD in JavaScript for the sake of interoperability. Skiptocontent {{message}} gmarty / DVD.js Public Notifications Fork 15 Star 165 PlayingDVDinJavaScriptforthesakeofinteroperability gmarty.github.io/jsconf-2014-talk-play-dvd-in-js/ GPL-3.0License 165 stars 15 forks Star Notifications Code Issues 6 Pullrequests 0 Actions Projects 0 Security Insights More Code Issues Pullrequests Actions Projects Security Insights Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository. converter Branches Tags Couldnotloadbranches Nothingtoshow {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default 2 branches 0 tags Code Latestcommit   Gitstats 214 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime bin     config     public     src     .bowerrc     .gitattributes     .gitignore     Gruntfile.js     LICENSE.txt     README.md     bower.json     package.json     tsd.json     Viewcode DVD.js Talk Approach Install Support FAQ Doyouneedhelp? Whydoingthat? Whydon'tyoujustconvertthevideofortheweb? WhynotusingEmscripten? README.md DVD.js PlayingDVDinJavaScriptforthesakeofinteroperability Talk Formoredetailsonthisproject,havealookatthevideoofthetalkIgave atJSConf2014. Theslidedeckis alsoavailable. Approach Thisbranch,namedconverter,containsanencoderofDVDtowebformat.For theattempttoplayDVDon-the-fly,lookintothemasterbranch. IportedlibdvdreadandlibdvdnavtoJavaScript.Severalpassesareappliedto thecontentofaDVDtomakeitplayableonabrowserusingnativefeatures: IFOfilesareparsedtoJSON ChaptersaregeneratedasWebVTT NAVpacketsareextractedtoJSON Thebuttonssize/positionaresavedtoCSS ThemenustillframesaresavedtoPNG(tobedone) VMcommandsarecompiledintoJavaScript ThevideoisencodedtoWebm Install Clonetherepolocallyandinstallthedependencieswith: $npminstall $bowerinstall $gruntinstall You'llneedtoinstallthelatestversionofffmpeg. Then,compiletheTSfilestoJavaScriptwith: $grunt Ifyouseeamessagesaying'Done,withouterrors'thenthecompilationto JavaScriptwassuccessful. CreatethefolderthatwillholdyourDVD,e.g.: $cd/home/user/ $mkdirdvd $pwd /home/user/dvd ThenupdatethedvdPathpropertyoftheconfigfileinconfig/app.jsonto matchthepathtothefoldercreatedabove. CopyanunprotectedDVDintoasubfolderofdvd/(e.g.in /home/user/dvd/SitaSingstheBlues/) ToconverttheDVD,do: $nodebin/convert/home/user/dvd/SitaSingstheBlues/ Waitforawhile(reencodingvideotakesaloooooongtime). Startthewebserver: nodebin/http-server Finally,pointyourbrowserto: http://localhost:3000/ ...andenjoyyourDVDfromyourbrowser! Support Allbrowserssupportingthefollowingfeatures:



請為這篇文章評分?