Log in

View Full Version : mpeg2 cbr 4:2:2 + mpeg1layer2 audio in program stream?


smok3
15th May 2011, 18:53
what tools? i imagine hcenc will do the video part and twolame the audio, how to mux? thanks.

poisondeathray
15th May 2011, 19:06
ffmpeg can encode both audio & video and/or mux

smok3
15th May 2011, 19:17
ffmpeg can encode both audio & video and/or mux

cool, simple
ffmpeg -i maki.m2v -vcodec copy -i maki.mp2 -acodec copy muki.mpg

did not complain.

p.s. i can't belive this thread is allready on google, lmao (was it like 5 minutes?)

poisondeathray
15th May 2011, 19:24
if you want to encode 422 mpeg2 with ffmpeg, you need to specify -pix_fmt yuv422p -vcodec mpeg2video

but ffmpeg's mpeg2 encoding isn't that great...

smok3
15th May 2011, 20:00
so far i did like i wrote up there: hcenc for video (although its probably not really CBR), twolame for audio, ffmpeg for muxing.

qyot27
15th May 2011, 23:09
Couldn't you use mplex (part of MJPEGTools)? I've never experimented with 4:2:2 encoding, but I can't see why it wouldn't work:

mplex -f3 input.m2v input.mp2 -o output.mpg

http://sourceforge.net/projects/mjpeg/files/mjpegtools/1.9.0/
(grab the mingw-bin package; if you want the 2.0.0rc1 version for Windows, it seems you have to compile from source...I've not tried doing that yet)

smok3
16th May 2011, 07:49
my version 'mjpegtools mplex-2 version 2.0.0 (2.2.3)' did fail,
but i might get the command line wrong, i'll try with -f3.