Page 1 of 1

stream can't get correct aspect ratio.

Posted: 21 Jul 2009 13:10
by zoro5722
I get a m4v file with 16:9 aspect ratio. VLC can play the file correctly. Simply use:

Code: Select all

vlc h:\1.m4v
But when I try to stream it. Thing goes wrong way. The local play screen looks a just square. And the remote client (Media Player) say the mms stream has 320x180 resolution and 1:1 aspect ratio. The command line is:

Code: Select all

vlc H:\1.m4v :sout=#transcode{vcodec=DIV3,vb=800,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=display,dst=std{access=mmsh,mux=asf,dst=:1234}}
I tried a lot of parameters. But all failed to get correct aspect ratio. For example:

Code: Select all

vlc H:\1.m4v :sout=#transcode{width=320,height=180,vcodec=DIV3,vb=800,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=display,dst=std{access=mmsh,mux=asf,dst=:1234}} vlc H:\1.m4v :sout=#transcode{vcodec=DIV3,vb=800,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=display,dst=std{access=mmsh,mux=asf,dst=:1234}} :sout-transcode-canvas-width=320 :sout-transcode-canvas-height=180 :sout-transcode-canvas-aspect=16:9 or even vlc H:\1.m4v :sout=#transcode{vcodec=DIV3,vb=800,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=display}
How can I get correct aspect ratio? And suggestion will be highly appreciated.

Re: stream can't get correct aspect ratio.

Posted: 05 Oct 2009 23:38
by nereikianieko
bump. I have the same problem, but haven't seen any answer. Maybe this is VLC bug?