ffmpeg: Could not find codec parameters for stream 0 (Video: h264) unspecified size
- by dempap
I try to convert a video from .raw to .mp4. For this reason I did download, build and install both x264 and ffmpeg. However, command:
ffmpeg -f h264 -i output.raw -vcodec copy output.mp4
fails with error (shown in picture below). Is there any way to fix this?
Commands I also run:
1
root@beagleboard:/# v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)
Index : 1
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG
2
root@beagleboard:/dev# v4l2-ctl --set-fmt-video=pixelformat=0