LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-11-2013, 02:40 AM   #1
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
FFmpeg transcode video for Galaxy Blaze Samsung


I'm trying to convert a video for my Galaxy Blaze Samsung using the following command.

Code:
ffmpeg -i o.mp4 -vcodec libx264 -crf 20 -threads 4 -flags +loop+mv4 -deblockalpha 0 -deblockbeta 0 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -refs 5 -bf 0 -flags2 +mixed_refs-fastpskip -coder 0 -me_method full -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -vsync 2 -acodec libfaac -ac 2 -ab 160k -vol 1280 -async 1 -f mp4 -vf "scale=800:428,pad=800:480:0:26:white" sample.mp4
It use to work and now it complains with the following error.

“Unknown encoder 'libfaac'


Info about o.mp4

Code:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'o.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.31.0
  Duration: 00:02:00.44, start: 0.000000, bitrate: 869 kb/s
    Stream #0.0(und): Video: h264 (High 10), yuv420p10le, 1280x688 [PAR 1:1 DAR 80:43], 783 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 84 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00

ffmpeg version:
Code:
ffmpeg version 0.8.5-6:0.8.5-1~bpo60+1
Debian Squeeze

Does anyone suggest a better ffmpeg command to transcode my video for the Galaxy Blaze Samsung?

Thanks
 
Old 03-11-2013, 03:25 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Try using 'libvo_aacenc' instead of 'libfaac'. Or it could be that you don't have libfaac installed or your ffmpeg is too old.
 
Old 03-11-2013, 03:41 AM   #3
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Original Poster
Rep: Reputation: 17
[ SOLUTION SOLVED ]

Code:
ffmpeg -i o.mp4 -vcodec libx264 -crf 20 -threads 4 -flags +loop+mv4 -deblockalpha 0 -deblockbeta 0 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -refs 5 -bf 0 -flags2 +mixed_refs-fastpskip -coder 0 -me_method full -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -vsync 2 -acodec aac -strict experimental -ac 2 -ab 160k -vol 1280 -async 1 -f mp4 -vf "scale=800:428,pad=800:480:0:26:white" sample.mp4
This is the command I used. Do you suggest a better command to create a video for this phone? This currently works and I would like to see if there is anything better.
 
Old 03-12-2013, 11:10 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Use ffmpeg -codecs to get a list of all the codec names available. Also pay attention to the configuration flags list at the top of the output screen. This will show you what libraries your version of ffmpeg has been compiled to support.

BTW, why do you think you need to re-encode anyway*? For most android phones these days you can find players that will support almost any media configuration imaginable. If the default player doesn't work with a given file, how about trying a different one? I've found BSPlayer to be very good, and there's a version of VLC available too.


(*Unless of course you just want a smaller file size for better storage and less stress on the phone during playback, or something like that. But the one you posted doesn't seem particularly burdensome.)

Last edited by David the H.; 03-12-2013 at 11:11 AM.
 
Old 03-13-2013, 01:51 AM   #5
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Original Poster
Rep: Reputation: 17
Quote:
(*Unless of course you just want a smaller file size for better storage and less stress on the phone during playback, or something like that.
This is why.

This is my final ffmeg string for creating videos for the Galaxy Blaze Samsung. This part is not needed " scale=800:428,pad=800:480:0:26:white". It is there because the original video was larger than the phones display resolution which is 800X480.

Code:
ffmpeg -i o.mp4 -vcodec libx264 -crf 20 -preset medium -acodec aac -strict experimental -ab 160k -ar 44100 -ac 2 -vf "scale=800:428,pad=800:480:0:26:white" sample.mp4
Thanks for the input.
 
  


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
Samsung Galaxy Note II malloc Linux - Hardware 2 12-25-2012 11:49 PM
samsung galaxy s2 wifi tether. schneidz General 1 12-17-2011 10:18 PM
how to root samsung galaxy s2 schneidz Linux - Mobile 2 12-17-2011 10:00 PM
Samsung Galaxy S moromendas01 Linux - Mobile 3 01-30-2011 07:20 PM

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

All times are GMT -5. The time now is 07:01 AM.

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