LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-14-2005, 05:55 AM   #1
denning
Member
 
Registered: Jan 2004
Location: Oxford
Distribution: Slackware, Debian, Fedora, FreeBSD, NetBSD
Posts: 150

Rep: Reputation: 15
mencoder -ffourcc


i tried using mencoder to encode some files using lavc (mpeg4). I followed the mmplayer man pages and documentation, and produced xvid files that were playable by mplayer, but no other player. Xine, totem, and no Windows media players could recognize it.

I later experimented, and found the problem was that I didn't include the option -ffourcc XVID (-ffourcc dvix also works). That seemed to fix everything.

I have a number of questions:

1. If that option is so important, why is it not featured or even included in the mplayer documentation?

2. what does ffourcc do? Does it produce some sort of label or tag for video players to identify?

3. what ffourcc label do i give to mpeg1 and mpeg2 video files?
 
Old 12-14-2005, 08:47 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
from "man mencoder":
Code:
-ffourcc <fourcc>
    Can be used to override the video fourcc of the output file.

    EXAMPLE:

        -ffourcc div3
            will have the output file contain 'div3' as video fourcc.
The fourcc is defined here: http://www.afterdawn.com/glossary/terms/fourcc.cfm

The problem you have is odd. I have made divx files that are playable in mplayer, xine, totem, kaboodle, etc. I haven't tried wmp, though. Perhaps you could list the full command you use?
 
Old 12-14-2005, 07:43 PM   #3
denning
Member
 
Registered: Jan 2004
Location: Oxford
Distribution: Slackware, Debian, Fedora, FreeBSD, NetBSD
Posts: 150

Original Poster
Rep: Reputation: 15
thanks for your reply.


I followed the documentation quite closely and used the following

mencoder in.avi -o out.avi -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -oac mp3lame

I kept things simple just to ge things to work, but i consistently ran into problems. only mplayer could play the files.

I also noticed in Gnome that the nautilus file manager, which usually shows a preview snapshot of video files, did not show such a preview for my mencoded files.

In any case, this is just a gripe by me. The problem seems to be solved by expressly setting ffourcc.
 
Old 12-14-2005, 08:19 PM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
You might try setting the video and audio bit rates explicitly. Here is an example of a command I use:
Code:
mencoder in.vob -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2400 -vf pp=lb -oac mp3lame -lameopts cbr:br=128 -o out.avi
The above (if I remembered the command exactly) produces files playable in other linux media players. The main difference from yours is that I explicity set the video and audio bit rates.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using mencoder masand Linux - Software 10 05-27-2007 01:12 PM
mencoder aborted osio Linux - Software 0 10-19-2005 12:49 PM
mencoder jackstoage Linux - Software 9 04-22-2005 10:02 PM
How to get MEncoder ? zahoo Linux - Software 1 04-08-2005 07:27 AM
mencoder KL2001 Linux - Software 10 12-23-2002 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration