ffmpeg pipe:0: could not find codec parameters

When i run this command i get an error. If i run without the pipe, it works. With Pipe cat mymovie.m4v | ffmpeg -i pipe:0 -an -analyzeduration 1000000 -f image2 -vf "select='eq(pict_type,PICT_TY...