New submission from Henk Schoneveld <[email protected]>:
time ffmpegn -y -vframes 600 -strict 1 -i /md/workc.ts -an -vcodec mpeg2video
-sameq -intra -f mpegts "/md/result/allintra.ts"
FFmpeg version SVN-r23993, Copyright (c) 2000-2010 the FFmpeg developers
built on Jul 21 2010 12:02:11 with gcc 4.2.2 20070909 (prerelease)
(4.2.2-0.RC.1mdv2008.0)
configuration: --prefix=/usr --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-pthreads --disable-ffserver --enable-ffplay --as=yasm --enable-nonfree
--enable-libx264 --enable-libxvid
libavutil 50.19. 1 / 50.19. 1
libavcodec 52.78. 1 / 52.78. 1
libavformat 52.72. 0 / 52.72. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 1 / 1.20. 1
libswscale 0.11. 0 / 0.11. 0
[mpegts @ 0x944f510] max_analyze_duration reached
Input #0, mpegts, from '/md/workc.ts':
Duration: 00:32:50.88, start: 1130.000000, bitrate: 3500 kb/s
Program 1
Stream #0.0[0x1011]: Video: mpeg2video, yuv420p, 704x576 [PAR 16:11 DAR
16:9], 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1100](dut): Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
[mpegts @ 0x9454730] muxrate 1 bps, pcr every 2 pkts, sdt every 200, pat/pmt
every 40 pkts
Output #0, mpegts, to '/md/result/allintra.ts':
Metadata:
encoder : Lavf52.72.0
Stream #0.0: Video: mpeg2video, yuv420p, 704x576 [PAR 16:11 DAR 16:9],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 600 fps= 95 q=0.0 Lsize= 35910kB time=23.96 bitrate=12277.8kbits/s
video:33247kB audio:0kB global headers:0kB muxing overhead 8.011828%
then I encode 2 300frame out of it. The 1st 18frames are identical, at least
playing with mplayer and stepping through with '.'
time ffmpegn -y -ss 12 -vframes 300 -strict 1 -i /md/result/allintra.ts -an
-vcodec libx264 -threads 1 -b 1672k -deinterlace -flags +loop -coder 1 -refs 2
-deblockalpha 0 -deblockbeta 0 -partitions +parti4x4+partp8x8+parti8x8+partb8x8
-me_method umh -subq 4 -me_range 16 -flags2 +dct8x8+mixed_refs -cmp +chroma -bf
0 -b_strategy 1 -g 250 -keyint_min 25 -sc_threshold 40 -cqp 26 -vpre default -f
rawvideo "/md/result/300-b.h264"
FFmpeg version SVN-r23993, Copyright (c) 2000-2010 the FFmpeg developers
built on Jul 21 2010 12:02:11 with gcc 4.2.2 20070909 (prerelease)
(4.2.2-0.RC.1mdv2008.0)
configuration: --prefix=/usr --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-pthreads --disable-ffserver --enable-ffplay --as=yasm --enable-nonfree
--enable-libx264 --enable-libxvid
libavutil 50.19. 1 / 50.19. 1
libavcodec 52.78. 1 / 52.78. 1
libavformat 52.72. 0 / 52.72. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 1 / 1.20. 1
libswscale 0.11. 0 / 0.11. 0
Input #0, mpegts, from '/md/result/allintra.ts':
Duration: 00:00:23.96, start: 1.400000, bitrate: 12277 kb/s
Program 1 Service01
Metadata:
name : Service01
provider_name : FFmpeg
Stream #0.0[0x100]: Video: mpeg2video, yuv420p, 704x576 [PAR 16:11 DAR
16:9], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
[libx264 @ 0x976d0e0] using SAR=16/11
[libx264 @ 0x976d0e0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x976d0e0] profile High, level 3.0
Output #0, rawvideo, to '/md/result/300-b.h264':
Metadata:
encoder : Lavf52.72.0
Stream #0.0: Video: libx264, yuv420p, 704x576 [PAR 16:11 DAR 16:9], q=10-51,
1672 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 299 fps= 9 q=-1.0 Lsize= 1883kB time=11.96 bitrate=1289.7kbits/s
dup=17 drop=0
video:1883kB audio:0kB global headers:0kB muxing overhead 0.000000%
[libx264 @ 0x976d0e0] frame I:4 Avg QP:23.00 size: 31284
[libx264 @ 0x976d0e0] frame P:295 Avg QP:26.00 size: 6112
[libx264 @ 0x976d0e0] mb I I16..4: 13.2% 78.4% 8.4%
[libx264 @ 0x976d0e0] mb P I16..4: 2.5% 3.6% 0.2% P16..4: 37.4% 13.6% 7.0%
0.0% 0.0% skip:35.7%
[libx264 @ 0x976d0e0] 8x8 transform intra:60.6% inter:67.9%
[libx264 @ 0x976d0e0] coded y,uvDC,uvAC intra: 53.6% 66.4% 26.9% inter: 18.4%
24.0% 2.0%
[libx264 @ 0x976d0e0] i16 v,h,dc,p: 52% 20% 12% 16%
[libx264 @ 0x976d0e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 11% 22% 4% 6% 8% 5%
9% 5%
[libx264 @ 0x976d0e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 9% 12% 4% 7% 11% 5%
7% 3%
[libx264 @ 0x976d0e0] i8c dc,h,v,p: 44% 15% 33% 8%
[libx264 @ 0x976d0e0] ref P L0: 85.1% 9.5% 5.4%
[libx264 @ 0x976d0e0] kb/s:1289.73
When saving the all-intra to rawvideo, then there is no problem with the 1st
frames but the frame-rate doubles.
File '300frames-fromTS1st18framesidentical..h264' not attached - you can
download it from https://roundup.ffmpeg.org/file1015.
----------
files: 300frames-fromTS1st18framesidentical..h264
messages: 11545
nosy: belcampo
priority: normal
status: new
substatus: new
title: After seek in an all-intra mpeg2 source-file 18-frames are the same when
encoded
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2145>
________________________________________________