Log in

View Full Version : mencoder then pulldown


lpn1160
18th March 2006, 17:22
I 've been having some intersting problems, that maybe someone can point out my mistake, if there is one. I use this script to encode some captures I do using streamer with mjpeg. The mencoder script is as follows:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf pullup,softskip,crop=336:464:8:6,kerndeint,expand=352:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:mbd=1:trell:turbo:vrc_minrate=3000:vbitrate=3500:vrc_maxrate=9000:acodec=mp2:abitrate=192:aspect=4/3 -ofps 24000/1001 -sws 9 -nosound -o precint13_1.mpg precint13_1.avi

Afterwards when I try to run pulldown on the file I get this error message:

[larry@localhost cap_scripts]$ pulldown precint13_1.mpg
PULLDOWN - v0.99d, by Hard Code.
[Based on sources by Brent Beyeler (beyeler@home.com)]

SOURCE = precint13_1.mpg, TARGET = pulldown.m2v

- Enabling 2:3 pulldown


File is not an MPEG Video Stream

Anyone know what the problem is??


thanks for ANY help!!

Guest
19th March 2006, 17:57
Maybe mencoder is making a program stream and Pulldown requires an elementary stream?

lpn1160
19th March 2006, 19:46
Yes I believe that is the problem. Is there something to put in or take out of my script??

Thanxs for responding

Guest
19th March 2006, 21:35
Make an ES with mencoder and then apply pulldown. Then mux the ES with the audio using (say) Imago Muxer.

KpeX
21st March 2006, 04:48
Use -of rawvideo with mencoder or run mplayer -dumpvideo on the resulting mpeg. Then run pulldown and use mplex, etc. to mux to mpeg.

lpn1160
22nd March 2006, 07:45
Thanxs all for the responses, KpeX that did the trick. Thank You

unixfs
23rd March 2006, 22:28
you can also let mencoder's muxer do soft-pulldown directly:
encode as progressive and use -mpegopts format=dvd : pulldown.

P.S. use a recent cvs checkout, or you will have a lot of problems due to the presence of bugs that Neuron2 helped me to fix.