LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2011, 06:57 PM   #1
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Rep: Reputation: 0
ffmpeg to convert video to play in mobile phones.


Is there a way I can convert video with ffmpeg to be in mp4 format and play on either iphone or android?

I can't seem to get anything that I convert to play on a phone.

I can get other mp4 files I found to play on the phone but any file I convert into that format won't actually play.

Any help would be very appreciated and I thank you in advance!
 
Old 04-05-2011, 07:43 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi skillednerd, Welcome to LQ. I'd suggest trying 3gp format.

Code:
ffmpeg -i inputfile.mpg -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y outputfile.3gp
Good luck. ;-)
 
Old 04-05-2011, 08:09 PM   #3
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Ok thanks. I tried that and when loading the 3gp file on phone it says sorry this video is not valid for streaming to this device.
 
Old 04-05-2011, 09:07 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What type of phone, please explain "streaming". You should be able to convert a video, place it on your sd card (Android) and access it from the internal player or Astro or something similar.

Good luck. ;-)
 
Old 04-05-2011, 09:11 PM   #5
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
I have a droid phone. MotoCliq. I need it to play on phone loading from website. I want others to view video.
So loading on sd card isn't an option. I can get other 3gp files to play. So it has to be the way I am converting
it.
 
Old 04-05-2011, 09:41 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Have you tried just converting the video to flash? It sounds like a browser issue not a video issue.

Good luck. ;-)
 
Old 04-07-2011, 02:42 PM   #7
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
It has to be in mp4 format to work with the rest of the script I wrote.

I actually got it all working with two passes. If its less than 10 seconds
it will play on droid phone. If its longer than that it just sits saying loading
without ever changing I even let it go an hour with a 20 second video.
 
Old 04-07-2011, 07:18 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Could it be the script and not the content?

Good luck. ;-)
 
Old 04-07-2011, 07:21 PM   #9
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
No I tried just using command prompt to convert and that does the same thing.
 
Old 04-07-2011, 08:43 PM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
If the file is okay and the script is okay, it's likely something on the server side, the stream itself.

Good luck. ;-)
 
Old 04-07-2011, 09:24 PM   #11
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
I'm not using a stream. Its my server and I do have flash media server but this isn't for streaming. I just want to be able to upload videos and they show on phones. I am just sending the phone a link to the file and it loads it. But for some reason its not working. I need some testers with phones maybe its my phone then. I am not sure.
 
Old 04-07-2011, 09:54 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I still think flash would be your best bet. I've uploaded flash video to my server and it plays fine on my Android phone.

Good luck. ;-)
 
Old 04-07-2011, 09:57 PM   #13
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Yeah that would make it easier for sure. I did figure it out though what I had all along was correct. I download a few different videos in different formats and converted them and they all work on the phone. So I guess the other file I was testing with just doesn't work for some reason.

Thanks for you help Peacedog!
 
Old 04-08-2011, 07:39 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Glad to be of service.

Good luck. ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using ffmpeg to convert video files acamus Linux - Newbie 2 01-04-2011 08:41 PM
my mobile samsung e2120 does not play mp4 file created using ffmpeg sumeet inani Linux - Newbie 4 07-30-2010 12:11 AM
Batch convert video in entire folder using ffmpeg Steven Hyde Linux - General 4 05-03-2008 05:28 PM
LXer: Convert video for phones, iPods, DVDs LXer Syndicated Linux News 0 12-18-2007 09:20 AM
mencoder/ffmpeg convert video(wmv) for Windows Mobile? paulx Linux - Software 2 06-26-2006 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration