[FFmpeg-user] ffmpeg stops transcoding/streaming file

sean ball sean9910 at gmail.com
Sun May 11 19:10:15 CEST 2014


Nevermind, I didn't look hard enough.


On Sun, May 11, 2014 at 1:09 PM, sean ball <sean9910 at gmail.com> wrote:

> What format are your videos in? I am referring to this part: -i $(ls
> /usr/stream/ready/ | shuf -n 1).
>
>
> On Sat, May 10, 2014 at 3:08 PM, Loadlinx <limiteddi at gmail.com> wrote:
>
>> Im launching transcoding and streaming with ffmpeg and it stops randomly
>> when it feels like. Any clues as to why this is happening?
>>
>> ffmpeg -i $(ls /usr/stream/ready/ | shuf -n 1) -vcodec libx264 -vb 700k -s
>> 540x450 -preset superfast -acodec libfdk_aac -ar 44100 -ab 32k -f flv
>> rtmp://192.168.1.100:1935/live/kidsongs
>> ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
>>   built on Apr 10 2014 19:37:19 with gcc 4.7 (Debian 4.7.2-5)
>>   configuration: --prefix=/root/ffmpeg_build
>> --extra-cflags=-I/root/ffmpeg_build/include
>> --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin
>> --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
>> --enable-libfreetype --enable-libtheora --enable-libvorbis
>> --enable-libx264
>> --enable-nonfree --enable-pic
>>   libavutil      52. 75.100 / 52. 75.100
>>   libavcodec     55. 58.103 / 55. 58.103
>>   libavformat    55. 36.103 / 55. 36.103
>>   libavdevice    55. 11.100 / 55. 11.100
>>   libavfilter     4.  4.100 /  4.  4.100
>>   libswscale      2.  6.100 /  2.  6.100
>>   libswresample   0. 18.100 /  0. 18.100
>>   libpostproc    52.  3.100 / 52.  3.100
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'kidsong3.mp4':
>>   Metadata:
>>     major_brand     : M4V
>>     minor_version   : 512
>>     compatible_brands: isomiso2avc1
>>     title           : The Best of Kid Songs
>>     artist          : Private
>>     album           : Gamelink
>>     encoder         : Lavf54.63.104
>>     genre           : Other
>>   Duration: 02:39:34.33, start: 0.021333, bitrate: 1419 kb/s
>>     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
>> 854x480 [SAR 1:1 DAR 427:240], 1348 kb/s, 25 fps, 25 tbr, 12800 tbn, 50
>> tbc
>> (default)
>>     Metadata:
>>       handler_name    : VideoHandler
>>     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
>> fltp, 64 kb/s (default)
>>     Metadata:
>>       handler_name    : SoundHandler
>> [libx264 @ 0x3a4b960] using SAR=427/288
>> [libx264 @ 0x3a4b960] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
>> SlowShuffle
>> [libx264 @ 0x3a4b960] profile High, level 3.0
>> [libx264 @ 0x3a4b960] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft
>> 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1
>> deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 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=24 lookahead_threads=3
>> 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=1 keyint=250 keyint_min=25 scenecut=40
>> intra_refresh=0 rc=abr mbtree=0 bitrate=700 ratetol=1.0 qcomp=0.60 qpmin=0
>> qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
>> Output #0, flv, to 'rtmp://192.168.1.100:1935/live/kidsongs':
>>   Metadata:
>>     major_brand     : M4V
>>     minor_version   : 512
>>     compatible_brands: isomiso2avc1
>>     title           : The Best of Kid Songs
>>     artist          : Private
>>     album           : Gamelink
>>     genre           : Other
>>     encoder         : Lavf55.36.103
>>     Stream #0:0(und): Video: h264 (libx264) ([7][0][0][0] / 0x0007),
>> yuv420p, 540x450 [SAR 427:288 DAR 427:240], q=-1--1, 700 kb/s, 1k tbn, 25
>> tbc (default)
>>     Metadata:
>>       handler_name    : VideoHandler
>>     Stream #0:1(und): Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A),
>> 44100 Hz, stereo, s16, 32 kb/s (default)
>>     Metadata:
>>       handler_name    : SoundHandler
>> Stream mapping:
>>   Stream #0:0 -> #0:0 (h264 -> libx264)
>>   Stream #0:1 -> #0:1 (aac -> libfdk_aac)
>> Press [q] to stop, [?] for help
>> [flv @ 0x3a4b380] Failed to update header with correct duration.rate=
>> 742.8kbits/s
>> [flv @ 0x3a4b380] Failed to update header with correct filesize.
>> frame=172331 fps= 94 q=-1.0 Lsize=  625127kB time=01:54:53.81 bitrate=
>> 742.8kbits/s
>> video:589902kB audio:26930kB subtitle:0kB other streams:0kB global
>> headers:0kB muxing overhead: 1.344827%
>> [libx264 @ 0x3a4b960] frame I:774   Avg QP:22.17  size: 14989
>> [libx264 @ 0x3a4b960] frame P:62255 Avg QP:24.62  size:  6046
>> [libx264 @ 0x3a4b960] frame B:109302 Avg QP:26.85  size:  1977
>> [libx264 @ 0x3a4b960] consecutive B-frames:  6.7% 16.8% 28.3% 48.2%
>> [libx264 @ 0x3a4b960] mb I  I16..4:  9.3% 48.1% 42.6%
>> [libx264 @ 0x3a4b960] mb P  I16..4:  3.8%  9.6%  2.6%  P16..4: 70.5%  0.0%
>>  0.0%  0.0%  0.0%    skip:13.5%
>> [libx264 @ 0x3a4b960] mb B  I16..4:  0.7%  1.0%  0.2%  B16..8: 34.6%  0.0%
>>  0.0%  direct:11.0%  skip:52.5%  L0:32.2% L1:49.8% BI:18.0%
>> [libx264 @ 0x3a4b960] final ratefactor: 24.74
>> [libx264 @ 0x3a4b960] 8x8 transform intra:58.3% inter:45.0%
>> [libx264 @ 0x3a4b960] coded y,uvDC,uvAC intra: 50.5% 53.8% 13.7% inter:
>> 16.5% 14.2% 0.3%
>> [libx264 @ 0x3a4b960] i16 v,h,dc,p: 59% 15% 12% 14%
>> [libx264 @ 0x3a4b960] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 11% 16%  5%  5%
>>  9%  5%  8%  6%
>> [libx264 @ 0x3a4b960] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 11% 12%  6%  5%
>>  8%  4%  7%  4%
>> [libx264 @ 0x3a4b960] i8c dc,h,v,p: 35% 15% 37% 13%
>> [libx264 @ 0x3a4b960] Weighted P-Frames: Y:7.4% UV:2.0%
>> [libx264 @ 0x3a4b960] kb/s:701.04
>> Received signal 15: terminating.
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>


More information about the ffmpeg-user mailing list