[FFmpeg-user] libx264 vs android 4.4

Oliver Fromme oliver at fromme.com
Fri Jul 11 12:10:53 CEST 2014


Carl Eugen Hoyos wrote:
 > Patrick Shirkey <pshirkey <at> boosthardware.com> writes:
 > 
 > > ffmpeg -f rawvideo -i /dev/graphics/fb0
 > 
 > This looks plain wrong.
 > ffmpeg cannot warn about this, it cannot know 
 > that /dev/... is a device (and not a file).

Sorry for jumping in here, but can't ffmpeg simply call
stat() on the name and check the struct stat.st_mode field
for S_IFREG (or S_IFCHR | S_IFBLK)?  At least that's the
usual way to distinguish between devices and plain files.

Best regards
   Oliver


-- 
``We are all but compressed light'' (Albert Einstein)

Donations: http://www.amazon.de/wishlist/A0LHFK68RV8S


More information about the ffmpeg-user mailing list