The Following User Says Thank You to paulkoan For This Useful Post: | ||
![]() |
2010-07-23
, 02:15
|
Posts: 75 |
Thanked: 35 times |
Joined on Jun 2010
@ United States
|
#12
|
It may not be all that useful for you then. The majority of the script just deals with the file names and looping. The main thrust of the script is in the ffmpeg line:
-i is the input fileCode:ffmpeg -i "$infile" -r pal -s 800x448 -vcodec mpeg4 -qmin 3 -qmax 5 -crf 22 -acodec libfaac -ab 128k -ac 2 -f mp4 "$mp4file"
-r is the frame rate (using PAL default framerate)
-s is the size. For 16:9 content, this seems to be the best option from the wiki, as it keeps all the horizontal information and puts small borders at the top and bottom (16/9 = 800/448 approx)
-vcodec is the video codec to use - I use mpeg4
-qmin = minimum quantiser
-qmax = max quantiser
-crf = constant rate factor
These three settings influence the quality and bitrate in ways I do not fully get. crf may not even be applicable to mpeg4
-acodec is the audio codec, I am using the libfaac codec for ac3 audio
-ab audio bitrate
-ac audio channels (2=stereo)
-f container format - here I use mp4
"$mp4file" - the last parameter to ffmpeg is the output file.
Video transcoding is a complex topic and I don't even approximate an expert.
![]() |
2010-07-23
, 02:16
|
Posts: 75 |
Thanked: 35 times |
Joined on Jun 2010
@ United States
|
#13
|
![]() |
2010-07-23
, 02:18
|
Posts: 422 |
Thanked: 244 times |
Joined on Feb 2008
|
#14
|
it keeps saying audio codec not supported, and no matter what, i can't see a thumbnail for it..
The Following User Says Thank You to paulkoan For This Useful Post: | ||
![]() |
2010-07-23
, 02:22
|
Posts: 75 |
Thanked: 35 times |
Joined on Jun 2010
@ United States
|
#15
|
![]() |
2010-07-23
, 02:36
|
Posts: 422 |
Thanked: 244 times |
Joined on Feb 2008
|
#16
|
![]() |
2010-07-23
, 02:40
|
Posts: 75 |
Thanked: 35 times |
Joined on Jun 2010
@ United States
|
#17
|
![]() |
2010-07-23
, 03:04
|
Posts: 5 |
Thanked: 2 times |
Joined on Jul 2010
|
#18
|
![]() |
2010-07-23
, 03:07
|
Posts: 75 |
Thanked: 35 times |
Joined on Jun 2010
@ United States
|
#19
|
![]() |
2010-07-23
, 03:11
|
Posts: 5 |
Thanked: 2 times |
Joined on Jul 2010
|
#20
|
-r is the frame rate (using PAL default framerate)
-s is the size. For 16:9 content, this seems to be the best option from the wiki, as it keeps all the horizontal information and puts small borders at the top and bottom (16/9 = 800/448 approx)
-vcodec is the video codec to use - I use mpeg4
-qmin = minimum quantiser
-qmax = max quantiser
-crf = constant rate factor
These three settings influence the quality and bitrate in ways I do not fully get. crf may not even be applicable to mpeg4
-acodec is the audio codec, I am using the libfaac codec for aac audio
-ab audio bitrate
-ac audio channels (2=stereo)
-f container format - here I use mp4
"$mp4file" - the last parameter to ffmpeg is the output file.
Video transcoding is a complex topic and I don't even approximate an expert.
Servwise Advanced Hosting - Better, Faster, Smarter
Hum Consulting - IT and Marketing services to sing about
Last edited by paulkoan; 2010-07-23 at 02:33.