Questions tagged [mpv]

The [mpv] tag is for questions about programmatically interacting with the mpv media player or its C library.

mpv is a free, open source, and cross-platform media player. It is a fork of mplayer2 and MPlayer. It shares some features with the former projects while introducing many more.

mpv can be controlled via a command line interface and/or via a JSON-based IPC protocol. It also has a C API which makes it usable as a library.

92 questions
0
votes
1 answer

Keybinding does not work in python-mpv when using it together with pyside6

I use the library https://github.com/jaseg/python-mpv to control the mpv player, but when using it together with pyside6, keybindings do not work (player doesn't accept input totally). What am I doing wrong? or is it impossible to use them when…
MRX
  • 5
  • 4
0
votes
0 answers

Cannot grep out status line (terminal playback time) from mpv

essentially I'm trying to just run mpv on a video, and after you quit you get some information about the video. Example: (+) Video --vid=1 (*) (hevc 1920x1080 60.000fps) (+) Audio --aid=1 (*) (aac 2ch 48000Hz) AO: [pulse] 48000Hz stereo 2ch…
Edesem
  • 3
  • 2
0
votes
1 answer

How to add one line per video with lua when using MPV?

I am logging video files I have played through MPV and while using io I want it to create one line per video. Using the inital options it merley deletes it, and upon going to next video, it won't add new line by default. I think the script should be…
Kayi
  • 11
  • 3
0
votes
1 answer

MPV OSC not working on attached window with --wid option

I run mpv.exe "video.mp4" --wid="hwnd of a notepad window" and the video played on the notepad window well. But I was noticed that OSC is not working. I moved mouse cursor on the window and pressed some keyboard shortcut but nothing worked. How can…
Eby
  • 43
  • 1
  • 6
0
votes
1 answer

Drawing a Panels Handle to a Bitmap

I have a WPF-Application which hosts a WinformsPanel I then use this Panel to display a video. I'm using Mpv.NET lib to do…
Christoph
  • 606
  • 7
  • 21
0
votes
1 answer

How to draw from mpv movie into OpenGL

We are able to use the mpv library to draw onto the bottom-left corner of an OpenGL window. While mpv seems able to draw an arbitrary width and height, the only way we found to draw to another location is to write to another frame buffer, but then…
Dov
  • 8,000
  • 8
  • 46
  • 75
0
votes
1 answer

How to stretch the width of mpv/mplayer by keeping the height of the video same

I have a screen which is in portrait mode and want to play some videos on it using mpv or mplayer on just lower 70% of the screen area. But since the screen is in portrait mode the video (which is also landscape) isnt getting stretched fully width…
vinita
  • 595
  • 1
  • 9
  • 24
0
votes
1 answer

Is it possible force playback as realtime in MPV?

I've been using mpv to access my webcam. (mpv /dev/video0) However, this introduces a 1-2s delay to stream. This can be avoided by running mpv with option --force-seekable=yes and manually seeking to the latest frame in stream. Is there any way to…
Hackerman21
  • 23
  • 1
  • 5
0
votes
0 answers

mpv player - how to activate teletext subtitles?

Does anyone know how to configure mpv.conf for mpv player in order to activate teletext subtitles? According to manual --teletext-page=<1-999> should do what I need but it doesn't. Any other suggestion, like using a lua script? Thank you!
0
votes
0 answers

how to encapsulate MPV player within function

I have the following function in a python program, also using tkinter. However, when executed, the messagebox() is activated while the player is still playing the playlist of clips. Is it possible to encapsulate (if that is the correct term) the…
rfeyer
  • 29
  • 6
0
votes
1 answer

tkinter askopenfilenames() closes GUI on 2nd activation

the following is working first pass around. Select file/s, activate the view button and def, view files. all good. When trying to select another file/s, during the selection process, the GUI closes abruptly. I tried to figure out of the variable…
rfeyer
  • 29
  • 6
0
votes
0 answers

ffmpeg - correctly handling misaligned audio/video input stream before outputting to rtmp

I use a video player called MPV to transcode a dynamic playlist of media files. I pipe MPV's encoded output into FFMPEG and format it for rtmp delivery. However the playlist may contain media with misaligned audio and video, ie - the audio track may…
hedgehog90
  • 1,402
  • 19
  • 37
0
votes
0 answers

Zoom QMainwindow

Short context: I have a QMainwindow with an mpv player inside. I play videos with mpv, create overlay images with PIL and run it all in the pyqt window. The overlay image is updated more or less every frame of the video. Here is my issue: If the mpv…
jkazan
  • 1,149
  • 12
  • 29
0
votes
0 answers

FFmpeg - how to ensure dropping frames delayed >1 [s]?

I am using ffmpeg and mpv, to stream audio/video between two hosts. One of the hosts is sending stream with ffmpeg: ffmpeg -f pulse \ -thread_queue_size 0 \ -i audioInput \ -f video4linux2 \ …
0
votes
1 answer

Call external program from mysql

How can I call an external program from mysql? I am a complete beginner at this, on Linux Mint 20, I created a database of all my video files, the paths of the videos are all listed in a table. I can access the DB using Bash with: mysql -u root…
Monkeybus
  • 29
  • 1
  • 5