[FFmpeg-user] bad performance when streaming udp from png image2pipe source
Jacobs
jacobhameiri at gmail.com
Thu Nov 1 07:16:26 CET 2012
perhaps the frame rate problems I am having is because the input is about 1.5
fps but ffmpegs generated output is 25 fps, I tried setting the rate by
adding -r 1 but I got this error:
ffmpeg -an -y -probesize 32 -analyzeduration 5 -f image2pipe -vcodec png
-loop 1 -r 1 -i /sdcard/tempfifo -g 0 -f mpegts udp://192.168.1.23:1234
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 29 2012 21:27:23 with gcc 4.6.x-google 20120106 (prerelease)
configuration: --arch=arm --cpu=cortex-a8 --target-os=linux
--enable-runtime-cpudetect --prefix=/data/data/org.witness.sscvideoproto
--enable-pic --disable-shared --enable-static
--cross-prefix=/home/oz/android-ndk-r8b//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
--sysroot=/home/oz/android-ndk-r8b//platforms/android-3/arch-arm
--extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon -mfpu=vfpv3-d16'
--extra-ldflags=-L../x264 --enable-version3 --enable-gpl --disable-doc
--enable-yasm --enable-decoders --enable-encoders --enable-muxers
--enable-demuxers --enable-parsers --enable-protocols --enable-filters
--enable-avresample --enable-libfreetype --disable-indevs
--enable-indev=lavfi --enable-indev=fbdev --enable-outdevs --enable-hwaccels
--enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver
--enable-network --enable-libx264 --enable-zlib --enable-postproc
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[image2pipe @ 0x1f00540] Stream #0: not enough frames to estimate rate;
consider increasing probesize
[image2pipe @ 0x1f00540] Estimating duration from bitrate, this may be
inaccurate
Input #0, image2pipe, from '/sdcard/tempfifo':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba, 800x1280, 1 tbr, 1 tbn, 1 tbc
[buffer @ 0x1f107b0] w:800 h:1280 pixfmt:rgba tb:1/1 sar:0/1
sws_param:flags=2
[buffersink @ 0x1f0f8b0] No opaque field provided
[format @ 0x1f00500] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'src' and the filter 'format'
[scale @ 0x1f2f200] w:800 h:1280 fmt:rgba sar:0/1 -> w:800 h:1280
fmt:yuv420p sar:0/1 flags:0x4
[mpeg2video @ 0x1f0fb20] MPEG1/2 does not support 5/1 fps
Output #0, mpegts, to 'udp://192.168.1.23:1234':
Stream #0:0: Video: mpeg2video, yuv420p, 800x1280, q=2-31, 200 kb/s, 90k
tbn, 5 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> mpeg2video)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/bad-performance-when-streaming-udp-from-png-image2pipe-source-tp4654598p4654629.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list