mplayer | A library to allow playing media files | Media library
kandi X-RAY | mplayer Summary
kandi X-RAY | mplayer Summary
mplayer is just a means to allow for playing media files from golang. It allows for streaming online media files and local media files as well. It hopes to incorporate functionalities that support using any known media player. Currently only browser is supported but other players are currently being considered. It supports.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mplayer
mplayer Key Features
mplayer Examples and Code Snippets
Community Discussions
Trending Discussions on mplayer
QUESTION
I'm trying to write a simple TvInputService for Android TV using ExoPlayer. On the emulator everything works fine, but on Sony TV (KDL-43WF804) I get IllegalStateException
from video codec after a few seconds of video playing. What am I doing wrong?
Logs:
...ANSWER
Answered 2022-Feb-10 at 19:35I figured it out. In my case, this exception is caused by the crash of the system tv application, which owns the Surface
object. The codec goes into the Error
state when the Surface
becomes invalid and at the same moment the ExoPlayer tries to work with the codec's buffers, not knowing that the codec has changed the Executing
state to Error
.
And the reason for the crash of the system tv app was the following exception:
QUESTION
I would need to be able to seek to a position before playback of a video is started with JavaFx 16
When MediaPlayers seek() or setStartTime() is called before play() it is breaking video output and no frames are updated anymore (sound is still playing).
The duration of the video is known and not indefinite. No errors are printed by the listener nor any meaningful stalling (only sometimes in the beginning when video is loaded via https), but the same issue appears for local files as well. So I think this can be ruled out. I am building and running the app with Maven, mvn clean javafx:run
.
I tried to call those methods separately and also one after each other inside the ready listener and outside in the start method.
I am using JDK 11 (11.0.11+9-Ubuntu-0ubuntu2), maven 3.6.3 and openjfx 16 at GNU/Linux (Ubuntu 21.04)).
I assembled a minimal example and do I do anything wrong in the following code? Do you know how this could be handled or worked around? Thanks in advance.
App.java
...ANSWER
Answered 2021-Oct-13 at 16:46This is a known bug, which is a regression bug introduced in JavaFX 14. It was resolved in JavaFX 17. The best fix is to change your JavaFX version to 17 (or later; 17 is the current version at the time of writing). If that is not possible for some reason, reverting to version 13 or earlier will work, though you will see longer wait times before the video is ready.
In the pom, change to
QUESTION
tl;dr: I try to encode acquired camera frames to h264, send via RTP and play this back on another device. SDP file generated by ffmpeg for a sample video has info which my own SDP file misses. My SDP file plays in ffplay, but not VLC, while both play ffmpeg's SDP file. I am suspecting missing sprop-parameter-sets in my SDP file.
Ultimately I want to play this back in VLC.
I am writing code that encodes images to h264 and outputs to an RTP server (or client? anyway the part that is listening). I generate an SDP file for this.
- ffplay plays the stream without problem
- mplayer shows a green box embedded in a larger black box, but I read somewhere it only supports mpegts over RTP, so not sure
- VLC does not play the SDP file.
Now when instead I use some random video and have ffmpeg output an SDP file like so
...ANSWER
Answered 2021-Sep-14 at 09:00The solution in my case was the port number (???). Apparently, VLC cannot receive from 44499
which is the port I was using, but 5004
like the ffmpeg example works. I don't know if this is a MacOS idiosyncrasy or transfers to linux as well.
I tried several ports:
- 5001 does not work
- 5002 works
- 5003 does not work
- 5004 works
- 5005 does not work
- 5006 works
- 44498 works
So it seems that for VLC to receive RTP packets, the port number must be even-numbered? Wat?
The explanation seems to be that live555 discards the lsb of the port number: https://github.com/rgaufman/live555/blob/master/liveMedia/MediaSession.cpp#L696
So only even ports make it through unchanged. This is recommended or mandated in the RFC:
For UDP and similar protocols, RTP SHOULD use an even destination port number and the corresponding RTCP stream SHOULD use the next higher (odd) destination port number.
QUESTION
I was wondering if anyone could help me with this problem that has been plaguing me.
I am currently using Qt Creator with verion 5.11.3 Qt on Ubuntu to build a project. Every time I try to build I get the error "gl.h: No such file or directory".
The error occurs next to the line in my code that says "#include
I have ran the following code as well and it did not change the outcome
...ANSWER
Answered 2021-Jul-26 at 18:58Install the OpenGL dev support:
QUESTION
I try to write a script where I run a .mp4 file until it ends and when it ends it has to start again. On top if the exist file has change it starts the new file which has changed.
Can someone help me on this.
I have this :
...ANSWER
Answered 2021-Jun-24 at 10:35i don't think you can do this with xdg-open
.
xdg-open
is an abstraction that hides the actual program that is used to open the given URL/file, based on it's URI-type resp MIME-type.
the actual programs that are used to open can decide themselves, whether they return immediately or wait until the file has been consumed. there's no specification how to signal back that the consumation has stopped, so you cannot possibly know it.
so the solution is to use a specific program to open your MP4-file (e.g. ffplay
, or mplayer
) where it this is defined, and then depend on that program.
e.g.
QUESTION
I am creating a video effect that is supposed to look as in "Matrix" movie, but a bit different ("Matrix"-like video output will be mixed with an altered alpha channel with real video, so it will look half real, half with digits). I am using simply mplayer with caca driver (mplayer -vo caca video.mp4) together with screen recording and then mixing videos in other software. For this I needed to change "static uint32_t ascii_glyphs[]" array in file dither.c (from the code of the caca library as it published here: https://github.com/cacalabs/libcaca/blob/master/caca/dither.c) from: ' ', '.', ':', ';', 't', '%', 'S', 'X', '@', '8', '?'
to contain all Katakana symbols. But the problem is that it looks like they are not printable. So the terminal output of the video contains only shadow blocks. I should say that the bash code:
ANSWER
Answered 2021-Apr-26 at 10:12The problem is that hiragana and katakana are fullwidth characters. When Caca tries to write a character to the screen using caca_put_char()
, it checks if there is already a fullwidth character on the screen, and if so, it will replace part of it with a space. Since all possible character positions on the screen are written to, it ends up overwriting any fullwidth character with a space, and thus in the end no katakana will be visible.
I think you would have to modify Caca to handle fullwidth characters in the dither character set. If all characters are fullwidth, it should just write only to even columns on the screen. If you have a mix, it will be more complex, but you could for example make it so that if there is already a fullwidth character on a given position, it will just not try to overwrite it.
QUESTION
I heard that if we want to remove any item from our RecyclerView we can use this method for example:
...ANSWER
Answered 2021-Apr-19 at 16:21You are not saving the changes to the file and when you reload the activity, the array is fetched again from the file which hasn't been updated.
QUESTION
How can one use mpv to play a video as background on i3wm separately on 3 different screens/ workspaces?
I currently use 3 monitors on my i3 setup and wanted to use mpv to set up a live wallpaper.
The problem I am facing right now is that it plays in between two monitors and not on separate monitors/ workspaces as a background. I have used many commands but that's the closest I've got to it.
(hence this post):
mpv --wid=0 --drm-connector=0.DP-1 /home/neo7798/Downloads/production\ ID_4818978.mp4
(I was hoping it would at least play correctly on a single monitor with the other(still connected) monitors blank)
(You get the connector values by passing mpv --drm-connector=help
)
Is there any way to play the video on separate screens in the background?
Can mplayer achieve this? I'm going to include --screen as well when I get back and give an update on it.
...ANSWER
Answered 2021-Mar-30 at 16:13You can check out this video for multiple monitors
And this Reddit post in case you are only interested in a single monitor config.
QUESTION
I have built a carousel app for android tv, which shows images and plays videos. But recently it started crashing once the video starts playing. I have tested this on a mobile device it's working fine working fine.
Errors I got -
E/MediaPlayer: error (1, -2147479552)
E/MediaPlayer: error (1, -38)
E/MediaPlayer: Error (1,-2147479552)
E/MediaPlayer: Error (1,-38)
E/MediaPlayer: stop called in state 0, mPlayer(0xd317c860)
E/MediaPlayer: error (-38, 0)
[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/6mkaB.png
Test Device Info :
- X96mini media box
- Android Version 7.1.2
ANSWER
Answered 2021-Mar-16 at 05:09Did you invoke stop() API as soon as created the player instance? If you update the SDK and it was called the stop in a idle state of player then it would be got the error.
https://developer.android.com/reference/android/media/MediaPlayer#Valid_and_Invalid_States
QUESTION
When i run my program with this code:
...ANSWER
Answered 2021-Mar-03 at 07:14I somehow found out myself, just delete it
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mplayer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page