Concate VCDs to mp4 using VLC

#!/bin/bash
/bin/cat $* | /Users/xxx/Applications/VLC.app/Contents/MacOS/VLC –
–sout “#transcode{vcodec=h264,vb=1024,acodec=mp4a,ab=192,scale=1}:
standard{access=file,mux=mp4,dst=”/Users/xxx/Movies/vcd.mp4″}”
vlc:quit -I dummy