Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mencoder AVFrame error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Wed Dec 07, 2016 7:52 pm    Post subject: mencoder AVFrame error Reply with quote

I'm trying to convert a series of AVI files to MP4 files. My specific code is (the following is a subset of a script to process all AVI files in a directory):

Code:
mencoder "${inputFile}" -o "${inputFile%.*}.mp4" -oac copy -ovc lavc -lavcopts vcodec=mpeg1video -of mpeg


However, running this code produces:

Code:
[mpeg1video @ 0x7fbac44f5c00]AVFrame.format is not set
[mpeg1video @ 0x7fbac44f5c00]AVFrame.width or height is not set


This is repeated constantly until the whole video is complete. The AVI is from a DVD ripped by dvd::rip. Looking for the problem online has so far shown mostly internal (and non dvd::rip) related issues on bugzillas.
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Wed Jan 25, 2017 7:49 pm    Post subject: Reply with quote

I'd use ffmpeg to convert them instead.

Also, using MPEG1 for video? I'm curious why.

Code:

ffmpeg -i source.avi -acodec copy -vcodec mpeg1video testing.mp4

_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Thu Jan 26, 2017 12:13 am    Post subject: Reply with quote

I'm afraid I can't recall where i found it now. I'm far from even an amateur on working with a/v and came across it somewhere (I'm thinking the code used by dvd::rip, which I've since found to be a fairly antiquated application). I found Handbrake has suited my needs well (though I had to re-rip). I'll keep this in mind for future use, though. Thanks!
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Thu Jan 26, 2017 6:44 am    Post subject: Reply with quote

Yeah, HandBrake is great. Let us know if you have any issues there, as well. Have fun. :)
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum