Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't play two streams horizontally - only vertically #776

Open
p4lsec opened this issue Jun 9, 2020 · 3 comments
Open

Can't play two streams horizontally - only vertically #776

p4lsec opened this issue Jun 9, 2020 · 3 comments

Comments

@p4lsec
Copy link

p4lsec commented Jun 9, 2020

On a Pi 4 8GB running the latest version of Raspbian. GPU memory is at 512MB. I am attempting to run two instances of omxplayer with the following commands:

/usr/bin/omxplayer.bin --avdict rtsp_transport:tcp --win "515 5 1212 472" --live --no-osd --layer 0 --fps 10 -n -1 rtsp://user:[email protected]/live --dbus_name org.mpris.MediaPlayer2.omxplayer0

/usr/bin/omxplayer.bin --avdict rtsp_transport:tcp --win "1218 5 1915 472" --live --no-osd --layer 1 --fps 10 -n -1 rtsp://user:[email protected]/live --dbus_name org.mpris.MediaPlayer2.omxplayer1

When this happens, my screen continually flashes black, as if the HDMI is losing signal. But if I stack the second stream with:

/usr/bin/omxplayer.bin --avdict rtsp_transport:tcp --win "515 478 1212 955" --live --no-osd --layer 1 --fps 10 -n -1 rtsp://user:[email protected]/live --dbus_name org.mpris.MediaPlayer2.omxplayer1

The streams play just fine. I am out of ideas at this point.

I have added the -g flag to the second stream, and here is the log dump:

03:53:17 T:18446744072281471872 DEBUG: DllBcm: Using omx system library
03:53:17 T:18446744072281477702 DEBUG: DllOMX: Using omx system library
03:53:17 T:18446744072281478429 DEBUG: DllAvFormat: Using libavformat system library
03:53:17 T:18446744072281480059 DEBUG: DBus connection succeeded
03:53:17 T:18446744072281481044 DEBUG: Keyboard: DBus connection succeeded
03:53:17 T:18446744072281481241 DEBUG: OMXThread::Create - Thread with id -1387290944 started
03:53:17 T:18446744072281481362 DEBUG: DllAvUtilBase: Using libavutil system library
03:53:17 T:18446744072281481403 DEBUG: DllAvCodec: Using libavcodec system library
03:53:17 T:18446744072281481425 DEBUG: DllAvFormat: Using libavformat system library
03:53:17 T:18446744072281481758 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://user:[email protected]/live
03:53:17 T:18446744072281521474 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING
03:53:19 T:18446744072283851275 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x1df3170
03:53:19 T:18446744072283854931 DEBUG: OMXClock::OMXStop
03:53:19 T:18446744072283858094 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
03:53:19 T:18446744072283858801 DEBUG: DllAvUtilBase: Using libavutil system library
03:53:19 T:18446744072283858947 DEBUG: DllAvCodec: Using libavcodec system library
03:53:19 T:18446744072283859269 DEBUG: DllAvFormat: Using libavformat system library
03:53:19 T:18446744072283862071 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_decode input port 130 output port 131 m_handle 0x1de78f0
03:53:19 T:18446744072283864619 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.video_decode) - port(130), nBufferCountMin(1), nBufferCountActual(60), nBufferSize(81920), nBufferAlignmen(16)
03:53:19 T:18446744072283881231 DEBUG: COMXVideo::Open - decoder_component(0x0x1de78f0), input_port(0x82), output_port(0x83) deinterlace 1 hdmiclocksync 0
03:53:19 T:18446744072283881757 DEBUG: OMXThread::Create - Thread with id -1399853376 started
03:53:19 T:18446744072283882158 NOTICE: OMXClock using video as reference
03:53:19 T:18446744072283882693 DEBUG: OMXClock::OMXReset audio / video : 0 / 1 wait mask 0->2 state : 2->1
03:53:19 T:18446744072283883349 DEBUG: Popped message member: NameAcquired interface: org.freedesktop.DBus type: 4 path: /org/freedesktop/DBus
03:53:19 T:18446744072283883471 WARNING: Unhandled dbus message, member: NameAcquired interface: org.freedesktop.DBus type: 4 path: /org/freedesktop/DBus
03:53:19 T:18446744072283883741 DEBUG: Normal M:0 (A:0 V:-4503599627370496) P:1 A:0.00 V:0.00/T:0.70 (0,0,1,0) A:0% V:0% (0.00,0.00)
03:53:19 T:18446744072283884620 INFO: CDVDPlayerVideo::Decode dts:1866656 pts:1866656 cur:1866656, size:1937
03:53:19 T:18446744072283885028 DEBUG: OMXVideo::Decode VDec : setStartTime 1.866656
03:53:19 T:18446744072283885792 INFO: CDVDPlayerVideo::Decode dts:1933311 pts:1933311 cur:1933311, size:1935
03:53:19 T:18446744072284256518 INFO: CDVDPlayerVideo::Decode dts:1999978 pts:1999978 cur:1999978, size:55176
03:53:19 T:18446744072284256775 DEBUG: Popped message member: NameAcquired interface: org.freedesktop.DBus type: 4 path: /org/freedesktop/DBus
03:53:19 T:18446744072284256897 WARNING: Unhandled dbus message, member: NameAcquired interface: org.freedesktop.DBus type: 4 path: /org/freedesktop/DBus
03:53:19 T:18446744072284257312 DEBUG: Normal M:0 (A:0 V:1999978) P:1 A:0.00 V:2.00/T:0.70 (0,0,1,1) A:0% V:0% (0.00,0.00)
03:53:19 T:18446744072284257634 DEBUG: Resume 0.00,2.00 (0,0,1,1) EOF:0 PKT:(nil)
03:53:19 T:18446744072284257720 DEBUG: OMXClock::OMXSetSpeed(1.00) pause_resume:1
03:53:19 T:18446744072284259058 INFO: CDVDPlayerVideo::Decode dts:2066644 pts:2066644 cur:2066644, size:3689
03:53:19 T:18446744072284259834 INFO: CDVDPlayerVideo::Decode dts:2133311 pts:2133311 cur:2133311, size:3061
03:53:20 T:18446744072284509998 INFO: CDVDPlayerVideo::Decode dts:2199978 pts:2199978 cur:2199978, size:2858
03:53:20 T:18446744072284510267 DEBUG: Normal M:0 (A:0 V:2199978) P:0 A:0.00 V:2.20/T:0.70 (0,0,1,1) A:0% V:0% (0.00,0.00)
03:53:20 T:18446744072284510547 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:20 T:18446744072284510649 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:20 T:18446744072284513529 DEBUG: Live: 2.00 (2.20) S:1.010 T:0.70
03:53:20 T:18446744072284514032 INFO: CDVDPlayerVideo::Decode dts:2266644 pts:2266644 cur:2266644, size:2329
03:53:20 T:18446744072284514842 INFO: CDVDPlayerVideo::Decode dts:2333311 pts:2333311 cur:2333311, size:1834
03:53:20 T:18446744072284517830 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_render input port 90 output port 90 m_handle 0xaca00688
03:53:20 T:18446744072284517981 DEBUG: COMXVideo::PortSettingsChangedLogger - [email protected] interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:2 alpha:255 aspectMode:0
03:53:20 T:18446744072284522216 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_scheduler input port 10 output port 11 m_handle 0xaca00b40
03:53:20 T:18446744072284861593 INFO: CDVDPlayerVideo::Decode dts:2399978 pts:2399978 cur:2399978, size:1912
03:53:20 T:18446744072284861981 DEBUG: Normal M:2117868 (A:0 V:2399978) P:0 A:-2.12 V:0.28/T:0.70 (0,0,1,0) A:0% V:0% (0.00,0.00)
03:53:20 T:18446744072284862118 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:20 T:18446744072284862199 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:20 T:18446744072284862985 DEBUG: Live: 1.98 (0.28) S:1.010 T:0.70
03:53:20 T:18446744072284864025 INFO: CDVDPlayerVideo::Decode dts:2466644 pts:2466644 cur:2466644, size:1728
03:53:20 T:18446744072284864987 INFO: CDVDPlayerVideo::Decode dts:2533311 pts:2533311 cur:2533311, size:1725
03:53:20 T:18446744072284865654 INFO: CDVDPlayerVideo::Decode dts:2599978 pts:2599978 cur:2599978, size:1565
03:53:20 T:18446744072285201742 INFO: CDVDPlayerVideo::Decode dts:2666644 pts:2666644 cur:2666644, size:54796
03:53:20 T:18446744072285201993 DEBUG: Normal M:2461372 (A:0 V:2666644) P:0 A:-2.46 V:0.21/T:0.70 (0,0,1,0) A:0% V:0% (0.00,0.00)
03:53:20 T:18446744072285202126 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:20 T:18446744072285202191 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:20 T:18446744072285202615 DEBUG: Live: 1.97 (0.21) S:1.010 T:0.70
03:53:20 T:18446744072285203895 INFO: CDVDPlayerVideo::Decode dts:2733311 pts:2733311 cur:2733311, size:3589
03:53:21 T:18446744072285521040 INFO: CDVDPlayerVideo::Decode dts:2799978 pts:2799978 cur:2799978, size:2727
03:53:21 T:18446744072285521326 DEBUG: Normal M:2783854 (A:0 V:2799978) P:0 A:-2.78 V:0.02/T:0.70 (0,0,1,0) A:0% V:0% (0.00,0.00)
03:53:21 T:18446744072285521457 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:21 T:18446744072285521527 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:21 T:18446744072285522093 DEBUG: Live: 1.95 (0.02) S:1.010 T:0.70
03:53:21 T:18446744072285522995 INFO: CDVDPlayerVideo::Decode dts:2866644 pts:2866644 cur:2866644, size:2064
03:53:21 T:18446744072285523845 INFO: CDVDPlayerVideo::Decode dts:2933311 pts:2933311 cur:2933311, size:1823
03:53:21 T:18446744072285824680 INFO: CDVDPlayerVideo::Decode dts:2999978 pts:2999978 cur:2999978, size:1319
03:53:21 T:18446744072285824963 DEBUG: Normal M:3090479 (A:0 V:2999978) P:0 A:-3.09 V:-0.09/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:21 T:18446744072285825284 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:21 T:18446744072285825498 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:21 T:18446744072285826516 DEBUG: Live: 1.93 (-0.09) S:1.010 T:0.70
03:53:21 T:18446744072285827102 INFO: CDVDPlayerVideo::Decode dts:3066633 pts:3066633 cur:3066633, size:1564
03:53:21 T:18446744072285828186 INFO: CDVDPlayerVideo::Decode dts:3133300 pts:3133300 cur:3133300, size:1117
03:53:21 T:18446744072286128494 INFO: CDVDPlayerVideo::Decode dts:3199967 pts:3199967 cur:3199967, size:1506
03:53:21 T:18446744072286128666 DEBUG: Normal M:3397309 (A:0 V:3199967) P:0 A:-3.40 V:-0.20/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:21 T:18446744072286128837 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:21 T:18446744072286128902 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:21 T:18446744072286129238 DEBUG: Live: 1.91 (-0.20) S:1.010 T:0.70
03:53:21 T:18446744072286132312 INFO: CDVDPlayerVideo::Decode dts:3266633 pts:3266633 cur:3266633, size:1726
03:53:21 T:18446744072286176832 INFO: CDVDPlayerVideo::Decode dts:3333300 pts:3333300 cur:3333300, size:54677
03:53:21 T:18446744072286177105 DEBUG: Normal M:3446223 (A:0 V:3333300) P:0 A:-3.45 V:-0.11/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:21 T:18446744072286177211 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:21 T:18446744072286177262 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:21 T:18446744072286177537 DEBUG: Live: 1.89 (-0.11) S:1.010 T:0.70
03:53:22 T:18446744072286433140 INFO: CDVDPlayerVideo::Decode dts:3399967 pts:3399967 cur:3399967, size:3060
03:53:22 T:18446744072286433394 DEBUG: Normal M:3705045 (A:0 V:3399967) P:0 A:-3.71 V:-0.31/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:22 T:18446744072286433521 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:22 T:18446744072286433586 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:22 T:18446744072286434110 DEBUG: Live: 1.86 (-0.31) S:1.010 T:0.70
03:53:22 T:18446744072286434553 INFO: CDVDPlayerVideo::Decode dts:3466633 pts:3466633 cur:3466633, size:2744
03:53:22 T:18446744072286439758 INFO: CDVDPlayerVideo::Decode dts:3533300 pts:3533300 cur:3533300, size:1944
03:53:22 T:18446744072286736637 INFO: CDVDPlayerVideo::Decode dts:3599967 pts:3599967 cur:3599967, size:2099
03:53:22 T:18446744072286736940 DEBUG: Normal M:4011572 (A:0 V:3599967) P:0 A:-4.01 V:-0.41/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:22 T:18446744072286737074 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:22 T:18446744072286739734 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:22 T:18446744072286740252 DEBUG: Live: 1.84 (-0.41) S:1.010 T:0.70
03:53:22 T:18446744072286741137 INFO: CDVDPlayerVideo::Decode dts:3666633 pts:3666633 cur:3666633, size:1511
03:53:22 T:18446744072286742098 INFO: CDVDPlayerVideo::Decode dts:3733300 pts:3733300 cur:3733300, size:1390
03:53:22 T:18446744072287038675 INFO: CDVDPlayerVideo::Decode dts:3799967 pts:3799967 cur:3799967, size:1702
03:53:22 T:18446744072287038966 DEBUG: Normal M:4316618 (A:0 V:3799967) P:0 A:-4.32 V:-0.52/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:22 T:18446744072287039093 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:22 T:18446744072287039157 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:22 T:18446744072287039595 DEBUG: Live: 1.82 (-0.52) S:1.010 T:0.70
03:53:22 T:18446744072287040866 INFO: CDVDPlayerVideo::Decode dts:3866633 pts:3866633 cur:3866633, size:1340
03:53:22 T:18446744072287041946 INFO: CDVDPlayerVideo::Decode dts:3933300 pts:3933300 cur:3933300, size:1770
03:53:22 T:18446744072287351952 INFO: CDVDPlayerVideo::Decode dts:3999967 pts:3999967 cur:3999967, size:54387
03:53:22 T:18446744072287352219 DEBUG: Normal M:4633019 (A:0 V:3999967) P:0 A:-4.63 V:-0.63/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:22 T:18446744072287352332 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:22 T:18446744072287352387 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:22 T:18446744072287352742 DEBUG: Live: 1.79 (-0.63) S:1.010 T:0.70
03:53:22 T:18446744072287355661 INFO: CDVDPlayerVideo::Decode dts:4066633 pts:4066633 cur:4066633, size:3301
03:53:22 T:18446744072287357603 INFO: CDVDPlayerVideo::Decode dts:4133289 pts:4133289 cur:4133289, size:2579
03:53:23 T:18446744072287652839 INFO: CDVDPlayerVideo::Decode dts:4199956 pts:4199956 cur:4199956, size:2254
03:53:23 T:18446744072287653108 DEBUG: Normal M:4936900 (A:0 V:4199956) P:0 A:-4.94 V:-0.74/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:23 T:18446744072287653225 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:23 T:18446744072287653332 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:23 T:18446744072287653691 DEBUG: Live: 1.77 (-0.74) S:1.010 T:0.70
03:53:23 T:18446744072287654345 INFO: CDVDPlayerVideo::Decode dts:4266622 pts:4266622 cur:4266622, size:1958
03:53:23 T:18446744072287655220 INFO: CDVDPlayerVideo::Decode dts:4333289 pts:4333289 cur:4333289, size:1562
03:53:23 T:18446744072288005323 INFO: CDVDPlayerVideo::Decode dts:4399956 pts:4399956 cur:4399956, size:2094
03:53:23 T:18446744072288005619 DEBUG: Normal M:5292903 (A:0 V:4399956) P:0 A:-5.29 V:-0.89/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:23 T:18446744072288005746 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:23 T:18446744072288005812 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:23 T:18446744072288006271 DEBUG: Live: 1.74 (-0.89) S:1.010 T:0.70
03:53:23 T:18446744072288006985 INFO: CDVDPlayerVideo::Decode dts:4466622 pts:4466622 cur:4466622, size:1472
03:53:23 T:18446744072288007913 INFO: CDVDPlayerVideo::Decode dts:4533289 pts:4533289 cur:4533289, size:1584
03:53:23 T:18446744072288011508 INFO: CDVDPlayerVideo::Decode dts:4599956 pts:4599956 cur:4599956, size:1555
03:53:23 T:18446744072288330050 INFO: CDVDPlayerVideo::Decode dts:4666622 pts:4666622 cur:4666622, size:55115
03:53:23 T:18446744072288331523 DEBUG: Normal M:5620887 (A:0 V:4666622) P:0 A:-5.62 V:-0.95/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:23 T:18446744072288331727 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:23 T:18446744072288331793 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:23 T:18446744072288332204 DEBUG: Live: 1.71 (-0.95) S:1.010 T:0.70
03:53:23 T:18446744072288333183 INFO: CDVDPlayerVideo::Decode dts:4733289 pts:4733289 cur:4733289, size:3263
03:53:24 T:18446744072288612211 INFO: CDVDPlayerVideo::Decode dts:4799956 pts:4799956 cur:4799956, size:2524
03:53:24 T:18446744072288612627 DEBUG: Normal M:5905975 (A:0 V:4799956) P:0 A:-5.91 V:-1.11/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:24 T:18446744072288612793 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:24 T:18446744072288612862 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:24 T:18446744072288613524 DEBUG: Live: 1.69 (-1.11) S:1.010 T:0.70
03:53:24 T:18446744072288614698 INFO: CDVDPlayerVideo::Decode dts:4866622 pts:4866622 cur:4866622, size:2554
03:53:24 T:18446744072288617788 INFO: CDVDPlayerVideo::Decode dts:4933289 pts:4933289 cur:4933289, size:1776
03:53:24 T:18446744072288916171 INFO: CDVDPlayerVideo::Decode dts:4999956 pts:4999956 cur:4999956, size:1691
03:53:24 T:18446744072288916528 DEBUG: Normal M:6212854 (A:0 V:4999956) P:0 A:-6.21 V:-1.21/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:24 T:18446744072288916667 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:24 T:18446744072288916735 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:24 T:18446744072288917263 DEBUG: Live: 1.66 (-1.21) S:1.010 T:0.70
03:53:24 T:18446744072288917818 INFO: CDVDPlayerVideo::Decode dts:5066622 pts:5066622 cur:5066622, size:1330
03:53:24 T:18446744072288918711 INFO: CDVDPlayerVideo::Decode dts:5133289 pts:5133289 cur:5133289, size:1440
03:53:24 T:18446744072289220634 INFO: CDVDPlayerVideo::Decode dts:5199956 pts:5199956 cur:5199956, size:1451
03:53:24 T:18446744072289220961 DEBUG: Normal M:6520350 (A:0 V:5199956) P:0 A:-6.52 V:-1.32/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:24 T:18446744072289221101 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:24 T:18446744072289221167 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:24 T:18446744072289221655 DEBUG: Live: 1.63 (-1.32) S:1.010 T:0.70
03:53:24 T:18446744072289222327 INFO: CDVDPlayerVideo::Decode dts:5266611 pts:5266611 cur:5266611, size:1165
03:53:24 T:18446744072289241999 INFO: CDVDPlayerVideo::Decode dts:5333278 pts:5333278 cur:5333278, size:54807
03:53:24 T:18446744072289242409 DEBUG: Normal M:6541938 (A:0 V:5333278) P:0 A:-6.54 V:-1.21/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:24 T:18446744072289242561 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:24 T:18446744072289242726 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:24 T:18446744072289244079 DEBUG: Live: 1.60 (-1.21) S:1.010 T:0.70
03:53:25 T:18446744072289524573 INFO: CDVDPlayerVideo::Decode dts:5399944 pts:5399944 cur:5399944, size:3356
03:53:25 T:18446744072289524964 DEBUG: Normal M:6827312 (A:0 V:5399944) P:0 A:-6.83 V:-1.43/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:25 T:18446744072289525102 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:25 T:18446744072289525167 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:25 T:18446744072289525783 DEBUG: Live: 1.57 (-1.43) S:1.010 T:0.70
03:53:25 T:18446744072289526386 INFO: CDVDPlayerVideo::Decode dts:5466611 pts:5466611 cur:5466611, size:2550
03:53:25 T:18446744072289527409 INFO: CDVDPlayerVideo::Decode dts:5533278 pts:5533278 cur:5533278, size:2087
03:53:25 T:18446744072289826578 INFO: CDVDPlayerVideo::Decode dts:5599944 pts:5599944 cur:5599944, size:1580
03:53:25 T:18446744072289826916 DEBUG: Normal M:7132337 (A:0 V:5599944) P:0 A:-7.13 V:-1.53/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:25 T:18446744072289827052 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:25 T:18446744072289827119 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:25 T:18446744072289827629 DEBUG: Live: 1.54 (-1.53) S:1.010 T:0.70
03:53:25 T:18446744072289828392 INFO: CDVDPlayerVideo::Decode dts:5666611 pts:5666611 cur:5666611, size:1726
03:53:25 T:18446744072289829253 INFO: CDVDPlayerVideo::Decode dts:5733278 pts:5733278 cur:5733278, size:1508
03:53:25 T:18446744072290132558 INFO: CDVDPlayerVideo::Decode dts:5799944 pts:5799944 cur:5799944, size:1260
03:53:25 T:18446744072290132802 DEBUG: Normal M:7441338 (A:0 V:5799944) P:0 A:-7.44 V:-1.64/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:25 T:18446744072290132901 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:25 T:18446744072290132952 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:25 T:18446744072290133271 DEBUG: Live: 1.51 (-1.64) S:1.010 T:0.70
03:53:25 T:18446744072290133798 INFO: CDVDPlayerVideo::Decode dts:5866611 pts:5866611 cur:5866611, size:1395
03:53:25 T:18446744072290134715 INFO: CDVDPlayerVideo::Decode dts:5933278 pts:5933278 cur:5933278, size:1381
03:53:26 T:18446744072290435971 INFO: CDVDPlayerVideo::Decode dts:5999944 pts:5999944 cur:5999944, size:55061
03:53:26 T:18446744072290436343 DEBUG: Normal M:7747791 (A:0 V:5999944) P:0 A:-7.75 V:-1.75/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:26 T:18446744072290436481 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:26 T:18446744072290436548 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:26 T:18446744072290437039 DEBUG: Live: 1.47 (-1.75) S:1.010 T:0.70
03:53:26 T:18446744072290438726 INFO: CDVDPlayerVideo::Decode dts:6066611 pts:6066611 cur:6066611, size:3468
03:53:26 T:18446744072290441958 INFO: CDVDPlayerVideo::Decode dts:6133278 pts:6133278 cur:6133278, size:2638
03:53:26 T:18446744072290741397 INFO: CDVDPlayerVideo::Decode dts:6199944 pts:6199944 cur:6199944, size:1963
03:53:26 T:18446744072290741729 DEBUG: Normal M:8056249 (A:0 V:6199944) P:0 A:-8.06 V:-1.86/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:26 T:18446744072290741855 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:26 T:18446744072290741924 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:26 T:18446744072290742393 DEBUG: Live: 1.44 (-1.86) S:1.010 T:0.70
03:53:26 T:18446744072290742969 INFO: CDVDPlayerVideo::Decode dts:6266611 pts:6266611 cur:6266611, size:1750
03:53:26 T:18446744072290743873 INFO: CDVDPlayerVideo::Decode dts:6333278 pts:6333278 cur:6333278, size:1504
03:53:26 T:18446744072291039698 INFO: CDVDPlayerVideo::Decode dts:6399933 pts:6399933 cur:6399933, size:1565
03:53:26 T:18446744072291040059 DEBUG: Normal M:8357529 (A:0 V:6399933) P:0 A:-8.36 V:-1.96/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:26 T:18446744072291040182 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:0
03:53:26 T:18446744072291040253 DEBUG: OMXClock::OMXSetSpeed(1.01) pause_resume:1
03:53:26 T:18446744072291040680 DEBUG: Live: 1.41 (-1.96) S:1.010 T:0.70
03:53:26 T:18446744072291041731 INFO: CDVDPlayerVideo::Decode dts:6466600 pts:6466600 cur:6466600, size:1623
03:53:26 T:18446744072291043503 INFO: CDVDPlayerVideo::Decode dts:6533267 pts:6533267 cur:6533267, size:1479
03:53:26 T:18446744072291044441 INFO: CDVDPlayerVideo::Decode dts:6599933 pts:6599933 cur:6599933, size:1605
03:53:27 T:18446744072291377854 INFO: CDVDPlayerVideo::Decode dts:6666600 pts:6666600 cur:6666600, size:54554
03:53:27 T:18446744072291378140 DEBUG: Normal M:8699048 (A:0 V:6666600) P:0 A:-8.70 V:-2.03/T:0.70 (0,1,1,0) A:0% V:0% (0.00,0.00)
03:53:27 T:18446744072291378242 DEBUG: OMXClock::OMXSetSpeed(1.00) pause_resume:0
03:53:27 T:18446744072291378294 DEBUG: OMXClock::OMXSetSpeed(1.00) pause_resume:1
03:53:27 T:18446744072291378756 DEBUG: Live: 1.37 (-2.03) S:1.001 T:0.70
03:53:27 T:18446744072291379458 INFO: CDVDPlayerVideo::Decode dts:6733267 pts:6733267 cur:6733267, size:3616
03:53:27 T:18446744072291652860 DEBUG: OMXClock::OMXStop
03:53:27 T:18446744072291653100 INFO: CDVDPlayerVideo::Decode dts:6799933 pts:6799933 cur:6799933, size:2814
03:53:27 T:18446744072291654523 DEBUG: OMXThread::Run - Exited thread with id -1399853376
03:53:27 T:18446744072291655153 DEBUG: OMXThread::StopThread - Thread stopped
03:53:27 T:18446744072291667314 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.video_scheduler handle 0xaca00b40
03:53:27 T:18446744072291679208 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.video_decode handle 0x1de78f0
03:53:27 T:18446744072291680911 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.video_render handle 0xaca00688
03:53:27 T:18446744072291684582 DEBUG: OMXThread::Run - Exited thread with id -1387290944
03:53:27 T:18446744072291685037 DEBUG: OMXThread::StopThread - Thread stopped
03:53:27 T:18446744072291691447 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x1df3170_

@popcornmix
Copy link
Owner

The display is composited in real time. The display scans out from top to bottom.
When videos are vertically stacked you only have to fetch one image per output line.
When videos are horizontally stacked you have to fetch both images per output line.

The latter case is roughly twice as hard. When composition fails to keep up you get display blanking out.

You can try adding dispmanx_offline=1 to config.txt which may help the blanking as we composite to an offscreen buffer which is then subsequently displayed, but it will harm overall framerate.

@p4lsec
Copy link
Author

p4lsec commented Jun 14, 2020

Thanks for looking into this. The dispmanx_offline=1 addition did not work. Interestingly, the streams work if they are catacorner, but if they overlap at all, the blanking issue returns.

I may try this with a fresh raspbian install to see what happens.

@zunoffon
Copy link

zunoffon commented Jul 4, 2022

Is the issue fixed?
I got the same issue.

work (Assume it runs first)
omxplayer -n -1 --win "0 0 949 529" -r --aspect-mode Letterbox -b --live rtsp://user:pass@ip_1:port/onvif1
does not work
omxplayer -n -1 --win "950 0 1900 530" -r --aspect-mode Letterbox -b --live rtsp://user:pass@ip_2:port/onvif1

it only works if:
(1) when playing a video
omxplayer -n -1 --win "950 0 1900 530" -r --aspect-mode Letterbox video.mkv
(2) when playing a stream vertically
omxplayer -n -1 --win "0 530 949 1059" -r --aspect-mode Letterbox -b --live rtsp://user:pass@ip_2:port/onvif1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants