changing aspect ratio

About encoding, codec settings, muxers and filter usage
krazy
New Cone
New Cone
Posts: 1
Joined: 20 Mar 2011 05:43

changing aspect ratio

Postby krazy » 20 Mar 2011 05:51

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

chinook70
New Cone
New Cone
Posts: 4
Joined: 18 May 2011 00:36

Re: changing aspect ratio

Postby chinook70 » 18 May 2011 02:21

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.

zozizozu
Blank Cone
Blank Cone
Posts: 62
Joined: 26 Jul 2009 18:18

Re: changing aspect ratio

Postby zozizozu » 18 May 2011 08:01

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}


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests