[FFmpeg-user] generate video file from png stdinput

Jacobs jacobhameiri at gmail.com
Wed Oct 31 11:14:31 CET 2012


Thanks Carl This works. After a week of trying with no progress I now have
some result.

But still I need some help in perfecting the outcome. my actual output
requirements is udp  protocol. it works now but with a very high latency and
some glitches in the image every several frames.

Can you please help me add configurations for lower latency and avoid these
glitches ? (maybe a different protocol, my choice was udp because this needs
to be a live stream to many machines )

this is the full command: 

ffmpeg -an -y -f image2pipe -vcodec png -i /sdcard/tempfifo -f mpegts
udp://192.168.5.52:1234 2> /sdcard/out.txt

This is my uncut output:

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 @ 0x29a7480] 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, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x29a5840] w:800 h:1280 pixfmt:rgba tb:1/25 sar:0/1
sws_param:flags=2
[buffersink @ 0x29a5ac0] No opaque field provided
[format @ 0x29a6110] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'src' and the filter 'format'
[scale @ 0x29a7260] w:800 h:1280 fmt:rgba sar:0/1 -> w:800 h:1280
fmt:yuv420p sar:0/1 flags:0x4
[mpegts @ 0x29a1960] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
every 40 pkts
Output #0, mpegts, to 'udp://192.168.5.52:1234':
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: mpeg2video, yuv420p, 800x1280, q=2-31, 200 kb/s, 90k
tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> mpeg2video)
Press [q] to stop, [?] for help
frame=    3 fps=0.0 q=2.0 size=     111kB time=00:00:00.04
bitrate=22635.2kbits/s    
frame=    4 fps=3.0 q=2.0 size=     118kB time=00:00:00.08
bitrate=12032.0kbits/s    
frame=    5 fps=2.0 q=2.0 size=     120kB time=00:00:00.12
bitrate=8171.7kbits/s    
frame=    6 fps=1.7 q=2.3 size=     121kB time=00:00:00.16
bitrate=6204.0kbits/s    
frame=    7 fps=1.5 q=2.7 size=     122kB time=00:00:00.20
bitrate=5000.8kbits/s    
frame=    8 fps=1.4 q=2.7 size=     123kB time=00:00:00.24
bitrate=4198.7kbits/s    
frame=    9 fps=1.3 q=3.7 size=     125kB time=00:00:00.28
bitrate=3668.7kbits/s    
frame=   10 fps=1.2 q=3.3 size=     126kB time=00:00:00.32
bitrate=3238.3kbits/s    
frame=   11 fps=1.2 q=3.2 size=     127kB time=00:00:00.36
bitrate=2899.4kbits/s    
frame=   12 fps=1.2 q=3.1 size=     128kB time=00:00:00.40
bitrate=2628.2kbits/s    
frame=   13 fps=1.1 q=3.1 size=     129kB time=00:00:00.44
bitrate=2406.4kbits/s    
frame=   14 fps=1.1 q=2.4 size=     238kB time=00:00:00.48
bitrate=4067.1kbits/s    
frame=   15 fps=1.1 q=3.6 size=     240kB time=00:00:00.52
bitrate=3786.0kbits/s    
frame=   16 fps=1.1 q=4.6 size=     241kB time=00:00:00.56
bitrate=3529.0kbits/s    
frame=   17 fps=1.1 q=6.6 size=     263kB time=00:00:00.60
bitrate=3592.1kbits/s    
frame=   18 fps=1.0 q=9.0 size=     264kB time=00:00:00.64
bitrate=3379.3kbits/s    
frame=   19 fps=1.0 q=9.6 size=     265kB time=00:00:00.68
bitrate=3191.6kbits/s    
frame=   20 fps=1.0 q=9.9 size=     266kB time=00:00:00.72
bitrate=3024.7kbits/s    
frame=   21 fps=1.0 q=9.9 size=     267kB time=00:00:00.76
bitrate=2875.4kbits/s    
frame=   22 fps=1.0 q=9.8 size=     268kB time=00:00:00.80
bitrate=2741.0kbits/s    
frame=   23 fps=1.0 q=9.8 size=     269kB time=00:00:00.84
bitrate=2619.5kbits/s    
frame=   24 fps=1.0 q=11.3 size=     296kB time=00:00:00.88
bitrate=2755.1kbits/s    
frame=   25 fps=1.0 q=13.6 size=     321kB time=00:00:00.92
bitrate=2856.0kbits/s    
frame=   26 fps=1.0 q=12.7 size=     363kB time=00:00:00.96
bitrate=3097.3kbits/s    
frame=   27 fps=1.0 q=16.2 size=     365kB time=00:00:01.00
bitrate=2988.4kbits/s    
frame=   28 fps=1.0 q=19.0 size=     381kB time=00:00:01.04
bitrate=3003.7kbits/s    
frame=   29 fps=1.0 q=21.9 size=     399kB time=00:00:01.08
bitrate=3028.9kbits/s    
frame=   30 fps=1.0 q=24.9 size=     404kB time=00:00:01.12
bitrate=2954.3kbits/s    
frame=   31 fps=1.0 q=22.3 size=     445kB time=00:00:01.16
bitrate=3140.2kbits/s    
frame=   32 fps=1.0 q=27.9 size=     446kB time=00:00:01.20
bitrate=3044.3kbits/s    
frame=   33 fps=1.0 q=30.9 size=     447kB time=00:00:01.24
bitrate=2952.2kbits/s    
frame=   34 fps=1.0 q=31.0 size=     448kB time=00:00:01.28
bitrate=2865.8kbits/s    
frame=   35 fps=1.0 q=31.0 size=     449kB time=00:00:01.32
bitrate=2784.7kbits/s    
frame=   36 fps=1.0 q=31.0 size=     450kB time=00:00:01.36
bitrate=2708.3kbits/s    
frame=   37 fps=1.0 q=31.0 size=     451kB time=00:00:01.40
bitrate=2638.4kbits/s    
frame=   38 fps=1.0 q=31.0 size=     452kB time=00:00:01.44
bitrate=2570.4kbits/s    
frame=   39 fps=1.1 q=31.0 size=     453kB time=00:00:01.48
bitrate=2506.0kbits/s    
frame=   40 fps=1.1 q=31.0 size=     454kB time=00:00:01.52
bitrate=2445.0kbits/s    
frame=   41 fps=1.1 q=31.0 size=     455kB time=00:00:01.56
bitrate=2387.1kbits/s    
frame=   42 fps=1.1 q=31.0 size=     455kB time=00:00:01.60
bitrate=2332.1kbits/s    
frame=   43 fps=1.1 q=24.8 size=     494kB time=00:00:01.64
bitrate=2466.0kbits/s    
frame=   44 fps=1.1 q=31.0 size=     496kB time=00:00:01.68
bitrate=2416.2kbits/s    
frame=   45 fps=1.1 q=31.0 size=     497kB time=00:00:01.72
bitrate=2366.2kbits/s    
frame=   46 fps=1.1 q=24.8 size=     518kB time=00:00:01.76
bitrate=2412.4kbits/s    
frame=   47 fps=1.1 q=31.0 size=     524kB time=00:00:01.80
bitrate=2383.8kbits/s    
frame=   48 fps=1.1 q=31.0 size=     528kB time=00:00:01.84
bitrate=2352.5kbits/s    
frame=   49 fps=1.1 q=31.0 size=     556kB time=00:00:01.88
bitrate=2420.8kbits/s    
frame=   50 fps=1.1 q=31.0 size=     557kB time=00:00:01.92
bitrate=2375.8kbits/s    
frame=   51 fps=1.1 q=31.0 size=     590kB time=00:00:01.96
bitrate=2464.7kbits/s    
frame=   52 fps=1.1 q=31.0 size=     619kB time=00:00:02.00
bitrate=2533.5kbits/s    
frame=   53 fps=1.1 q=31.0 size=     620kB time=00:00:02.04
bitrate=2489.0kbits/s    
frame=   54 fps=1.1 q=31.0 size=     622kB time=00:00:02.08
bitrate=2449.1kbits/s    
frame=   55 fps=1.1 q=31.0 size=     623kB time=00:00:02.12
bitrate=2406.4kbits/s    
frame=   56 fps=1.1 q=31.0 size=     657kB time=00:00:02.16
bitrate=2491.3kbits/s    
frame=   57 fps=1.1 q=31.0 size=     659kB time=00:00:02.20
bitrate=2453.6kbits/s    
frame=   58 fps=1.1 q=24.8 size=     710kB time=00:00:02.24
bitrate=2596.4kbits/s    
frame=   59 fps=1.1 q=31.0 size=     712kB time=00:00:02.28
bitrate=2556.8kbits/s    
frame=   60 fps=1.1 q=31.0 size=     746kB time=00:00:02.32
bitrate=2634.6kbits/s    
frame=   61 fps=1.1 q=31.0 size=     781kB time=00:00:02.36
bitrate=2711.7kbits/s    
frame=   62 fps=1.1 q=31.0 size=     791kB time=00:00:02.40
bitrate=2701.6kbits/s    
frame=   63 fps=1.0 q=31.0 size=     793kB time=00:00:02.44
bitrate=2661.0kbits/s    
frame=   64 fps=1.0 q=31.0 size=     794kB time=00:00:02.48
bitrate=2622.3kbits/s    





--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/generate-video-file-from-png-stdinput-tp4654562p4654594.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list