Canberk Demirsoy (Alumni) wrote:
Hi guys even though i make lots of settings i still see yuv format in debug
file. How to correctly get h264 format from c920 using raspberry pi? And i
wanna transfer file without encoding or decoding by copying vcodec.
My script
ffmpeg -report -f v4l2 -r 20 -s 1920x1080 -pix_fmt h264 -input_format h264
-i /dev/video0 -copyinkf -vcodec copy -loglevel debug -t 15 logging.mp4
If you really want an elemental h264 stream then use 264 instead of mp4
as suffix (or use -f h264 and any suffix will be overridden).
Elemental h264 is not normally what you would choose and ffmpeg may read
incorrectly some things from it (IIRC framerate/progressive/interlaced)
Stream #0:0, 0, 1/10240: Video: h264 (Constrained Baseline), 1
reference frame ([33][0][0][0] / 0x0021), yuvj420p(pc, progressive, left),
So it's h264 the yuvj420p is valuable info about the stream that an
h264 decoder will produce. In this case the j part tells a player that
the input was full range rather than tv range for black/white levels.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".