Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am playing a video using mplayer command in a linux device. For playing I have used below

mplayer -softvol -softvol-max 100 /root/Advideo.avi -vf scale=320:200


Now my requirement is to stop the video(which is playing) using the mplayer command.

Can you please tell the solution for this.

What I have tried:

For playing I am using below command

mplayer -softvol -softvol-max 100 /root/Advideo.avi -vf scale=320:200
Posted
Updated 22-May-19 1:00am

1 solution

You can kill its process:
Shell
killall -9 mplayer
or
Shell
pkill mplayer
 
Share this answer
 
Comments
Member 13740197 22-May-19 8:29am    
Thanks for your answer
phil.o 22-May-19 8:37am    
You ae welcome.
Member 13740197 22-May-19 8:40am    
Hi, I have another problem after playing and stopping video. After 10 times while I am playing video I got below error, Can you please tell why this is coming?

[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...


MPlayer interrupted by signal 2 in module: ao2_init
Can't restore text mode: Invalid argument
phil.o 22-May-19 9:09am    
I'm afraid I have not a clue. You may have to go to mplayer community for that, because this is not really related to software development.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900