PDA

View Full Version : Can Mencoder create mpeg2 elementary streams?


wiseant
24th September 2007, 07:47
Hi All,

I've searched and searched but I can't seem to find out conclusively if mencoder can encode .m2v/.mpv/.mv2 files, i.e. elementary video so I can use directly in Muxman or DVDAuthor without having to demux first.

If there a special format switch available?

TIA,
wiseant

45tripp
24th September 2007, 09:56
... -o output.m2v -of rawvideo -ffourcc MPG2

wiseant
24th September 2007, 18:36
Thanks Immersion!

I just replaced

-of mpeg -mpegopts format=dvd

with

-of rawvideo -ffourcc MPG2

and it works!

By the way, if I want to also encode audio what switches would I use in conjunction with this? I am using ac3.

TIA

45tripp
24th September 2007, 20:00
you wouldn't.

mencoder can't output streams with audio only.
unless you want to create a ps muxed with ac3,
but then why ask about outputing elementary streams

use aften to encode to ac3,
or ffmpeg for simplicity

gl

wiseant
24th September 2007, 20:23
Thanks again Immersion,

The reason I asked is that I have found mencoder to be a little faster than ffmpeg - I have used ffmpeg to produce .m2v and .ac3 files ready for dvd authoring. To make sure I understand: I can use mencoder to create a DVD compliant elementary video stream and then I can extract the audio (Vdub/Avidemux) to wav and use aften to convert to ac3? Then I just use Muxman or DvdAuthor.

45tripp
24th September 2007, 21:29
Yes,

no reason not to continue using ffmpeg for the audio.
you're familiar with it, why not?

could also use mplayer to get the wav.

gl