[FFmpeg-trac] #4037(undetermined:new): [Transcoding] Duration and frame number changed after transcoding

FFmpeg trac at avcodec.org
Wed Oct 22 08:38:36 CEST 2014


#4037: [Transcoding] Duration and frame number changed after transcoding
-------------------------------------+-------------------------------------
             Reporter:  hungnv       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mpegts       |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by hungnv):

 Replying to [comment:26 cehoyos]:
 > Did you test it?

 It does not work, it produces a very strange things like this.
 The command with uncut output
 {{{
 root at ubuntu:~# ffmpeg -i "http://ubuntu/vod/bichphuong.m3u8" -vb 1000k -s
 640x360 -vcodec libx264 -acodec copy -vf scale=640:-1
 streams/bicphuong.m3u8
 ffmpeg version N-66929-gf6bb2cd Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Oct 17 2014 09:36:11 with gcc 4.6 (Ubuntu/Linaro
 4.6.4-3ubuntu1)
   configuration: --enable-libx264 --enable-libfdk-aac --enable-gpl
 --enable-nonfree --enable-shared --enable-avresample --enable-debug=3
 --enable-libfaac --enable-libvo-aacenc --enable-version3
   libavutil      54. 10.100 / 54. 10.100
   libavcodec     56.  8.100 / 56.  8.100
   libavformat    56.  9.100 / 56.  9.100
   libavdevice    56.  1.100 / 56.  1.100
   libavfilter     5.  1.106 /  5.  1.106
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, hls,applehttp, from 'http://ubuntu/vod/bichphuong.m3u8':
   Duration: 00:06:00.38, start: 1.000000, bitrate: 0 kb/s
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p,
 854x480, 24 fps, 24 tbr, 90k tbn, 48 tbc
     Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo,
 fltp, 136 kb/s
 [libx264 @ 0x19f6100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX
 [libx264 @ 0x19f6100] profile High, level 3.0
 Output #0, hls, to 'streams/bicphuong.m3u8':
   Metadata:
     encoder         : Lavf56.9.100
     Stream #0:0: Video: h264 (libx264), yuv420p, 640x360, q=-1--1, 1000
 kb/s, 24 fps, 90k tbn, 24 tbc
     Metadata:
       encoder         : Lavc56.8.100 libx264
     Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo,
 136 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame= 8536 fps= 67 q=-1.0 Lsize=N/A time=00:06:00.28 bitrate=N/A dup=3014
 drop=0
 video:44125kB audio:3741kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: unknown
 [libx264 @ 0x19f6100] frame I:82    Avg QP: 5.75  size: 46376
 [libx264 @ 0x19f6100] frame P:3237  Avg QP: 8.51  size:  9914
 [libx264 @ 0x19f6100] frame B:5217  Avg QP: 8.91  size:  1780
 [libx264 @ 0x19f6100] consecutive B-frames: 14.5%  8.8%  9.7% 67.0%
 [libx264 @ 0x19f6100] mb I  I16..4: 31.1% 26.4% 42.4%
 [libx264 @ 0x19f6100] mb P  I16..4:  1.4%  3.7%  1.9%  P16..4: 18.5% 13.6%
 12.0%  0.0%  0.0%    skip:49.0%
 [libx264 @ 0x19f6100] mb B  I16..4:  0.0%  0.2%  0.1%  B16..8: 15.2%  6.1%
 2.4%  direct: 2.9%  skip:73.0%  L0:38.4% L1:41.4% BI:20.2%
 [libx264 @ 0x19f6100] final ratefactor: 12.09
 [libx264 @ 0x19f6100] 8x8 transform intra:46.1% inter:43.5%
 [libx264 @ 0x19f6100] coded y,uvDC,uvAC intra: 73.2% 76.9% 70.5% inter:
 15.6% 14.5% 6.1%
 [libx264 @ 0x19f6100] i16 v,h,dc,p: 45% 31% 10% 15%
 [libx264 @ 0x19f6100] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 15%  4%  6%
 7%  7%  7%  7%
 [libx264 @ 0x19f6100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 26% 11%  5%  8%
 7%  7%  6%  6%
 [libx264 @ 0x19f6100] i8c dc,h,v,p: 52% 27% 16%  6%
 [libx264 @ 0x19f6100] Weighted P-Frames: Y:3.4% UV:2.6%
 [libx264 @ 0x19f6100] ref P L0: 77.6% 10.1%  9.6%  2.7%  0.0%
 [libx264 @ 0x19f6100] ref B L0: 93.5%  5.8%  0.7%
 [libx264 @ 0x19f6100] ref B L1: 96.3%  3.7%
 [libx264 @ 0x19f6100] kb/s:1016.32
 }}}

 Ouput file:
 {{{
 root at ubuntu:~# ls streams/
 bicphuong0.ts   bicphuong14.ts  bicphuong19.ts  bicphuong23.ts
 bicphuong28.ts  bicphuong32.ts  bicphuong37.ts  bicphuong41.ts
 bicphuong46.ts  bicphuong50.ts  bicphuong55.ts  bicphuong5.ts
 bicphuong64.ts  bicphuong69.ts  bicphuong73.ts  bicphuong7.ts
 bicphuong10.ts  bicphuong15.ts  bicphuong1.ts   bicphuong24.ts
 bicphuong29.ts  bicphuong33.ts  bicphuong38.ts  bicphuong42.ts
 bicphuong47.ts  bicphuong51.ts  bicphuong56.ts  bicphuong60.ts
 bicphuong65.ts  bicphuong6.ts   bicphuong74.ts  bicphuong8.ts
 bicphuong11.ts  bicphuong16.ts  bicphuong20.ts  bicphuong25.ts
 bicphuong2.ts   bicphuong34.ts  bicphuong39.ts  bicphuong43.ts
 bicphuong48.ts  bicphuong52.ts  bicphuong57.ts  bicphuong61.ts
 bicphuong66.ts  bicphuong70.ts  bicphuong75.ts  bicphuong9.ts
 bicphuong12.ts  bicphuong17.ts  bicphuong21.ts  bicphuong26.ts
 bicphuong30.ts  bicphuong35.ts  bicphuong3.ts   bicphuong44.ts
 bicphuong49.ts  bicphuong53.ts  bicphuong58.ts  bicphuong62.ts
 bicphuong67.ts  bicphuong71.ts  bicphuong76.ts  bicphuong.m3u8
 bicphuong13.ts  bicphuong18.ts  bicphuong22.ts  bicphuong27.ts
 bicphuong31.ts  bicphuong36.ts  bicphuong40.ts  bicphuong45.ts
 bicphuong4.ts   bicphuong54.ts  bicphuong59.ts  bicphuong63.ts
 bicphuong68.ts  bicphuong72.ts  bicphuong77.ts
 }}}

 Content of output playlist:

 {{{
 root at ubuntu:~# cat streams/bicphuong.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:11
 #EXT-X-MEDIA-SEQUENCE:73
 #EXTINF:8.000000,
 bicphuong73.ts
 #EXTINF:4.208333,
 bicphuong74.ts
 #EXTINF:8.583333,
 bicphuong75.ts
 #EXTINF:10.416667,
 bicphuong76.ts
 #EXTINF:4.875000,
 bicphuong77.ts
 #EXT-X-ENDLIST
 }}}
 FFmpeg generated 78 ts segments and create a playlist with just a few of
 it.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4037#comment:28>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list