Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

When I am converting .mov to .flv video always playing in horizontal.

Hello,

When I record a video(.mov) through my iPhone it display vertically which 

is right

but after converting .mov to .flv(using ffmpeg) it dispaly horizontally. can you please suggest a solution

how can I convert a video Vertically and not horizontally.

my code is:

function convert_flv($vidtime,$infile, $outfile, $w = 0, $h = 0, $extra_infile = '', $extra_outfile = '') {
  $parms = '';
  if($w == 0 && $h == 0) {
    //$parms .= '-sameq ';
  } else {
    $parms = '-s {$w}x{$h} ';
  }

  if($vidtime==60)
  {
    $cmd = ffmpeg($infile, $outfile, $parms.' '.$extra_infile, '-t 00:01:00 -ar 22050 -r 15 -f flv '.$extra_outfile);
  }
  else
  {
    $cmd = ffmpeg($infile, $outfile, $parms.' '.$extra_infile, '-t 00:04:00 -ar 22050 -r 15 -f flv '.$extra_outfile);
  }
  print_r($cmd);
  return $cmd;
}
— asked June 29th 2010 by vikas khairnar
  • ffmpeg
0 Comments

1 Answer

  • Hi,
    I know It's a very old topic,
    but I really like to know how do you use ffmpeg in an iPhone application.
    Could you help me?
    Thanks a lot, Flavio

    — answered May 7th 2012 by Flavio Ferrandi
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.