[FFmpeg-user] Help please !!!!! asf stream abort by ffserver
Soho Soho123
soho123.2012 at gmail.com
Mon Jul 15 15:50:07 CEST 2013
(Are you sure pcm_s16le is supported in asf?)
>
which audio format is supported as your opinion?
> ffserver abort since the error:
> > Mon Jul 15 21:07:40 2013 Assertion
> > asf->packet_timestamp_end >= asf->packet_timestamp_start
> > failed at libavformat/asfenc.c:643
>
> Complete, uncut console output missing.
>
the log:
# ffserver version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 15 2013 14:29:59 with gcc 4.4.5-1.5.5p4 (GCC)
configuration: --enable-cross-compile --cross-prefix=sdk-linux-
--arch=mips --target-os=linux --disa
ble-doc --disable-htmlpages --disable-manpages --disable-podpages
--disable-txtpages --disable-mips32r2
--disable-ffplay --disable-postproc --disable-runtime-cpudetect
--disable-swscale-alpha --disable-mips
dspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small
--prefix=/ffmpeg-2.0/romfs --bindir=/ffmpeg-2.0/romfs --disable-bsfs
--disable-filters -
-enable-gpl --enable-libfaac --enable-nonfree --enable-libx264
--extra-cflags=-I/ShareLib_Install/bin/../include --extra-libs
='-L/ShareLib_Install/bin/../lib -lx264'
--enable-filter='aformat,aresample,copy,format,fps,framestep,resample'
--disa libav
util 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
Mon Jul 15 21:36:48 2013 FFserver started.
ffmpeg -loglevel debug -f alsa -ar 44100 -ac 2 -i hw:0 -f video4linux2 -r
30 -
s 640x480 -input_format h264 -i /dev/video1 -vcodec copy -acodec copy
http://lo
calhost:8090/feed1.ffm
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 15 2013 14:29:59 with gcc 4.4.5-1.5.5p4 (GCC)
configuration: --enable-cross-compile --cross-prefix=sdk-linux-
--arch=mips --target-os=linux --disa
ble-doc --disable-htmlpages --disable-manpages --disable-podpages
--disable-txtpages --disable-mips32r2
--disable-ffplay --disable-postproc --disable-runtime-cpudetect
--disable-swscale-alpha --disable-mips
dspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small
--prefix=/ffmpeg-2.0/romfs --bindir=/ffmpeg-2.0/romfs --disable-bsfs
--disable-filters -
-enable-gpl --enable-libfaac --enable-nonfree --enable-libx264
--extra-cflags=-I/ShareLib_Install/bin/../include --extra-libs
='-L/ShareLib_Install/bin/../lib -lx264'
--enable-filter='aformat,aresample,copy,format,fps,framestep,resample'
--disa libav
util 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'alsa'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '44100'
.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-i' ... matched as input file with argument 'hw:0'.
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 abbreviation)) wit
h argument '30'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or
abbreviation)) with argument '640
x480'.
Reading option '-input_format' ... matched as AVOption 'input_format' with
argument 'h264'.
Reading option '-i' ... matched as input file with argument '/dev/video1'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) wit
h argument 'copy'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec
('copy' to copy stream)) wit
h 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 logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file hw:0.
Applying option f (force format) with argument alsa.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option ac (set number of audio channels) with argument 2.
Successfully parsed a group of options.
Opening an input file: hw:0.
[alsa @ 0x6bdd20] audio_device=hw:0
[alsa @ 0x6bdd20] codec_id ==NONE
[alsa @ 0x6bdd20] Do RECORD,1
[alsa @ 0x6bdd20] audio fmt=2
Hardware PCM card 0 'USB Camera' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 65536
period_size : 64
period_time : 1451
tstamp_mode : NONE
period_step : 1
avail_min : 64
period_event : 0
start_threshold : 1
stop_threshold : 65536
silence_threshold: 0
silence_size : 0
boundary : 1073741824
appl_ptr : 0
hw_ptr : 0
[alsa @ 0x6bdd20] All info found
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0':
Duration: N/A, start: 1373924221.998844, bitrate: 1411 kb/s
Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 44100 Hz, stereo, s16,
1411 kb/s
Successfully opened the file.
Parsing a group of options: input file /dev/video1.
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
640x480.
Successfully parsed a group of options.
Opening an input file: /dev/video1.
[video4linux2,v4l2 @ 0x6c8cf0] fd:3 capabilities:4000001
[video4linux2,v4l2 @ 0x6c8cf0] Current input_channel: 0, input_name:
Camera 1
[video4linux2,v4l2 @ 0x6c8cf0] Setting time per frame to 1/30
[h264 @ 0x6ca030] Frame num gap 8 6
[video4linux2,v4l2 @ 0x6c8cf0] All info found
Input #1, video4linux2,v4l2, from '/dev/video1':
Duration: N/A, start: 54.020000, bitrate: N/A
Stream #1:0, 8, 1/1000000: Video: h264, yuv420p, 640x480, 1/2000000,
-5 kb/s, 30 fps, 30 tbr, 1000k
tbn, 2000k 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.
Applying option acodec (force audio codec ('copy' to copy stream)) with
argument copy.
Successfully parsed a group of options.
Opening an output file: http://localhost:8090/feed1.ffm.
[ffm @ 0x794b40] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x7be580] Statistics: 4096 bytes read, 0 seeks
Mon Jul 15 21:37:03 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
Successfully opened the file.
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Metadata:
creation_time : now
encoder : Lavf55.12.100
Stream #0:0, 0, 1/1000000: Audio: pcm_s16le, 44100 Hz, stereo, 1411
kb/s
Stream #0:1, 0, 1/1000000: Video: h264, yuv420p, 640x480, 1/30,
q=2-31, -5 kb/s, 30 fps, 1000k tbn,
30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[alsa @ 0x6bdd20] ALSA buffer xrun.
frame= 25 fps=0.0 q=-1.0 size= 124kB time=00:00:02.39 bitrate=
423.7kbits/s
Non-monotonous DTS in output stream 0:0; previous: 2494875, current:
2494829; changing to 2494876. This
may result in incorrect timestamps in the output file.
frame= 40 fps= 40 q=-1.0 size= 220kB time=00:00:02.89 bitrate=
622.1kbits/s
frame= 55 fps= 36 q=-1.0 size= 436kB time=00:00:03.40
bitrate=1049.7kbits/s
Non-monotonous DTS in output stream 0:0; previous: 3522565, current:
3522541; changing to 3522566. This
may result in incorrect timestamps in the output file.
frame= 70 fps= 35 q=-1.0 size= 648kB time=00:00:03.90
bitrate=1358.9kbits/s
frame= 85 fps= 34 q=-1.0 size= 844kB time=00:00:04.40
bitrate=1569.7kbits/s
frame= 100 fps= 33 q=-1.0 size= 1040kB time=00:00:04.90
bitrate=1736.4kbits/s
frame= 115 fps= 33 q=-1.0 size= 1244kB time=00:00:05.40
bitrate=1885.0kbits/s
frame= 130 fps= 32 q=-1.0 size= 1428kB time=00:00:05.90
bitrate=1981.1kbits/s
Non-monotonous DTS in output stream 0:0; previous: 6222550, current:
6222549; changing to 6222551. This
may result in incorrect timestamps in the output file.
frame= 145 fps= 32 q=-1.0 size= 1628kB time=00:00:06.40
bitrate=2082.0kbits/s
frame= 160 fps= 32 q=-1.0 size= 1824kB time=00:00:06.90
bitrate=2164.1kbits/s
Non-monotonous DTS in output stream 0:0; previous: 7122529, current:
7122506; changing to 7122530. This
may result in incorrect timestamps in the output file.
frame= 175 fps= 32 q=-1.0 size= 2020kB time=00:00:07.40
bitrate=2234.5kbits/s
frame= 190 fps= 32 q=-1.0 size= 2212kB time=00:00:07.90
bitrate=2291.9kbits/s
Non-monotonous DTS in output stream 0:0; previous: 8022437, current:
8022415; changing to 8022438. This
may result in incorrect timestamps in the output file.
frame= 205 fps= 31 q=-1.0 size= 2412kB time=00:00:08.40
bitrate=2350.7kbits/s
Non-monotonous DTS in output stream 0:0; previous: 8722440, current:
8722440; changing to 8722441. This
may result in incorrect timestamps in the output file.
frame= 220 fps= 31 q=-1.0 size= 2608kB time=00:00:08.90
bitrate=2399.0kbits/s
frame= 235 fps= 31 q=-1.0 size= 2808kB time=00:00:09.40
bitrate=2445.7kbits/s
frame= 250 fps= 31 q=-1.0 size= 3004kB time=00:00:09.90
bitrate=2484.1kbits/s
Non-monotonous DTS in output stream 0:0; previous: 10222280, current:
10222262; changing to 10222281. T
his may result in incorrect timestamps in the output file.
[ffm @ 0x794630] Non-monotonous DTS in output stream 0:0; previous:
10322332, current: 10322313; changi
ng to 10322333. This may result in incorrect timestamps in the output file.
frame= 265 fps= 31 q=-1.0 size= 3196kB time=00:00:10.40
bitrate=2516.2kbits/s
frame= 280 fps= 31 q=-1.0 size= 3392kB time=00:00:10.90
bitrate=2548.0kbits/s
frame= 295 fps= 31 q=-1.0 size= 3580kB time=00:00:11.40
bitrate=2571.3kbits/s
frame= 310 fps= 31 q=-1.0 size= 3772kB time=00:00:11.90
bitrate=2595.3kbits/s
Non-monotonous DTS in output stream 0:0; previous: 12022369, current:
12022349; changing to 12022370. T
his may result in incorrect timestamps in the output file.
frame= 325 fps= 31 q=-1.0 size= 3972kB time=00:00:12.27
bitrate=2651.1kbits/s
frame= 340 fps= 31 q=-1.0 size= 4168kB time=00:00:12.56
bitrate=2717.6kbits/s
frame= 355 fps= 31 q=-1.0 size= 4368kB time=00:00:12.85
bitrate=2783.7kbits/s
frame= 370 fps= 31 q=-1.0 size= 4564kB time=00:00:13.14
bitrate=2844.4kbits/s
frame= 385 fps= 31 q=-1.0 size= 4752kB time=00:00:13.43
bitrate=2897.6kbits/s
frame= 400 fps= 31 q=-1.0 size= 4940kB time=00:00:13.77
bitrate=2938.2kbits/s
frame= 414 fps= 31 q=-1.0 size= 5048kB time=00:00:14.24
bitrate=2903.3kbits/s
ALSA buffer xrun.
[ffm @ 0x794630] Non-monotonous DTS in output stream 0:0; previous:
15681195, current: 15680422; changi
ng to 15681196. This may result in incorrect timestamps in the output file.
[ffm @ 0x794630] Non-monotonous DTS in output stream 0:0; previous:
15681196, current: 15681053; changi
ng to 15681197. This may result in incorrect timestamps in the output file.
frame= 430 fps= 31 q=-1.0 size= 5220kB time=00:00:15.79
bitrate=2707.9kbits/s
frame= 445 fps= 31 q=-1.0 size= 5328kB time=00:00:16.08
bitrate=2713.9kbits/s
frame= 460 fps= 31 q=-1.0 size= 5440kB time=00:00:16.37
bitrate=2721.8kbits/s
frame= 475 fps= 31 q=-1.0 size= 5640kB time=00:00:16.66
bitrate=2772.9kbits/s
frame= 490 fps= 31 q=-1.0 size= 5836kB time=00:00:16.95
bitrate=2820.1kbits/s
Mon Jul 15 21:37:20 2013 192.168.1.3 - - [GET] "/test.asf HTTP/1.1"
200 1021
frame= 505 fps= 31 q=-1.0 size= 6032kB time=00:00:17.27
bitrate=2860.7kbits/s
frame= 512 fps= 30 q=-1.0 size= 6092kB time=00:00:17.50
bitrate=2851.2kbits/s
ALSA buffer xrun.
frame= 537 fps= 31 q=-1.0 size= 6284kB time=00:00:19.27
bitrate=2671.2kbits/s
frame= 552 fps= 31 q=-1.0 size= 6376kB time=00:00:19.56
bitrate=2670.1kbits/s
Mon Jul 15 21:37:22 2013 Assertion asf->packet_timestamp_end >=
asf->packet_timestamp_start failed at l
ibavformat/asfenc.c:643
av_interleaved_write_frame(): Connection reset by peer
[AVIOContext @ 0x7be5a0] Statistics: 0 seeks, 1624 writeouts
[1] + Aborted ffserver -f /etc/ffserver.conf
#
More information about the ffmpeg-user
mailing list