Some help is needed on the following:
I want to run omxplayer as a separate process and sent characters to it via a pipe in order to pause, stop, etc.
But when I run omxplayer and have it read from a fifo pipe it starts at playspeed 2.0!
The setup is as follows:
I create a pipe using: mkfifo /tmp/cmdVideo
On one terminal I start:
#!/bin/bash
export DISPLAY=:0
omxplayer -o local "/home/pi/Media/Videos/2019/2019-04-02 - Swan.mp4" </tmp/cmdVideo &
On another terminal I enter characters into the pipe.
To start the playing: echo –n . > /tmp/cmdVideo
To stop the playing: echo –n ‘q’ > /tmp/cmdVideo
The output from omxplayer is:
Video codec omx-h264 width 1920 height 1080 profile 100 fps 29.970030
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1920x1080@29.97 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
Playspeed 2.000
Stopped at: 00:00:10
have a nice day ;)
If run without the pipe it plays at normal speed:
omxplayer -o local "/home/pi/Media/Videos/2019/2019-04-02 - Swan.mp4"
Video codec omx-h264 width 1920 height 1080 profile 100 fps 29.970030
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1920x1080@29.97 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
have a nice day ;)
I have tested with different videos, doesn’t make any difference.
Any help is welcome.
Thanks in advance!
Some help is needed on the following:
I want to run omxplayer as a separate process and sent characters to it via a pipe in order to pause, stop, etc.
But when I run omxplayer and have it read from a fifo pipe it starts at playspeed 2.0!
The setup is as follows:
I create a pipe using: mkfifo /tmp/cmdVideo
On one terminal I start:
#!/bin/bash
export DISPLAY=:0
omxplayer -o local "/home/pi/Media/Videos/2019/2019-04-02 - Swan.mp4" </tmp/cmdVideo &
On another terminal I enter characters into the pipe.
To start the playing: echo –n . > /tmp/cmdVideo
To stop the playing: echo –n ‘q’ > /tmp/cmdVideo
The output from omxplayer is:
Video codec omx-h264 width 1920 height 1080 profile 100 fps 29.970030
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1920x1080@29.97 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
Playspeed 2.000
Stopped at: 00:00:10
have a nice day ;)
If run without the pipe it plays at normal speed:
omxplayer -o local "/home/pi/Media/Videos/2019/2019-04-02 - Swan.mp4"
Video codec omx-h264 width 1920 height 1080 profile 100 fps 29.970030
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1920x1080@29.97 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
have a nice day ;)
I have tested with different videos, doesn’t make any difference.
Any help is welcome.
Thanks in advance!