QuickTime Player won't save edited file: The operation could not be completed
I had a similar problem when I downloaded a youtube video, opened in Quicktime to "trim" the video and quick time would not complete the operation. 
I ran the youtube video through Vlc Crunch (free video converter)as mp4 again and then Quicktime worked fine.