[FFmpeg-trac] #4094(undetermined:new): webm stream quickly falls behind
FFmpeg
trac at avcodec.org
Sat Nov 8 05:50:43 CET 2014
#4094: webm stream quickly falls behind
-------------------------------------+-------------------------------------
Reporter: illumilore | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
When viewing a webm stream with firefox, the time of the stream quickly
falls behind. The stream only plays half as fast as it normally should.
$ ffmpeg -f video4linux2 -input_format mjpeg -r 1 -i /dev/video0 -strict
-1 http://127.0.0.1:8090/cam.ffm
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 6 2014 10:05:27 with gcc 4.8 (SUSE Linux)
configuration: --shlibdir=/usr/lib64 --prefix=/usr
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-
static --enable-debug --disable-stripping --extra-cflags='-fmessage-
length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-
protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC
-I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3
--enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx
--enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame
--enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid
--enable-libx264 --enable-libschroedinger --enable-libgsm --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-
libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample
--enable-libtwolame --enable-libvo-aacenc --enable-gnutls
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[video4linux2,v4l2 @ 0x1a7e2e0] The driver changed the time per frame from
1/1 to 1/5
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 163483.040246, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg), 960x720, 0 kb/s, 5
fps, 5 tbr, 1000k tbn, 1000k tbc
[swscaler @ 0x1a757c0] deprecated pixel format used, make sure you did set
range correctly
[swscaler @ 0x1aae5c0] deprecated pixel format used, make sure you did set
range correctly
[swscaler @ 0x1ad31e0] deprecated pixel format used, make sure you did set
range correctly
[libvpx @ 0x1a92f40] v1.3.0
[libvpx @ 0x1a92f40] Failed to set VP8E_SET_ARNR_TYPE codec control:
Invalid parameter
[libvpx @ 0x1a92f40] Additional information: arnr_type out of range
[1..3]
Output #0, ffm, to 'http://127.0.0.1:8090/cam.ffm':
Metadata:
creation_time : now
encoder : Lavf55.48.100
Stream #0:0: Video: flv1 (flv), yuv420p, 640x480, q=1-10, 400 kb/s, 1
fps, 1000k tbn, 1 tbc
Metadata:
encoder : Lavc55.69.100 flv
Stream #0:1: Video: vp8 (libvpx), yuv420p, 960x720, q=15-42, 800 kb/s,
1 fps, 1000k tbn, 1 tbc
Metadata:
encoder : Lavc55.69.100 libvpx
Stream #0:2: Video: mjpeg, yuvj422p, 960x720, q=1-5, 128 kb/s, 1 fps,
1000k tbn, 1 tbc
Metadata:
encoder : Lavc55.69.100 mjpeg
Stream #0:3: Video: flv1 (flv), yuv420p, 320x240, q=1-3, 320 kb/s, 1
fps, 1000k tbn, 1 tbc
Metadata:
encoder : Lavc55.69.100 flv
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> flv1 (flv))
Stream #0:0 -> #0:1 (mjpeg (native) -> vp8 (libvpx))
Stream #0:0 -> #0:2 (mjpeg (native) -> mjpeg (native))
Stream #0:0 -> #0:3 (mjpeg (native) -> flv1 (flv))
Press [q] to stop, [?] for help
[mjpeg @ 0x1a93f20] rc buffer underflow
Last message repeated 2 times
frame= 3 fps=0.0 q=2.0 q=0.0 q=33.6 q=2.0 size= 352kB
time=00:00:03.00 bitrate= 961.2kbits/s [mjpeg @ 0x1a93f20] rc buffer
underflow
$ ffserver
ffserver version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 6 2014 10:05:27 with gcc 4.8 (SUSE Linux)
configuration: --shlibdir=/usr/lib64 --prefix=/usr
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-
static --enable-debug --disable-stripping --extra-cflags='-fmessage-
length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-
protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC
-I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3
--enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx
--enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame
--enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid
--enable-libx264 --enable-libschroedinger --enable-libgsm --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-
libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample
--enable-libtwolame --enable-libvo-aacenc --enable-gnutls
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Fri Nov 7 19:42:09 2014 Codec bitrates do not match for stream 0
Fri Nov 7 19:42:09 2014 FFserver started.
Fri Nov 7 19:42:11 2014 127.0.0.1 - - [GET] "/cam.ffm HTTP/1.1" 200 4175
Fri Nov 7 19:42:15 2014 192.168.1.2 - - [GET] "/stat.html HTTP/1.1" 200
2588
Fri Nov 7 19:42:51 2014 192.168.1.2 - - [GET] "/test.swf HTTP/1.1" 200
1206455
Fri Nov 7 19:43:51 2014 192.168.1.2 - - [GET] "/test.webm HTTP/1.1" 200
3207111
<Stream test.webm> # Output stream URL definition
Feed cam.ffm # Feed from which to receive video
Format webm
# Video settings
VideoCodec libvpx
VideoSize 960x720 # Video resolution
VideoFrameRate 5 # Video FPS
AVOptionVideo flags +global_header # Parameters passed to encoder
# (same as ffmpeg command-line
parameters)
AVOptionVideo cpu-used 3
AVOptionVideo qmin 15
AVOptionVideo qmax 42
AVOptionVideo quality good
AVOptionAudio flags +global_header
PreRoll 0
StartSendOnKey
VideoBitRate 800 # Video bitrate
NoAudio
</Stream>
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4094>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list