LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mencoder to make video playable on windows (https://www.linuxquestions.org/questions/linux-software-2/mencoder-to-make-video-playable-on-windows-562069/)

desibeli 06-15-2007 12:19 PM

mencoder to make video playable on windows
 
I'm trying to use mencoder to build a video stream from a series of pictures and I want to play this on Windows through a web browser as an embedded element. I prefer not to ask viewers to download special players or codecs.

I've tried several formats, but none of them will play on windows in media player or quick time.

I'm going by:

http://www.mplayerhq.hu/DOCS/HTML/en...nc-images.html

I previously tried using flash generated with PHP/ming, but the stream slows down and I need the frame rate to be accurate.

Any suggestions on how to generate a video stream on Linux viewable on Windows?

MS3FGX 06-16-2007 10:44 PM

You won't be able to generate WMV from mencoder, but you could do MPEG certainly. The stock WMP certainly is a useless media player, but it has to support MPEG1/2 at the very least.

desibeli 06-18-2007 12:51 PM

Thanks for the answer, but I tried both mpeg1video and mpeg2video. Both play correctly in MPlayer, but not in Windows media player. I'm running:

mencoder mf://@list.txt -mf w=200:h=150:fps=30:type=jpg -ovc lavc -lavcopts vcodec=mpeg1video -o tst.mpg

where list.txt is a list of black and white .jpg files. I'm using Windows media player 11 for playback.

Any ideas to what is wrong or how I could generate a video sequence alternating black and white boxes on Linux that could be played on Windows. (I tried flash through PHP/Ming but it slows down and I need a fixed frame rate).

desibeli 07-23-2007 01:15 PM

Somebody figured out how to do it:

http://electron.mit.edu/~gsteele/ffmpeg/

Basicly use msmpeg4v2 instead:

mencoder mf://@list.txt -mf fps=30 -o test.avi -ovc lavc -lavcopts vcodec=msmpeg4v2


All times are GMT -5. The time now is 11:00 PM.