[FFmpeg-user] video stream stopped due to invalid stream index

Soho Soho123 soho123.2012 at gmail.com
Tue Mar 19 09:06:59 CET 2013


Hi All,

the log below is captured when I try to use vlc client t oconnect
ffserver via WiFi interface.
It can not work via WiFi interface since ffserver says "invalid stream index".
Does any one know how to fix the issue?

# ffserver -d -f /etc/ffserver.conf &
# ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 19 2013 13:40:24 with gcc 4.4.5-1.5.5p4 (GCC)
  configuration: --enable-cross-compile --cross-prefix=sdk-linux-
--arch=mips --target-o
s=linux --disable-doc --disable-htmlpages --disable-manpages
--disable-podpages --disable
-txtpages --disable-mips32r2 --disable-ffplay --disable-postproc
--disable-runtime-cpudet
ect --disable-swscale-alpha --disable-mipsdspr1 --disable-mipsdspr2
--disable-mipsfpu --e
nable-small --prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs
--disable-bsfs --disable-filters --enable-filter='aformat,a
resample,copy,format,fps,framestep,resample' --disable-encoders
--enable-encoder=yuv4 --e
nable-encoder=mjpeg --disable-decoders --enable-decoder=mjpeg
--enable-decoder=h264 --ena
ble-decoder=mpegvideo --enable-decoder=mpeg2video
--enable-decoder=yuv4 --disable-hwaccel
s --disable-muxers --enable-muxer=ffm --enable-muxer=avi
--enable-muxer=asf --enable-muxe
r=asf_stream --enable-muxer=mpegts --enable-  libavutil      52.
18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
Tue Mar 19 13:57:33 2013 FFserver started.
ffmpeg  -loglevel debug -f video4linux2 -r 30 -s 1280x720 -input_format mjpeg
-i /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 19 2013 13:40:24 with gcc 4.4.5-1.5.5p4 (GCC)
  configuration: --enable-cross-compile --cross-prefix=sdk-linux-
--arch=mips --target-o
s=linux --disable-doc --disable-htmlpages --disable-manpages
--disable-podpages --disable
-txtpages --disable-mips32r2 --disable-ffplay --disable-postproc
--disable-runtime-cpudetect --disable-swscale-alpha --dSetting frame
interval to 1/30 (333333).
iUsing frame interval 33333.3 us (30.0 fps).
sable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small
--prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs --
disable-bsfs --disable-filters
--enable-filter='aformat,aresample,copy,format,fps,framest
ep,resample' --disable-encoders --enable-encoder=yuv4
--enable-encoder=mjpeg --disable-de
coders --enable-decoder=mjpeg --enable-decoder=h264
--enable-decoder=mpegvideo --enable-d
ecoder=mpeg2video --enable-decoder=yuv4 --disable-hwaccels
--disable-muxers --enable-muxe
r=ffm --enable-muxer=avi --enable-muxer=asf --enable-muxer=asf_stream
--enable-muxer=mpeg
ts --enable-  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set
libav* logging level) wi
th argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'video4linux2'
.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz
value, fraction or abbr
eviation)) with argument '30'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or
abbreviation)) with
 argument '1280x720'.
Reading option '-input_format' ... matched as AVOption 'input_format'
with argument 'mjpe
g'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video
codec ('copy' to cop
y stream)) with argument 'copy'.
Reading option 'http://localhost:8090/feed1.ffm' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument video4linux2.
Applying option r (set frame rate (Hz value, fraction or
abbreviation)) with argument 30.
Applying option s (set frame size (WxH or abbreviation)) with argument 1280x720.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x699660] fd:3 capabilities:4000001
[video4linux2,v4l2 @ 0x699660] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x699660] input_channel: 0, input_name: Camera 1
[video4linux2,v4l2 @ 0x699660] Setting time per frame to 1/30
[mjpeg @ 0x69a190] marker=d8 avail_size_in_buf=113496
[mjpeg @ 0x69a190] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x69a190] marker=db avail_size_in_buf=113494
[mjpeg @ 0x69a190] index=0
[mjpeg @ 0x69a190] qscale[0]: 2
[mjpeg @ 0x69a190] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x69a190] marker=db avail_size_in_buf=113425
[mjpeg @ 0x69a190] index=1
[mjpeg @ 0x69a190] qscale[1]: 3
[mjpeg @ 0x69a190] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x69a190] marker=c0 avail_size_in_buf=113356
[mjpeg @ 0x69a190] sof0: picture: 1280x720
[mjpeg @ 0x69a190] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x69a190] component 1 1:1 id: 1 quant:1
[mjpeg @ 0x69a190] component 2 1:1 id: 2 quant:1
[mjpeg @ 0x69a190] pix fmt id 21111100
[mjpeg @ 0x69a190] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x69a190] marker=c4 avail_size_in_buf=113337
[mjpeg @ 0x69a190] class=0 index=0 nb_codes=12
[mjpeg @ 0x69a190] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x69a190] marker=c4 avail_size_in_buf=113304
[mjpeg @ 0x69a190] class=1 index=0 nb_codes=251
[mjpeg @ 0x69a190] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x69a190] marker=c4 avail_size_in_buf=113121
[mjpeg @ 0x69a190] class=0 index=1 nb_codes=12
[mjpeg @ 0x69a190] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x69a190] marker=c4 avail_size_in_buf=113088
[mjpeg @ 0x69a190] class=1 index=1 nb_codes=251
[mjpeg @ 0x69a190] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x69a190] escaping removed 330 bytes
[mjpeg @ 0x69a190] marker=da avail_size_in_buf=112905
[mjpeg @ 0x69a190] component: 0
[mjpeg @ 0x69a190] component: 1
[mjpeg @ 0x69a190] component: 2
[mjpeg @ 0x69a190] marker parser used 112574 bytes (900585 bits)
[mjpeg @ 0x69a190] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x69a190] decode frame unused 0 bytes
[video4linux2,v4l2 @ 0x699660] All info found
[video4linux2,v4l2 @ 0x699660] Estimating duration from bitrate, this
may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 78.860000, bitrate: N/A
    Stream #0:0, 1, 1/1000000: Video: mjpeg, yuvj422p, 1280x720,
1/1000000, -5 kb/s, 30 f
ps, 30 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output file http://localhost:8090/feed1.ffm.
Applying option vcodec (force video codec ('copy' to copy stream))
with argument copy.
Successfully parsed a group of options.
Opening an output file: http://localhost:8090/feed1.ffm.
Tue Mar 19 13:57:47 2013 127.0.0.1 - - New connection: GET /feed1.ffm
[ffm @ 0x69bca0] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x6a6980] Statistics: 4096 bytes read, 0 seeks
Tue Mar 19 13:57:47 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
Tue Mar 19 13:57:47 2013 127.0.0.1 - - New connection: POST /feed1.ffm
Successfully opened the file.
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
    creation_time   : now
    encoder         : Lavf54.63.104
    Stream #0:0, 0, 1/1000000: Video: mjpeg, yuvj422p, 1280x720,
1/1000000, q=2-31, -5 kb
/s, 30 fps, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
Tue Mar 19 13:58:05 2013 192.168.1.100 - - New connection: GET /test.mjpeg
Tue Mar 19 13:58:07 2013 [ffm @ 0x660a20]invalid stream index 217


More information about the ffmpeg-user mailing list