Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Embedding video into a scene grapgh

 
Ranch Hand
Posts: 330
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Source of codes:
Java in Two Semesters
Featuring JavaFX
Fourth Edition
Quentin Charatan and Aaron Kans
Page 487
********************************************************************************************************************

The audio plays very well but there is no motion pictures.  Quite honestly I do not know what to modify in order to make the pictures move.
The project file structure is shown below. Apology, I am not able to attach the video because of file size limitation.

Project-file-structure.PNG
[Thumbnail for Project-file-structure.PNG]
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't say what level of JavaFX or operating system, but for me on Ubuntu 20.04 version 11.0.2 didn't work but 14.0.1 did.
 
Biniman Idugboe
Ranch Hand
Posts: 330
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apology for late response.
Jdk14_Windows-x64
OpenJFX15-ea+5_Windows-x64
Operating system is Windows 10 Pro x64
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to try JavaFX 14.0.1 and not the early release, but that's a long shot.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried it on windows with JavaFX 11.0.2 and it worked.
 
Biniman Idugboe
Ranch Hand
Posts: 330
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought JavaFX 15 was suppose to be an improvement on earlier versions.  Did the developers just turn off some features in later versions?
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an early access, it may have bugs in it that will be ironed out by the full release.  Note I said may.  If 14.0.1 works and 15-ea does not, I'd issue a bug report to the developers.

https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report
 
Biniman Idugboe
Ranch Hand
Posts: 330
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to run the program on JavaFX 14.0.1.  It still does not produce motion pictures.  I notice that the media view extends beyond the boundaries of the scene.  I am thinking this may be the reason for the non motion.  I am going to try and set the media view to be within the scene. I hope that works.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry it's still not working.  I've attached the small mp4 file that I used so you can rule out whether it's the file.
Filename: small.mp4
File size: 384 Kbytes
 
Biniman Idugboe
Ranch Hand
Posts: 330
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all the help. The small.mp4 plays audio, but motion is still. Now I am thinking may be the video card in my computer is not compatible?
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could be, but it's a long shot.  I have a very basic built-in video card on the Linux box I tested the code on.
 
reply
    Bookmark Topic Watch Topic
  • New Topic