[FFmpeg-user] corruption when performing scripted extraction using -ss and -t

Em Bee np.mdbr at gmail.com
Tue Nov 5 14:23:54 CET 2013


Thanks for the reminder Carl.  Here is the uncut command line that I'm
using for the ffmpeg extraction, followed by the full console output.  The
VLC command line is already shown in its full form.

ffmpeg -ss 24.579605 -t 54.91519 -i
/mnt/r_comps/r3/20131101_9ABC_685_686_687_688/vlc_ctimeY2013m11d03H21M40S42ms771375.mp4
-an -filter:v crop=360:240:0:0
/u0/u0_ffmpeg/r3/20130726_5_675_20131103214107350980_20131103214202266170.mp4

Console:
----------------
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep  6 2013 19:42:08 with gcc 4.7 (SUSE Linux)
  configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man
--libdir=/usr/lib --enable-shared --disable-static --enable-debug
--disable-stripping --extra-cflags='-fomit-frame-pointer -fmessage-length=0
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3
--enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx
--enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis
--enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264
--enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-postproc --enable-libdc1394
--enable-librtmp --enable-libfreetype --enable-avresample
--enable-libtwolame --enable-libvo-aacenc
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 0x8159ce0] PES packet size mismatch
    Last message repeated 5 times
Input #0, mpegts, from
'/mnt/rack_comps/Rack3/Rack3/20131101_9ABC_685_686_687_688/vlc_ctimeY2013m11d03H21M45S08ms818250.mp4':
  Duration: 11:57:50.12, start: 77690.044067, bitrate: 734 kb/s
  Program 1
    Stream #0:0[0x44](): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 224 kb/s
    Stream #0:1[0x45](): Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
-t is not an input option, keeping it for the next output; consider fixing
your command line.
[libx264 @ 0x815f560] using SAR=8/9
[libx264 @ 0x815f560] using cpu capabilities: MMX2 SSE2Fast SSEMisalign
LZCNT
[libx264 @ 0x815f560] profile High, level 1.3
[libx264 @ 0x815f560] 264 - core 135 - H.264/MPEG-4 AVC codec - Copyleft
2003-2013 - 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=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to
'/u01/U01_ANALYZED_ffmpeg/Rack3/20130726_5_675_20131104044723782740_20131104044817420830.mp4':
  Metadata:
    encoder         : Lavf55.12.100
    Stream #0:0(): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
360x240 [SAR 8:9 DAR 4:3], q=-1--1, 30k tbn, 29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
[h264 @ 0x8970960] Missing reference picture, default is 0
[h264 @ 0x8970960] decode_slice_header error
[h264 @ 0x89b5520] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 0x89b5520] Missing reference picture, default is 0
[h264 @ 0x89b5520] decode_slice_header error
[h264 @ 0x8a173e0] Missing reference picture, default is 65536
    Last message repeated 1 times
[h264 @ 0x8a792a0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x8970960] reference picture missing during reorder
[h264 @ 0x8970960] Missing reference picture, default is 65532
[h264 @ 0x8a173e0] mmco: unref short failure
frame=  175 fps=0.0 q=29.0 size=      39kB time=00:00:04.10 bitrate=
78.5kbits/s dup=2 drop=166    ^Mframe=  337 fps=337 q=29.0 size=      88kB
time=00:00:09.50 bitrate=  76.1kbits/s dup=2 drop=328    ^Mframe=  502
fps=333 q=29.0 size=     129kB time=00:00:15.01 bitrate=  70.3kbits/s dup=2
drop=494    ^Mframe=  661 fps=329 q=29.0 size=     176kB time=00:00:20.32
bitrate=  70.9kbits/s dup=2 drop=653    ^Mframe=  827 fps=330 q=29.0
size=     225kB time=00:00:25.85 bitrate=  71.2kbits/s dup=2 drop=818
^Mframe=  989 fps=328 q=29.0 size=     266kB time=00:00:31.26 bitrate=
69.6kbits/s dup=2 drop=981    ^Mframe= 1153 fps=328 q=29.0 size=     315kB
time=00:00:36.73 bitrate=  70.2kbits/s dup=2 drop=1145    ^Mframe= 1313
fps=327 q=29.0 size=     370kB time=00:00:42.07 bitrate=  72.0kbits/s dup=2
drop=1304    ^Mframe= 1475 fps=326 q=29.0 size=     415kB time=00:00:47.48
bitrate=  71.6kbits/s dup=2 drop=1466    ^Mframe= 1608 fps=318 q=-1.0
Lsize=     487kB time=00:00:53.58 bitrate=  74.5kbits/s dup=2 drop=1600
^M
video:468kB audio:0kB subtitle:0 global headers:0kB muxing overhead
4.197801%
[libx264 @ 0x815f560] frame I:8     Avg QP:17.56  size:  7211
[libx264 @ 0x815f560] frame P:408   Avg QP:20.99  size:   474
[libx264 @ 0x815f560] frame B:1192  Avg QP:26.04  size:   191
[libx264 @ 0x815f560] consecutive B-frames:  0.9%  0.6%  0.2% 98.3%
[libx264 @ 0x815f560] mb I  I16..4: 26.6% 51.0% 22.4%
[libx264 @ 0x815f560] mb P  I16..4:  0.2%  0.9%  0.0%  P16..4: 28.9%  3.3%
3.1%  0.0%  0.0%    skip:63.5%
[libx264 @ 0x815f560] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  9.0%  0.1%
0.0%  direct: 1.5%  skip:89.3%  L0:36.5% L1:63.2% BI: 0.2%
[libx264 @ 0x815f560] 8x8 transform intra:60.3% inter:73.1%
[libx264 @ 0x815f560] coded y,uvDC,uvAC intra: 46.2% 49.0% 17.9% inter:
1.8% 8.7% 1.7%
[libx264 @ 0x815f560] i16 v,h,dc,p: 61% 20%  5% 14%
[libx264 @ 0x815f560] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 18% 43%  3%  4%
4%  6%  5%  6%
[libx264 @ 0x815f560] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 29% 12%  4%  4%
5%  5%  4%  6%
[libx264 @ 0x815f560] i8c dc,h,v,p: 55% 23% 20%  2%
[libx264 @ 0x815f560] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x815f560] ref P L0: 63.0%  4.2% 23.2%  9.6%
[libx264 @ 0x815f560] ref B L0: 88.0% 10.0%  2.0%
[libx264 @ 0x815f560] ref B L1: 96.5%  3.5%
[libx264 @ 0x815f560] kb/s:71.29
------------------------------



On Tue, Nov 5, 2013 at 4:24 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> np.mdbr <np.mdbr <at> gmail.com> writes:
>
> > ffmpeg -ss <clipStart> -t <duration> -i <input_file>
> > -b:v <bitrate of parent file>
> > -filter:v <calculated pixel area> <new file name>
>
> Please provide the actual command line (no variables
> together with the complete, uncut console output to
> get help here.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list