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 11-18-2011, 10:44 AM   #1
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
share your ffmpeg recipes

anyone got any command line args they can share?

__________________
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 11-18-2011, 10:45 AM   #2
nextri
Confirmed User
 
nextri's Avatar
 
Industry Role:
Join Date: May 2004
Location: Norway
Posts: 1,661
I gave up on it and started using pandastream.com.
No idea how many hours I've spent tweaking encoding options. Could never seem to get it quite right..
__________________
DivaTraffic - Traffic for Models
nextri is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 10:49 AM   #3
MaDalton
I am Amazing Content!
 
MaDalton's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 39,822
worked like a charm for me recently when i really needed it

i used this to create DVD compatible videos from source videos where no encoding program could read the audio track:

ffmpeg -i test.m2ts -acodec mp2 -ab 224k -ar 48000 -vcodec mpeg2video -b:v 8000k -g 15 -r 25 -s 720x576 -sn test.mpg

spent nearly half of saturday to figure it out but the possibilities are endless

Last edited by MaDalton; 11-18-2011 at 10:50 AM..
MaDalton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 11:01 AM   #4
evulvmedia
Confirmed User
 
Industry Role:
Join Date: Jun 2006
Posts: 441
Encoding for web + mobile, streaming + downloading: mp4 format, 640px width, 720kbps video, 96kbps audio.

This is nice because it gives excellent quality while also working fine on mobile devices, even first-generation iPhone and iPod Touch.

Using the x264 presets it is easy!

Two passes:

ffmpeg -i INPUT -an -pass 1 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -y /dev/null

ffmpeg -i INPUT -acodec libfaac -ar 48000 -ac 2 -ab 96k -async 1 -pass 2 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -metadata "title=TITLE" OUTPUT-1.mp4

You need to specify H in the -s parameter based on the size of the source video (e.g. H=360 for 16:9 aspect ratio). And of course you need to specify W:H for the -aspect parameter.

Finally, you need to adjust the moov atom for streaming:

qt-faststart OUTPUT-1.mp4 OUTPUT.mp4
evulvmedia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 11:20 AM   #5
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Is there any script for "use the same options as this other video"? Say you have a video that works well on a phone and you want to encode another one with the same codecs, package format, etc.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 11:37 AM   #6
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by raymor View Post
Is there any script for "use the same options as this other video"? Say you have a video that works well on a phone and you want to encode another one with the same codecs, package format, etc.
wouldn't you just view the video and read it's properties.

besides you are reading the output not the input so if you want your video to have the same output chances are the input is different , and thus the method would also be different.
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 11:41 AM   #7
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
Fuck, all I know how to do is grab a few frames from a video.

ffmpeg -i $input -an -ss 00:00:01 -r 1 -vframes 1 -f mjpeg -y $output
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 12:11 PM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by raymor View Post
Is there any script for "use the same options as this other video"? Say you have a video that works well on a phone and you want to encode another one with the same codecs, package format, etc.
you can create your own presets so its saved parameters
__________________
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 11-18-2011, 12:12 PM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by evulvmedia View Post
Encoding for web + mobile, streaming + downloading: mp4 format, 640px width, 720kbps video, 96kbps audio.

This is nice because it gives excellent quality while also working fine on mobile devices, even first-generation iPhone and iPod Touch.

Using the x264 presets it is easy!

Two passes:

ffmpeg -i INPUT -an -pass 1 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -y /dev/null

ffmpeg -i INPUT -acodec libfaac -ar 48000 -ac 2 -ab 96k -async 1 -pass 2 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -metadata "title=TITLE" OUTPUT-1.mp4

You need to specify H in the -s parameter based on the size of the source video (e.g. H=360 for 16:9 aspect ratio). And of course you need to specify W:H for the -aspect parameter.

Finally, you need to adjust the moov atom for streaming:

qt-faststart OUTPUT-1.mp4 OUTPUT.mp4
do you only encode 1 video for both mobile and web, or two?
__________________
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 11-18-2011, 02:23 PM   #10
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by SmokeyTheBear View Post
wouldn't you just view the video and read it's properties.
I sometimes don't know how to translate some property to an ffmpeg output parameter. I'd like a script that reads the properties and generates the right arguments for ffmpeg.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 02:31 PM   #11
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by fris View Post
you can create your own presets so its saved parameters
I've like to look at a video YOU and made figure out what presets YOU used so I can use the ones. Obviously that applies only to parameters like codecs which can be determined from the output.

Example:
Assume you have an old phone or DVR which will record and play files in a specific format (size, codec, packaging, etc.). I want to convert another video to be playable on the device. I used the same codec and package type, but parameter is different so it can't play my file. I'd like to use one of it's own native files as a reference, saying "convert this foreign file to have the same format as this native file."
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-18-2011, 08:51 PM   #12
evulvmedia
Confirmed User
 
Industry Role:
Join Date: Jun 2006
Posts: 441
Quote:
Originally Posted by fris View Post
do you only encode 1 video for both mobile and web, or two?
only one for both web and mobile
evulvmedia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2011, 10:16 AM   #13
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by evulvmedia View Post
only one for both web and mobile
what aspect ratio do you use? i want to try your method
__________________
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 11-21-2011, 10:53 AM   #14
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
ffmpeg can blow me.

Quote:
find / -depth -name ffmpeg\* -exec rm -rf {} \;
__________________
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2011, 10:59 AM   #15
Socks
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto
Posts: 8,475
'!cmd_path -y -i !videofile -f flv -crf 24 -vcodec libx264 -vpre slow -threads 0 -acodec libfaac -ar 44100 -ab 192 -s !widthx!height -qscale 1 !convertfile'
Socks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2011, 01:23 PM   #16
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
if you have SoftLayer as your dedicated hoster they have a set of server banks and api's that you can use to process all you movies for free.
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2011, 01:32 PM   #17
Jack Sparrow
Almost goners..
 
Industry Role:
Join Date: May 2008
Location: Netherlands
Posts: 11,420
Quote:
Originally Posted by fris View Post
what aspect ratio do you use? i want to try your method
I think the 360 method would work best right?
Most phones are on a 16:9 ratio?!
Jack Sparrow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2011, 01:38 PM   #18
Just Alex
Liv Benson to You, Bitch
 
Just Alex's Avatar
 
Industry Role:
Join Date: Aug 2007
Location: Maryland and WV
Posts: 6,060
Quote:
Originally Posted by fris View Post
anyone got any command line args they can share?

Here you go. Takes all videos in current folder and makes flash

for i in *.wmv; do ffmpeg -i "$i" -f flv -ar 22050 -ab 56 -r 25 -b 650k -s 320x240 `basename $i .wmv`.flv; done

then you make screen prints out of all flv files

for i in *.flv; do ffmpeg -i "$i" -an -ss 00:00:03 -an -r 1 -vframes 10 -s 160x120 -y `basename $i .flv`-%d.jpg; done


You welcome.
__________________
Just Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2011, 11:08 AM   #19
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Just Alex View Post
Here you go. Takes all videos in current folder and makes flash

for i in *.wmv; do ffmpeg -i "$i" -f flv -ar 22050 -ab 56 -r 25 -b 650k -s 320x240 `basename $i .wmv`.flv; done

then you make screen prints out of all flv files

for i in *.flv; do ffmpeg -i "$i" -an -ss 00:00:03 -an -r 1 -vframes 10 -s 160x120 -y `basename $i .flv`-%d.jpg; done


You welcome.
wont the 320x240 be a bit small for desktop?
__________________
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 11-22-2011, 01:47 PM   #20
Just Alex
Liv Benson to You, Bitch
 
Just Alex's Avatar
 
Industry Role:
Join Date: Aug 2007
Location: Maryland and WV
Posts: 6,060
Quote:
Originally Posted by fris View Post
wont the 320x240 be a bit small for desktop?
Obviously you can change all parameters. I just gave you sample code.
__________________
Just Alex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-22-2011, 01:55 PM   #21
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Just Alex View Post
Obviously you can change all parameters. I just gave you sample code.
ya trying to use one video for desktop and mobile.
__________________
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 11-27-2011, 07:22 PM   #22
pornsprite
Confirmed User
 
pornsprite's Avatar
 
Industry Role:
Join Date: Dec 2009
Location: Texas
Posts: 1,643
Best thread of the month as far as I am concerned.
__________________
Go Fuck Yourself
pornsprite is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2011, 07:36 PM   #23
Solace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2011
Posts: 995
I can make ffmpeg suck cocks
Solace 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.