[mythtv-commits] Ticket #13186: Replace deprecated ffmpeg functions

MythTV noreply at mythtv.org
Thu Dec 21 21:12:45 UTC 2017


#13186: Replace deprecated ffmpeg functions
------------------------------+-----------------------------
 Reporter:  pbennett          |          Owner:  pbennett
     Type:  Developer Task    |         Status:  accepted
 Priority:  minor             |      Milestone:  30.0
Component:  MythTV - General  |        Version:  Master Head
 Severity:  medium            |     Resolution:
 Keywords:                    |  Ticket locked:  0
------------------------------+-----------------------------

Comment (by warpme@…):

 Peter,
 There is something wrong with auto-detecting/auto-selecting 2x HW DI.
 Pls look at log below.
 Log is for 1080i TV channel and 2x HW deint. always was working perfectly
 well for this channel.
 With current code 2x HW isn't selected automatically - but changing via
 OSD gives well working 2xHW DI....




 {{{
 2017-12-21 21:09:28.619438 I TV::TV(): Creating TV object
 2017-12-21 21:09:28.913763 I TV::TV(): Finished creating TV object
 2017-12-21 21:09:28.913822 N Suspending idle timer
 2017-12-21 21:09:28.916130 I TV::Init(): Created TvPlayWindow.
 2017-12-21 21:09:28.985381 I TV::HandleStateChange(): Attempting to change
 from None to WatchingPreRecorded
 2017-12-21 21:09:28.992781 I
 FileRingBuf(myth://mythtv/23806_20171221190000.ts):
 OpenFile(myth://mythtv/23806_20171221190000.ts, 2000 ms)
 2017-12-21 21:09:29.047711 I TV::StartPlayer(): Elapsed time since TV
 constructor was called: 428 ms
 2017-12-21 21:09:29.222718 I ALSA: OpenDevice iec958:CARD=Intel,DEV=0
 2017-12-21 21:09:29.234866 I AOS: Sample rate 44100 is supported
 2017-12-21 21:09:29.234898 I AOS: Sample rate 48000 is supported
 2017-12-21 21:09:29.234928 I AOS: Sample rate 96000 is supported
 2017-12-21 21:09:29.235001 I AOS: Format signed 16 bit is supported
 2017-12-21 21:09:29.235024 I AOS: Format signed 24 bit MSB is supported
 2017-12-21 21:09:29.235038 I AOS: Format signed 32 bit is supported
 2017-12-21 21:09:29.235093 I AOS: 2 channel(s) are supported
 2017-12-21 21:09:29.289312 I AOS: may be AC3 or DTS capable
 2017-12-21 21:09:29.289353 I AOS: 6 channel(s) are supported
 2017-12-21 21:09:29.293917 N AudioPlayer: Enabling Audio
 2017-12-21 21:09:29.311794 I AFD: PlayerFlags: 0xc0, AudioReadAhead: 100
 msec
 2017-12-21 21:09:29.311896 I Player(0): Stretch Factor 1, allow passthru
 2017-12-21 21:09:29.315507 I AFD: Buffer size: 32768 streamed 0 seekable 1
 2017-12-21 21:09:30.626632 I AFD: Stream #0, has id 0x217 codec id H264,
 type Video, bitrate 0 at 0x40e5e20
 2017-12-21 21:09:30.626667 I AFD: Stream #1, has id 0x352 codec id MP2,
 type Audio, bitrate 192000 at 0x4168d00
 2017-12-21 21:09:30.626691 I AFD: codec MP2 has 2 channels
 2017-12-21 21:09:30.626704 I AFD: Looking for decoder for MP2
 2017-12-21 21:09:30.627222 I AFD: Opened codec 0x5a32140, id(MP2)
 type(Audio)
 2017-12-21 21:09:30.627452 I AFD: Audio Track #1, of type (Normalny) is
 A/V stream #1 (id=0x352) and has 2 channels in the Polish
 language(7368556).
 2017-12-21 21:09:30.627482 I AFD: Stream #2, has id 0x353 codec id MP2,
 type Audio, bitrate 192000 at 0x414f8c0
 2017-12-21 21:09:30.627501 I AFD: codec MP2 has 2 channels
 2017-12-21 21:09:30.627515 I AFD: Looking for decoder for MP2
 2017-12-21 21:09:30.627874 I AFD: Opened codec 0x5a32da0, id(MP2)
 type(Audio)
 2017-12-21 21:09:30.627945 I AFD: Audio Track #2, of type (Audio
 Description) is A/V stream #2 (id=0x353) and has 2 channels in the Unknown
 language(7303783).
 2017-12-21 21:09:30.627975 I AFD: Stream #3, has id 0x17d8 codec id
 DVB_SUBTITLE, type Subtitle, bitrate 0 at 0x5a30240
 2017-12-21 21:09:30.627990 I AFD: subtitle codec (Subtitle)
 2017-12-21 21:09:30.628003 I AFD: Looking for decoder for DVB_SUBTITLE
 2017-12-21 21:09:30.628110 I AFD: Opened codec 0x5a4ffc0, id(DVB_SUBTITLE)
 type(Subtitle)
 2017-12-21 21:09:30.628141 I AFD: Subtitle track #1 is A/V stream #3 and
 is in the Polish language(7368556).
 2017-12-21 21:09:30.628154 I AFD: Trying to select best video track
 2017-12-21 21:09:30.628288 I AFD: Selected track #0 (id 0x217 codec id
 H264, type Video, bitrate 500000 at 0x40e5e20)
 2017-12-21 21:09:30.630547 I VDP: Accepting: cmp() w(>=0) h(>=720)
 framerate() codecs() dec(vdpau) cpus(4) skiploop(enabled) rend(vdpau)
 osd(vdpau) osdfade(enabled) deint(vdpaubasicdoublerate,vdpauadvanced)
 filt(vdpaucolorspace=auto,vdpausharpen=1.0)
 2017-12-21 21:09:30.630637 I VDP: Accepting: cmp() w() h() framerate()
 codecs() dec(vdpau) cpus(4) skiploop(enabled) rend(vdpau) osd(vdpau)
 osdfade(enabled) deint(vdpauadvanceddoublerate,vdpauadvanced)
 filt(vdpaucolorspace=auto)
 2017-12-21 21:09:30.630676 I VDP: LoadBestPreferences(1920x1080, 0.000,
 h264)
 2017-12-21 21:09:30.630801 I VDP: LoadBestPreferences Result prio:1,
 w:>=0, h:>=720, fps:, codecs:, decoder:vdpau, renderer:vdpau,
 deint:vdpaubasicdoublerate
 2017-12-21 21:09:30.630926 I VDPAU: Checking VDPAU support.
 2017-12-21 21:09:31.128106 I VDPAU: Version 1
 2017-12-21 21:09:31.128135 I VDPAU: Information NVIDIA VDPAU Driver Shared
 Library 340.104 Thu Sep 14 16:45:03 PDT 2017
 2017-12-21 21:09:31.128181 I VDPAU: HQ scaling level 1 of 9 available.
 2017-12-21 21:09:31.128198 I VDPAU: MPEG4 hardware acceleration supported.
 2017-12-21 21:09:31.128210 I VDPAU: HEVC hardware acceleration not
 supported.
 2017-12-21 21:09:31.139987 I AFD: Using 1 CPUs for decoding
 2017-12-21 21:09:31.140019 I AFD: InitVideoCodec() 0x5a51e80 id(H264) type
 (Video).
 2017-12-21 21:09:31.140071 I AFD: Selected FPS is 50 (avg 25 codec 0
 container 90000 estimated 50)
 2017-12-21 21:09:31.140132 I Player(0): SetFrameInterval ps:1 scan:3
 2017-12-21 21:09:31.140178 I Player(0): detectInterlace(Detect Scan,
 Interlaced Scan, 50, 1080) ->Progressive Scan
 2017-12-21 21:09:31.140241 I AFD: Using vdpau for video decoding
 2017-12-21 21:09:31.140459 I AFD: Opened codec 0x5a51e80, id(H264)
 type(Video)
 2017-12-21 21:09:31.153743 I AFD: Trying to select audio track (w/lang)
 2017-12-21 21:09:31.153846 I AFD: Selected track 1: Polish MP2 2ch (A/V
 Stream #1)
 2017-12-21 21:09:31.153946 I AFD: Audio data is planar
 2017-12-21 21:09:31.154020 I AFD: Initializing audio parms from audio
 track #1
 2017-12-21 21:09:31.154083 I AFD: Audio format changed
 from id(NONE) -1Hz -1/-1ch -1bps (profile 0) to id( MP2) 48000Hz 2/2ch
 16bps (profile 0)
 2017-12-21 21:09:31.154134 I AOBase: Killing AudioOutputDSP
 2017-12-21 21:09:31.154188 I AOBase: Original codec was MP2, signed 16
 bit, 48 kHz, 2 channels
 2017-12-21 21:09:31.154230 I AOBase: enc(0), passthru(0), features
 (AC3,DTS) configured_channels(2), 2 channels supported(1) max_channels(6)
 2017-12-21 21:09:31.154264 I AOBase: Opening audio device
 \'iec958:CARD=Intel,DEV=0\' ch 2(2) sr 48000 sf signed 16 bit reenc 0
 2017-12-21 21:09:31.154279 I ALSA: OpenDevice iec958:CARD=Intel,DEV=0
 2017-12-21 21:09:31.157805 I ALSA: SetParameters(format=2, channels=2,
 rate=48000, buffer_time=500000, period_time=4)
 2017-12-21 21:09:31.158211 I ALSA: Buffer size range from 64 to 16384
 2017-12-21 21:09:31.158229 I ALSA: Period size range from 32 to 8192
 2017-12-21 21:09:31.158300 W ALSA: Requested 500000us got 341333 buffer
 time
 2017-12-21 21:09:31.158564 I ALSA: Hardware audio buffer cur: 64 need: 128
 max allowed: 32768
 2017-12-21 21:09:31.158624 W ALSA: Try to manually increase audio buffer
 with: echo 128 | sudo tee /proc/asound/card0/pcm1p/sub0/prealloc
 2017-12-21 21:09:31.158648 I ALSA: Buffer time = 341333 us
 2017-12-21 21:09:31.158728 I ALSA: Period time = 4 periods
 2017-12-21 21:09:31.166633 I ALSA: Buffer size = 16384 | Period size =
 4096
 2017-12-21 21:09:31.166895 I AOBase: Audio fragment size: 8192
 2017-12-21 21:09:31.166944 I AOBase: Audio Stretch Factor: 1
 2017-12-21 21:09:31.167070 I AOBase: Ending Reconfigure()
 2017-12-21 21:09:31.167132 I Dec: Selected track #1 (type 2) in the
 Unknown language(0)
 2017-12-21 21:09:31.167161 I Dec: Selected track #1 (type 3) in the Polish
 language(7368556)
 2017-12-21 21:09:31.167185 I Dec: Resyncing position map. posmapStarted =
 0 livetv(0) watchingRec(0)
 2017-12-21 21:09:31.167355 I AOBase: kickoffOutputAudioLoop: pid = 8296
 2017-12-21 21:09:31.167424 I AOBase: OutputAudioLoop: Play Event
 2017-12-21 21:09:31.219658 I Dec: Position map filled from DB to: 67276
 2017-12-21 21:09:31.223378 I Dec: Duration map filled from DB to: 67276
 2017-12-21 21:09:31.224613 I Dec: SyncPositionMap prerecorded, from DB:
 3013 entries
 2017-12-21 21:09:31.224674 I Dec: SyncPositionMap, new totframes: 67276,
 new length: 1345, posMap size: 3013
 2017-12-21 21:09:31.227380 I AFD: Position map found
 2017-12-21 21:09:31.227421 I AFD: Successfully opened decoder for file:
 "myth://mythtv/23806_20171221190000.ts". novideo(0)
 2017-12-21 21:09:31.234358 I Using file start
 2017-12-21 21:09:31.235588 I VideoOutput: Allowed renderers: vdpau
 2017-12-21 21:09:31.235633 I VideoOutput: Allowed renderers (filt: vdpau):
 vdpau
 2017-12-21 21:09:31.235940 I VDP: Accepting: cmp() w(>=0) h(>=720)
 framerate() codecs() dec(vdpau) cpus(4) skiploop(enabled) rend(vdpau)
 osd(vdpau) osdfade(enabled) deint(vdpaubasicdoublerate,vdpauadvanced)
 filt(vdpaucolorspace=auto,vdpausharpen=1.0)
 2017-12-21 21:09:31.236070 I VDP: Accepting: cmp() w() h() framerate()
 codecs() dec(vdpau) cpus(4) skiploop(enabled) rend(vdpau) osd(vdpau)
 osdfade(enabled) deint(vdpauadvanceddoublerate,vdpauadvanced)
 filt(vdpaucolorspace=auto)
 2017-12-21 21:09:31.236119 I VDP: LoadBestPreferences(1920x1080, 50.000,
 h264)
 2017-12-21 21:09:31.236290 I VDP: LoadBestPreferences Result prio:1,
 w:>=0, h:>=720, fps:, codecs:, decoder:vdpau, renderer:vdpau,
 deint:vdpaubasicdoublerate
 2017-12-21 21:09:31.236336 I VideoOutput: Preferred renderer: vdpau
 2017-12-21 21:09:31.236355 I VideoOutput: Trying video renderer: \'vdpau\'
 2017-12-21 21:09:31.250104 I PreviewQueue: Not requesting preview for
 "Kropka nad i",as it is already being generated
 2017-12-21 21:09:31.258508 I PreviewQueue: Not requesting preview for
 "Kropka nad i",as it is already being generated
 2017-12-21 21:09:31.524754 I VideoOutWindow::SetPIPState. pip_state: 0]
 2017-12-21 21:09:31.524794 I Clearing OpenGL painter cache.
 2017-12-21 21:09:31.739068 I Snapping width to avoid scaling: width: 1920,
 left: 0
 2017-12-21 21:09:31.739125 I Display Rect left: 0, top: 135, width: 1920,
 height: 810, aspect: 1.33333
 2017-12-21 21:09:31.739159 I Video Rect left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778
 2017-12-21 21:09:31.739200 I VDP: LoadBestPreferences(1920x1088, 50.000,
 h264)
 2017-12-21 21:09:31.739356 I VDP: LoadBestPreferences Result prio:1,
 w:>=0, h:>=720, fps:, codecs:, decoder:vdpau, renderer:vdpau,
 deint:vdpaubasicdoublerate
 2017-12-21 21:09:31.739386 I Snapping width to avoid scaling: width: 1920,
 left: 0
 2017-12-21 21:09:31.739416 I Display Rect left: 0, top: 135, width: 1920,
 height: 810, aspect: 1.33333
 2017-12-21 21:09:31.739444 I Video Rect left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778
 2017-12-21 21:09:31.739470 I VDP: SetVideoRenderer(vdpau)
 2017-12-21 21:09:31.739488 I VDP: SetVideoRender(vdpau) ==
 GetVideoRenderer()
 2017-12-21 21:09:31.740767 I Trying to match best refresh rate 50.000Hz
 2017-12-21 21:09:31.740817 I Using 1920x1080 50.000 Hz
 2017-12-21 21:09:31.740864 I SwitchToVideo: Video size 1920 x 1080:
 Already displaying resolution 1920 x 1080, 650mm x 366mm
 2017-12-21 21:09:31.740891 I VideoOutput: Pixel dimensions: Screen
 1920x1080, window 1920x1080
 2017-12-21 21:09:31.740919 I VideoOutput: Actual display dimensions:
 650x366 mm Aspect: 1.77596
 2017-12-21 21:09:31.740946 I VideoOutput: Estimated window dimensions:
 650x366 mm Aspect: 1.77596
 2017-12-21 21:09:31.741008 I VidOutVDPAU: VDPAU Sharpen 1.00
 2017-12-21 21:09:31.936773 I VDPAU: Created 2 output surfaces.
 2017-12-21 21:09:31.936828 I VDPAU: Set colorkey to 0x20202
 2017-12-21 21:09:31.936851 I VDPAU: Created VDPAU render device 1920x1080
 2017-12-21 21:09:31.941149 I VidOutVDPAU: Created VDPAU osd (1920x1080)
 2017-12-21 21:09:32.280173 I ColourSpace: PictureAttributes: Brightness,
 Contrast, Colour, Hue, Studio Levels,
 2017-12-21 21:09:32.280208 I VidOutVDPAU: Using ITU BT.709 colorspace
 2017-12-21 21:09:32.280276 I Snapping height to avoid scaling: height:
 1080, top: 0
 2017-12-21 21:09:32.280302 I Snapping width to avoid scaling: width: 1920,
 left: 0
 2017-12-21 21:09:32.280343 I Display Rect left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778
 2017-12-21 21:09:32.280374 I Video Rect left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778
 2017-12-21 21:09:32.280392 I VidOutVDPAU: Created VDPAU context (GPU
 decode)
 2017-12-21 21:09:32.288659 I Over/underscan. V: 0, H: 0
 2017-12-21 21:09:32.288697 I Snapping height to avoid scaling: height:
 1080, top: 0
 2017-12-21 21:09:32.288715 I Snapping width to avoid scaling: width: 1920,
 left: 0
 2017-12-21 21:09:32.288748 I Display Rect left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778
 2017-12-21 21:09:32.288777 I Video Rect left: 0, top: 0, width: 1920,
 height: 1080, aspect: 1.77778
 2017-12-21 21:09:32.288869 I FilterManager: GetFilterInfo(convert)
 returning: 0x0
 2017-12-21 21:09:32.288917 I Player(0):
 LoadFilters(\'vdpaucolorspace=auto,vdpausharpen=1.0\'..) -> 0x0
 2017-12-21 21:09:32.291127 I Player(0): Decoder thread starting.
 2017-12-21 21:09:32.323609 I OSD: Loaded window osd_message
 2017-12-21 21:09:32.338916 I OSD: Loaded window osd_input
 2017-12-21 21:09:32.414150 I OSD: Loaded window program_info
 2017-12-21 21:09:32.442470 I OSD: Loaded window browse_info
 2017-12-21 21:09:32.476951 I OSD: Loaded window osd_status
 2017-12-21 21:09:32.553061 I OSD: Loaded window osd_program_editor
 2017-12-21 21:09:32.596281 I OSD: Loaded window osd_debug
 2017-12-21 21:09:32.596335 I OSD: Loaded OSD: size 1920x1080 offset 0+0
 2017-12-21 21:09:32.596674 I OSD: Created window aa_OSD_SUBTITLES
 2017-12-21 21:09:32.598216 I EnableCaptions(4) msg: Napisy 1: Polish WĹ‚Ä
 cz
 2017-12-21 21:09:32.598274 I Player(0): ClearAfterSeek(0)
 2017-12-21 21:09:32.599643 I VDP: GetFilteredDeint() : vdpau ->
 \'vdpaubasicdoublerate\'
 2017-12-21 21:09:32.602568 I VidOutVDPAU: Enabled deinterlacing.
 2017-12-21 21:09:32.602708 E VSYNC: DRMVideoSync: VBlank ioctl did not
 work, unimplemented in this driver?
 2017-12-21 21:09:32.602838 E VSYNC: RTCVideoSync: Could not open /dev/rtc:
 eno: No such file or directory (2)
 2017-12-21 21:09:32.602871 E Player(0): Video sync method can\'t support
 double framerate (refresh rate too low for 2x deint)
 2017-12-21 21:09:32.604975 I AOBase: OutputAudioLoop: Play Event
 2017-12-21 21:09:32.605448 I VDP: GetFilteredDeint(vdpauadvanced) : vdpau
 -> \'vdpauadvanced\'
 2017-12-21 21:09:32.608519 I VidOutVDPAU: Enabled deinterlacing.
 2017-12-21 21:09:32.611928 I Player(0): Video timing method: USleep with
 busy wait
 2017-12-21 21:09:32.611970 I Player(0): Display Refresh Rate: 50.000 Video
 Frame Rate: 50.000
 2017-12-21 21:09:32.611997 I Player(0): SetFrameInterval ps:1 scan:1
 2017-12-21 21:09:32.613317 E Failed to set RT thread
 2017-12-21 21:09:32.613336 W Failed to set realtime priority for video
 timing thread
 2017-12-21 21:09:32.614423 I playCtx: StartPlaying(): took 0 ms to start
 player.
 2017-12-21 21:09:32.614467 I TV::StartPlayer(): Created player.
 2017-12-21 21:09:32.614590 I TV::HandleStateChange(): Changing from None
 to WatchingPreRecorded
 2017-12-21 21:09:32.624155 I TV::HandleStateChange(): Main UI disabled.
 2017-12-21 21:09:32.624367 I TV::StartTV(): Entering main playback loop.
 2017-12-21 21:09:32.632872 I Player(0): SetFrameInterval ps:1 scan:3
 2017-12-21 21:09:32.632928 I VDP: LoadBestPreferences(1920x1088, 25.000,
 h264)
 2017-12-21 21:09:32.633178 I VDP: LoadBestPreferences Result prio:1,
 w:>=0, h:>=720, fps:, codecs:, decoder:vdpau, renderer:vdpau,
 deint:vdpaubasicdoublerate
 2017-12-21 21:09:32.633228 I VidOutVDPAU: InputChanged(1920,1080,1.77778)
 \'H.264 VDPAU\'->\'H.264 VDPAU\'
 2017-12-21 21:09:32.634703 I Player(0): detectInterlace(Detect Scan,
 Interlaced Scan, 25, 1080) ->Interlaced Scan
 2017-12-21 21:09:32.634759 I AFD: avFPS(50) != seqFPS(25)
 2017-12-21 21:09:32.635706 I Player(0): Enabled deinterlacing
 2017-12-21 21:09:32.635774 I Player(0): Waiting for video buffers...
 2017-12-21 21:09:32.691326 I VidOutVDPAU: Added 2 new buffers. New buffer
 size 16 (4 decode and 12 process)
 2017-12-21 21:09:32.727183 I VidOutVDPAU: Created VDPAU decoder (4 ref
 frames)
 2017-12-21 21:09:32.737257 N Player(0): Waited 102ms for video buffers
 AAAAAAAAAAALLLLL
 2017-12-21 21:09:32.829666 I VDPAU: Added 2 output surfaces (total 4, max
 4)
 2017-12-21 21:09:33.936505 I TV::DoPlayerSeek(): 30 seconds
 2017-12-21 21:09:33.936542 I AOBase: Pause 1
 2017-12-21 21:09:33.936620 I UpdateOSDSeekMessage(Skocz naprzĂłd, 2)
 2017-12-21 21:09:33.945715 I AOBase: OutputAudioLoop: audio paused
 2017-12-21 21:09:33.949181 I AFD: DoFastForward(781 (41), do discard
 frames)
 2017-12-21 21:09:33.949207 I Dec: DoFastForward(781 (41), do discard
 frames)
 2017-12-21 21:09:33.949241 I Dec: FindPosition(781, search not adjusted)
 -->
 [34:764(27042296),35:788(27702552)]
 2017-12-21 21:09:34.010442 I AFD: SeekReset(788, 0, do flush, do discard)
 2017-12-21 21:09:34.010560 I AFD: SeekReset() flushing
 2017-12-21 21:09:34.010851 I VidOutVDPAU: DiscardFrames(1)
 2017-12-21 21:09:34.010912 I VideoBuffers::DiscardFrames(1):
 ADUUUUUUUUAAADDU
 2017-12-21 21:09:34.010961 I VideoBuffers::DiscardFrames(1):
 ADAAAAAAAAAAADDA -- done
 2017-12-21 21:09:34.010994 I VidOutVDPAU: DiscardFrames() 3:
 ADAAAAAAAAAAADDA -- done()
 2017-12-21 21:09:34.042057 I Player(0): ClearAfterSeek(0)
 2017-12-21 21:09:34.042102 I Player(0): Waiting for video buffers...
 2017-12-21 21:09:34.190414 I AOBase: Pause 0
 2017-12-21 21:09:34.190606 I AOBase: OutputAudioLoop: Play Event
 }}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13186#comment:23>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list