[MEncoder-users] Mencoder and MP4 container
vf
fedorchuk at gmail.com
Thu Jul 23 18:47:15 CEST 2009
On Thu, Jul 9, 2009 at 10:50 PM, Dave P <lists.davep at gmail.com> wrote:
> On Thu, Jul 9, 2009 at 15:20, vf<fedorchuk at gmail.com> wrote:
> > On Thu, Jul 9, 2009 at 8:35 PM, Dave P <lists.davep at gmail.com> wrote:
> >
> >> On Thu, Jul 9, 2009 at 13:27, vf<fedorchuk at gmail.com> wrote:
> >> > Yes, I know this way. But the result file will be encoded in h263
> format
> >> > (FLV1) instead of h264 (FLV5)
> >>
> >> Please avoid top-posting.
> >>
> >> > On Thu, Jul 9, 2009 at 8:23 PM, Dave P <lists.davep at gmail.com> wrote:
> >> >
> >> >> On Thu, Jul 9, 2009 at 12:24, vf<fedorchuk at gmail.com> wrote:
> >> >> > I'm trying put h264 video to the FLV container:
> >> >> >
> >> >> > # /usr/local/bin/mencoder -o /tmp/80056336515605765.flv
> >> >> > /root/videotest/Crete_Faistas.avi -ovc x264 -x264encopts
> >> >> >
> >> >>
> >>
> bitrate=288:frameref=5:bframes=0:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300:threads=auto
> >> >> > -vf scale=540:436,harddup -oac mp3lame -lavcopts
> >> acodec=mp3:abitrate=128
> >> >> > -srate 22050
> >> >> > MEncoder SVN-r29414-snapshot-4.3.3 (C) 2000-2009 MPlayer Team
> >> >> >
> >> >> > WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
> >> >>
> >> >> It's in the fine manual:
> >> >> -of lavf -lavfopts format=flv
> >>
> >> "-of" is a container-level argument, not a codec-level argument. For
> >> example, one can use vp6vfw.dll and -of lavf -lavfopts format=flv
> >> successfully.
> >> _______________________________________________
> >> MEncoder-users mailing list
> >> MEncoder-users at mplayerhq.hu
> >> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
> >>
> >
> > Sorry for the top posting.
> >
> > I've tried this way too:
> >
> > /usr/local/bin/mencoder -o /tmp/80056336515605765.flv
> > /root/videotest/Crete_Faistas.avi -fps 25.0 -of lavf -lavfopts format=flv
> > -oac mp3lame -lameopts abr:br=128 -srate 22050 -ovc lavc -lavcopts
> >
> vcodec=libx264:vbitrate=288:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=0:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2
> > -vf scale=581:436
> >
> > It produces FLV (as I can see by 3 symbols at the beginning of the output
> > file) (filesize grows twice).
> > Unfortunately, it cannot be played by Flowplayer flash player (Flash 10
> > installed).
> >
> > (flvtool cannot index it too: ERROR: EOFError)
> >
> IIRC Flowplayer can do .mp4, so perhaps try H.264/AAC in MP4
> container. Mod16 for width and height is also recommended.
>
So, I can create h264 video:
# /usr/local/bin/mencoder -o /tmp/80056336515605765.mp4
/root/videotest/Crete_Faistas.avi -fps 25.0 -of lavf -lavfopts
format =mp4 -oac mp3lame -lameopts abr:br=128 -srate 22050 -ovc lavc
-lavcopts
vcodec=libx264:vbitrate=288:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:di
a=2:vmax_b_frames=0:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2 -vf
scale=576:432
Unfortunately, it is not playable by Flowplayer. As I guess the problem is
related to AVI container in the result file.
Is there any way to put it in the MP4 container?
More information about the MEncoder-users
mailing list