Re: [FFmpeg-trac] #7038(avformat:new): Use of uninitialized values in libavformat's hvcc code

2018-02-22 Thread FFmpeg
#7038: Use of uninitialized values in libavformat's hvcc code
+
 Reporter:  jamrial |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hevc|   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+
Description changed by jamrial:

Old description:

> {{{
> valgrind --track-origins=yes --leak-check=full ./ffmpeg -i $FATE_SAMPLES
> /hevc-conformance/WPP_A_ericsson_MAIN10_2.bit -c:v copy out.mov
> }}}
>
> The above will report a lot of such errors in different functions from
> libavformat/hevc.c

New description:

 {{{
 [jamrial@ArchVM build]$ valgrind --track-origins=yes --leak-check=full
 ./ffmpeg -i /var/tmp/samples/hevc-conformance/WPP_A_ericsson_MAIN10_2.bit
 -c:v copy out.mov
 ==27390== Memcheck, a memory error detector
 ==27390== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
 ==27390== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright
 info
 ==27390== Command: ./ffmpeg -i /var/tmp/samples/hevc-
 conformance/WPP_A_ericsson_MAIN10_2.bit -c:v copy out.mov
 ==27390==
 ffmpeg version N-90141-gaedbb3c72c Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 7.3.0 (GCC)
   configuration: --enable-gpl --valgrind=valgrind --disable-optimizations
 --disable-stripping --prefix=/usr
   libavutil  56.  7.101 / 56.  7.101
   libavcodec 58. 12.102 / 58. 12.102
   libavformat58.  9.100 / 58.  9.100
   libavdevice58.  2.100 / 58.  2.100
   libavfilter 7. 12.100 /  7. 12.100
   libswscale  5.  0.101 /  5.  0.101
   libswresample   3.  0.101 /  3.  0.101
   libpostproc55.  0.100 / 55.  0.100
 [hevc @ 0x6c01c00] missing picture in access unit
 ==27390==at 0x1569AAE: VALGRIND_PRINTF_BACKTRACE (valgrind.h:6303)
 ==27390==by 0x156A697: av_log_default_callback (log.c:351)
 ==27390==by 0x156A861: av_vlog (log.c:377)
 ==27390==by 0x156A809: av_log (log.c:369)
 ==27390==by 0x1212F8E: parse_nal_units (hevc_parser.c:242)
 ==27390==by 0x1213211: hevc_parse (hevc_parser.c:316)
 ==27390==by 0xA5A7A2: av_parser_parse2 (parser.c:250)
 ==27390==by 0x68CB76: parse_packet (utils.c:1451)
 ==27390==by 0x68D20A: read_frame_internal (utils.c:1562)
 ==27390==by 0x694E76: avformat_find_stream_info (utils.c:3733)
 ==27390==by 0x1E9691: open_input_file (ffmpeg_opt.c:1091)
 ==27390==by 0x1F31AA: open_files (ffmpeg_opt.c:3202)
 Input #0, hevc, from '/var/tmp/samples/hevc-
 conformance/WPP_A_ericsson_MAIN10_2.bit':
   Duration: N/A, bitrate: N/A
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 416x240, 25 fps,
 25 tbr, 1200k tbn, 25 tbc
 [mov @ 0x6d26f80] WARNING codec timebase is very high. If duration is too
 long,
 file may not be playable by quicktime. Specify a shorter timebase
 or choose different container.
 Output #0, mov, to 'out.mov':
   Metadata:
 encoder : Lavf58.9.100
 Stream #0:0: Video: hevc (Main 10) (hev1 / 0x31766568),
 yuv420p10le(tv), 416x240, q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mov @ 0x6d26f80] Timestamps are unset in a packet for stream 0. This is
 deprecated and will stop working in the future. Fix your code to set the
 timestamps properly
 [mov @ 0x6d26f80] pts has no value
 Last message repeated 47 times
 ==27390==at 0x1569AAE: VALGRIND_PRINTF_BACKTRACE (valgrind.h:6303)
 ==27390==by 0x156A697: av_log_default_callback (log.c:351)
 ==27390==by 0x156A861: av_vlog (log.c:377)
 ==27390==by 0x156A809: av_log (log.c:369)
 ==27390==by 0x20060D: term_exit (ffmpeg.c:323)
 ==27390==by 0x2122EA: transcode (ffmpeg.c:4662)
 ==27390==by 0x212AC0: main (ffmpeg.c:4843)
 ==27390== Conditional jump or move depends on uninitialised value(s)
 ==27390==at 0x6CA7B1: av_clip_c (common.h:132)
 ==27390==by 0x6CA7B1: skip_bits_long (get_bits.h:209)
 ==27390==by 0x6CAD66: get_ue_golomb_long (golomb.h:91)
 ==27390==by 0x6CB358: hvcc_parse_vui (hevc.c:315)
 ==27390==by 0x6CBBFC: hvcc_parse_sps (hevc.c:583)
 ==27390==by 0x6CC22A: hvcc_add_nal_unit (hevc.c:784)
 ==27390==by 0x6CD0E7: ff_isom_write_hvcc (hevc.c:1136)
 ==27390==by 0x5BB313: mov_write_hvcc_tag (movenc.c:1174)
 ==27390==by 0x5BEACF: mov_write_video_tag (movenc.c:1972)
 ==27390==by 0x5BF902: mov_write_stsd_tag (movenc.c:2165)
 ==27390==by 0x5C0744: mov_write_stbl_tag (movenc.c:2382)
 ==27390==by 0x5C1ABD: mov_write_minf_tag (movenc.c:2643)
 ==27390==by 0x5C1E55: mov_write_mdia_tag (movenc.c:2697)
 ==27390==  Uninitialised value was 

Re: [FFmpeg-trac] #7038(avformat:new): Use of uninitialized values in libavformat's hvcc code

2018-02-22 Thread FFmpeg
#7038: Use of uninitialized values in libavformat's hvcc code
+
 Reporter:  jamrial |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hevc|   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by jamrial):

 Because I gave you a command line to reproduce the issue with a publicly
 available sample instead of cluttering the ticket with several valgrind
 errors, several lines long each, for absolutely no gain.

 But if you think it's really that important for the ticket, I'll attach a
 dump in a moment, and update the ticket description with a cut down
 version.

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


Re: [FFmpeg-trac] #1693(avcodec:new): AAC Scalable Sample Rate (SSR)

2018-02-22 Thread FFmpeg
#1693: AAC Scalable Sample Rate (SSR)
+---
 Reporter:  cehoyos |Owner:
 Type:  defect  |   Status:  new
 Priority:  normal  |Component:  avcodec
  Version:  git-master  |   Resolution:
 Keywords:  aac |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+---

Comment (by dalecurtis):

 Landed as a246701e9abe8ef7cb9b0dd9fb5fa877e78334ef; this also has the nice
 consequence of causing things that don't actually have gain control to
 print the more useful:

 [aac @ 0x1a8fac0] Input buffer exhausted before END element found

 So missing SSR is not incorrectly implicated anymore.

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


Re: [FFmpeg-trac] #7027(avformat:closed): Encoder of (OGV) metadata non-customizable

2018-02-22 Thread FFmpeg
#7027: Encoder of (OGV) metadata non-customizable
--+
 Reporter:  Norbert   |Owner:
 Type:  defect|   Status:  closed
 Priority:  normal|Component:  avformat
  Version:  git-master|   Resolution:  wontfix
 Keywords:  metadata ogg  |   Blocked By:
 Blocking:|  Reproduced by developer:  0
Analyzed by developer:  0 |
--+
Changes (by cehoyos):

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


Comment:

 I believe it is intentional that you cannot change the encoder string.

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


Re: [FFmpeg-trac] #7038(avformat:new): Use of uninitialized values in libavformat's hvcc code

2018-02-22 Thread FFmpeg
#7038: Use of uninitialized values in libavformat's hvcc code
+
 Reporter:  jamrial |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hevc|   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by cehoyos):

 Replying to [ticket:7038 jamrial]:
 > The above will report a lot of such errors in different functions from
 libavformat/hevc.c
 Is there a reason why you don't want to share the errors with us?

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


Re: [FFmpeg-trac] #7027(avformat:new): Encoder of (OGV) metadata non-customizable

2018-02-22 Thread FFmpeg
#7027: Encoder of (OGV) metadata non-customizable
--+
 Reporter:  Norbert   |Owner:
 Type:  defect|   Status:  new
 Priority:  normal|Component:  avformat
  Version:  git-master|   Resolution:
 Keywords:  metadata ogg  |   Blocked By:
 Blocking:|  Reproduced by developer:  0
Analyzed by developer:  0 |
--+

Comment (by Norbert):

 Thanks for the feedback and link jamrial.

 Maybe only an empty string
 {{{
 -metadata encoder=''
 }}}
 could be accepted as an exception, to allow removal but not
 ''mis''attribution.

 Then again, I'm sure there are more important things to work on.
 Feel free 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] #7027(avformat:new): Encoder of (OGV) metadata non-customizable

2018-02-22 Thread FFmpeg
#7027: Encoder of (OGV) metadata non-customizable
--+
 Reporter:  Norbert   |Owner:
 Type:  defect|   Status:  new
 Priority:  normal|Component:  avformat
  Version:  git-master|   Resolution:
 Keywords:  metadata ogg  |   Blocked By:
 Blocking:|  Reproduced by developer:  0
Analyzed by developer:  0 |
--+

Comment (by jamrial):

 The "encoder" tag is hardcoded to the name of the module used to encode
 the stream alongside the libavcodec version used to do it. That's the
 intended behavior and what's defined in
 https://wiki.xiph.org/VorbisComment#ENCODER

 I don't know why VLC reports the tag as "Encoded by", but that's beyond
 our control. You should ask VLC to change this instead.

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


[FFmpeg-trac] #7038(avformat:new): Use of uninitialized values in libavformat's hvcc code

2018-02-22 Thread FFmpeg
#7038: Use of uninitialized values in libavformat's hvcc code
--+--
   Reporter:  jamrial |  Owner:
   Type:  defect  | Status:  new
   Priority:  important   |  Component:  avformat
Version:  git-master  |   Keywords:  hevc
 Blocked By:  |   Blocking:
Reproduced by developer:  0   |  Analyzed by developer:  0
--+--
 {{{
 valgrind --track-origins=yes --leak-check=full ./ffmpeg -i $FATE_SAMPLES
 /hevc-conformance/WPP_A_ericsson_MAIN10_2.bit -c:v copy out.mov
 }}}

 The above will report a lot of such errors in different functions from
 libavformat/hevc.c

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


Re: [FFmpeg-trac] #7030(avcodec:open): qsv in ffmpeg

2018-02-22 Thread FFmpeg
#7030: qsv in ffmpeg
-+-
 Reporter:  palich2000   |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  qsv  |   Blocked By:
  regression |  Reproduced by developer:  0
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by palich2000):

 The author of the commit Mark Thompson <​s...@jkqxz.net> had some grandiose
 idea but he did not realize it to the end. I do not know how the hardware
 decoders work, but the hardware coders do not work after this commit. The
 function hw_device_setup_for_encode suggests that there is a hardware
 configuration for each encoder, but they are not declared. And hardware
 encoders do not connect to the codec. This should either be removed or
 completed.

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by ronag):

 Seems setting http_persistent http_multiple to false seems to resolve the
 issue. Maybe these options should be considered experimental and set to
 false by default?

 {{{
 ffplay -http_persistent 0 -http_multiple 0 -i
 http://localhost:8080/file/M6nmzk2FDeesWy.m3u8
 }}}

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by ronag):

 Seems setting http_persistent http_multiple to false seems to resolve the
 issue. Maybe these options should be considered experimental and set to
 false by default?

 {{{
 ffplay -http_persistent 0 -http_multiple 0 -i
 http://localhost:8080/file/M6nmzk2FDeesWy.m3u8
 }}}

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by cehoyos):

 Can you confirm that your issue is not reproducible with
 {{{-http_persistent 0}}}?

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by ronag):

 Ok, this seems to be the first broken commit
 b7d6c0cd48dac7869b9e6803e2d47d05a4fa373b

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by ronag):

 This commit and everything after seems to be broken
 93a0e478768e9bafc44b8956b94c27fe8e3486f3

 I've tried reverting it and the next commit but it still broken.

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by cehoyos):

 Use {{{git bisect}}} instead: After every test that does not allow to
 reproduce the issue type {{{git bisect good}}}, after every test that
 fails {{{git bisect bad}}}. Start with one working and one non-working
 version, no need to use {{{git checkout}}} after the first two tests.

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


Re: [FFmpeg-trac] #7037(avcodec:new): ffmpeg destroys HDR information when encoding

2018-02-22 Thread FFmpeg
#7037: ffmpeg destroys HDR information when encoding
-+---
 Reporter:  mario66  |Owner:
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  libx265 hdr  |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by cehoyos):

 http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket7037/

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


Re: [FFmpeg-trac] #7034(avformat:new): HLS does not demux entire clip if start_time > 0

2018-02-22 Thread FFmpeg
#7034: HLS does not demux entire clip if start_time > 0
+
 Reporter:  ronag   |Owner:
 Type:  defect  |   Status:  new
 Priority:  important   |Component:  avformat
  Version:  git-master  |   Resolution:
 Keywords:  hls |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+

Comment (by ronag):

 Checkout an older version,

 {{{
 ./configure && make && ffplay -i
 http://localhost:8080/file/M6nmzk2FDeesWy.m3u8
 }}}

 and the work towards earlier dates by guessing and so on

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


Re: [FFmpeg-trac] #7037(avcodec:new): ffmpeg destroys HDR information when encoding

2018-02-22 Thread FFmpeg
#7037: ffmpeg destroys HDR information when encoding
-+---
 Reporter:  mario66  |Owner:
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  libx265 hdr  |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by mario66):

 Could someone from the ffmpeg team please download the sample and store it
 somewhere internally? I just saw that WeTransfer deletes the file after 7
 days automatically. Unfortunately I couldn't upload to your website
 because you have a filesize limit of 2,5 MB...

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


Re: [FFmpeg-trac] #7037(avcodec:new): ffmpeg destroys HDR information when encoding

2018-02-22 Thread FFmpeg
#7037: ffmpeg destroys HDR information when encoding
-+---
 Reporter:  mario66  |Owner:
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  libx265 hdr  |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by mario66):

 Can someone from the ffmpeg team please download the sample and store it
 somewhere internally? I just saw that WeTransfer deletes the file after 7
 days automatically. Unfortunately I couldn't upload to your website
 because you have a filesize limit of 2,5 MB...

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