[FFmpeg-user] FFMPEG H.264 video not playing on some devices

ffmpeg at jrbtechnical.com ffmpeg at jrbtechnical.com
Tue Aug 21 15:36:49 CEST 2012


Hello all.

Again thanks for you help the other week "ffmpeg still to video question".

I thought I had everything squared away, but not quite.

I am using this right now:

/usr/local/bin/ffmpeg -r 5 -f image2 -i
/var/www/FTGweather/loop/FTG%2d.jpg -vcodec libx264 -level 4.1 -vprofile
high -preset veryslow -crf 18 -r 30 -y /var/www/FTGweather/FTG.mp4

********************
*

ffmpeg version git-2012-08-02-96cb143 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Aug  1 2012 23:30:31 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-version3
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 47.100 / 54. 47.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.101 /  3.  5.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from '/var/www/FTGweather/loop/FTG%2d.jpg':
  Duration: 00:00:08.20, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 978x550 [SAR 38:38 DAR 489:275],
5 fps, 5 tbr, 5 tbn, 5 tbc
[libx264 @ 0x2763620] using SAR=1/1
[libx264 @ 0x2763620] DPB size (16 frames, 13332480 bytes) > level limit
(15 frames, 12582912 bytes)
[libx264 @ 0x2763620] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x2763620] profile High, level 4.1
[libx264 @ 0x2763620] 264 - core 125 r2 d9d2288 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/var/www/FTGweather/FTG.mp4':
  Metadata:
    encoder         : Lavf54.22.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 978x550
[SAR 1:1 DAR 489:275], q=-1--1, 30 tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press [q] to stop, [?] for help
frame=   78 fps=0.0 q=24.0 size=     221kB time=00:00:00.13
bitrate=13592.0kbits/s dup=64 drop=0
frame=   84 fps= 38 q=24.0 size=     247kB time=00:00:00.33
bitrate=6071.5kbits/s dup=69 drop=0
frame=   96 fps= 33 q=24.0 size=     300kB time=00:00:00.73
bitrate=3347.0kbits/s dup=79 drop=0
frame=  102 fps= 28 q=24.0 size=     300kB time=00:00:00.93
bitrate=2633.2kbits/s dup=84 drop=0
frame=  114 fps= 26 q=24.0 size=     300kB time=00:00:01.33
bitrate=1845.6kbits/s dup=94 drop=0
frame=  126 fps= 24 q=24.0 size=     305kB time=00:00:01.73
bitrate=1440.2kbits/s dup=104 drop=0
frame=  132 fps= 23 q=24.0 size=     306kB time=00:00:01.93
bitrate=1296.5kbits/s dup=109 drop=0
frame=  138 fps= 21 q=24.0 size=     306kB time=00:00:02.13
bitrate=1176.2kbits/s dup=114 drop=0
frame=  144 fps= 21 q=24.0 size=     307kB time=00:00:02.33
bitrate=1078.0kbits/s dup=119 drop=0
frame=  150 fps= 20 q=24.0 size=     307kB time=00:00:02.53 bitrate=
993.8kbits/s dup=124 drop=0
frame=  156 fps= 19 q=24.0 size=     308kB time=00:00:02.73 bitrate=
921.6kbits/s dup=129 drop=0
frame=  168 fps= 19 q=24.0 size=     308kB time=00:00:03.13 bitrate=
806.0kbits/s dup=139 drop=0
frame=  174 fps= 18 q=24.0 size=     309kB time=00:00:03.33 bitrate=
758.3kbits/s dup=144 drop=0
frame=  180 fps= 18 q=24.0 size=     309kB time=00:00:03.53 bitrate=
717.0kbits/s dup=149 drop=0
frame=  186 fps= 17 q=24.0 size=     310kB time=00:00:03.73 bitrate=
679.3kbits/s dup=154 drop=0
frame=  192 fps= 17 q=24.0 size=     310kB time=00:00:03.93 bitrate=
646.0kbits/s dup=159 drop=0
frame=  198 fps= 17 q=24.0 size=     310kB time=00:00:04.13 bitrate=
615.3kbits/s dup=164 drop=0
frame=  204 fps= 17 q=24.0 size=     311kB time=00:00:04.33 bitrate=
587.3kbits/s dup=169 drop=0
frame=  216 fps= 16 q=24.0 size=     311kB time=00:00:04.73 bitrate=
539.0kbits/s dup=179 drop=0
frame=  222 fps= 16 q=24.0 size=     312kB time=00:00:04.93 bitrate=
517.6kbits/s dup=184 drop=0
frame=  228 fps= 16 q=24.0 size=     312kB time=00:00:05.13 bitrate=
498.5kbits/s dup=189 drop=0
frame=  234 fps= 16 q=24.0 size=     313kB time=00:00:05.33 bitrate=
480.3kbits/s dup=194 drop=0
frame=  240 fps= 16 q=24.0 size=     313kB time=00:00:05.53 bitrate=
463.9kbits/s dup=199 drop=0
frame=  240 fps= 13 q=32766.0 Lsize=     320kB time=00:00:07.93 bitrate=
330.6kbits/s dup=199 drop=0
video:317kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.877849%
[libx264 @ 0x2763620] frame I:1     Avg QP:16.29  size:171068
[libx264 @ 0x2763620] frame P:34    Avg QP:22.88  size:  2789
[libx264 @ 0x2763620] frame B:205   Avg QP:24.00  size:   285
[libx264 @ 0x2763620] consecutive B-frames:  0.4%  0.0%  0.0% 15.0%  0.0% 
0.0% 11.7% 46.7% 26.2%
[libx264 @ 0x2763620] mb I  I16..4: 37.3%  9.5% 53.2%
[libx264 @ 0x2763620] mb P  I16..4:  0.0%  0.0%  0.2%  P16..4:  5.7%  0.2%
 0.3%  0.1%  0.1%    skip:93.5%
[libx264 @ 0x2763620] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.4%  0.0%
 0.0%  direct: 0.0%  skip:98.5%  L0:36.9% L1:60.9% BI: 2.2%
[libx264 @ 0x2763620] 8x8 transform intra:8.9% inter:7.8%
[libx264 @ 0x2763620] direct mvs  spatial:98.5% temporal:1.5%
[libx264 @ 0x2763620] coded y,uvDC,uvAC intra: 62.1% 57.8% 54.2% inter:
0.2% 0.2% 0.2%
[libx264 @ 0x2763620] i16 v,h,dc,p: 96%  1%  3%  0%
[libx264 @ 0x2763620] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 21%  8%  7% 
5%  6%  9% 15%
[libx264 @ 0x2763620] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 20% 13%  8%  7% 
6%  8%  8% 14%
[libx264 @ 0x2763620] i8c dc,h,v,p: 57% 26% 15%  2%
[libx264 @ 0x2763620] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x2763620] ref P L0: 10.6%  0.9%  5.5%  5.2%  2.4%  5.3%  1.7% 
2.2%  0.4% 20.4%  5.3% 33.5%  1.4%  3.2%  1.0%  1.0%
[libx264 @ 0x2763620] ref B L0: 68.9%  1.6%  2.9%  1.1%  1.4%  0.4%  0.4% 
0.0%  0.3%  0.1%  1.9%  0.1%  2.2% 18.4%  0.2%
[libx264 @ 0x2763620] ref B L1: 91.6%  8.4%
[libx264 @ 0x2763620] kb/s:324.27

*
********************


The movie file is being read by a Digital Signage player via mrss feed. 
Some of the boxes are playing the video fine, but some are not.

I notice in VLC that for the codec, it says "H264 - MPEG-4 AVC (part 10)
(avc1)"
I am a bit confused about the "avc1", as in reading around most say that
this is fine that they are the same and just the way VLC sees some codecs,
others say it makes a difference.

I am not sure if that is what is throwing things off or not.  The
manufacture only says the following about H.264:

H.264 (MPEG-4, Part 10)
AAC audio supported with H.264 files
Main or High Profile up to level 4.1
CBR audio (vbr not supported)
Maximum bit rate recommended is 25Mbps
Maximum video resolution supported is 1920x1080p (progressive)


I am meeting all the requirements they list, but of course there are other
video options for H.264 that are not discussed.

I'm just asking to see if it is this "avc1" that is possibly an issue, or
if anyone sees anything else in what I am doing that may be a problem.

Thanks for the information and help as always!

John


More information about the ffmpeg-user mailing list