Forums de discussion

How to get duration of video while uploading

Dhanush B, modifié il y a 9 années.

How to get duration of video while uploading

Junior Member Publications: 56 Date d'inscription: 26/08/14 Publications récentes
Hi friends,
i am uploading video using custom portlet while uploading i want to get duration of video in my java class,how to do that please share your ideas.

Best and Regards
Dhanush
thumbnail
Ravi Kumar Gupta, modifié il y a 9 années.

RE: How to get duration of video while uploading

Liferay Legend Publications: 1302 Date d'inscription: 24/06/09 Publications récentes
There are many ways.. I believe.

http://stackoverflow.com/questions/8231905/how-can-i-easily-read-video-duration-and-bitrate-in-java
http://stackoverflow.com/questions/13528588/retrieving-resolution-duration-of-a-video-file-before-upload
http://www.coderanch.com/t/581592/java/java/Calculating-video-file-duration

There are libraries present to get the duration even before uploading.
Dhanush B, modifié il y a 9 années.

RE: How to get duration of video while uploading

Junior Member Publications: 56 Date d'inscription: 26/08/14 Publications récentes
hi Ravi,
I checked those urls but i am not getting can you give one example for this.
Regards
Dhanush
thumbnail
Juan Gonzalez, modifié il y a 9 années.

RE: How to get duration of video while uploading

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Hi Dhanush,

you can use the Liferay video preview feature and then obtain the duration metadata.
Dhanush B, modifié il y a 9 années.

RE: How to get duration of video while uploading

Junior Member Publications: 56 Date d'inscription: 26/08/14 Publications récentes
Hi Juan,
Thanks for your Reply i checked your link but i am not getting can you give one example for this.
Regards
Dhanush
Dhanush B, modifié il y a 9 années.

RE: How to get duration of video while uploading

Junior Member Publications: 56 Date d'inscription: 26/08/14 Publications récentes
hi friends,
if someone have any idea for this please share your ideas.

Best&Regards
Dhanush
thumbnail
David H Nebinger, modifié il y a 9 années.

RE: How to get duration of video while uploading

Liferay Legend Publications: 14914 Date d'inscription: 02/09/06 Publications récentes
Yes, please, can we write the code and post it here so Dhanush doesn't have to work for his pay? I mean, a few links that talk about how to do it is not enough, we should be writing his code for him...
Dhanush B, modifié il y a 9 années.

RE: How to get duration of video while uploading

Junior Member Publications: 56 Date d'inscription: 26/08/14 Publications récentes
thanks for your reply david
i am not asking code here whatever links shared to me i tried that one but i am not getting clear idea ,that's why i asked once again and this liferay forum is for sharing our ideas to learning people so don't use this kind of words this is my request.