How to crop while transcoding?
Posted: 08 May 2009 20:17
I have access to a iptv site, from where i save streams (broadcasted in asf, in the format ), using this code
And i don't have have any problems saving the streams.Most of themare broadcasted in 4:3 aspect ratio, but some of the shows are in reality 16:9, so I want to crop the black lines on the top and on the bottom of those shows, using vlc, but i can't guess the right command line code. I read through the vlc help and some topics here, but i still can't make the code work.
I tried using this code:
and i get the following error (there are also other things, but i think that this is the most important. if required i can post all the debug messages)
So it does not work. I tried also that code:
With it i don't get any errors, and the new file is generated, but it is the same as it was-nothing has been cropped.
So, please, can you give me the right code, which i must use? Thank you
P.S. I'm using Windows XP, and VLC 0.9.2
Code: Select all
http://site.com/asx/isp/quality/some.random.hash/channel.asx
Code: Select all
"c:\Program Files\VideoLAN\VLC\vlc.exe" http://site.com/asx/isp/quality/some.random.hash/channel.asx --sout=#duplicate{dst=std{access=file,mux=asf,dst=c:/input.ps}}
I tried using this code:
Code: Select all
"c:\Program Files\VideoLAN\VLC\vlc.exe" -vvv c:\input.ps --sout=#transcode{vfilter=cropadd{croptop=48,cropbottom=48}:std{access=file,mux=asf,dst=c:\output1.ps}}
Code: Select all
main error: invalid chain
stream_out_transcode error: cannot create chain
main warning: no sout stream module matching "transcode" could be loaded
Code: Select all
"c:\Program Files\VideoLAN\VLC\vlc.exe" -vvv c:\input.ps --sout=#transcode{crop=448x576+0+0}:std{access=file,mux=asf,dst=c:\output2.ps}}
So, please, can you give me the right code, which i must use? Thank you
P.S. I'm using Windows XP, and VLC 0.9.2