Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 ASP

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th September 2012, 15:30   #1  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
How to transcode a MPEG-4 ASP using FFMPEG

Hi, I'm trying to figure out all of the options in ffmpeg, and am having a hard time with it. What options do I need to transcode a file from whatever to a MPEG-4 ASP file?

Thanks,


|\/|x
maxxon is offline   Reply With Quote
Old 20th September 2012, 17:38   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Look at the FFMPEG FAQ. And Google is your friend.
Guest is offline   Reply With Quote
Old 20th September 2012, 18:34   #3  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
Quote:
Originally Posted by neuron2 View Post
Look at the FFMPEG FAQ. And Google is your friend.
Have tried. Has not been very friendly on this, must be the keywords I've been using.

Not sure how I missed the FAQ. I'll take a look.


|\/|x

Last edited by maxxon; 20th September 2012 at 18:37.
maxxon is offline   Reply With Quote
Old 20th September 2012, 18:39   #4  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,103
One of the annoying things about ffmpeg is that the command line parameters change constantly, and on top of this the documentation is mostly not matching the version it comes with.

So I would recommend to use one of the many available GUIs for ffmeg. I use WinFF and I am quite happy with it...

This is the ffmpeg command line which WinFF creates for the profile XviD Widescreen:
Quote:
ffmpeg.exe -y -i "my input file" -f avi -r 29.97 -vcodec libxvid -vtag XVID -vf scale=704:384 -aspect 16:9 -maxrate 1800k -b:v 1500k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -trellis 1 -flags +aic -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar 48000 -b:a 128k -ac 2 "my output file.avi"


Cheers
manolito

Last edited by manolito; 21st September 2012 at 01:59.
manolito is offline   Reply With Quote
Old 21st September 2012, 02:57   #5  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
Quote:
Originally Posted by neuron2 View Post
Look at the FFMPEG FAQ. And Google is your friend.
Quote:
Originally Posted by maxxon View Post
Have tried. Has not been very friendly on this, must be the keywords I've been using.

Not sure how I missed the FAQ. I'll take a look.
Yeah neuron2, the FAQ doesn't state anything about how to encode a MPEG-4 ASP file. Just some general stuff.

Quote:
Originally Posted by manolito View Post
One of the annoying things about ffmpeg is that the command line parameters change constantly, and on top of this the documentation is mostly not matching the version it comes with.

So I would recommend to use one of the many available GUIs for ffmeg. I use WinFF and I am quite happy with it...
Great, I'll take a look at it. Thanks for this info. Hopefully, it'll tell me what I need to know or even better, do everything that I wanted to do!

Cheers.


|\/|x
maxxon is offline   Reply With Quote
Old 21st September 2012, 03:59   #6  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,103
OK, this commandline has been provided by someone who wanted to get maximum quality out of ffmpeg. But this also makes for a slow encoding speed...

The first thing I would strip from this command line is the framerate parameter. If you do not specify this parameter, the resulting avi file will have the same framerate as the source.

And then you can strip all parameters which affect the encoding quality (ffmpeg defaults will be used instead. Doubles encoding speed on my machine).

Quote:
"ffmpeg.exe" -y -i "my input file" -f avi -vcodec libxvid -vtag XVID -vf scale=640:480 -aspect 4:3 -maxrate 1800k -b:v 1500k -qmin 3 -qmax 5 -acodec libmp3lame -ar 48000 -b:a 128k -ac 2 "my output file.avi"
And the fastest MPEG4 ASP encoding settings are the ones for "MS Compatible AVI" (=DivX). Looks like this:

Quote:
"ffmpeg.exe" -y -i "my input file" -acodec libmp3lame -vcodec msmpeg4 -b:a 128k -b:v 1000k -vf scale=640:480 "my output file.avi"
Quality is probably questionable, but you have to determine this for yourself...



Cheers
manolito
manolito is offline   Reply With Quote
Old 23rd September 2012, 17:08   #7  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
Thanks manolito.


|\/|x
maxxon is offline   Reply With Quote
Old 30th September 2012, 17:48   #8  |  Link
maxxon
Registered User
 
maxxon's Avatar
 
Join Date: Jan 2012
Location: On the net
Posts: 76
FYI, it looks like the USB HD was causing the crash, using a USB stick does the trick but is slower at seeking. Oh well.


|\/|x
maxxon is offline   Reply With Quote
Reply

Tags
ffmpeg, mpeg-4 asp, transcode

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.