Transcode - Aspect Ratio

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
candela
Blank Cone
Blank Cone
Posts: 29
Joined: 30 Mar 2010 11:48

Transcode - Aspect Ratio

Postby candela » 30 Mar 2010 12:35

It's been asked many times before but I could not find any answer. I need to capture a stream of 720x576 4:3, resize it to 1024x576 16:9 and save it to a file.

When using the following cmd line (VLC Win 1.0.5) the saved file is 1024x576 with a DAR of 16:9 but the image is cropped or has black bars added, depending on adding --no-canvas-padd or --canvas-padd

Code: Select all

vlc --aspect-ratio=16:9 dshow:// :sout=#transcode{vcodec=theo,vb=800,acodec=vorb,ab=128,channels=2,samplerate=44100,vfilter=canvas{width=1024,height=576,aspect=16:9}}:duplicate{dst=std{access=file,mux=ogg,dst=C:\test.ogg},dst=display}
The following shows a correct preview onscreen but the saved file is 1024x576 with a DAR of 4:3 instead of 16:9

Code: Select all

vlc" --aspect-ratio=16:9 dshow:// :sout=#transcode{vcodec=theo,vb=800,acodec=vorb,ab=128,channels=2,samplerate=44100,width=1024,height=576}:duplicate{dst=std{access=file,mux=ogg,dst=C:\test.ogg},dst=display}
How do I get a saved file in 1024x576 with a DAR of 16:9 and no cropping or black bars? It seems like I have tried every combination of relevant settings but nothing works.

dach
New Cone
New Cone
Posts: 3
Joined: 04 Apr 2010 21:28

Re: Transcode - Aspect Ratio

Postby dach » 04 Apr 2010 21:57

I know your pain, I've been beating my head on a simple transcoding problem too.

From other threads I've read, you may need to change the AR after rescaling with MP4Box, or whatever is equivalent for ogg. There's no way built in right now. Another possibility, I've done some code diving vlc as part of my research, and saw some related code... if you know a bit of programming and compile your own vlc, you could hack canvas.c filter, and make it accept save a new AR without doing it's letterbox/crop magic.

Chadnaut
New Cone
New Cone
Posts: 5
Joined: 20 Sep 2013 11:37

Re: Transcode - Aspect Ratio

Postby Chadnaut » 20 Sep 2013 16:03



Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 55 guests