LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2009, 06:58 PM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali, Ubuntu, OpenSuse
Posts: 618

Rep: Reputation: 40
Question converting *.avi to *.mpeg error


Hi,

im trying to convert an AVI movie to MPEG but I get the following error:

$ mencoder movie.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy other_options -o name.mpg
MEncoder 2:1.0~rc2-0ubuntu19 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x2bc09000
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 512x368 24bpp 23.976 fps 831.1 kbps (101.5 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:512x368 fps:23.98 ftime:=0.0417
PACKET SIZE: 2048 bytes, deltascr: 245760
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 B/s=16149 sample-0)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 512 x 368 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.39:1 - prescaling to correct movie aspect.
videocodec: libavcodec (512x368 fourcc=3167706d [mpg1])
[mpeg1video @ 0x88423b0]MPEG1/2 does not support 2997/125 fps
Could not open codec.
FATAL: Cannot initialize video driver.


advice? thanks! :=)
 
Old 05-18-2009, 01:01 AM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9
Posts: 1,317

Rep: Reputation: 153Reputation: 153
That's a lot of code for the newbie section. Perhaps using tovid (and tovidgui) would help.

[later edit] Seems the sourceforge page is currently defunct. Anyway, there is a deb here at this site.

Last edited by mark_alfred; 05-18-2009 at 01:17 AM.
 
Old 05-18-2009, 01:56 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Sometimes you have to read behind the error to see how it arises:
Code:
[mpeg1video @ 0x88423b0]MPEG1/2 does not support 2997/125 fps
... have you tried transcoding at a frame rate which mpeg does support? Or using a format which supports that framerate?

... have you considered converting to free/open formats instead of patent encumbered ones?
 
Old 05-18-2009, 11:35 AM   #4
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali, Ubuntu, OpenSuse
Posts: 618

Original Poster
Rep: Reputation: 40
thanks for your answers! this is what im trying to do: I have a DVD player which doesn't play files like *.avi, *.mp3, etc so I want to create a VCD using K3B so when I select the movie.avi it says that it only supports MPEG-1 & 2 formats to creat VCDs therefore im trying to convert it. what Framerates does MPEG support? also, what kind of free/open formats could I convert the movie.avi to be able to create a VCD?
thanks for your help! :=)
 
Old 05-18-2009, 12:24 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by ceantuco View Post
Hi,

im trying to convert an AVI movie to MPEG but I get the following error:
Technically, you are trying to encode the video as mpeg1. AVI is not really a video format, but a container. AVI files can contain mpeg1 video as well. I tell you that because some of your AVI's might already have the desired format. So check before re-encoding them because there's a data loss on each conversion, which means quality loss.


Quote:
Originally Posted by ceantuco View Post
thanks for your answers! this is what im trying to do: I have a DVD player which doesn't play files like *.avi, *.mp3, etc so I want to create a VCD using K3B so when I select the movie.avi it says that it only supports MPEG-1 & 2 formats to creat VCDs therefore im trying to convert it. what Framerates does MPEG support?
It's not only about mpeg, it's also about the video cd specifications. A video cd player might not be able to reproduce your video unless you respect the video cd standards. This means:
  • 29.97 or 23.976 frames per second for ntsc
  • 25 frames per second for pal

Quote:
also, what kind of free/open formats could I convert the movie.avi to be able to create a VCD?
None. VCD is by definition encoded with mpeg1, for both audio and video, with a contant bitrate and a given resolution. So, if you want to stick to the standard (and you should if you plan to use a video cd player) then you don't have many options.

Details about the format can be found on the wiki:

http://en.wikipedia.org/wiki/Video_CD



However, most dvd players today can play xvid without any problem and other free formats like theora or ogg/ogv.
 
Old 05-19-2009, 01:36 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
What he said...

@i92guboj: you've seen a hw dvd player which supports free formats?! Cool! It's hard to tell when you buy the thing - the salesperson dosn't know anh the vendor almost never puts it on the package or the label (or the instructions). All you can do is put the media in and hope. An amazing no of cheap media players play vorbis without telling you for eg.
 
Old 05-19-2009, 02:30 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by Simon Bridge View Post
What he said...

@i92guboj: you've seen a hw dvd player which supports free formats?!
Yep, there are some. But in the case of xvid, there's no need, most players supporting divx decoding will be able to play xvid just fine. And nowadays, all the dvd players can play xvid, even the cheapest ones that I've found.

Quote:
Cool! It's hard to tell when you buy the thing - the salesperson dosn't know anh the vendor almost never puts it on the package or the label (or the instructions). All you can do is put the media in and hope. An amazing no of cheap media players play vorbis without telling you for eg.
Vorbis support is not that famous, hopeless that will change in the future. Just as a curiosity, I am the proud owner of a blu:sens portable device that fits in like 4x7x1cm and can play ogg and ogv in addition to the tipical audio formats that all the devices support.
 
Old 05-19-2009, 03:13 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Well - I have an iRiver T10, but I also have a generic (S&V brand from Dick Smith) which will actually play vorbis. A surprisingly wide range do. Just not advertised. It is even possible that the manufacturer doesn't know - they just buy the roms for their mp3 support.

These days, when I get one, I check.

Of course - none of this helps OP.
 
Old 05-19-2009, 09:29 AM   #9
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali, Ubuntu, OpenSuse
Posts: 618

Original Poster
Rep: Reputation: 40
ok guys! I got it! I will buy a HD DVD Player-Recorder which plays many formats! I was able to convert *.avi to MPEG using tovid however the process was long and I think it would be cheaper and less time consuming buying a new DVD player! Thanks for all your answers!
 
Old 05-19-2009, 11:23 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by Simon Bridge View Post
Of course - none of this helps OP.
It seems that wasn't entirely true hehe

Nowadays, these toys are that cheap that counting both the time and electricity that you would waste to convert your collection would be probably be more expensive than simply buying a capable player. Not to speak about the quality loss that all your movies would suffer in the re-encoding process.
 
Old 05-19-2009, 08:16 PM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Sometimes digressions help.

Point of fact though: I have overseen converion of mp3 to ogg/vorbis on many machines. There is a loss of quality from this - unavoidable. So early on, I decided to test how bad it was.

On double-blind trials - nobody who claimed to be able to tell the difference was in fact able to. The attenuation is in high frequencies which adults cannot hear (I wouldn't be too surprised if some children can tell, but generally for bad recordings... they'd get better). The claims are usually around lower frequency artifacts (clicks and so on which end up "heard" in all recordings on double-blind - including the original) or subliminal effects (you don't hear it but it's absence is noticed.)

Whats really interesting is how many people can tell which I'm playing when it's only single-blind.
 
Old 05-20-2009, 03:38 AM   #12
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
For audio it takes a trained ear.

But for video artifacts can be clearly visible depending on the movie and the concrete frames. It also depends on how bad it already is. Some of the media might have been reencoded two or three times already, which makes another one like a drop in the middle of the ocean.
 
Old 05-20-2009, 04:13 AM   #13
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by i92guboj View Post
For audio it takes a trained ear.
and a professional sound studio - the trained ears I tested could not tell double-blind.
Quote:
But for video artifacts can be clearly visible depending on the movie and the concrete frames. It also depends on how bad it already is. Some of the media might have been reencoded two or three times already, which makes another one like a drop in the middle of the ocean.
Well - never tested video.

I've so far only ripped and converted video which won't play otherwise so I've only experienced improvement. The only thing I get is audio out of sync - which will be my sloppy configuration.

But I can well imagine.
 
  


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
converting dvix, mpeg, and avi to dvd LinuxGuru707 Linux - Software 7 09-14-2007 05:01 PM
avi to mpeg, reduce size of mpeg? gunnix Linux - General 5 03-04-2007 05:55 PM
best tool for avi->mpeg film converting ? soup21 Linux - Software 4 11-22-2005 10:47 AM
Converting avi to mpeg jnx138 Linux - Software 1 11-23-2003 03:43 PM
Converting avi to mpg OR creating an SVCD from an avi MasterC Linux - Software 5 03-28-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

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