2008-10-10 03:08:56     bf533 ffmpeg vide4linux problem

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-10-10 03:08:56     bf533 ffmpeg vide4linux problem

lujie yin (CHINA)

Message: 63372   

 

   i use ffmpeg conventor for video .

 

root:/> lsmod

Module                  Size  Used by

snd_pcm_oss            31968  0

snd_mixer_oss          11360  1 snd_pcm_oss

snd_ad1836             16584  0

snd_pcm                49604  2 snd_pcm_oss,snd_ad1836

snd_page_alloc          4232  1 snd_pcm

snd_timer              13828  1 snd_pcm

snd                    31764  5 snd_pcm_oss,snd_mixer_oss,snd_ad1836,snd_pcm,snd

_timer

soundcore               3940  1 snd

blackfin_cam            9868  0

adv7183b                1344  1 blackfin_cam

videodev               21024  1 blackfin_cam

v4l1_compat            10820  1 videodev

v4l2_common            12288  1 videodev

i2c_gpio                1792  0

i2c_algo_bit            5604  1 i2c_gpio

i2c_core               13840  4 blackfin_cam,adv7183b,i2c_gpio,i2c_algo_bit

 

then

 

root:/> ffmpeg -r 2 -f video4linux -t 2 -s 352*288 -i /dev/video0 test.avi

FFmpeg version UNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.

  configuration: --prefix=/usr --source-path=/mnt/uClinux-dist-2008R1.5-RC3/lib/

ffmpeg/build/../ffmpeg-svn-11114 --target-os=Linux --cpu=bfin --arch=bfin --extr

a-ldflags=      -mcpu=bf533-0.3 --enable-static --enable-shared --enable-gpl --e

nable-pp --disable-strip --cross-prefix=bfin-linux-uclibc-

  libavutil version: 49.5.0

  libavcodec version: 51.48.0

  libavformat version: 52.1.0

  built on Oct  7 2008 16:11:43, gcc: 4.1.2 (ADI svn)

 

FFMPEG stop here ,it donot move! what is the problem?please give me some advices .thank you!

 

 

QuoteReplyEditDelete

 

 

2008-10-10 03:12:56     Re: bf533 ffmpeg vide4linux problem

Yi Li (CHINA)

Message: 63374   

 

Is the system (shell) still responsive? How about using "strace"?

QuoteReplyEditDelete

 

 

2008-10-10 03:21:22     Re: bf533 ffmpeg vide4linux problem

lujie yin (CHINA)

Message: 63375   

 

按CTRL+C可以回到root:/>

QuoteReplyEditDelete

 

 

2008-10-10 03:29:10     Re: bf533 ffmpeg vide4linux problem

lujie yin (CHINA)

Message: 63376   

 

strace show that

 

open("/dev/video0", O_RDWR|O_LARGEFILE) = 3

ioctl(3, FS_IOC32_GETVERSION or FS_IOC_GETVERSION or VIDIOCGCAP, 0x3c8ea8) = 0

ioctl(3, VIDIOCGAUDIO, 0x95ecfc)        = -1 EINVAL (Invalid argument)

ioctl(3, VIDIOCSAUDIO, 0x95ecfc)        = 0

ioctl(3, VIDIOCGPICT, 0x95ed44)         = 0

ioctl(3, SONYPI_IOCGBATFLAGS or VIDIOCSPICT, 0x95ed44) = -1 EINVAL (Invalid argu

ment)

ioctl(3, SONYPI_IOCGBATFLAGS or VIDIOCSPICT, 0x95ed44) = 0

ioctl(3, VIDIOCGMBUF, 0x3c8f10)         = 0

mmap2(NULL, 829440, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = -1 ENODEV (No such

device)

mmap2(NULL, 829440, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x1000

gettimeofday({15015, 876747}, NULL)     = 0

ioctl(3, VIDIOCMCAPTURE, 0x3c8f98)      = 0

ioctl(3, VIDIOCMCAPTURE, 0x3c8f98)      = 0

mmap2(NULL, 118784, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0,

0) = 0x9e0000

gettimeofday({15015, 879501}, NULL)     = 0

nanosleep({0, 497246000}, NULL)         = 0

gettimeofday({15016, 379123}, NULL)     = 0

mmap2(NULL, 204800, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0,

0) = 0x1240000

ioctl(3, VIDIOCSYNC

 

then stop ,what wrong ?

QuoteReplyEditDelete

 

 

2008-10-10 04:38:00     Re: bf533 ffmpeg vide4linux problem

Yi Li (CHINA)

Message: 63408   

 

Looks like your video driver blocks on ioctl(VIDIOCSYNC), i.e, cannot get video input, please look at the driver.

Attachments

    Outcomes