LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer avi permanent index (https://www.linuxquestions.org/questions/linux-software-2/mplayer-avi-permanent-index-232289/)

guldo 09-18-2004 07:30 PM

mplayer avi permanent index
 
Hello.
I have a little problem with some avi files.
I cannot open these files normally, since mplayer claims there's no video stream.
I have to play it with the -forceidx option, or by saving and then loading a idx file.
That's fine, but I'd like to be able to get a new avi with a built-in index, a permanent one.
In the man page I've read that this can be done using mencoder, but I cannot understand how.
Could you please help me working it out?

Thanks.

druuna 09-19-2004 05:54 AM

A simple example of how to encode files using mencoder:

$ mencoder <infile> -ovc lavc -oac copy -forceidx -o <outfile>

This will encode with a libavcodec codecs (-ovc lavc), copies the sound, no changes made (-oac copy), forces an index (-forceidx ).

As you might have read, there are a ton of options. Don't know if you have lavc compiled in, for other available video codecs:

$ mencoder -ovc help

Hope this gets you going again.

guldo 09-19-2004 08:06 AM

Thanks a lot, everything's fine :D

bye


All times are GMT -5. The time now is 04:57 PM.