tag:blogger.com,1999:blog-4169375346527088512.post2390790222670962955..comments2023-12-04T23:34:06.830-08:00Comments on Ramblings of a coder: Expanding JavaFX's media supportMichael Berryhttp://www.blogger.com/profile/13494814769553033799noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-4169375346527088512.post-48466757914230763242022-04-18T21:12:38.931-07:002022-04-18T21:12:38.931-07:00Expanding Javafx'S Media Support >>>&...Expanding Javafx'S Media Support >>>>> <b><a href="http://8on8.top/P1buY?61" rel="nofollow">Download Now</a></b><br><br>>>>>> <b><a href="http://8on8.top/P1buY?91" rel="nofollow">Download Full</a></b><br><br>Expanding Javafx'S Media Support >>>>> <b><a href="http://8on8.top/P1buY?60" rel="nofollow">Download LINK</a></b><br><br>>>>>> <b><a href="http://8on8.top/P1buY?81" rel="nofollow">Download Now</a></b><br><br>Expanding Javafx'S Media Support >>>>> <b><a href="http://8on8.top/P1buY?37" rel="nofollow">Download Full</a></b><br><br>>>>>> <b><a href="http://8on8.top/P1buY?54" rel="nofollow">Download LINK</a></b> jL Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-20585529781674836702017-09-12T16:21:13.463-07:002017-09-12T16:21:13.463-07:00I know this post is about video playback, but perh...I know this post is about video playback, but perhaps you could help me with this as well. I've made an MP3-player in JavaFX and used a Slider to invoke the seek() method. I've noticed that MP3-files with high bitrate (320kbps) don't give accurate timing. If I'd skip to about a second before the song should end, the seek() method goes to an earlier moment in the song, sometimes 15s off. Even when giving a certain StartTime before playing the song, it'll be off. Strangely the getCurrentTime() method gives the time I would have expected it to be at, yet the song if playing at a different moment. Do you have any idea how I could work around this, as it seems to be a problem within the JavaFX MediaPlayer itself?Unknownhttps://www.blogger.com/profile/10381600617744016018noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-91220997572636014552017-07-28T06:33:54.284-07:002017-07-28T06:33:54.284-07:00Hi Michael, in this context, I have tested vlcj, b...Hi Michael, in this context, I have tested vlcj, but it seems that I have some performance problems at the start of the video. Do you know by chance, what could be the reason that the video jerks at the beginning once or twice? In addition, I have very great performance problems when I want to render a video with a width of 3072 and a height of 1000 pixels with DirectPlayerComponent on any JCmponent. Do you happen to know what I can do here?<br />Greetings SaschaAnonymoushttps://www.blogger.com/profile/18054346090838488044noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-81372118134780189092017-07-20T07:12:59.451-07:002017-07-20T07:12:59.451-07:00Hi Sascha, from that bug it looks like the resolut...Hi Sascha, from that bug it looks like the resolution isn't a restriction in the GStreamer code, but instead in the DirectShow decoder - MediaFoundation is the only native Windows solution that would support 4k resolution. So I guess you'd have to look into writing a separate plugin to support MediaFoundation, which is likely to be a rather large amount of work!Michael Berryhttps://www.blogger.com/profile/13494814769553033799noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-52284765662032401972017-07-20T07:06:22.776-07:002017-07-20T07:06:22.776-07:00Hello Michael, i just read your article. I am curr...Hello Michael, i just read your article. I am currently programming a JavaFX application and using the internal media player. Unfortunately, the mediaplayer is limited to 1920x1080 pixels. I need a 4K resolution. The problem is also described here https://bugs.openjdk.java.net/browse/JDK-8091277. Do you see any chance to screw up the resolution?<br />Best regards<br />SaschaAnonymoushttps://www.blogger.com/profile/18054346090838488044noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-61347308304607254572014-09-02T16:22:52.745-07:002014-09-02T16:22:52.745-07:00It could well work - as to whether it's worth ...It could well work - as to whether it's worth the hassle though, your guess is as good as mine! Personally I'd just use VLCJ, but do let me know if you get this working with GStreamer, would be interesting to hear :-)Michael Berryhttps://www.blogger.com/profile/13494814769553033799noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-58145490399757360362014-09-02T09:55:11.100-07:002014-09-02T09:55:11.100-07:00Thanks for your valuable feedback Michael.
I was p...Thanks for your valuable feedback Michael.<br />I was planning to extend the display sink gstreamer plugin to do streaming, which will handle avsync automatically.<br />Kindly suggest if this will be a good idea?ashok ghttps://www.blogger.com/profile/05463446611477621263noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-14773438269914231972014-09-02T08:45:43.862-07:002014-09-02T08:45:43.862-07:00Hey, sorry about the delayed reply - I've been...Hey, sorry about the delayed reply - I've been away as of late! This sort of thing is really a bit too far removed from the native JavaFX media support to be able to easily compile it in - it certainly should be possible to write a GStreamer / JavaFX bridge to do it that way but it would be a fair amount of work.<br /><br />Instead I'd recommend using the VLCJ bindings (http://www.capricasoftware.co.uk/vlcj/) which are really rather good for this sort of thing (they do pretty much everything VLC does, but in a nice Java API.) Of course, this means VLC will be a dpeendency for your app, which may or may not be an issue, but it's by far the easiest way I know of to achieve something like that.<br /><br />If you find any other ways then please do let me know!Michael Berryhttps://www.blogger.com/profile/13494814769553033799noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-9801952130920973942014-08-29T21:25:17.260-07:002014-08-29T21:25:17.260-07:00Thanks for the great post Michael.
Is it possible ...Thanks for the great post Michael.<br />Is it possible to stream raw video output to tcp. What would be a good way to do it using JavaFXashok ghttps://www.blogger.com/profile/05463446611477621263noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-46753507122259542982014-04-15T03:23:47.865-07:002014-04-15T03:23:47.865-07:00Unfortunately using the GStreamer framework as abo...Unfortunately using the GStreamer framework as above it wouldn't be so simple - you'd need to write a GStreamer plugin to read from the container and pass along the raw audio data, then write the associated JNI to pick it up at the other end and then do what you wanted with it (in Java.)<br /><br />Having said that, it may be that for audio alone, you can find an open source Javasound based library and just use that to extract the audio data - at least that way you'd be keeping it in Java land. (Of course, this would only work if there was a pure Java library available for the format you wanted!)Michael Berryhttps://www.blogger.com/profile/13494814769553033799noreply@blogger.comtag:blogger.com,1999:blog-4169375346527088512.post-26689701253823543652014-04-14T20:30:02.904-07:002014-04-14T20:30:02.904-07:00Thanks for the great post... are you aware of any ...Thanks for the great post... are you aware of any similar methods (or any methods at all) to gain access to the actual stream data that javafx can read? Specifically, I want to analyze the data of an audio stream... something like the AudioInputStream in javax.sound.sampled that would give me access to the numbers. At this point I just need read-only access... any thoughts? Maybe it's not so simple. Thanks!<br />clephttps://www.blogger.com/profile/04856604824213615001noreply@blogger.com