- Posts: 3
- Joined: Wed Oct 09, 2013 1:47 am
bmdcapture -C 1 -A 2 -p 8 -c 2 -V 4 -m 1 -s 16 -F nut -f pipe:1 | ffmpeg -rtbufsize 2147483647 -threads 8 -re -copyts -i - -pix_fmt yuv420p -profile high -ab 256k -vf yadif -vcodec libx264 -maxrate:v 1024k -minrate:v 1024k -bufsize:v 1024k -tune zerolatency -ar 44100 -preset veryfast -acodec libfaac -f flv "rtmp://localhost:1935/live/test live=1"[flv @ 0x2279ba0] Failed to update header with correct duration
[flv @ 0x2279ba0] Failed to update header with correct filesize.ffmpeg started on 2013-11-06 at 19:12:55
Report written to "ffmpeg-20131106-191255.log"
Command line:
ffmpeg -report -rtbufsize 2147483647 -threads 8 -re -copyts -i - -pix_fmt yuv420p -profile high -ab 256k -vf yadif -g 50 -vcodec libx264 -maxrate:v 1024k -minrate:v 1024k -bufsize:v 1024k -sc_threshold 0 -tune zerolatency -keyint_min 50 -ar 44100 -preset veryfast -acodec libfaac -f flv "rtmp://localhost:1935/live/4bZe7TBKQ8Q1p3B live=1"
ffmpeg version N-57040-ga72bf5f Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 10 2013 17:41:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/sdi/ffmpeg_static --enable-runtime-cpudetect --disable-debug --disable-ffserver --disable-shared --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libass --enable-libfreetype --enable-librtmp --enable-gpl --enable-nonfree --extra-libs=-ldl
libavutil 52. 46.101 / 52. 46.101
libavcodec 55. 35.100 / 55. 35.100
libavformat 55. 19.100 / 55. 19.100
libavdevice 55. 4.100 / 55. 4.100
libavfilter 3. 88.101 / 3. 88.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-rtbufsize' ... matched as AVOption 'rtbufsize' with argument '2147483647'.
Reading option '-threads' ... matched as AVOption 'threads' with argument '8'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-copyts' ... matched as option 'copyts' (copy timestamps) with argument '1'.
Reading option '-i' ... matched as input file with argument '-'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-profile' ... matched as option 'profile' (set profile) with argument 'high'.
Reading option '-ab' ... matched as AVOption 'ab' with argument '256k'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'yadif'.
Reading option '-g' ... matched as AVOption 'g' with argument '50'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-maxrate:v' ... matched as AVOption 'maxrate:v' with argument '1024k'.
Reading option '-minrate:v' ... matched as AVOption 'minrate:v' with argument '1024k'.
Reading option '-bufsize:v' ... matched as AVOption 'bufsize:v' with argument '1024k'.
Reading option '-sc_threshold' ... matched as AVOption 'sc_threshold' with argument '0'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-keyint_min' ... matched as AVOption 'keyint_min' with argument '50'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '44100'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'libfaac'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost:1935/live/4bZe7TBKQ8Q1p3B live=1' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option copyts (copy timestamps) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file -.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: -.
[nut @ 0x3aae0e0] Format nut probed with size=2048 and score=100
[nut @ 0x3aae0e0] File position before avformat_find_stream_info() is 240
[nut @ 0x3aae0e0] All info found
[nut @ 0x3aae0e0] File position after avformat_find_stream_info() is 706522
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, nut, from 'pipe:':
Metadata:
encoder : Lavf55.5.3
Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
Stream #0:0, 1, 1001/24000: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x486, 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1, 1, 1/48000: Audio: pcm_s16le (PSD[16] / 0x10445350), 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: output file rtmp://localhost:1935/live/4bZe7TBKQ8Q1p3B live=1.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option profile (set profile) with argument high.
Please use -profile:a or -profile:v, -profile is ambiguous
Applying option vf (set video filters) with argument yadif.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument libfaac.
Applying option f (force format) with argument flv.
Successfully parsed a group of options.
Opening an output file: rtmp://localhost:1935/live/4bZe7TBKQ8Q1p3B live=1.
Parsing...
Parsed protocol: 0
Parsed host : localhost
Parsed app : live
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer : 03
HandShake: Server Uptime : -564517939
HandShake: FMS Version : 49.194.144.119
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
RTMP_SendPacket: fd=4, size=93
Invoking connect
RTMP_ReadPacket: fd=4
HandleServerBW: server BW = 2500000
RTMP_ReadPacket: fd=4
HandleClientBW: client BW = 2500000 2
RTMP_ReadPacket: fd=4
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 0
RTMP_ReadPacket: fd=4
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 189 bytes
(object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 1.00>
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: fmsVer, STRING: FMS/3,0,1,123>
Property: <Name: capabilities, NUMBER: 31.00>
(object end)
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetConnection.Connect.Success>
Property: <Name: description, STRING: Connection succeeded>
Property: <Name: objectEncoding, NUMBER: 0.00>
(object end)
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <connect>
RTMP_SendPacket: fd=4, size=44
Invoking releaseStream
RTMP_SendPacket: fd=4, size=40
Invoking FCPublish
RTMP_SendPacket: fd=4, size=25
Invoking createStream
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 30 bytes
(object begin)
Property: <Name: no-name., STRING: onBWDone>
Property: <Name: no-name., NUMBER: 0.00>
Property: NULL
Property: <Name: no-name., NUMBER: 8192.00>
(object end)
HandleInvoke, server invoking <onBWDone>
RTMP_SendPacket: fd=4, size=21
Invoking _checkbw
RTMP_ReadPacket: fd=4
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 139 bytes
(object begin)
Property: <Name: no-name., STRING: _error>
Property: <Name: no-name., NUMBER: 2.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetConnection.Call.Failed>
Property: <Name: description, STRING: Specified stream not found in call to releaseStream>
(object end)
(object end)
HandleInvoke, server invoking <_error>
HandleInvoke, received result id 2.000000 without matching request
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 21 bytes
(object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 3.00>
Property: NULL
Property: NULL
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result id 3.000000 without matching request
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 91 bytes
(object begin)
Property: <Name: no-name., STRING: onFCPublish>
Property: <Name: no-name., NUMBER: 0.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: code, STRING: NetStream.Publish.Start>
Property: <Name: description, STRING: 4bZe7TBKQ8Q1p3B>
(object end)
(object end)
HandleInvoke, server invoking <onFCPublish>
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 29 bytes
(object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 4.00>
Property: NULL
Property: <Name: no-name., NUMBER: 1.00>
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <createStream>
RTMP_SendPacket: fd=4, size=45
Invoking publish
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 120 bytes
(object begin)
Property: <Name: no-name., STRING: _error>
Property: <Name: no-name., NUMBER: 5.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: error>
Property: <Name: code, STRING: NetConnection.Call.Failed>
Property: <Name: description, STRING: call to function _checkbw failed>
(object end)
(object end)
HandleInvoke, server invoking <_error>
HandleInvoke, received result id 5.000000 without matching request
RTMP_ReadPacket: fd=4
RTMP_ReadPacket: fd=4
RTMP_ClientPacket, received: invoke 185 bytes
(object begin)
Property: <Name: no-name., STRING: onStatus>
Property: <Name: no-name., NUMBER: 0.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetStream.Publish.Start>
Property: <Name: description, STRING: Stream `4bZe7TBKQ8Q1p3B` is now published>
Property: <Name: details, STRING: 4bZe7TBKQ8Q1p3B>
Property: <Name: clientid, STRING: 2826_1_19585616>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Publish.Start
Successfully opened the file.
detected 24 logical cores
[graph 0 input from stream 0:0 @ 0x3a99120] Setting 'video_size' to value '720x486'
[graph 0 input from stream 0:0 @ 0x3a99120] Setting 'pix_fmt' to value '17'
[graph 0 input from stream 0:0 @ 0x3a99120] Setting 'time_base' to value '1001/24000'
[graph 0 input from stream 0:0 @ 0x3a99120] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x3a99120] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x3a99120] Setting 'frame_rate' to value '24000/1001'
[graph 0 input from stream 0:0 @ 0x3a99120] w:720 h:486 pixfmt:uyvy422 tb:1001/24000 fr:24000/1001 sar:0/1 sws_param:flags=2
[format @ 0x3a9ac40] compat: called with args=[yuv420p]
[format @ 0x3a9ac40] Setting 'pix_fmts' to value 'yuv420p'
[auto-inserted scaler 0 @ 0x3a99c60] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0x3a99c60] w:iw h:ih flags:'0x4' interl:0
[Parsed_yadif_0 @ 0x3a98b80] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_yadif_0'
[AVFilterGraph @ 0x3a9e2c0] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 0x3a99c60] w:720 h:486 fmt:uyvy422 sar:0/1 -> w:720 h:486 fmt:yuv420p sar:0/1 flags:0x4
[graph 1 input from stream 0:1 @ 0x3a9ae20] Setting 'time_base' to value '1/48000'
[graph 1 input from stream 0:1 @ 0x3a9ae20] Setting 'sample_rate' to value '48000'
[graph 1 input from stream 0:1 @ 0x3a9ae20] Setting 'sample_fmt' to value 's16'
[graph 1 input from stream 0:1 @ 0x3a9ae20] Setting 'channel_layout' to value '0x3'
[graph 1 input from stream 0:1 @ 0x3a9ae20] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[audio format for output stream 0:1 @ 0x3aa6980] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:1 @ 0x3aa6980] Setting 'sample_rates' to value '44100'
[audio format for output stream 0:1 @ 0x3aa6980] Setting 'channel_layouts' to value '0x4|0x3|0x7|0x107|0x37|0x3f'
[audio format for output stream 0:1 @ 0x3aa6980] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'
[AVFilterGraph @ 0x3a9b100] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x3aa96c0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz
[libx264 @ 0x3ab3c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x3ab3c00] profile High, level 3.0
[libx264 @ 0x3ab3c00] 264 - core 136 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=7 lookahead_threads=7 sliced_threads=1 slices=7 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=50 keyint_min=26 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1024 vbv_bufsize=1024 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://localhost:1935/live/4bZe7TBKQ8Q1p3B live=1':
Metadata:
encoder : Lavf55.19.100
Stream #0:0, 0, 1/1000: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 720x486, q=-1--1, max. 1024 kb/s, 1k tbn, 23.98 tbc
Stream #0:1, 0, 1/1000: Audio: aac (libfaac) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 256 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)
[libx264 @ 0x3ab3c00] frame= 0 QP=25.61 NAL=3 Slice:I Poc:0 I:1395 P:0 SKIP:0 size=42659 bytes
RTMP_SendPacket: fd=4, size=309
RTMP_SendPacket: fd=4, size=42
RTMP_SendPacket: fd=4, size=4
RTMP_SendPacket: fd=4, size=460
[libx264 @ 0x3ab3c00] frame= 1 QP=26.04 NAL=2 Slice:P Poc:2 I:12 P:196 SKIP:1187 size=719 bytes
RTMP_SendPacket: fd=4, size=43349
RTMP_SendPacket: fd=4, size=320
[libx264 @ 0x3ab3c00] frame= 2 QP=25.55 NAL=2 Slice:P Poc:4 I:23 P:352 SKIP:1020 size=1856 bytes
RTMP_SendPacket: fd=4, size=329
RTMP_SendPacket: fd=4, size=730
RTMP_SendPacket: fd=4, size=315
[libx264 @ 0x3ab3c00] frame= 3 QP=24.88 NAL=2 Slice:P Poc:6 I:25 P:619 SKIP:751 size=3680 bytes
RTMP_SendPacket: fd=4, size=302
RTMP_SendPacket: fd=4, size=1867
RTMP_SendPacket: fd=4, size=304
RTMP_SendPacket: fd=4, size=311
... (repeat above lines for a while)
[libx264 @ 0x3ab3c00] frame=101871 QP=29.62 NAL=2 Slice:P Poc:42 I:33 P:1164 SKIP:198 size=6429 bytes
frame=101872 fps= 23 q=28.0 size= 546993kB time=01:10:48.91 bitrate=1054.6kbits/s
RTMP_SendPacket: fd=4, size=380
[libx264 @ 0x3ab3c00] frame=101872 QP=29.92 NAL=2 Slice:P Poc:44 I:11 P:984 SKIP:400 size=4278 bytes
RTMP_SendPacket: fd=4, size=4752
RTMP_SendPacket: fd=4, size=436
[output stream 0:1 @ 0x3a9de40] EOF on sink link output stream 0:1:default.
[libx264 @ 0x3ab3c00] frame=101873 QP=29.43 NAL=2 Slice:P Poc:46 I:24 P:1073 SKIP:298 size=5187 bytes
[output stream 0:0 @ 0x3a9aa60] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
RTMP_SendPacket: fd=4, size=418
RTMP_SendPacket: fd=4, size=6440
RTMP_SendPacket: fd=4, size=419
RTMP_SendPacket: fd=4, size=419
[libfaac @ 0x3ab68a0] Trying to remove 227 more samples than there are in the queue
RTMP_SendPacket: fd=4, size=4289
RTMP_SendPacket: fd=4, size=233
RTMP_SendPacket: fd=4, size=5198
RTMP_SendPacket: fd=4, size=5
[flv @ 0x3ab0c20] Failed to update header with correct duration.
[flv @ 0x3ab0c20] Failed to update header with correct filesize.
frame=101874 fps= 23 q=28.0 Lsize= 547016kB time=01:10:48.99 bitrate=1054.6kbits/s
video:462563kB audio:78828kB subtitle:0 global headers:0kB muxing overhead 1.038972%
[libx264 @ 0x3ab3c00] frame I:2038 Avg QP:23.55 size: 29911
[libx264 @ 0x3ab3c00] frame P:99836 Avg QP:25.54 size: 4134
[libx264 @ 0x3ab3c00] mb I I16..4: 17.1% 35.8% 47.1%
[libx264 @ 0x3ab3c00] mb P I16..4: 3.9% 3.9% 0.3% P16..4: 32.1% 11.1% 4.3% 0.0% 0.0% skip:44.4%
[libx264 @ 0x3ab3c00] 8x8 transform intra:45.7% inter:38.1%
[libx264 @ 0x3ab3c00] coded y,uvDC,uvAC intra: 45.5% 53.7% 17.8% inter: 13.1% 14.7% 1.0%
[libx264 @ 0x3ab3c00] i16 v,h,dc,p: 43% 32% 20% 5%
[libx264 @ 0x3ab3c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 20% 35% 3% 3% 4% 4% 4% 5%
[libx264 @ 0x3ab3c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 22% 16% 5% 6% 7% 5% 6% 6%
[libx264 @ 0x3ab3c00] i8c dc,h,v,p: 54% 22% 19% 5%
[libx264 @ 0x3ab3c00] Weighted P-Frames: Y:3.1% UV:1.7%
[libx264 @ 0x3ab3c00] kb/s:891.81
229215 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3ae6960] Statistics: 0 seeks, 285536 writeouts
RTMP_SendPacket: fd=4, size=42
Invoking FCUnpublish
RTMP_SendPacket: fd=4, size=34
Invoking deleteStream
[AVIOContext @ 0x3ab67e0] Statistics: 72116951330 bytes read, 0 seeks
bmdcapture -m 11 -F nut -A 2 -V 3 -f pipe:1 |avconv -y -i - -c:v libx264 -r 29.97 -preset faster -vb 300k -c:a libfdk_aac -b:a 64k -f flv rtmp://1.16997247.fme.ustream.tv/ustreamVideo/16997247/Gmg04msdfobO50bkstnMtos0zbk4kgdrframe=8722 QP=21.00 NAL=2 Slice:P Poc:44 I:17 P:167 SKIP:736 size=800 bytes
[libx264 @ 0x25fbc20] frame=8723 QP=21.00 NAL=2 Slice:P Poc:46 I:16 P:186 SKIP:718 size=882 bytes
[libx264 @ 0x25fbc20] frame=8724 QP=21.00 NAL=2 Slice:P Poc:48 I:10 P:190 SKIP:720 size=874 bytes
[libx264 @ 0x25fbc20] frame=8725 QP=21.00 NAL=2 Slice:P Poc:50 I:10 P:185 SKIP:725 size=846 bytes
[libx264 @ 0x25fbc20] frame=8726 QP=21.00 NAL=2 Slice:P Poc:52 I:9 P:174 SKIP:737 size=817 bytes
frame=8727 QP=21.00 NAL=2 Slice:P Poc:54 I:10 P:183 SKIP:727 size=778 bytes
[libx264 @ 0x25fbc20] frame=8728 QP=21.00 NAL=2 Slice:P Poc:56 I:13 P:178 SKIP:729 size=853 bytes
[libx264 @ 0x25fbc20] frame=8729 QP=21.00 NAL=2 Slice:P Poc:58 I:9 P:197 SKIP:714 size=864 bytes
frame=8730 QP=21.00 NAL=2 Slice:P Poc:60 I:17 P:177 SKIP:726 size=852 bytes
[libx264 @ 0x25fbc20] frame=8731 QP=21.00 NAL=2 Slice:P Poc:62 I:10 P:186 SKIP:724 size=845 bytes
Killed
[root@videoserver libav-bmd]#
bmdcapture -m 11 -F nut -A 2 -V 3 -f pipe:1 | ffmpeg -re -i - \
-c:v libx264 -pix_fmt yuv420p -vf "scale=640:360" -profile:v baseline -level 3.1 \
-aspect 16:9 -r 29.97 -vb 300k \
-c:a libvo_aacenc -ab 64k -ar 44100 -ac 2 \
-f flv "rtmp://1.16997247.fme.ustream.tv/ustreamVideo/16997247/Gmg04msdfobO50bkstnMtos0zbk4kgdr"
Pytkin wrote:try this :
- Code: Select all
bmdcapture -m 11 -F nut -A 2 -V 3 -f pipe:1 | ffmpeg -re -i - \
-c:v libx264 -pix_fmt yuv420p -vf "scale=640:360" -profile:v baseline -level 3.1 \
-aspect 16:9 -r 29.97 -vb 300k \
-c:a libvo_aacenc -ab 64k -ar 44100 -ac 2 \
-f flv "rtmp://1.16997247.fme.ustream.tv/ustreamVideo/16997247/Gmg04msdfobO50bkstnMtos0zbk4kgdr"
bmdcapture -m 11 -F nut -A 2 -V 3 -f pipe:1 | avconv -re -i - \
-c:v libx264 -vf "scale=640:360" -profile:v baseline -level 31 \
-aspect 16:9 -r 29.97 -vb 300k \
-c:a libfdk_aac -ab 64k -ar 44100 -ac 2 \
-f flv "rtmp://1.16997247.fme.ustream.tv/ustreamVideo/16997247/Gmg04msdfobO50bkstnMtos0zbk4kgdr"[root@videoserver test]# bmdcapture -m 11 -F nut -A 2 -V 3 -f pipe:1 | avconv -re -i - -c:v libx264 -vf "scale=640:360" -profile:v baseline -level 31 -aspect 16:9 -r 29.97 -vb 300k -c:a libfdk_aac -ab 64k -ar 44100 -ac 2 -f flv "rtmp://1.16997247.fme.ustream.tv/ustreamVideo/16997247/Gmg04msdfobO50bkstnMtos0zbk4kgdr"
avconv version 9.10, Copyright (c) 2000-2013 the Libav developers
built on Jan 21 2014 12:53:02 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
Tue Jan 21 15:16:36 2014
Frame received (#1) - No input signal detected - Frames dropped 1 - Total dropped 1
[nut @ 0x1a45c20] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, nut, from 'pipe:':
Metadata:
encoder : Lavf54.20.3
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: rawvideo, uyvy422, 1920x1080, 29.97 tbr, 29.97 tbn
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Tue Jan 21 15:16:37 2014
Frame received (#13) - Input returned - Frames dropped 2 - Total dropped 2
[libx264 @ 0x1a49680] using SAR=1/1
[libx264 @ 0x1a49680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x1a49680] profile Constrained Baseline, level 3.1
[libx264 @ 0x1a49680] 264 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=300 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
Output #0, flv, to 'rtmp://1.16997247.fme.ustream.tv/ustreamVideo/16997247/Gmg04msdfobO50bkstnMtos0zbk4kgdr':
Metadata:
encoder : Lavf54.20.3
Stream #0.0: Video: libx264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=-1--1, 300 kb/s, 1k tbn, 29.97 tbc
Stream #0.1: Audio: libfdk_aac, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac)
Press ctrl-c to stop encoding
Stopping Capture
pipe:: Operation not permitted= 0kB time=0.07 bitrate= 46.0kbits/s
Failed to update header with correct duration.
[flv @ 0x1a4b480] Failed to update header with correct filesize.
frame= 5 fps= 0 q=-1.0 Lsize= 4kB time=0.17 bitrate= 197.3kbits/s
video:0kB audio:1kB global headers:0kB muxing overhead 207.847534%
[libx264 @ 0x1a49680] frame I:1 Avg QP:23.09 size: 901
[libx264 @ 0x1a49680] frame P:4 Avg QP:24.00 size: 11
[libx264 @ 0x1a49680] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x1a49680] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x1a49680] final ratefactor: 23.80
[libx264 @ 0x1a49680] coded y,uvDC,uvAC intra: 0.0% 1.6% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x1a49680] i16 v,h,dc,p: 96% 0% 4% 0%
[libx264 @ 0x1a49680] i8c dc,h,v,p: 67% 0% 33% 0%
[libx264 @ 0x1a49680] kb/s:45.27
[root@videoserver test]#Reuben wrote:Several observations:
1 - Why is your video bitrate set to 300k when you are shooting for 700k? Either way, there is no way in hell you're going to get reasonable quality 1080i video at either of those bitrates. Downscale the frame size before encoding ("-s" option). It's very unlikely you have any use for 1080 video for web streaming anyway, especially if you are using phone for playback. Try using the -crf flag rather than the -vb flag.
2 - Always set the "-re" flag when using a live source. Also the "-y" flag is not needed: you are not outputting a file.
3 - This is being picky, but use "-r 30000/1001" rather than "-r 29.97"
rtmp://xxxxxx:xxxxxx@p.ep155434.i.akamaientrypoint.net/Entrypoint/dclive_1_1@155434"rtmp://xxxxxx:xxxxxx@p.ep155434.i.akamaientrypoint.net/Entrypoint/dclive_1_1@155434 flashver=FME/2.5\20(compatible;\20FMSc\201.0)"Users browsing this forum: Gonzalo Moreno, Google [Bot] and 45 guests