OpenCV Error: Bad argument (codec not found) in CvVideoWriter_FFMPEG::open
The only solution that I have found is to install the following
sudo apt-get install libavcodec-unstripped-52
It seems to remove a bunch of packages but everything I do (reading/writing videos) seems to be working. So proceed with caution on installing this, but it may fix what ails you.
