[FFmpeg-user] Output file empty when processing mp4 - Invalid data found when processing input

Peter Wood prw.cbd at gmail.com
Wed Jan 23 19:24:05 CET 2013


Hi Folks,

I'm trying to resize an mp4 file using ffmpeg, but the output file comes
out empty. I see the following messages just before the command finishes:

Truncating packet of size 103333 to 101557 time=00:00:06.10 bitrate=
585.7kbits/s
[h264 @ 0x20646aa0] AVC: nal size 103329
    Last message repeated 1 times
[h264 @ 0x20646aa0] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ff19240] stream 0, offset 0x200ed8: partial
file
/data/sftp/video/temp/video_promo/764556_4_p.mp4: Invalid data found when
processing input

Any pointers on how to track down what's causing this? You can see the full
output of the command below, followed by the output of ffprobe. The only
alterations are a few pieces of sensitive data that I've removed which
shouldn't have any bearing on diagnosing the issue.

Thanks,

Peter


ffmpeg version N-45171-gae77266-syslint Copyright (c) 2000-2012 the FFmpeg
developers
  built on Oct  8 2012 14:14:21 with gcc 4.1.2 (GCC) 20080704 (Red Hat
4.1.2-52)
  configuration: --prefix=/usr/local/cpffmpeg --enable-shared
--enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb
--enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/
--extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3
--extra-version=syslint
  libavutil      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 30.100 / 54. 30.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '764556_4_p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2013-01-10 18:15:24
    title           : xxxx
  Duration: 00:09:10.95, start: 0.000000, bitrate: 30 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x704, 1895 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
s16, 192 kb/s
    Metadata:
      creation_time   : 2013-01-10 18:15:24
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
[libx264 @ 0x1ff16720] using cpu capabilities: none!
[libx264 @ 0x1ff16720] profile Main, level 3.0
[libx264 @ 0x1ff16720] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC
codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options:
cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1
psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=2
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=abr mbtree=1 bitrate=512
ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '764556_4_P_temp.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    title           : xxxxxx
    encoder         : Lavf54.30.100
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
720x406, q=10-51, pass 1, 512 kb/s, 30k tbn, 29.97 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
Truncating packet of size 103333 to 101557 time=00:00:06.10 bitrate=
585.7kbits/s
[h264 @ 0x20646aa0] AVC: nal size 103329
    Last message repeated 1 times
[h264 @ 0x20646aa0] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ff19240] stream 0, offset 0x200ed8: partial
file
764556_4_p.mp4: Invalid data found when processing input
frame=  270 fps= 79 q=-1.0 Lsize=     610kB time=00:00:08.94 bitrate=
558.8kbits/s
video:606kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.616142%
[libx264 @ 0x1ff16720] frame I:2     Avg QP:18.48  size: 52856
[libx264 @ 0x1ff16720] frame P:104   Avg QP:21.64  size:  4429
[libx264 @ 0x1ff16720] frame B:164   Avg QP:26.99  size:   328
[libx264 @ 0x1ff16720] consecutive B-frames: 16.7%  2.2% 14.4% 66.7%
[libx264 @ 0x1ff16720] mb I  I16..4: 52.4%  0.0% 47.6%
[libx264 @ 0x1ff16720] mb P  I16..4:  0.8%  0.0%  0.0%  P16..4: 27.9%  0.0%
 0.0%  0.0%  0.0%    skip:71.4%
[libx264 @ 0x1ff16720] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  4.4%  0.0%
 0.0%  direct: 2.1%  skip:93.5%  L0:18.8% L1:34.6% BI:46.5%
[libx264 @ 0x1ff16720] final ratefactor: 20.43
[libx264 @ 0x1ff16720] coded y,uvDC,uvAC intra: 41.6% 48.0% 43.9% inter:
6.3% 6.9% 2.7%
[libx264 @ 0x1ff16720] i16 v,h,dc,p: 68% 24%  7%  2%
[libx264 @ 0x1ff16720] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 26% 10%  3%  8%
 6%  5%  7%  8%
[libx264 @ 0x1ff16720] i8c dc,h,v,p: 54% 23% 18%  4%
[libx264 @ 0x1ff16720] Weighted P-Frames: Y:11.5% UV:6.7%
[libx264 @ 0x1ff16720] kb/s:550.62





FFprobe version 0.6.1, Copyright (c) 2007-2010 the FFmpeg developers
  built on Dec  4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--mandir=/usr/share/man --incdir=/usr/include --disable-avisynth
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC'
--enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac
--enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
--enable-gpl --enable-nonfree --enable-postproc --enable-pthreads
--enable-shared --enable-swscale --enable-vdpau --enable-version3
--enable-x11grab
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '764556_4_p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    title           : xxxxxxx
  Duration: 00:09:10.95, start: 0.000000, bitrate: 30 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 1280x704, 1895 kb/s, 29.97 fps,
29.97 tbr, 60k tbn, 59.94 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 192 kb/s


More information about the ffmpeg-user mailing list