[MEncoder-users] mencoder size and aspect ratios for H.264 video

Brian Penick bydivinerite at gmail.com
Thu Oct 8 19:55:57 CEST 2009


Just out of curiousity did you run a crop detect on the video first?
Cropping to 720:352 before the scale seems like the wrong numbers.  At most
you would need to crop to 720:464:0:X (where X is the off set suggested by
the cropdetect filter). Check your numbers for the crop again and adjust
them or leave the crop out altogether and go for a
scale=640:352,dsize=640:360.  That should take care of your incorrect aspect
ratio.  Your problems aren't with mkv-merge, currently you are most likely
cropping out huge chunks of actual video. Also you can probably leave out
the force aspect ratio.


On Thu, Oct 8, 2009 at 3:08 AM, Etienne Buira
<etienne.buira.lists at free.fr>wrote:

> On Wed, Oct 07, 2009 at 08:50:01PM -0400, John Ratliff wrote:
> > Etienne Buira wrote:
> > > On Mon, Oct 05, 2009 at 04:57:14PM -0400, John Ratliff wrote:
> > >
> > >>> Well, --aspect-ratio refers to a stream ID, so that shouldn't matter
> > >>> where it is located in the cmdline. I though that you used
> > >>> --aspect-ratio 16:9, which will put AR 9 on stream 16.
> > >>>
> > >>>
> > >>>
> > >> I think that was the first thing I tried, but it was ignored as I put
> it
> > >> at the end of the command line. Trying it now at the front, I get
> this:
> > >>
> > >> "Warning: 'video.x264': A track with the ID 16 was requested but not
> > >> found in the file. The corresponding option will be ignored."
> > >>
> > >> I think because the stream ID refers to the video input file, not the
> > >> matroska stream it will become. I know the -A option must come before
> > >> the video.
> > >>
> > >
> > > Read again the mkvmerge man page, about --aspect-ratio. You have to
> > > specify <streamID>:<AR(like 16/9)>. So you probably have to specify
> > > '0:16/9': stream 0, aspect 16/9 (use '/' as AR is a fraction).
> >
> > > mkvmerge -o movie.mkv --aspect-ratio 0:16/9 -A video.x264 audio.ogg
> > > works
> > >
> > > mkvmerge -o movie.mkv -A video.xa64 audio.ogg --aspect-ratio 0:16/9
> > > doesn't work
> > I have read the manual, actually.
> >
> > Merci beaucoup pour votre assistance.
>
> Sorry, I haven't actually read correctly your message. This is the
> warning about ID 16 which put me in trouble.
>
> >
> > --John Ratliff
> >
> > _______________________________________________
> > MEncoder-users mailing list
> > MEncoder-users at mplayerhq.hu
> > https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>


More information about the MEncoder-users mailing list