stream can't get correct aspect ratio.
Posted: 21 Jul 2009 13:10
I get a m4v file with 16:9 aspect ratio. VLC can play the file correctly. Simply use:
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:
I tried a lot of parameters. But all failed to get correct aspect ratio. For example:
How can I get correct aspect ratio? And suggestion will be highly appreciated.
Code: Select all
vlc h:\1.m4v
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}}
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}