LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-18-2005, 07:04 PM   #1
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Rep: Reputation: 30
mencoder compress avi


I need to compress avi files created by dvgrab. I am using dvgrab to get video from my sony minidv but the avi files it produces are too large. Is mencoder the best tool to use to compress these files? Is there anything else I should try. I am able to view and edit the files with keno but am not sure if kino can compress the files. Thanks
 
Old 03-19-2005, 01:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
kino apparently can export to mpeg4 (divx) via ffmpeg and mjpegtools. i've never used it tho, so coulodn't tell you how to do it.

mencoder would be able to do this too though. you'd use a command like
Code:
mencoder dvfile -oac lavc -ovc lavc -lavcopts acodec=mp3,1bitrate=128,vcodec=mpeg4,vbitrate=800,vhq,vm4v -o file.avi
 
Old 03-27-2005, 07:53 PM   #3
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Thanks for the reply. When i try the code you provided for mencoder, below is what I receive. I have lame and ffmpeg installed.

mencoder dvgrab-2004.05.13_01-28-55.avi -oac lavc -ovc lavc-lavcopts acodec=mp3,lbitrate=128,vcodec=mpeg4,vbitrate=800,vhq,vm4v -o file.avi
MEncoder 1.0pre6-3.4.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0x3d2d674
AVI file format detected.
VIDEO: [dvsd] 720x480 24bpp 29.970 fps 28771.2 kbps (3512.1 kbyte/s)
[V] filefmt:3 fourcc:0x64737664 size:720x480 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 128000->128000 (1024.0 kbit)
Selected audio codec: [pcm] afmcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Requested video codec family [qdv] (vfm=dshow) not available.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdv] vfm:ffmpeg (FFmpeg DV decoder)
==========================================================================
Audio LAVC, couldn't find encoder for codec mp3,lbitrate=128,vcodec=mpeg4,vbitrate=800,vhq,vm4v


Any suggestions?
 
Old 03-29-2005, 08:24 PM   #4
jackstoage
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
I get that last line too "Audio LAVC, couldn't find encoder for codec mp3" trying to convert a .mov to a .avi.

The full response to the command is below:

MEncoder 1.0pre3-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Northwood 2674 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /home/dad/.mplayer/codecs.conf: Can't open '/home/dad/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 61 audio & 169 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/dad/.mplayer/mencoder: No such file or directory
font: can't open file: /home/dad/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0x21B8FC
QuickTime/MOV file format detected.
--------------
MOV track #0: 39 chunks, 117 samples
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (69)!
Image size: 640 x 480 (24 bpp)
Display size: 640 x 480
Fourcc: mp4v Codec: 'MPEG-4'
--------------
MOV track #1: 39 chunks, 0 samples
Audio bits: 16 chans: 1 rate: 12000
Fourcc: ulaw
--------------
MOV: longest streams: A: #1 (39 samples) V: #0 (117 samples)
[V] filefmt:7 fourcc:0x7634706D size:640x480 fps:13.01 ftime:=0.0769
==========================================================================
Opening audio decoder: [alaw] aLaw/uLaw audio decoder
AUDIO: 12000 Hz, 1 ch, 16 bit (0x10), ratio: 12000->24000 (96.0 kbit)
Selected audio codec: [ulaw] afm:alaw (uLaw)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio LAVC, couldn't find encoder for codec mp3

It appears it can't find some codecs or configuration files.

Stumped,

Jack
 
Old 03-30-2005, 04:56 PM   #5
jackstoage
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
It maybe that we don't have libavcodec (LAVC) installed. I will check mine when I get home.

jack
 
Old 03-30-2005, 10:46 PM   #6
jackstoage
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
Nope libavcodec is part of ffmpeg and its there.

Stumped again. Can anybody answer this question?

Jack
 
Old 04-01-2005, 04:29 PM   #7
jackstoage
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
Do a search on user jackstoage and mencoder there is a suggestion.

Jack
 
Old 11-07-2006, 11:43 AM   #8
goshasdef
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Syntaxproblem?

zuessh: This might be a syntax problem.

Try
mencoder dvfile -oac lavc -ovc lavc -lavcopts acodec=mp3:1bitrate=128:vcodec=mpeg4:vbitrate=800:vhq:v4mv -o file.avi

Martin
 
Old 02-13-2007, 05:44 AM   #9
snugglefuss
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
mencoder mp3 codec problem

Try -oac mp3lame
instead of -oac lavc

e.g
mencoder dvfile -oac mp3lame -ovc lavc -lavcopts acodec=mp3,1bitrate=128,vcodec=mpeg4,vbitrate=800,vhq,vm4v -o file.avi

See http://gentoo-wiki.com/HOWTO_Mencode...oduction_Guide
for a lot of useful info on using mencoder
 
Old 02-21-2007, 05:54 PM   #10
PJ0
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Smile

Thanks for the help! This helped me fix a similar issue with mencoder and a missing codec.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to compress video files to avi in linux Prasun Linux - Software 1 09-05-2005 06:22 PM
need to compress an .mpg to .avi drawhla Linux - Software 1 11-03-2004 07:39 AM
mencoder: DVD to avi. What did I do wrong? J_Szucs Linux - Software 10 04-12-2004 03:22 PM
DV 2 avi with mencoder NeptunEz Linux - Software 3 02-29-2004 03:01 PM
[AVI, mencoder, merge files] MrGreg Linux - Software 5 01-02-2003 05:46 AM


All times are GMT -5. The time now is 06:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration