How to make a playable DVD iso from a VIDEO_TS folder?

just tried this on several VIDEO_TS and works perfectly.

hdiutil makehybrid -iso -joliet -udf -udf-volume-name $folder -o $fullpath.iso $fullpath

ps. I've never found out how to make ISOs out of VIDEO_TS using handbrake. I don't think this is possible.