Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-21-2012, 02:18 PM   #1
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
ffmpeg mobile encoding - need help

Trying to get a better encode for mobile videos and am using -vcodec mpeg4 instead of -vcodec libx264.

If I encode the same video myself on Handbrake, I can tweak it and get crystal clear at 1/2 the bit rate. But I am a ffmpeg noob and am stumbling over the settings here.

This is the default ffmpeg setting:

Code:
-acodec libfaac -ab 96k -vcodec mpeg4 -b 800k -mbd 2 -cmp 2 -subcmp 2
I can get the same video to look great at around 400k or so on Handbrake. But even at 800k here, it still breaks up some. I want to reduce bitrate and improve quality. How can I do this in ffmpeg? There is so much information online that I'm drowning in it, and most of it seems to be for libx264.

Here are some additional settings I use in Handbrake that I don't know how to incorporate into ffmpeg, but would like to:

Code:
ref=3:bframes=3:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0:b-adapt=2
Thanks to anyone who can demystify ffmpeg mobile encoding for me .
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2012, 02:33 PM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,316
http://www.virag.si/2012/01/web-vide...th-ffmpeg-0-9/

read this article
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-22-2012, 02:14 AM   #3
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by fris View Post
Thanks Fris.

With those examples, does it matter if I use -vcodec mpeg4 instead of -vcodec libx264?
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-22-2012, 07:16 PM   #4
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
get winFF from www.winff.org and use one of their presets for mobile.
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-23-2012, 02:17 AM   #5
AsianDivaGirlsWebDude
Purveyor, Fine Asian Porn
 
AsianDivaGirlsWebDude's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: San Francisco Bay Area
Posts: 38,323


Bump for smart fellers...

ADG
AsianDivaGirlsWebDude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-23-2012, 02:24 AM   #6
vdbucks
Monger Cash
 
Industry Role:
Join Date: Jul 2010
Posts: 2,773
Quote:
Originally Posted by DWB View Post
Trying to get a better encode for mobile videos and am using -vcodec mpeg4 instead of -vcodec libx264.

If I encode the same video myself on Handbrake, I can tweak it and get crystal clear at 1/2 the bit rate. But I am a ffmpeg noob and am stumbling over the settings here.

This is the default ffmpeg setting:

Code:
-acodec libfaac -ab 96k -vcodec mpeg4 -b 800k -mbd 2 -cmp 2 -subcmp 2
I can get the same video to look great at around 400k or so on Handbrake. But even at 800k here, it still breaks up some. I want to reduce bitrate and improve quality. How can I do this in ffmpeg? There is so much information online that I'm drowning in it, and most of it seems to be for libx264.

Here are some additional settings I use in Handbrake that I don't know how to incorporate into ffmpeg, but would like to:

Code:
ref=3:bframes=3:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0:b-adapt=2
Thanks to anyone who can demystify ffmpeg mobile encoding for me .
What version of ffmpeg are you using?

We're currently using the latest source build so I can't comment on older versions because they don't have the same optionss/flags.

you can follow these instructions for building from source on debian/ubuntu: https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide

Here's the script we use for encoding mp4's, as well as the ffmpeg settings:

Quote:
for i in ./convert/*_members.mp4
do
original=`basename $i`
prefix="${original%%_members.mp4}"
ffmpeg -i "$i" -s hd720 -vcodec libx264 -b:v 2300k -minrate 2300k -maxrate 2300k -bufsize 1050k -f flv -acodec libfaac -b:a 192k -ac 2 -ar 44100 -preset slow -crf 22 -threads 0 -f mp4 ./transfer/"${prefix}"_2300k.mp4
ffmpeg -i "$i" -s hd720 -vcodec libx264 -b:v 1200k -minrate 1200k -maxrate 1200k -bufsize 550k -f flv -acodec libfaac -b:a 128k -ac 2 -ar 44100 -preset slow -crf 22 -threads 0 -f mp4 ./transfer/"${prefix}"_1200k.mp4
done

for i in ./convert/*_trailer.mp4
do
filename=`basename $i`
ffmpeg -i "$i" -s hd720 -vcodec libx264 -b:v 1200k -minrate 1200k -maxrate 1200k -bufsize 550k -f flv -acodec libfaac -b:a 128k -ac 2 -ar 44100 -preset slow -crf 22 -threads 0 -f mp4 ./transfer/"${filename}"
done

Last edited by vdbucks; 06-23-2012 at 02:25 AM..
vdbucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.