Opened 12 years ago

Closed 10 years ago

#1115 closed defect (needs_more_info)

live mpeg-ts stream encoding failed

Reported by: Miha Owned by:
Priority: normal Component: undetermined
Version: 0.10 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

/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@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.

Change History (12)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: 1/90000 bitrate 15Mb/s mpeg-ts live encoding removed
Priority: importantnormal

Please test current git head, some changes in the network code have been committed.

Is this only reproducible with external libraries (libx264 and libfaac) and network output or also if you do
$ ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -qscale 2 out.avi
?

comment:2 by Miha, 12 years ago

From git same situation:

ffmpeg version N-39046-g4246032 Copyright (c) 2000-2012 the FFmpeg developers

built on Mar 22 2012 16:41:00 with gcc 4.6.3
configuration: --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 2.100 / 54. 2.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 65.102 / 2. 65.102
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 7.100 / 0. 7.100
libpostproc 52. 0.100 / 52. 0.100

[mpegts @ 0x21663a0] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x21663a0] stream=0 stream_type=2 pid=41 prog_reg_desc=
[mpegts @ 0x21663a0] stream=1 stream_type=4 pid=42 prog_reg_desc=
[mpegts @ 0x21663a0] stream=2 stream_type=0 pid=1065 prog_reg_desc=
[mpegts @ 0x21663a0] Continuity check failed for pid 0 expected 2 got 6
[mpegts @ 0x21663a0] probing stream 2 pp:2500
[mpegts @ 0x21663a0] Probe with size=1728, packets=1 detected mp3 with score=1
[mpegts @ 0x21663a0] probing stream 2 pp:2499
[mpegts @ 0x21663a0] Probe with size=3456, packets=2 detected mp3 with score=51
[mpegts @ 0x21663a0] probed stream 2
[mpegts @ 0x21663a0] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x21663a0] 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: 7003.111100, bitrate: 15320 kb/s
Program 3

Metadata:

service_name : TBi
service_provider: Spacecom

Stream #0:0[0x41], 121, 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, 1 channels, 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], 211, 1/90000: Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s

[buffer @ 0x2281da0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15 sws_param:
[yadif @ 0x2281a00] mode:0 parity:-1 auto_enable:0
[scale @ 0x229c060] w:720 h:576 fmt:yuv420p sar:16/15 -> w:540 h:432 fmt:yuv420p sar:16/15 flags:0x4
[libx264 @ 0x2164b40] using mv_range_thread = 24
[libx264 @ 0x2164b40] using SAR=16/15
[libx264 @ 0x2164b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x2164b40] profile High, level 3.0
[mpeg2video @ 0x216bee0] detected 8 logical cores
[mpegts @ 0x21ae9c0] 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 : Lavf54.2.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
0.707107
0.707107
* 12 dup!
[libx264 @ 0x2164b40] frame= 0 QP=18.58 NAL=3 Slice:I Poc:0 I:918 P:0 SKIP:0 size=32263 bytes
[libx264 @ 0x2164b40] frame= 1 QP=19.92 NAL=2 Slice:P Poc:8 I:0 P:102 SKIP:816 size=232 bytes
[libx264 @ 0x2164b40] frame= 2 QP=22.09 NAL=2 Slice:B Poc:4 I:0 P:29 SKIP:889 size=68 bytes
[libx264 @ 0x2164b40] frame= 3 QP=26.00 NAL=0 Slice:B Poc:2 I:0 P:12 SKIP:906 size=34 bytes
[libx264 @ 0x2164b40] frame= 4 QP=26.00 NAL=0 Slice:B Poc:6 I:0 P:9 SKIP:909 size=30 bytes
[libx264 @ 0x2164b40] frame= 5 QP=19.27 NAL=2 Slice:P Poc:16 I:0 P:54 SKIP:864 size=143 bytes
[libx264 @ 0x2164b40] frame= 6 QP=26.00 NAL=2 Slice:B Poc:12 I:0 P:26 SKIP:892 size=59 bytes

===============

without external libx264 everything works fine:

root@ffmpeg6:/home/ffmpeg# ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -qscale 2 out.avi
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 @ 0x7e25e0] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x7e25e0] 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: 7084.471100, bitrate: 15320 kb/s
Program 3

Metadata:

service_name : TBi
service_provider: Spacecom

Stream #0:0[0x41]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x42](rus): 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]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s

Please use -q:a or -q:v, -qscale is ambiguous
[buffer @ 0x7e9cc0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15 sws_param:
Output #0, avi, to 'out.avi':

Metadata:

ISFT : Lavf53.31.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:2 -> #0:1 (mp2 -> libmp3lame)

Press [q] to stop, ? for help
frame= 371 fps= 37 q=2.0 Lsize= 8229kB time=00:00:15.09 bitrate=4465.6kbits/s
video:7960kB audio:236kB global headers:0kB muxing overhead 0.410134%
Received signal 2: terminating.
root@ffmpeg6:/home/ffmpeg# C

comment:3 by Carl Eugen Hoyos, 12 years ago

Is this only reproducible with external libraries (libx264 and libfaac) and network output or also if you do
$ ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -qscale 2 out.avi
?

comment:4 by Miha, 12 years ago

Before I copypast some information for this:

===
Press [q] to stop, ? for help
frame= 371 fps= 37 q=2.0 Lsize= 8229kB time=00:00:15.09 bitrate=4465.6kbits/s
video:7960kB audio:236kB global headers:0kB muxing overhead 0.410134%
Received signal 2: terminating.
root@ffmpeg6:/home/ffmpeg#
====

without x264 and aac everything fine.

comment:5 by Carl Eugen Hoyos, 12 years ago

Does one of the following work?
$ ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -vn -acodec libfaac -ac 2 outa.ts
$ ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -an -vcodec libx264 -vb 1200k outv.ts

comment:6 by Miha, 12 years ago

a) ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -vn -acodec libfaac -ac 2 outa.ts

Press [q] to stop, ? for help
size= 189kB time=00:00:10.75 bitrate= 143.9kbits/s
video:0kB audio:168kB global headers:0kB muxing overhead 12.632529%
Received signal 2: terminating.

audio only coding works fine.

b) ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -an -vcodec libx264 -vb 1200k outv.ts
it looks frozen. Code below:

root@ffmpeg6:/home/ffmpeg# ffmpeg -i http://91.216.251.7/238.1.42.4:1234 -an -vcodec libx264 -vb 1200k outv.ts
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 @ 0xb925e0] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0xb925e0] 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: 42411.212956, bitrate: 15320 kb/s
Program 3

Metadata:

service_name : TBi
service_provider: Spacecom

Stream #0:0[0x41]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x42](rus): 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]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s

[buffer @ 0xb9c320] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15 sws_param:
[libx264 @ 0xb9af00] using SAR=16/15
[libx264 @ 0xb9af00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0xb9af00] profile High, level 3.0
[mpegts @ 0xc6da00] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'outv.ts':

Metadata:

encoder : Lavf53.31.100
Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=-1--1, 1200 kb/s, 90k tbn, 25 tbc

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> libx264)

Press [q] to stop, ? for help

comment:7 by Miha, 12 years ago

Have you any updates on issue?
Any terms?

Thank you.

comment:8 by Miha, 12 years ago

Knock knock.

comment:9 by Carl Eugen Hoyos, 12 years ago

If the problem is only reproducible with x264 and not with an internal encoder, did you already consider updating / recompiling x264 (or lowering the framerate significantly to make sure this is not a performance issue)?

comment:10 by Miha, 12 years ago

I'm coding about 60 tv channels same time with same format source: MPEG-TS containter, MPEG2 codec. 8 same configuration servers doing this job with 64 ffmpeg/s processes.
I've tryed another OSes with different ffmpeg and x264 versions, but problem still exists.
Every TV channel coding perfectly, otherwise this one.
Only one difference with this channels: unconditional stream has bitrate 15320 kb/s into ffmpeg stream information.
Every another channel has bitrate about 5000kb/s.

Do you need any other tests?

in reply to:  10 comment:11 by Carl Eugen Hoyos, 12 years ago

Replying to mihakiev:

Do you need any other tests?

Did you try lowering the framerate significantly to make sure this is not a performance issue?

I just realize I assumed so far this happens only for network input, is it also reproducible if you specify the transport stream as a file as input?

comment:12 by Carl Eugen Hoyos, 10 years ago

Resolution: needs_more_info
Status: newclosed

It is unlikely that anything about this problem can be fixed within FFmpeg.

Note: See TracTickets for help on using tickets.