Changes between Initial Version and Version 1 of Encode/WindowsMediaPlayer


Ignore:
Timestamp:
Apr 30, 2014, 3:42:43 PM (3 years ago)
Author:
benjisimon
Comment:

Started this page and added one tip that I'm aware of.

Legend:

Unmodified
Added
Removed
Modified
  • Encode/WindowsMediaPlayer

    v1 v1  
     1= Tips for Encoding Video for Playback on Windows Media Player = 
     2 
     3It's often helpful to be able to play back video on Windows Media Player, as this won't require a Windows user to install any special software.  This page contains tips for accomplishing this. 
     4 
     5== Check the Frame Rate == 
     6 
     7Consider a FLV file converted to MPEG using the following command: 
     8 
     9{{{ 
     10ffmpeg -i foo.flv -codec:v mpeg4 -flags:v +qscale -global_quality:v 0 -codec:a libmp3lame foo.avi 
     11}}} 
     12 
     13This results in an AVI file that's not playable by all versions of Windows Media Player. 
     14 
     15You can reveal the frame rate of the processed video by using this command: 
     16 
     17{{{ 
     18ffprobe foo.avi -show_entries stream=time_base -select_streams v -of compact=nk=1:p=0  
     19}}} 
     20 
     21In the above case, the frame rate was reported as being 1/1000.  By adding `-r 30` to the above command one can force the frame rate to be 1/30.  Doing so produces a video file that is playable by Windows Media Player. 
     22 
     23The complete and working command: 
     24 
     25{{{ 
     26ffmpeg -r 30 -i foo.flv -codec:v mpeg4 -flags:v +qscale -global_quality:v 0 -codec:a libmp3lame foo.avi 
     27}}}