J Das

Ranch Hand
+ Follow
since Jul 27, 2011
J likes ...
MS IE Firefox Browser Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by J Das

Hello ,can someone help me with the code for pagination of blob type data (images) to be shown in a jsp page . The thing i need to do is like YOUTBE does , when we search a video in youtube , we get results in thumbail image formats in paginated form. So, i hope someone will help me in this. Thank you in advance. I am using mysql database.
11 years ago
JSP
Hi all , i am working to generate thumbnail images from a video. I am able to do it but i need only one thumbnail image from a video , but what i get is more than one images at different times of the video. I have used the following code to generate the thumbnails . Please suggest me what should i modify in the following code to get only one thumbnail from the middle portion of the video . The code i used is as follows ( I have used Xuggler ):

11 years ago
Hello everyone , I am developing a video sharing website , i have to achieve something like this.. an user uploads a video and a thumbnail image of that video would be generated. I am doing this on Netbeans 6.9.1 , using Tomcat and also have studied some Xuggler since a few days and so tried of using Xuggler. But my question is where should i install Xuggler ?? Inside Tomcat ??
I have installed Xuggler in 'lib' folder of my Tomcat. I have added the following environment variables---->>

CLASSPATH = .;.;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\commons-cli.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\logback-classic.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\logback-core.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\slf4j-api.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\xuggle-xuggler.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\xuggle-xuggler-test.jar;

XUGGLE_HOME = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib

Path = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\bin;

and I have included the 6 jar files of Xuggler which remains in lib>share>java under my Projects Libraries...

what i have done is the following..

index.jsp ( user uploads a video file from this page )



VT.java ( this is the servlet to which the user posts the file )



Main.java ( this is the java class where the creation of thumbnails must take place )




Now , when i run my application and upload a video file , it gets uploaded in my Project directory but the Thumbnail images are not created and it gives the following errors:




what am i doing wrong ??? why are the images not generating ??? when i apply the same code for generating thumbnail images in a Java Application ( not Web Application ) , it creates the images , but when i do it a Web Application like above , I get errors..
11 years ago
JSP
Can anybody please help me with the steps to configure Xuggler in JSP projects . I am using Netbeans 6.9.1 , Apache Tomcat in Windows 7 OS.
Hello Ranchers , i am working on a video sharing site , so i need to generate thumbnails for each uploaded videos. I searched on Google and found something called Xuggle which says can help achieve this. So i need some Tutorials where I can find everything from the scratch.. I mean from installation of Xuggle to the importing of libraries ( if needed ) and the steps associated with generation of the thumbnail images from a video file. I have Googled for such tutorials but did not found anything that suits my need. If anyone can help me on this I would be really happy and thankful.

Ulf Dittmer wrote:Which sites have you visited? Which libraries have you chosen? Most of their respective sites should have enough documentation and example code to get you going. Just saying "I don't know how to proceed" isn't going to let us help you. Did what I said in my last post make any sense at all to you? If so, what *did* you understand?




Look Sir , I looked into the link you provided , and also searched for some other such similar sites; I have found FFMPEG to be some sort of a tool which would be able to solve my problem , but I have not found the process how should we start it , I mean to say that I am working on Netbeans , so do i have to import any libraries for FFMPEG or not ? If so how and where ?

Ulf Dittmer wrote:You will need to select one or more of those libraries depending on which file formats you plan to support. Not all of the libraries support all formats. Then you use those libraries to extract those images that you wish to show as preview (for starters, maybe always use the first image).



are there some kind of tutorials which shows how this process is done ?? I am really not getting any clue Sir..

Ulf Dittmer wrote:There are numerous libraries that can read video formats (see https://coderanch.com/how-to/java/OtherOpenSourceProjectsFaq for links to many of them). You can use those to extract images (maybe the first one) for display purposes.



Thank you so much for your kind reply , but i am not getting the idea how to use these libraries into my project. I mean when uploading the video file how will i bind the library to extract a thumbnail image of that video ? Please ignore my dumbness if so..
Hello everyone here in CODERANCH , would someone please explain me the concept behind making a thumbnail image for a video file ??? Like in video sharing sites , when we upload a video the video file appears as a thumbnail view , how can i achieve this ??? I am doing a video file sharing project where i have finished uploading the files , but when i show these files they should appear in thumbnail view , i am stuck with this part... I am not using any FRAMEWORK , so if anyone can suggest me anything i would be greatly thankful to you..
[UD: Content removed. Let's continue the discussion of your question in the topic you started: https://coderanch.com/t/592069/open-source/video-Thumbnails-video-sharing-site ]
11 years ago
Hello everyone out here.. can anyone post me an working example regarding CRUD appplication in Struts2 and Hibernate in Netbeans .. thanking you all in advance..
11 years ago

Bear Bibeault wrote:I removed the copyright notice from your servlet code because it was making the page too wide. Please take care when posting code to make sure that lines break in a reasonable width.

And, why are you putting a Sun copyright on your code?



Ooops ! Sorry, my mistake..
Hello Ranchers.. I need to validate my forms in my web application in realtime (using Ajax), I searched the web and found the following suitable solution for my query...




The following is the servlet..



Actually i need the same thing to be done with database , but what the above example shows is with a Hashmap... anyone who can help me in this ?? I will be very grateful.. Thank You all in advance..

Bear Bibeault wrote:

J Das wrote:

Bear Bibeault wrote:You'll ned to write some code to resize the image to create the thumbnail.

That has nothing whatsoever to do with JSP, so this post has moved to a more appropriate location.



So where do i need to write those code ??


Code never goes in a JSP. Never. Ever.

Ever.




So while uploading the file ( say an image file )from the jsp page , when i pass it to a servlet , is that the servlet where that code will appear ?? Please ignore my dumbness if it is so..
11 years ago