[mythtv] Ticket #2460: Add proper cout buffered logging of libavcodec

Paul Andreassen paulx at andreassen.com.au
Thu Aug 9 07:49:11 UTC 2007


On Thursday 09 August 2007 16:13, MythTV wrote:
> #2460: Add proper cout buffered logging of libavcodec
> -------------------------------------+-------------------------------------
>- Reporter:  paulx at andreassen.com.au  |        Owner:  janne
>      Type:  patch                    |       Status:  new
>  Priority:  minor                    |    Milestone:  0.21
> Component:  mythtv                   |      Version:  head
>  Severity:  medium                   |   Resolution:
>   Mlocked:  0                        |
> -------------------------------------+-------------------------------------
>-
>
> Comment(by Nick Morrott <<knowledgejunkie [at] gmail [dot] com>>):
>
>  Replying to [comment:1 stuarta]:
>  > This is a good starting point. It should use the
>  > myth VERBOSE macros with an appropriate level ie. VB_LIBAV
>  > rather than cout to print the messages.
>
>  Should this stop the stream related information I'm seeing in my
>  mythbackend log:
>
>
>  {{{
>  0: start_time: -9223372036854.775 duration: -9223372036854.775
>  1: start_time: -9223372036854.775 duration: -9223372036854.775
>  2: start_time: -9223372036854.775 duration: -9223372036854.775
>  3: start_time: -9223372036854.775 duration: -9223372036854.775
>  4: start_time: -9223372036854.775 duration: -9223372036854.775
>  5: start_time: -9223372036854.775 duration: -9223372036854.775
>  6: start_time: -9223372036854.775 duration: -9223372036854.775
>  7: start_time: -9223372036854.775 duration: -9223372036854.775
>  stream: start_time: -9223372036854.775 duration: -9223372036854.775
>  bitrate=10256 kb/s
>  0: start_time: 1787.081 duration: 342.490
>  1: start_time: 1787.037 duration: 342.477
>  2: start_time: 1787.043 duration: 342.468
>  3: start_time: 1787.037 duration: 342.533
>  4: start_time: 1787.037 duration: 342.533
>  5: start_time: 1787.037 duration: 342.533
>  6: start_time: 1787.037 duration: 342.533
>  7: start_time: 1787.037 duration: 342.533
>  stream: start_time: 19855.971 duration: 3805.923 bitrate=4623 kb/s
>  }}}
>
>  I've manually applied the patches (files have changed since diffs made)
>  and still see these entries which are not timestamped.

The file libs/libavformat/utils.c has two printf and therefore aren't using 
the libavcodec log library.  It appears to be a bit of debugging code left 
in.

Paul

-- 


More information about the mythtv-dev mailing list