"The h264 muxer received invalid h264/AVC data" error problem fixed as expected. Thanks.
EDIT: I have a potentially silly question. If I have a 16-bit lossless source I want to convert to DTS, should I encode the DTS at 16-bit, because there is no need for 24, and so the size will be smaller? Or would encoding to DTS at 24-bit help the sound quality?