[FFmpeg-user] seekable mp4

jacky renaux.jacky at orange.fr
Sat Aug 16 10:51:36 CEST 2014


hello, good morning

I try to encode from PNG files a MP4 video for rtmp streaming by red5 
software
it used to be ok in a past , with present ffmpeg version it is not any more
I am quite sure i miss some args . could you help me ?
- by the way, every thing is fine with flv container -f flv and .flv 
extension
- same trouble with different profiles
- not streamable and not seekable (the red5 software does not generate 
meta files)

_my command line is _
ffmpeg -r 100/900  -f image2 -i diapositive%%d.PNG  -f mp4 -c:v 
libx264   -s 720x576 -pix_fmt yuv420p -crf 20  -r:v 25 -an -movflags 
faststart  -y  video.mp4
_
results _
ffmpeg version N-65651-gd3a2249 Copyright (c) 2000-2014 the FFmpeg 
developers
   built on Aug 15 2014 01:37:54 with gcc 4.8.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme 
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-libopus --enable-librtmp 
--enable-libschroedinger --enable-libsoxr --enable-libspeex 
--enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis 
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink 
--enable-zlib
   libavutil      54.  3.100 / 54.  3.100
   libavcodec     56.  0.101 / 56.  0.101
   libavformat    56.  1.100 / 56.  1.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.100 /  5.  0.100
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  0.100 /  1.  0.100
   libpostproc    53.  0.100 / 53.  0.100
Input #0, image2, from 'diapositive%d.PNG':
   Duration: 00:05:33.00, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: png, rgba, 960x720 [SAR 3780:3780 DAR 4:3], 
0.11 fps, 0.11 tbr, 0.11 tbn, 0.11 tbc
[libx264 @ 0000000002b6d5e0] using SAR=16/15
[libx264 @ 0000000002b6d5e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 
SSE4.2 AVX
[libx264 @ 0000000002b6d5e0] profile High, level 3.0
[libx264 @ 0000000002b6d5e0] 264 - core 142 r2453 ea0ca51 - H.264/MPEG-4 
AVC codec - Copyleft 2003-2014 - 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=6 
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=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 
aq=1:1.00
Output #0, mp4, to 'video.mp4':
   Metadata:
     encoder         : Lavf56.1.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), 
yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.0.101 libx264
Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=  451 fps=383 q=25.0 size=     142kB time=00:00:15.96 bitrate=  
73.0kbits/s dup=448 drop=0
frame=  676 fps=298 q=25.0 size=     225kB time=00:00:24.96 bitrate=  
73.7kbits/s dup=672 drop=0
frame=  901 fps=273 q=25.0 size=     314kB time=00:00:33.96 bitrate=  
75.8kbits/s dup=896 drop=0
frame= 1126 fps=257 q=25.0 size=     406kB time=00:00:42.96 bitrate=  
77.5kbits/s dup=1120 drop=0
frame= 1351 fps=248 q=25.0 size=     504kB time=00:00:51.96 bitrate=  
79.5kbits/s dup=1344 drop=0
frame= 1576 fps=240 q=25.0 size=     555kB time=00:01:00.96 bitrate=  
74.6kbits/s dup=1568 drop=0
frame= 1801 fps=239 q=25.0 size=     614kB time=00:01:09.96 bitrate=  
71.9kbits/s dup=1792 drop=0
frame= 2026 fps=237 q=25.0 size=     677kB time=00:01:18.96 bitrate=  
70.3kbits/s dup=2016 drop=0
frame= 2251 fps=235 q=25.0 size=     758kB time=00:01:27.96 bitrate=  
70.6kbits/s dup=2240 drop=0
frame= 2476 fps=233 q=25.0 size=     838kB time=00:01:36.96 bitrate=  
70.8kbits/s dup=2464 drop=0
frame= 2701 fps=232 q=25.0 size=     896kB time=00:01:45.96 bitrate=  
69.3kbits/s dup=2688 drop=0
frame= 2926 fps=232 q=25.0 size=     956kB time=00:01:54.96 bitrate=  
68.1kbits/s dup=2912 drop=0
frame= 3151 fps=232 q=25.0 size=    1019kB time=00:02:03.96 bitrate=  
67.3kbits/s dup=3136 drop=0
frame= 3376 fps=231 q=25.0 size=    1108kB time=00:02:12.96 bitrate=  
68.3kbits/s dup=3360 drop=0
frame= 3601 fps=230 q=25.0 size=    1167kB time=00:02:21.96 bitrate=  
67.3kbits/s dup=3584 drop=0
frame= 3826 fps=229 q=25.0 size=    1250kB time=00:02:30.96 bitrate=  
67.8kbits/s dup=3808 drop=0
frame= 4051 fps=228 q=25.0 size=    1342kB time=00:02:39.96 bitrate=  
68.7kbits/s dup=4032 drop=0
frame= 4276 fps=227 q=25.0 size=    1394kB time=00:02:48.96 bitrate=  
67.6kbits/s dup=4256 drop=0
frame= 4501 fps=228 q=25.0 size=    1455kB time=00:02:57.96 bitrate=  
67.0kbits/s dup=4480 drop=0
frame= 4726 fps=227 q=25.0 size=    1533kB time=00:03:06.96 bitrate=  
67.2kbits/s dup=4704 drop=0
frame= 4951 fps=226 q=25.0 size=    1609kB time=00:03:15.96 bitrate=  
67.3kbits/s dup=4928 drop=0
frame= 5176 fps=225 q=25.0 size=    1660kB time=00:03:24.96 bitrate=  
66.3kbits/s dup=5152 drop=0
frame= 5401 fps=225 q=25.0 size=    1703kB time=00:03:33.96 bitrate=  
65.2kbits/s dup=5376 drop=0
frame= 5626 fps=226 q=25.0 size=    1774kB time=00:03:42.96 bitrate=  
65.2kbits/s dup=5600 drop=0
frame= 5851 fps=225 q=25.0 size=    1838kB time=00:03:51.96 bitrate=  
64.9kbits/s dup=5824 drop=0
frame= 6076 fps=224 q=25.0 size=    1881kB time=00:04:00.96 bitrate=  
64.0kbits/s dup=6048 drop=0
frame= 6301 fps=223 q=25.0 size=    1980kB time=00:04:09.96 bitrate=  
64.9kbits/s dup=6272 drop=0
frame= 6526 fps=221 q=25.0 size=    2016kB time=00:04:18.96 bitrate=  
63.8kbits/s dup=6496 drop=0
frame= 6751 fps=221 q=25.0 size=    2075kB time=00:04:27.96 bitrate=  
63.4kbits/s dup=6720 drop=0
frame= 6976 fps=221 q=25.0 size=    2123kB time=00:04:36.96 bitrate=  
62.8kbits/s dup=6944 drop=0
frame= 7201 fps=221 q=25.0 size=    2189kB time=00:04:45.96 bitrate=  
62.7kbits/s dup=7168 drop=0
frame= 7426 fps=221 q=25.0 size=    2265kB time=00:04:54.96 bitrate=  
62.9kbits/s dup=7392 drop=0
frame= 7651 fps=221 q=25.0 size=    2321kB time=00:05:03.96 bitrate=  
62.5kbits/s dup=7616 drop=0
frame= 7876 fps=220 q=25.0 size=    2360kB time=00:05:12.96 bitrate=  
61.8kbits/s dup=7840 drop=0
frame= 8101 fps=220 q=25.0 size=    2400kB time=00:05:21.96 bitrate=  
61.1kbits/s dup=8064 drop=0
frame= 8101 fps=214 q=25.0 size=    2400kB time=00:05:21.96 bitrate=  
61.1kbits/s dup=8064 drop=0
[mp4 @ 0000000002b6c540] Starting second pass: moving the moov atom to 
the beginning of the file
frame= 8101 fps=212 q=-1.0 Lsize=    2499kB time=00:05:23.96 bitrate=  
63.2kbits/s dup=8064 drop=0

video:2403kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 3.991090%
[libx264 @ 0000000002b6d5e0] frame I:36    Avg QP:12.67  size: 56248
[libx264 @ 0000000002b6d5e0] frame P:2024  Avg QP:15.29  size:   114
[libx264 @ 0000000002b6d5e0] frame B:6041  Avg QP:25.69  size:    34
[libx264 @ 0000000002b6d5e0] consecutive B-frames:  0.5%  0.0%  0.1% 99.3%
[libx264 @ 0000000002b6d5e0] mb I  I16..4: 48.5% 15.7% 35.7%
[libx264 @ 0000000002b6d5e0] mb P  I16..4:  0.1%  0.0%  0.0% P16..4:  
0.5%  0.0%  0.0%  0.0%  0.0%    skip:99.3%
[libx264 @ 0000000002b6d5e0] mb B  I16..4:  0.0%  0.0%  0.0% B16..8:  
0.7%  0.0%  0.0%  direct: 0.0%  skip:99.2%  L0:37.0% L1:63.0% BI: 0.0%
[libx264 @ 0000000002b6d5e0] 8x8 transform intra:17.5% inter:49.6%
[libx264 @ 0000000002b6d5e0] coded y,uvDC,uvAC intra: 26.7% 38.7% 36.4% 
inter: 0.0% 0.1% 0.0%
[libx264 @ 0000000002b6d5e0] i16 v,h,dc,p: 19% 80%  0%  1%
[libx264 @ 0000000002b6d5e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 45% 29%  
0%  0%  0%  0%  0%  1%
[libx264 @ 0000000002b6d5e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 40% 9%  
3%  3%  3%  5%  3%  6%
[libx264 @ 0000000002b6d5e0] i8c dc,h,v,p: 26% 61% 10%  3%
[libx264 @ 0000000002b6d5e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000002b6d5e0] ref P L0: 96.9%  1.0%  2.0%  0.1%
[libx264 @ 0000000002b6d5e0] ref B L0: 76.5% 23.4%  0.2%
[libx264 @ 0000000002b6d5e0] ref B L1: 99.3%  0.7%
[libx264 @ 0000000002b6d5e0] kb/s:60.73

the tbn result is 12800 it seems this value is the main problem (the 
files encoded year_sss ago does have tbn 25)
is there any fixes , which mistake I am doing   ?

thanks for your advices
Jacky






More information about the ffmpeg-user mailing list