SHOW:
|
|
- or go back to the newest paste.
1 | ./ffmpeg -f rawvideo -pix_fmt rgb565 -s 800X600 -vcodec rawvideo -i /dev/graphics/fb0 -vcodec libx264 -acodec adpcm_swf -ar 44100 -r 25 -f flv http://localhost:8090/feed1.ffm | |
2 | ||
3 | ||
4 | ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers | |
5 | built on Jun 18 2012 15:09:13 with gcc 4.4.3 | |
6 | configuration: --enable-version3 --disable-pthreads --enable-libx264 --disable-yasm --disable-asm --enable-gpl --enable-nonfree --disable-doc --enable-small --target-os=linux --disable-debug --disable-stripping --enable-cross-compile --cross-prefix=/home/rohit/Downloads/android-ndk-r7b/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-android-linux- --sysroot=/home/rohit/Downloads/android-ndk-r7b/platforms/android-9/arch-x86 --arch=x86 --extra-cflags=-I/home/rohit/android-ec2/streamserver/newffmpeg/libs/x264-snapshot-20120616-2245/ --extra-ldflags=-L/home/rohit/android-ec2/streamserver/newffmpeg/libs/x264-snapshot-20120616-2245/ | |
7 | libavutil 51. 54.100 / 51. 54.100 | |
8 | libavcodec 54. 23.100 / 54. 23.100 | |
9 | libavformat 54. 6.100 / 54. 6.100 | |
10 | libavdevice 54. 0.100 / 54. 0.100 | |
11 | libavfilter 2. 77.100 / 2. 77.100 | |
12 | libswscale 2. 1.100 / 2. 1.100 | |
13 | libswresample 0. 15.100 / 0. 15.100 | |
14 | libpostproc 52. 0.100 / 52. 0.100 | |
15 | [rawvideo @ 0x8c2a990] Warning: not compiled with thread support, using thread emulation | |
16 | [rawvideo @ 0x8c1c530] Estimating duration from bitrate, this may be inaccurate | |
17 | Input #0, rawvideo, from '/dev/graphics/fb0': | |
18 | Duration: N/A, start: 0.000000, bitrate: N/A | |
19 | Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 800x600, 25 tbr, 25 tbn, 25 tbc | |
20 | [buffer @ 0x8c28f40] w:800 h:600 pixfmt:rgb565le tb:1/25 sar:0/1 sws_param:flags=2 | |
21 | [buffersink @ 0x8c29040] No opaque field provided | |
22 | [format @ 0x8c29220] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format' | |
23 | [scale @ 0x8c29520] w:800 h:600 fmt:rgb565le sar:0/1 -> w:800 h:600 fmt:yuv420p sar:0/1 flags:0x4 | |
24 | [libx264 @ 0x8c256f0] Warning: not compiled with thread support, using thread emulation | |
25 | [libx264 @ 0x8c256f0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 | |
26 | [libx264 @ 0x8c256f0] profile High, level 3.1 | |
27 | [libx264 @ 0x8c256f0] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 | |
28 | [rawvideo @ 0x8c2a990] Warning: not compiled with thread support, using thread emulation | |
29 | Output #0, flv, to 'http://localhost:8090/feed1.ffm': | |
30 | Metadata: | |
31 | encoder : Lavf54.6.100 | |
32 | Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 800x600, q=-1--1, 1k tbn, 25 tbc | |
33 | - | av_interleaved_write_frame(): Connection reset by peer |
33 | + | |
34 | Stream #0:0 -> #0:0 (rawvideo -> libx264) | |
35 | Press [q] to stop, [?] for help | |
36 | av_interleaved_write_frame(): Connection reset by peer | |
37 | ||
38 | ||
39 | ||
40 | Here's the ffserver.conf | |
41 | ||
42 | Port 8090 | |
43 | RTSPPort 7654 | |
44 | BindAddress 0.0.0.0 | |
45 | RTSPBindAddress 0.0.0.0 | |
46 | MaxHTTPConnections 2000 | |
47 | MaxClients 1000 | |
48 | MaxBandwidth 100000 | |
49 | CustomLog - | |
50 | ||
51 | <Feed feed1.ffm> | |
52 | File /data/feed1.ffm | |
53 | FileMaxSize 5M | |
54 | ACL allow 127.0.0.1 | |
55 | </Feed> | |
56 | ||
57 | <Stream test1.flv> | |
58 | Feed feed1.ffm | |
59 | Format flv | |
60 | VideoCodec libx264 | |
61 | VideoSize 800X640 | |
62 | AVOptionVideo flags +global_header | |
63 | </Stream> |