Andreas <[email protected]> added the comment:

Hi. I shortened the options: 

ffmpeg -deinterlace -i sample.ts -r 25 -vcodec libx264 -s 1024x576 -flags +loop 
-cmp +chroma -refs 1 -coder 0 -me_method hex -me_range 16 -subq 6 -
partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -rc_eq 
abr -qcomp 0.60 -qmin 10 -qmax 51 -ab 128k -ar 44100 -ac 2 -f mp4 File.mp4

The output: 

FFmpeg version SVN-r25326, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  3 2010 20:15:09 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: --enable-gpl --enable-postproc --enable-libx264 
--enable-libvpx --enable-libxvid --enable-libopenjpeg
  libavutil     50.32. 0 / 50.32. 0
  libavcore      0. 9. 0 /  0. 9. 0
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.79. 0 / 52.79. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.48. 0 /  1.48. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpegts @ 0x10100b000] max_analyze_duration reached
Input #0, mpegts, from 'sample.ts':
  Duration: 00:00:13.32, start: 180.518489, bitrate: 5481 kb/s
  Program 1 
    Stream #0.0[0xc9]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 
15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0xca]: Audio: mp2, 48000 Hz, 1 channels, s16, 192 kb/s
    Stream #0.2[0xcc](): Subtitle: [6][0][0][0] / 0x0006
File 'File.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x100e03b60] w:720 h:576 pixfmt:yuv420p
[scale @ 0x100e03e70] w:720 h:576 fmt:yuv420p -> w:1024 h:576 fmt:yuv420p 
flags:0xa0000004
[libx264 @ 0x10102ee00] using SAR=3/4
[libx264 @ 0x10102ee00] frame MB size (64x36) > level limit (1620)
[libx264 @ 0x10102ee00] MB rate (57600) > level limit (40500)
[libx264 @ 0x10102ee00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle 
SSE4.1 Cache64
[libx264 @ 0x10102ee00] profile Constrained Baseline, level 3.0
[libx264 @ 0x10102ee00] 264 - core 106 r1732 b20059a - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=0 
ref=1 deblock=1:0:0 analyse=0x1:0x11 me=hex subme=6 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=-2 threads=1 sliced_threads=0 nr=0 decimate=1 
interlaced=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 
scenecut=0 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=200 
ratetol=20.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=3 ip_ratio=1.25 aq=1:1.00
Output #0, mp4, to 'File.mp4':
  Metadata:
    encoder         : Lavf52.79.0
    Stream #0.0: Video: libx264, yuv420p, 1024x576 [PAR 3:4 DAR 4:3], q=10-51, 
200 kb/s, 25 tbn, 25 tbc
    Stream #0.1: Audio: aac, 44100 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  319 fps= 37 q=-1.0 Lsize=     557kB time=13.07 bitrate= 349.3kbits/s    
video:321kB audio:229kB global headers:0kB muxing overhead 1.465632%
frame I:2     Avg QP:39.16  size:  5473
[libx264 @ 0x10102ee00] frame P:317   Avg QP:37.15  size:  1000
[libx264 @ 0x10102ee00] mb I  I16..4: 90.1%  0.0%  9.9%
[libx264 @ 0x10102ee00] mb P  I16..4:  7.1%  0.0%  0.2%  P16..4: 11.1%  0.8%  
0.1%  0.0%  0.0%    skip:80.6%
[libx264 @ 0x10102ee00] final ratefactor: 35.19
[libx264 @ 0x10102ee00] coded y,uvDC,uvAC intra: 2.2% 13.6% 0.1% inter: 0.6% 
2.3% 0.0%
[libx264 @ 0x10102ee00] i16 v,h,dc,p: 47% 33%  9% 10%
[libx264 @ 0x10102ee00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 18% 36%  3%  5%  5%  
5%  3%  3%
[libx264 @ 0x10102ee00] i8c dc,h,v,p: 84%  9%  7%  0%
[libx264 @ 0x10102ee00] kb/s:203.68


Note: if you remove the options "-ar 44100 -ac 2" it will work for the first 
change mono-to-stereo (sample file provided) or stereo-to-mono... but any 
further change (example: mono goes to stereo(advertising) and then to mono) 
will cause the same problem.

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2292>
________________________________________________

Reply via email to