FFmpeg not working in VideoCapture

When I use FFmpeg with

ffmpeg -f v4l2 -framerate 25 -video_size 960x540 -i /dev/video0

I can record a video from with the cam. Problems occur, when I want to use FFmpeg Backend within OpenCV. Sorry if I missed to tell that.