|
From: Steven M. S. <sm...@2B...> - 2004-01-02 07:06:57
|
On Thu, 1 Jan 2004, Brian J. Murrell wrote:
> I am using mencoder (libavcodec in reality I guess) to create an mpeg1
Hmmm, I knew ffmpeg had mpeg1 encoding capability (from libavcodec)
and it can, if you say the right magic words, produce MPEG1
ES (Elemental Stream) files.
I am fairly sure that the problem is that mencoder produces AVI files
- they're already "muxed" and definitely not MPEG1 ES files and that
is why mplex can't recognize them.
> INFO: [mplex] mplex version 2.2.2 ($Date: 2003/05/13 20:27:15 $)
> **ERROR: [mplex] File test.mpeg1 unrecogniseable!
> INFO: [mplex] File test.mp3 looks like an MPEG Audio stream.
> **ERROR: [mplex] Unrecogniseable file(s)... exiting.
Right - the file's already multiplexed, into an avi stream. The
video portion is MPEG1 but it's inside a container format and mplex
doesn't mplex avi files.
> Is there anything I can do to discover more about what mplex does not
> like about this mpeg1 file?
If you're determined to avoid mpeg2enc then you might use 'ffmpeg'
to do the encoding - it can produce ES files rather than AVI files.
Something like this (suitably modified for your situation of course)
might work better. I was testing the mpeg2 encoding capability
so for mpeg1 you'd change the 'mpeg2video' to be 'mpeg1video' and
of course set the bitrate and bufsize down to reasonable values:
ffmpeg -f yuv4mpegpipe -i susi_120.y4m -b 7000 -ilme -ildct \
-aspect 4/3 \
-top 1 -g 15 -maxrate 7500 -f mpeg1video -vcodec mpeg2video \
-bufsize 1840 -y xxx
MPEG1's most commonly used for VCD (352x240) - is that what you're
doing?
Cheers,
Steven Schultz
|