H.264/.mkv to WMV???

About encoding, codec settings, muxers and filter usage
angrypanda
New Cone
New Cone
Posts: 9
Joined: 05 Feb 2007 22:49

H.264/.mkv to WMV???

Postby angrypanda » 24 Nov 2007 22:18

Hi,

I'm trying to transcode some video that was encoded with h.264 and aac - I need it in WMV format so I can stream it to my xbox360.

The video plays fine in VLC, but when I use my trusty old VLC command line it fails :cry: The video is squeezed in the Y direction, but the width seems to be fine, also the sound is fine. How can I un-squash the video so that it goes back to 16:9 format?

The command I'm using is:
"C:\VLC\vlc.exe" -vvv %1 :sout=#transcode{vcodec=WMV1,vb=1500,scale=1,acodec=wma
,ab=96,channels=2,samplerate=44100,deinterlace}:std{access=file,mux=asf,dst=%1.w
mv} vlc:quit

- where %1 is replaced with the full path and file name of the video to be converted.

I've tried removing the scale=1 and the deinterlace arguments, and adding height=512, width=384 - but nothing seems to work.

Any help/hints much appreciated.

Cheers, Jon

angrypanda
New Cone
New Cone
Posts: 9
Joined: 05 Feb 2007 22:49

Re: H.264/.mkv to WMV???

Postby angrypanda » 25 Nov 2007 01:25

Hi,

The video was encoded at 720x576, and if I set the scale to be 1.25 I end up with a video that is stretched along Y, rather than
squashed. If I set the scale to 0.75 I end up squashed again. What is the magic ratio that i need?????

Please help this is driving me nuts.

Cheers, Jon

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: H.264/.mkv to WMV???

Postby Arite » 25 Nov 2007 18:40

If it is 720x576 (5:4), then if it plays back as 4:3 then you will want to strect along the x by 1.066. For 16:9, you want to strech along the x by 1.422.

You can add the width/height commands in the MRL commadline. You could try:

Code: Select all

"C:\VLC\vlc.exe" -vvv %1 :sout=#transcode{vcodec=WMV1,vb=1500,scale=1,width=768,height=576,acodec=wma,ab=96,channels=2,samplerate=44100,deinterlace}:std{access=file,mux=asf,dst=%1.wmv} vlc:quit
Which should output a 4:3 video (assuming you want 4:3). For 16:9 use width=1024,height=576. Also, you can reduce the sizes if you like (e.g. for a 0.5 size video, just set width=512,height=288).

Arite.
Don't use PMs for support questions.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests