How to crop while transcoding?

About encoding, codec settings, muxers and filter usage
dagoburd
New Cone
New Cone
Posts: 1
Joined: 08 May 2009 19:22

How to crop while transcoding?

Postby dagoburd » 08 May 2009 20:17

I have access to a iptv site, from where i save streams (broadcasted in asf, in the format

Code: Select all

http://site.com/asx/isp/quality/some.random.hash/channel.asx
), using this code

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}}
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:

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}}
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)

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
So it does not work. I tried also that code:

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}}
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

lexxai
New Cone
New Cone
Posts: 5
Joined: 18 Dec 2006 22:51

Re: How to crop while transcoding?

Postby lexxai » 14 Jun 2010 09:30

http://wiki.videolan.org/Transcode
transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}
tested ok, at VLC 1.1.0 rc1

vlc udp://@ :sout=#transcode{vcodec=h264,vb=200,scale=0.5,acodec=mp3,ab=64,channels=1,deinterlace,sfilter=logo,vfilter=croppadd{croptop=38,cropbottom=40,cropright=8}}:duplicate{dst=std{access=http,mux=ts,dst=:8080}} --logo-file logo-ua-big.png,0,50 --logo-position 6


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests