1
동일한 문제가 있습니다. 동일한 화면에 2 개의 비디오를 표시해야합니다 (유닉스의 명령 행에서). "화면 명령"을 사용하여 내 문제를 해결 난 튜토리얼 (http://t3chadd1ct.wordpress.com/2013/04/19/omxplayer/)를 찾아 웹, ...에 LINUX 화면 명령 - 동일한 화면에서 2 개의 비디오
는[...]이은을 이용하여 쉽게 해결되었다 화면 기능. 내 스크립트는 비디오를 실행합니다 (첫 번째 : 하나 아래의 예는 [...] 2 × 2 매트릭스를 만드는 방법을
screen
> -dmS camera1 sh -c 'omxplayer --win "0 0 960 540" rtsp://ip_address/live; exec bash' screen -dmS camera2 sh -c
> 'omxplayer --win "960 0 1920 540" rtsp://ip_address/live; exec bash'
> screen -dmS camera3 sh -c 'omxplayer --win "0 540 960 1080"
> rtsp://ip_address/live; exec bash' screen -dmS camera4 sh -c
> 'omxplayer --win "960 540 1920 1080" rtsp://ip_address/live; exec
> bash'
나는이 튜토리얼을 따라했지만 제대로 작동하지 않습니다를 보여 "camera2") :
more tmp01.sh
#!/bin/sh
#1)this work:
#nohup omxplayer --win "0 0 1440 800" ../Shared/NO_LOGO_1/01.avi &
#nohup omxplayer --win "0 801 1440 900" ../Shared/NO_LOGO_1/02.avi &
#2)doesn't work
screen -dmS camera2 sh -c `omxplayer --win "0 0 200 200" /home/pi/Shared/NO_LOGO
_1/02_a.avi; exec bash`
screen -dmS camera1 sh -c `omxplayer --win "200 200 600 600" /home/pi/Shared/NO_
LOGO_1/01_a.avi; exec bash`
대단히 감사합니다!
예! 완벽하게 작동합니다! 나는 나무 딸기에서 "화면 기능"이 없었기 때문에 몇 시간을 잃었습니다. 이제 명령이 잘 작동합니다! 감사합니다. – UserRaspberry
tmp와 같은 .sh를 만들 수 있습니다. sh '#!/bin/sh omxplayer --win "0 0 200 200"/ home/pi/Shared/NO_LOGO_1/02_a.avi' 다음과 같은 것 : 화면 -dmS camera2 sh tmp.sh 화면 -dmS camera1 sh -c'omxplayer --win "200 200 600 600"/ home/pi/Shared/NO_ LOGO_1/01_a.avi; exec bash' >>> 두개의 화면 인스턴스가있는 스크립트와 이것 중 하나는 sh 스크립트를 사용합니다 – UserRaspberry
그런 스크립트를 만들면 첫 번째 명령 ('omxplayer')이 _ 실행되고 _ 기다립니다. 다음 명령 ('screen')은'omxplayer'가 종료 된 후에 시작됩니다. 'screen' 명령어가 항상 빨리 끝나기 때문에 다른 방법으로 (첫 번째'screen', 그리고'omxplayer') 실행하면됩니다. 새로운 화면 창을 시작하고 내부 명령은 ('-d' 옵션 때문에) 분리 된 방식으로 실행됩니다. – Alfe