How do I convert FLV to WMV? Is there a script or can I integrate it in some way?
Thank you!
I do not think you can do this directly with PHP. However, you can use peripherals called form PHP (for example, Here is a code sample: Source: ffmpeg ).
& lt; Php $ Src = "file.flv"; $ Output = "file .wmv"; Ffmpegpath = "/ path / to / ffmpeg"; $ Flvtool2path = "/ path / to / flvtool2"; $ Ffmpeg Obze = New FFMPG_MV ($ src); $ SrcWidth = makeMultipleTwo ($ ffmpegObj-> GetFrameWidth ()); $ SrcHeight = makeMultipleTwo ($ ffmpegObj-> MatchFrameHight ()); $ SrcFPS = $ ffmpegObj- & gt; GetFrameRate (); $ SrcAB = intestine ($ ffmpeg obje- & gt; milliobiobitrect () / 1000); $ Srcar = $ ffmpegObj- & gt; GetAudioSampleRate (); Exec ($ ffmpeg path. "-i". $ SrcAR. "-ab". $ SrcAB. "-widcure wmv1-codode adpcm_ima_wav -s". $ SrcWidth. "X". $ SrcHeight. "". $ Output. " | ". $ Flvtool2Path." -UStudin ". $ Output); // multiplex function function multilatat two ($ value) {$ sType = gettype ($ value / 2); If ($ sType == "integer") {return $ value; } And {return ($ value -1); }}? & Gt;
Comments
Post a Comment