
P.S. The sound module is working and I have sound when playing mp3 songs with the moc player.
Thanks in advance.
Thx for the answeralexeames wrote:See here on the previous page Dom helped me with this issue. If you'll pardon the pun it was very sound advice![]()
http://www.raspberrypi.org/phpBB3/viewt ... 598#p80598
type omxplayer -h to see the command line arguments
(-o might be the one you want to look at)
TV remote?marcelh18 wrote:Now I have another question. How can I change the sound volume while the video is playing?
It works, but if I set the volume to max on tv than the sounds gets crappy as the speakers start making an anoying noise.alexeames wrote:TV remote?marcelh18 wrote:Now I have another question. How can I change the sound volume while the video is playing?
Those buttons do not work, but anyway thank you for the replyalexeames wrote:Google for omxplayer.cpp you'll find it on github.
Line 456 onwards describe various keyboard functions.
case 'j' and case 'k' might be of interest? Although I'm not very sure about that. Best i can do. I told you remote control because I know it works
Code: Select all
[matroska,webm @ 0x17947c0] max_analyze_duration 0 reached at 0
file : test.mkv reult 0 format matroska,webm audio streams 2 video streams 1 chapters 0 subtitles 3
Video codec omx-h264 width 1920 height 1080 profile 100 fps 23.976025
have a nice day ;)
Code: Select all
[matroska,webm @ 0x8ff740] max_analyze_duration 0 reached at 0
file : test.mkv reult 0 format matroska,webm audio streams 2 video streams 1 chapters 0 subtitles 3
Video codec omx-h264 width 1920 height 1080 profile 100 fps 23.976025
Audio codec ac3 channels 8 samplerate 48000 bitspersample 16
Code: Select all
file : test.avi reult 22 format avi audio streams 1 video streams 1 chapters 0 subtitles 0
Video codec omx-mpeg4 width 576 height 432 profile 15 fps 25.000000
Audio codec mp3 channels 2 samplerate 48000 bitspersample 16
Thanks it's working if I use it directly, but when I stop playback the screen remains blank, so how can I restore it?dom wrote:You should be able to blank console. Something like:
setterm -blank force && omxplayer <filename>
might do it (not tested).
Code: Select all
# prevent screensaver from powering down display
setterm -blank 0 -powerdown 0 > /dev/tty0
# clear the display and turn off the flashing cursor
clear > /dev/tty0
setterm -cursor 0 > /dev/tty0
# turn the cursor back on when done with omxplayer
setterm -cursor 1 > /dev/tty0
You need quotes around the %f (e.g. "%f") to handle filenames with spaces.dmf wrote:I managed to get videos to play from inside the gui with a custom command line(omxplayer -o hdmi %f), but once they are started I have no control.
And also if there is a space in the file name, multiple copies open at the same time and compete for dominance.
Not sure, but I think you should try the -t option when running omxplayer from the command line.Musicalbudgie wrote:I have some mkv files with the subtitles contained in them. Pressing s doesn't seem to do anything.
Code: Select all
-t / --sid index show subtitle with index
Code: Select all
-s / --stats pts and buffer stats