Re: [FFmpeg-trac] #6669(undetermined:closed): "LAVSplitterSource" can't show "Author" metadata tag for remote file.

2017-09-15 Thread FFmpeg
#6669: "LAVSplitterSource" can't show "Author" metadata tag for remote file.
-+-
 Reporter:  max79|Owner:
 Type:  defect   |   Status:  closed
 Priority:  normal   |Component:
  Version:  unspecified  |  undetermined
 Keywords:   |   Resolution:  invalid
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by llogan):

 URL is 404. There is nothing we can do about that.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6669(undetermined:closed): "LAVSplitterSource" can't show "Author" metadata tag for remote file.

2017-09-15 Thread FFmpeg
#6669: "LAVSplitterSource" can't show "Author" metadata tag for remote file.
-+-
 Reporter:  max79|Owner:
 Type:  defect   |   Status:  closed
 Priority:  normal   |Component:
  Version:  unspecified  |  undetermined
 Keywords:   |   Resolution:  invalid
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-
Changes (by cehoyos):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Do you agree that this ticket makes absolutely no sense?

 Please understand that only current FFmpeg git head is supported on this
 bug tracker and that no ticket needs "LAV" in its title, if the ticket is
 reproducible with FFmpeg, no need to mention it at all, if LAV is needed
 to reproduce, explain why.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #4443(undetermined:new): Transparency gets lost when using palettegen / paletteuse

2017-09-15 Thread FFmpeg
#4443: Transparency gets lost when using palettegen / paletteuse
-+-
 Reporter:  cehoyos  |Owner:
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
  Version:  git-master   |  undetermined
 Keywords:  alpha|   Resolution:
  bounty |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-

Comment (by bjorn):

 I'm going to look into this and see if I can submit a patch. I'm new to
 FFMPEG, so if anyone has any hints about what files to look at or anything
 that would be helpful.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


[FFmpeg-trac] #6670(undetermined:new): "LAVSplitterSource" shows empty "Chapters"(title) metadata tags for remote file.

2017-09-15 Thread FFmpeg
#6670: "LAVSplitterSource" shows empty "Chapters"(title) metadata tags for 
remote
file.
-+-
 Reporter:  max79| Type:  defect
   Status:  new  | Priority:  normal
Component:   |  Version:
  undetermined   |  unspecified
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
 iTunes can show it fully. Example:
 [http://www.electromixes.com/zik/electromix_v120.m4a]
 Summary of the bug:
 ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 7.1.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-cuda --enable-
 cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
 --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-
 libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
 libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma
 --enable-zlib
   libavutil  55. 58.100 / 55. 58.100
   libavcodec 57. 89.100 / 57. 89.100
   libavformat57. 71.100 / 57. 71.100
   libavdevice57.  6.100 / 57.  6.100
   libavfilter 6. 82.100 /  6. 82.100
   libswscale  4.  6.100 /  4.  6.100
   libswresample   2.  7.100 /  2.  7.100
   libpostproc54.  5.100 / 54.  5.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 004b2780] stream 0, timescale not set
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 'http://www.electromixes.com/zik/electromix_v120.m4a':
   Metadata:
 major_brand : M4A
 minor_version   : 0
 compatible_brands: M4A mp42isom
 creation_time   : 2017-08-26T11:44:04.00Z
 title   : electromix 120
 artist  : yannick burky
 genre   : EDM
 encoder : Fission
 date: 2017
 track   : 0
 disc: 0
   Duration: 00:59:44.07, start: -19.713700, bitrate: 152 kb/s
 Chapter #0:0: start 0.00, end 19.713700
 Metadata:
   title   : electromixes
 Chapter #0:1: start 19.713700, end 192.446900
 Metadata:
   title   :
 Chapter #0:2: start 192.446900, end 401.890800
 Metadata:
   title   :
 Chapter #0:3: start 401.890800, end 642.844300
 Metadata:
   title   :
 Chapter #0:4: start 642.844300, end 872.861200
 Metadata:
   title   :
 Chapter #0:5: start 872.861200, end 1068.094600
 Metadata:
   title   :
 Chapter #0:6: start 1068.094600, end 1244.798400
 Metadata:
   title   :
 Chapter #0:7: start 1244.798400, end 1398.886100
 Metadata:
   title   :
 Chapter #0:8: start 1398.886100, end 1563.190400
 Metadata:
   title   :
 Chapter #0:9: start 1563.190400, end 1745.258100
 Metadata:
   title   :
 Chapter #0:10: start 1745.258100, end 1935.243800
 Metadata:
   title   :
 Chapter #0:11: start 1935.243800, end 2250.686800
 Metadata:
   title   :
 Chapter #0:12: start 2250.686800, end 2427.390700
 Metadata:
   title   :
 Chapter #0:13: start 2427.390700, end 2639.597900
 Metadata:
   title   :
 Chapter #0:14: start 2639.597900, end 2801.278500
 Metadata:
   title   :
 Chapter #0:15: start 2801.278500, end 3019.847900
 Metadata:
   title   :
 Chapter #0:16: start 3019.847900, end 3220.189600
 Metadata:
   title   :
 Chapter #0:17: start 3220.189600, end 3435.508300
 Metadata:
   title   :
 Chapter #0:18: start 3435.508300, end 3568.930100
 Metadata:
   title   :
 Chapter #0:19: start 3568.930100, end 3584.069600
 Metadata:
   title   :
 Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
 stereo, fltp, 127 kb/s (default)
 Metadata:
   creation_time   : 2017-08-26T11:44:04.00Z
 Stream #0:1(eng): Data: bin_data (tx3g / 0x67337874), 0 kb/s
 Metadata:
   creation_time   : 2017-08-26T11:44:03.00Z
 Stream #0:2(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj420p(pc,
 bt470bg/unknown/unknown), 

[FFmpeg-trac] #6669(undetermined:new): "LAVSplitterSource" can't show "Author" metadata tag for remote file.

2017-09-15 Thread FFmpeg
#6669: "LAVSplitterSource" can't show "Author" metadata tag for remote file.
-+-
 Reporter:  max79| Type:  defect
   Status:  new  | Priority:  normal
Component:   |  Version:
  undetermined   |  unspecified
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
 Foobar2000 can show this tag!
 Example:
 
[https://revolutionradio.ru/podcast/resident/download/Danko%20Skyst%C3%B6ne%20-%20Inversion%20Radio%20005%20With%20None%20[06.09.2017]_(63452).mp3]
 Summary of the bug:
 ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 7.1.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-cuda --enable-
 cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
 --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-
 libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
 libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma
 --enable-zlib
   libavutil  55. 58.100 / 55. 58.100
   libavcodec 57. 89.100 / 57. 89.100
   libavformat57. 71.100 / 57. 71.100
   libavdevice57.  6.100 / 57.  6.100
   libavfilter 6. 82.100 /  6. 82.100
   libswscale  4.  6.100 /  4.  6.100
   libswresample   2.  7.100 /  2.  7.100
   libpostproc54.  5.100 / 54.  5.100
 [https @ 00578540] HTTP error 404
 
https://revolutionradio.ru/podcast/resident/download/Danko0SkystB6ne0-0Inversion0Radio00050With0None0[06.09.2017]_(63452).mp3:
 Server returned 404 Not Found

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6641(avcodec:open): Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1 videos

2017-09-15 Thread FFmpeg
#6641: Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1
videos
-+---
 Reporter:  batou|Owner:
 Type:  enhancement  |   Status:  open
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  vc1  |   Blocked By:
 Blocking:   |  Reproduced by developer:  1
Analyzed by developer:  0|
-+---

Comment (by heleppkes):

 Its ordinary WMV3 Main Profile, they should. (contrary to the OPs ticket
 description, its not VC-1, that would be Advanced Profile)

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6641(avcodec:open): Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1 videos

2017-09-15 Thread FFmpeg
#6641: Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1
videos
-+---
 Reporter:  batou|Owner:
 Type:  enhancement  |   Status:  open
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  vc1  |   Blocked By:
 Blocking:   |  Reproduced by developer:  1
Analyzed by developer:  0|
-+---

Comment (by cehoyos):

 I would have expected that hardware decoders do not support this kind of
 samples - do they?

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6641(avcodec:open): Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1 videos

2017-09-15 Thread FFmpeg
#6641: Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1
videos
-+---
 Reporter:  batou|Owner:
 Type:  enhancement  |   Status:  open
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  vc1  |   Blocked By:
 Blocking:   |  Reproduced by developer:  1
Analyzed by developer:  0|
-+---

Comment (by heleppkes):

 The issue seems to occur irregardless if software or hardware decoding is
 used, so that should limit where the bug occurs. Probably header parsing
 or reference management.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6641(avcodec:open): Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1 videos

2017-09-15 Thread FFmpeg
#6641: Severe artifacts when decoding WMV / WMV3 (Windows Media Video 9) / VC-1
videos
-+---
 Reporter:  batou|Owner:
 Type:  enhancement  |   Status:  open
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  vc1  |   Blocked By:
 Blocking:   |  Reproduced by developer:  1
Analyzed by developer:  0|
-+---
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1
 * component:  ffmpeg => avcodec
 * priority:  normal => wish
 * version:  unspecified => git-master
 * keywords:  wmv vc-1 => vc1
 * type:  defect => enhancement


--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6646(avformat:new): Problem with ismv

2017-09-15 Thread FFmpeg
#6646: Problem with ismv
-+
 Reporter:  fliston  |Owner:
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:  avformat
  Version:  unspecified  |   Resolution:
 Keywords:  ismv |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+
Changes (by cehoyos):

 * keywords:  ffmpeg => ismv
 * component:  ffmpeg => avformat


Comment:

 More like a question: Why didn't you provide both the failing and the
 working manifest?

 Please also provide the FFmpeg command lines together with the complete,
 uncut console output.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6642(undetermined:closed): GPU hang in decoding hevc video by using ffmpeg

2017-09-15 Thread FFmpeg
#6642: GPU hang in decoding hevc video by using ffmpeg
-+-
 Reporter:  hsyrja   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  deadlock |   Resolution:  invalid
  vaapi  |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by cehoyos):

 * keywords:   => deadlock vaapi
 * priority:  normal => important
 * status:  new => closed
 * component:  ffmpeg => undetermined
 * resolution:   => invalid


Comment:

 Assuming this has to be fixed by Intel (invalid data should never hang a
 driver), I suggest to close this ticket.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6521(avformat:open): HEIF support

2017-09-15 Thread FFmpeg
#6521: HEIF support
-+
 Reporter:  mateo|Owner:  mateo
 Type:  enhancement  |   Status:  open
 Priority:  wish |Component:  avformat
  Version:  git-master   |   Resolution:
 Keywords:  mov heif |   Blocked By:
 Blocking:   |  Reproduced by developer:  1
Analyzed by developer:  0|
-+
Changes (by cehoyos):

 * keywords:  mov isom heif => mov heif
 * priority:  normal => wish
 * version:  unspecified => git-master
 * status:  new => open
 * reproduced:  0 => 1


Comment:

 This patch does not work for any of the files attached:
 http://ffmpeg.org/pipermail/ffmpeg-devel/2017-August/215003.html

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6521(avformat:new): HEIF support

2017-09-15 Thread FFmpeg
#6521: HEIF support
-+-
 Reporter:  mateo|Owner:  mateo
 Type:  enhancement  |   Status:  new
 Priority:  normal   |Component:  avformat
  Version:  unspecified  |   Resolution:
 Keywords:  mov isom |   Blocked By:
  heif   |  Reproduced by developer:  0
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by aviram):

 To help with this, here is a zip with some photos, videos and photo bursts
 I took myself with an iPhone 7+:

 https://avi.alkalay.net/clipboard/HEIF-iOS-11.zip

 Currently, this is what ffmpeg 3.3.3 on Fedora Linux knows about
 HEIF/HEIC:

 {{{
 $ ffprobe IMG_4449.HEIC
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x558604647da0] moov atom not found
 IMG_4449.HEIC: Invalid data found when processing input
 }}}

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6666(avformat:closed): Stream fails with "inflate return value: -3, incorrect header check" (but same URL plays fine in VLC)

2017-09-15 Thread FFmpeg
#: Stream fails with "inflate return value: -3, incorrect header check" (but
same URL plays fine in VLC)
+
 Reporter:  skyler  |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  fixed
 Keywords:  http|   Blocked By:
 Blocking:  |  Reproduced by developer:  1
Analyzed by developer:  0   |
+
Changes (by cehoyos):

 * status:  open => closed
 * resolution:   => fixed


Comment:

 Fixed by Jacek Jendrzej in e2f8f14052d99d7710cda0a821e236765b315d0b

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6404(avformat:closed): 302 Moved Temporarily Url dont work

2017-09-15 Thread FFmpeg
#6404: 302 Moved Temporarily Url dont work
+
 Reporter:  mobifon |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  fixed
 Keywords:  http|   Blocked By:
 Blocking:  |  Reproduced by developer:  1
Analyzed by developer:  0   |
+
Changes (by cehoyos):

 * keywords:   => http
 * resolution:   => fixed
 * status:  new => closed
 * component:  ffplay => avformat
 * reproduced:  0 => 1


Comment:

 Fixed by Jacek Jendrzej in e2f8f14052d99d7710cda0a821e236765b315d0b

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #2674(avfilter:closed): fps filter changes video length

2017-09-15 Thread FFmpeg
#2674: fps filter changes video length
+
 Reporter:  cehoyos |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avfilter
  Version:  git-master  |   Resolution:  fixed
 Keywords:  fps |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Changes (by cehoyos):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Fixed by Thierry Foucu in eea64ef4cfb593cbe28465f45e6bd4c41a79cae1

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6666(avformat:open): Stream fails with "inflate return value: -3, incorrect header check" (but same URL plays fine in VLC)

2017-09-15 Thread FFmpeg
#: Stream fails with "inflate return value: -3, incorrect header check" (but
same URL plays fine in VLC)
+
 Reporter:  skyler  |Owner:
 Type:  defect  |   Status:  open
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  http|   Blocked By:
 Blocking:  |  Reproduced by developer:  1
Analyzed by developer:  0   |
+

Comment (by mobifon):

 The same Bug with ticket http://trac.ffmpeg.org/ticket/6404

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #6667(undetermined:new): GnuTLS: should ignore GNUTLS_E_PREMATURE_TERMINATION

2017-09-15 Thread FFmpeg
#6667: GnuTLS: should ignore GNUTLS_E_PREMATURE_TERMINATION
-+-
 Reporter:   |Owner:
  ishitatsuyuki  |   Status:  new
 Type:  enhancement  |Component:
 Priority:  normal   |  undetermined
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-

Comment (by cehoyos):

 To make this a valid ticket, please test current FFmpeg git head and
 provide the command line you tested together with the complete, uncut
 console output.

 Or even better: Send your patch - made with {{{git format-patch}}} to the
 FFmpeg development mailing list.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


[FFmpeg-trac] #6668(avcodec:new): MPEG2 decoding failed with FFMPEG-VAAPI

2017-09-15 Thread FFmpeg
#6668: MPEG2 decoding failed with FFMPEG-VAAPI
-+-
 Reporter:  lizhong1008  | Type:  defect
   Status:  new  | Priority:  normal
Component:  avcodec  |  Version:  git-
 Keywords:   |  master
  vaapi_mpeg.c, mpeg2|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
 Summary of the bug:
 The decoded frames of some mpeg2 files are wrong when decoding with vaapi
 hwaccel. Seems it only happens when decoding interlaced files, and ffmpeg
 software decoder (without vaapi hwaccel) is also ok except with a dummy
 frame as the first frame.

 How to reproduce:
 ./ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -i
 /root/Videos/yami_mpeg2/tcela-8-fp-dp.bits.mpeg2 -pix_fmt yuv420p tcela-8
 -fp-dp.bits.mpeg3_720x480.yuv
 ffmpeg version N-86991-g62697878a9 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 6.3.0 (Ubuntu 6.3.0-12ubuntu2) 20170406
   configuration: --prefix=/opt/X11R7/ --enable-vaapi --enable-libx264
 --enable-libx265 --enable-gpl --disable-optimizations --enable-debug=3
   libavutil  55. 74.100 / 55. 74.100
   libavcodec 57.102.100 / 57.102.100
   libavformat57. 76.100 / 57. 76.100
   libavdevice57.  7.100 / 57.  7.100
   libavfilter 6. 99.100 /  6. 99.100
   libswscale  4.  7.102 /  4.  7.102
   libswresample   2.  8.100 /  2.  8.100
   libpostproc54.  6.100 / 54.  6.100
 libva info: Open new log file ./libav.064907.thd-0x7cb2 for the thread
 0x7cb2
 libva info: LIBVA_TRACE is on, save log into ./libav.064907.thd-0x7cb2
 libva info: LIBVA_TRACE_BUFDATA is on, dump buffer into log file
 libva info: VA-API version 0.40.0
 libva info: va_getDriverName() returns 0
 libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
 libva info: Found init function __vaDriverInit_0_40
 libva info: va_openDriver() returns 0
 [mpegvideo @ 0x56148afa5140] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, mpegvideo, from '/root/Videos/yami_mpeg2/tcela-8-fp-
 dp.bits.mpeg2':
   Duration: 00:00:00.15, bitrate: 15000 kb/s
 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bottom first),
 720x480 [SAR 8:9 DAR 4:3], 15000 kb/s, 30 fps, 30 tbr, 1200k tbn, 60 tbc
 File 'tcela-8-fp-dp.bits.mpeg3_720x480.yuv' already exists. Overwrite ?
 [y/N] y
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video (native) -> rawvideo (native))
 Press [q] to stop, [?] for help
 libva info: Save context 0x0200 into log file ./libav.064907.thd-
 0x7cb2
 Output #0, rawvideo, to 'tcela-8-fp-dp.bits.mpeg3_720x480.yuv':
   Metadata:
 encoder : Lavf57.76.100
 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480
 [SAR 8:9 DAR 4:3], q=2-31, 124416 kb/s, 30 fps, 30 tbn, 30 tbc
 Metadata:
   encoder : Lavc57.102.100 rawvideo
 frame=5 fps=0.0 q=-0.0 Lsize=2531kB time=00:00:00.16
 bitrate=124415.8kbits/s speed=4.77x
 video:2531kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.00%


 For HW and driver information, please refer vainfo:
 vainfo
 libva info: Open new log file ./libav.065514.thd-0x7cd9 for the thread
 0x7cd9
 libva info: LIBVA_TRACE is on, save log into ./libav.065514.thd-0x7cd9
 libva info: LIBVA_TRACE_BUFDATA is on, dump buffer into log file
 libva info: VA-API version 0.40.0
 libva info: va_getDriverName() returns 0
 libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
 libva info: Found init function __vaDriverInit_0_40
 libva info: va_openDriver() returns 0
 vainfo: VA-API version: 0.40 (libva 1.8.4.pre1)
 vainfo: Driver version: Intel i965 driver for Intel(R) Kabylake -
 1.8.4.pre1 (1.8.3-119-g3ad9717)
 vainfo: Supported profile and entrypoints
   VAProfileMPEG2Simple: VAEntrypointVLD
   VAProfileMPEG2Simple: VAEntrypointEncSlice
   VAProfileMPEG2Main  : VAEntrypointVLD
   VAProfileMPEG2Main  : VAEntrypointEncSlice
   VAProfileH264ConstrainedBaseline: VAEntrypointVLD
   VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
   VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
   VAProfileH264Main   : VAEntrypointVLD
   VAProfileH264Main   : VAEntrypointEncSlice
   VAProfileH264Main   : VAEntrypointEncSliceLP
   VAProfileH264High   : VAEntrypointVLD
   VAProfileH264High   : VAEntrypointEncSlice
   VAProfileH264High   : VAEntrypointEncSliceLP
   VAProfileH264MultiviewHigh  : VAEntrypointVLD
   VAProfileH264MultiviewHigh  : VAEntrypointEncSlice
   VAProfileH264StereoHigh