Page 1 of 1

changing aspect ratio

Posted: 20 Mar 2011 05:51
by krazy
hello everybody,

currently we are using this command to transcode audio to output stream (video comes as it is)

vlc -vvv udp://@172.27.27.167:1234 --sout #transcode{acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=172.27.27.61,port=3001,mux=ts}

the source is AV video of h.264 4x3 format and mpeg2 audio, we are using above command so that output only transcodes audio to AAC and leaves video unchanged and output as it is,

now how can be change the output stream where video now has 16x9 format than it's original 4:3 , something as simple as changing aspect ratio on GUI where it stretches to full screen without cropping or adding spaces. just stretches. is there a way to specify in input side or output side, please let me know, eitherway the process should not go through transcoding video phase.

thank you

Re: changing aspect ratio

Posted: 18 May 2011 02:21
by chinook70
I have been searching for essentially the same thing only converting the video from h264 to mpg2 and stretching the aspect ratio vertically from 16:9 to 4:3.

Re: changing aspect ratio

Posted: 18 May 2011 08:01
by zozizozu
Hi, , if you only want to "resize" your video, i think you can set width/height while transcoding :

vlc -vvv udp://@172.27.27.167:1234 --sout #transcode{width=800,height=450,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=172.27.27.61,port=3001,mux=ts}