[FFmpeg-trac] #1115(undetermined:new): live mpeg-ts stream encoding failed

FFmpeg trac at avcodec.org
Thu Mar 22 11:25:59 CET 2012


#1115: live mpeg-ts stream encoding failed
-------------------------------------+-------------------------------------
             Reporter:  mihakiev     |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:  0.10
  undetermined                       |               Blocked By:
             Keywords:  1/90000,     |  Reproduced by developer:  0
  bitrate 15Mb/s, mpeg-ts, live      |
  encoding                           |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 /usr/bin/ffmpeg -y -i http://91.216.251.7/238.1.42.4:1234 -itsoffset
 00:00:8 -f mpegts -threads 0 -acodec libfaac -ar 48000 -ab 128k -ac 2 -map
 0:0 -map 0:1 -vcodec libx264 -s 540x432 -filter:v yadif -b:v 1200k -b:a
 128k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8
 -subq 7 -trellis 0 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40
 -i_qfactor 0.71 -bt 1200k -maxrate 1200k -bufsize 1200k -rc_eq
 blurCplx^(1-qComp) -qcomp 0.6 -qmin 18 -qmax 60 -qdiff 4 -level 30 -g 30
 -loglevel debug -async 2 udp:234.100.2.104:1234?pkt_size=1316

 output:
 root at ffmpeg6:/home/ffmpeg# ./tvi_m.sh
 ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
   built on Feb 14 2012 14:57:55 with gcc 4.6.2
   configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc'
 --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree
 --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-
 pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-
 x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-
 nonfree --disable-stripping --enable-libschroedinger --disable-
 encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-
 libvpx --enable-librtmp --enable-avfilter --enable-libfreetype --enable-
 libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-
 libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-
 libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-
 vis --shlibdir=/usr/lib/x86_64-linux-gnu
   libavutil      51. 34.101 / 51. 34.101
   libavcodec     53. 60.100 / 53. 60.100
   libavformat    53. 31.100 / 53. 31.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 60.100 /  2. 60.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpegts @ 0x18fa5e0] Format mpegts probed with size=2048 and score=100
 [mpegts @ 0x18fa5e0] stream=0 stream_type=2 pid=41 prog_reg_desc=
 [mpegts @ 0x18fa5e0] stream=1 stream_type=4 pid=42 prog_reg_desc=
 [mpeg2video @ 0x19001c0] err{or,}_recognition separate: 1; 1
 [mpeg2video @ 0x19001c0] err{or,}_recognition combined: 1; 10001
 [mp3 @ 0x1900b80] err{or,}_recognition separate: 1; 1
 [mp3 @ 0x1900b80] err{or,}_recognition combined: 1; 10001
 [mpegts @ 0x18fa5e0] stream=2 stream_type=0 pid=1065 prog_reg_desc=
 [mpegts @ 0x18fa5e0] Continuity check failed for pid 0 expected 5 got 9
 [mpegts @ 0x18fa5e0] probing stream 2 pp:2500
 [mpegts @ 0x18fa5e0] probing stream 2 pp:2499
 [mpegts @ 0x18fa5e0] Probe with size=3456, packets=2 detected mp3 with
 score=51
 [mpegts @ 0x18fa5e0] probed stream 2
 [mp2 @ 0x19028e0] err{or,}_recognition separate: 1; 1
 [mp2 @ 0x19028e0] err{or,}_recognition combined: 1; 10001
 [mpeg2video @ 0x19001c0] Unsupported bit depth: 0
 [mpegts @ 0x18fa5e0] max_analyze_duration 5000000 reached at 5000000
 [mpegts @ 0x18fa5e0] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, mpegts, from 'http://91.216.251.7/238.1.42.4:1234':
   Duration: N/A, start: 63620.568333, bitrate: 15320 kb/s
   Program 3
     Metadata:
       service_name    : TBi
       service_provider: Spacecom
     Stream #0:0[0x41], 127, 1/90000: Video: mpeg2video (Main)
 ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/50, 15000
 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x42](rus), 210, 1/90000: Audio: mp2 ([4][0][0][0] /
 0x0004), 48000 Hz, mono, s16, 128 kb/s
   Program 1
     Metadata:
       service_name    : KIEV STB
       service_provider: Spacecom
   Program 2
     Metadata:
       service_name    : M1
       service_provider: Spacecom
   Program 4
     Metadata:
       service_name    : NOVY CHANNEL
       service_provider: Spacecom
   Program 5
     Metadata:
       service_name    : ICTV
       service_provider: Spacecom
   Program 6
     Metadata:
       service_name    : M2
       service_provider: Spacecom
   Program 7
     Metadata:
       service_name    : TBi
       service_provider: Spacecom
   Program 8
     Metadata:
       service_name    : NEWS 24
       service_provider: Spacecom
   Program 10
     Metadata:
       service_name    : Pervy delovoy
       service_provider: Spacecom
   Program 11
     Metadata:
       service_name    : QTV
       service_provider: Spacecom
   No Program
     Stream #0:2[0x1065], 210, 1/90000: Audio: mp2, 48000 Hz, stereo, s16,
 192 kb/s
 [buffer @ 0x1a431c0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15
 sws_param:
 [yadif @ 0x1a0a7c0] mode:0 parity:-1 auto_enable:0
 [scale @ 0x1a31180] w:720 h:576 fmt:yuv420p -> w:540 h:432 fmt:yuv420p
 flags:0x4
 [libx264 @ 0x18f8da0] err{or,}_recognition separate: 1; 1
 [libx264 @ 0x18f8da0] err{or,}_recognition combined: 1; 10001
 [libx264 @ 0x18f8da0] using mv_range_thread = 24
 [libx264 @ 0x18f8da0] using SAR=16/15
 [libx264 @ 0x18f8da0] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2
 [libx264 @ 0x18f8da0] profile High, level 3.0
 [libfaac @ 0x18f9ac0] err{or,}_recognition separate: 1; 1
 [libfaac @ 0x18f9ac0] err{or,}_recognition combined: 1; 10001
 [mpeg2video @ 0x19001c0] err{or,}_recognition separate: 1; 10001
 [mpeg2video @ 0x19001c0] err{or,}_recognition combined: 1; 10001
 [mpeg2video @ 0x19001c0] detected 8 logical cores
 [mp2 @ 0x1900b80] err{or,}_recognition separate: 1; 10001
 [mp2 @ 0x1900b80] err{or,}_recognition combined: 1; 10001
 [mpegts @ 0x19d6680] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
 every 40 pkts
 Output #0, mpegts, to 'udp:234.100.2.104:1234?pkt_size=1316':
   Metadata:
     encoder         : Lavf53.31.100
     Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 540x432 [SAR 16:15 DAR
 4:3], 1/25, q=18-60, 1200 kb/s, 90k tbn, 25 tbc
     Stream #0:1(rus), 0, 1/90000: Audio: aac, 48000 Hz, 2 channels, s16,
 128 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video -> libx264)
   Stream #0:1 -> #0:1 (mp2 -> libfaac)
 Press [q] to stop, [?] for help
 [mpeg2video @ 0x19001c0] Unsupported bit depth: 0
 timestamp discontinuity 23252240956, new offset= -86872809289
 0.707107
 0.707107
 discarding 1152 audio samples
     Last message repeated 5 times
 timestamp discontinuity -23252240956, new offset= -63620568333
 *** 581307 dup!
 [libx264 @ 0x18f8da0] frame=   0 QP=18.32 NAL=3 Slice:I Poc:0   I:918  P:0
 SKIP:0    size=44308 bytes
 [libx264 @ 0x18f8da0] frame=   1 QP=19.29 NAL=2 Slice:P Poc:8   I:0
 P:89   SKIP:829  size=226 bytes
 [libx264 @ 0x18f8da0] frame=   2 QP=27.00 NAL=2 Slice:B Poc:4   I:0
 P:18   SKIP:900  size=47 bytes
 [libx264 @ 0x18f8da0] frame=   3 QP=27.00 NAL=0 Slice:B Poc:2   I:0
 P:14   SKIP:904  size=39 bytes
 [libx264 @ 0x18f8da0] frame=   4 QP=27.00 NAL=0 Slice:B Poc:6   I:0    P:4
 SKIP:914  size=20 bytes
 [libx264 @ 0x18f8da0] frame=   5 QP=19.88 NAL=2 Slice:P Poc:16  I:0
 P:37   SKIP:881  size=116 bytes
 [libx264 @ 0x18f8da0] frame=   6 QP=27.00 NAL=2 Slice:B Poc:12  I:0    P:6
 SKIP:912  size=28 bytes
 [libx264 @ 0x18f8da0] frame=   7 QP=27.00 NAL=0 Slice:B Poc:10  I:0    P:1
 SKIP:917  size=15 bytes
 [libx264 @ 0x18f8da0] frame=   8 QP=27.00 NAL=0 Slice:B Poc:14  I:0    P:0
 SKIP:918  size=12 bytes
 [libx264 @ 0x18f8da0] frame=   9 QP=21.02 NAL=2 Slice:P Poc:24  I:0
 P:54   SKIP:864  size=145 bytes
 [libx264 @ 0x18f8da0] frame=  10 QP=27.00 NAL=2 Slice:B Poc:20  I:0
 P:12   SKIP:906  size=38 bytes
 [libx264 @ 0x18f8da0] frame=  11 QP=27.00 NAL=0 Slice:B Poc:18  I:0    P:1
 SKIP:917  size=15 bytes
 [libx264 @ 0x18f8da0] frame=  12 QP=27.00 NAL=0 Slice:B Poc:22  I:0    P:2
 SKIP:916  size=17 bytes
 [libx264 @ 0x18f8da0] frame=  13 QP=21.02 NAL=2 Slice:P Poc:32  I:0
 P:18   SKIP:900  size=70 bytes
 [libx264 @ 0x18f8da0] frame=  14 QP=27.00 NAL=2 Slice:B Poc:28  I:0    P:5
 SKIP:913  size=26 bytes

 ===
 Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 540x432 [SAR 16:15 DAR
 4:3], 1/25, q=18-60, 1200 kb/s, 90k tbn, 25 tbc
 Stream #0:1(rus), 0, 1/90000: Audio: aac, 48000 Hz, 2 channels, s16, 128
 kb/s
 ===

 So, ffmpeg skipping about 100% of frames.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1115>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list