Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

How to convert uploaded videos to mp4 ?

10 years 2 months ago
  • Parth's Avatar
    Topic Author
  • Parth
  • Offline
  • Junior Boarder
  • Posts: 194
  • Thank you received: 10
Licenses:
JomSocial Active

Hello,

I am trying to convert uploaded videos to mp4.

I am referring following ticket.

www.jomsocial.com/forum/photos-videos/89...g-on-mobile?start=56

After applying these changes, its creating mp4 video but not playing. I have license jwplayer.

I want to convert uploaded video in any format to mp4.

How to do this ?

10 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Parth,

Actually with newest version we already converted video to mp4 as well... you dont need edit/hack any code to achive this.

but, caused by this (converting mp4) we have issue in centOS server, some of video can't be converted in centOS... I suggest you use ubuntu server

10 years 2 months ago
  • Parth's Avatar
    Topic Author
  • Parth
  • Offline
  • Junior Boarder
  • Posts: 194
  • Thank you received: 10
Licenses:
JomSocial Active

Hi Dimas,

Thank you for the update. I am in a situation where I can not upgrade, can you please give me changes which I should do in my
files ?

I am using jomsocial 2.4.2

I tried that hack but its not working at my end. It only renames videos files from flv to mp4. It does not convert video
in mp4 format.

Your help is highly appreciated.

10 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

You are using very old code.. I will give you a clue, please use this code inside libraries/video.php

// Build the ffmpeg command
		$config	= CFactory::getConfig();
		$cmd 	= array();
		$cmd[]	= $this->ffmpeg;
		$cmd[]	= '-y -i ' . $videoIn;
		$cmd[]	= '-vcodec libx264';
		$cmd[]	= '-acodec aac';
		$cmd[]  = '-strict -2';
		$cmd[]  = '-crf 23';
		$cmd[]	= '-s ' . $videoSize;
		$cmd[]	= $config->get('customCommandForVideo');
		$cmd[]	= $videoFullPath;

To be honest we cant you regarding old Jomsocial version, due our support privacy.

thank you

10 years 2 months ago
  • Parth's Avatar
    Topic Author
  • Parth
  • Offline
  • Junior Boarder
  • Posts: 194
  • Thank you received: 10
Licenses:
JomSocial Active

Hi Dimas,

I have tried this command, this gives error to -crf 23 part on ffmpeg, can you tell me what is the error ?

Also, if I want to skip video conversion then what are the steps ? I will upload video and it will be moved to folder directly
without conversion from ffmpeg.

10 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

1. what error? what OS server are you using? because that code only works on ubuntu server right now.. the valid code for this will be available in 3.2
2. this is impossible

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW