stulluk / FFmpeg-Cedrus-2-sunxi

This is FFmpeg for Sunxi devices running with cedrus encoder
Other
0 stars 5 forks source link

No H264 decoding in either stream or opening local file #1

Open mosajjal opened 8 years ago

mosajjal commented 8 years ago

Hi. The problem is when I try to open any file or stream using -vcodec h264_vdpau, it gives me the following errors:

VDPAU decoding does not support video colorspace. decode_slice_header error

It works file without the -vcodec h264_vdpau option though. I've compiled this on H3.

it's worth mentioning, it works fine with other vdpau decoders, the problem is exclusive to h264

Thank you

stulluk commented 8 years ago

Here is how I make it work in my system: ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -pix_fmt nv12 -r 25 -maxrate 1000k -b:v 500k -c:v cedrus264 -f mpegts - | cvlc - --sout "#:rtp{sdp=rtsp://:8554/}"

mosajjal commented 8 years ago

It looks like you used cvlc to play the stream. But I was using ffplay. The error was generated by ffplay not ffmpeg.