Hi, I am getting the image,but it is green colour image, here is the logs
*WARNING: linker: /data/local/tmp/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.* *ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers* * built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)* *configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=* * libavutil 54. 7.100 / 54. 7.100* * libavcodec 56. 1.100 / 56. 1.100* * libavformat 56. 4.101 / 56. 4.101* * libavdevice 56. 0.100 / 56. 0.100* * libavfilter 5. 1.100 / 5. 1.100* * libswscale 3. 0.100 / 3. 0.100* * libswresample 1. 1.100 / 1. 1.100* * libpostproc 53. 0.100 / 53. 0.100* *Input #0, rawvideo, from 'pipe:':* * Duration: N/A, start: 0.000000, bitrate: 294912 kb/s* * Stream #0:0: Video: rawvideo (RGB[0] / 0x424752), rgb0, 720x1280, 294912 kb/s, 10 tbr, 10 tbn, 10 tbc* *[Parsed_scale_0 @ 0xb7b11d70] w:281.25 h:500.0 flags:'0x4' interl:0* *[graph 0 input from stream 0:0 @ 0xb7b125d0] w:720 h:1280 pixfmt:rgb0 tb:1/10 fr:10/1 sar:0/1 sws_param:flags=2* *[graph 0 input from stream 0:0 @ 0xb7b125d0] TB:0.100000 FRAME_RATE:10.000000 SAMPLE_RATE:nan* *[Parsed_scale_0 @ 0xb7b11d70] w:720 h:1280 fmt:rgb0 sar:0/1 -> w:281 h:500 fmt:rgb24 sar:0/1 flags:0x4* *Output #0, image2pipe, to '/sdcard/test1.png':* * Metadata:* * encoder : Lavf56.4.101* * Stream #0:0: Video: png, rgb24, 281x500, q=2-31, 200 kb/s, 10 fps, 10 tbn, 10 tbc* * Metadata:* * encoder : Lavc56.1.100 png* * Stream mapping:* * Stream #0:0 -> #0:0 (rawvideo (native) -> png (native))* * No more output streams to write to, finishing.* * frame= 1 fps=0.0 q=0.0 Lsize= 64kB time=00:00:00.10 bitrate=5250.2kbits/s * * video:64kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%* * Input file #0 (pipe:):* * Input stream #0:0 (video): 1 packets read (3686400 bytes); 1 frames decoded; * * Total: 1 packets (3686400 bytes) demuxed* * Output file #0 (/sdcard/test1.png):* * Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (65628 bytes); * * Total: 1 packets (65628 bytes) muxed* On Wed, Apr 29, 2015 at 2:17 PM, Moritz Barsnick <[email protected]> wrote: > On Wed, Apr 29, 2015 at 13:45:51 +0530, Manikanta Vasu wrote: > > ffmpeg -loglevel panic -f rawvideo -pix_fmt bgr0 -r 10 -i - -vf scale=1 > -f > > image2 -vcodec png -vframes 1 /sdcard/screen.png > > You gave "-loglevel panic", but don't show us the log. But that's what > the log is good for. Please attach! > > Moritz > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
