OLD | NEW |
1 \input texinfo @c -*- texinfo -*- | 1 \input texinfo @c -*- texinfo -*- |
2 | 2 |
3 @settitle FFmpeg FAQ | 3 @settitle FFmpeg FAQ |
4 @titlepage | 4 @titlepage |
5 @sp 7 | 5 @sp 7 |
6 @center @titlefont{FFmpeg FAQ} | 6 @center @titlefont{FFmpeg FAQ} |
7 @sp 3 | 7 @sp 3 |
8 @end titlepage | 8 @end titlepage |
9 | 9 |
10 | 10 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 @section How do I encode videos which play on the iPod? | 230 @section How do I encode videos which play on the iPod? |
231 | 231 |
232 @table @option | 232 @table @option |
233 @item needed stuff | 233 @item needed stuff |
234 -acodec libfaac -vcodec mpeg4 width<=320 height<=240 | 234 -acodec libfaac -vcodec mpeg4 width<=320 height<=240 |
235 @item working stuff | 235 @item working stuff |
236 4mv, title | 236 4mv, title |
237 @item non-working stuff | 237 @item non-working stuff |
238 B-frames | 238 B-frames |
239 @item example command line | 239 @item example command line |
240 ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags
+4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4 | 240 ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags
+4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 320x180 -metadata title=X output.mp4 |
241 @end table | 241 @end table |
242 | 242 |
243 @section How do I encode videos which play on the PSP? | 243 @section How do I encode videos which play on the PSP? |
244 | 244 |
245 @table @option | 245 @table @option |
246 @item needed stuff | 246 @item needed stuff |
247 -acodec libfaac -vcodec mpeg4 width*height<=76800 width%16=0 height%16=0 -ar 240
00 -r 30000/1001 or 15000/1001 -f psp | 247 -acodec libfaac -vcodec mpeg4 width*height<=76800 width%16=0 height%16=0 -ar 240
00 -r 30000/1001 or 15000/1001 -f psp |
248 @item working stuff | 248 @item working stuff |
249 4mv, title | 249 4mv, title |
250 @item non-working stuff | 250 @item non-working stuff |
251 B-frames | 251 B-frames |
252 @item example command line | 252 @item example command line |
253 ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -ar 24000 -mbd
2 -flags +4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -titl
e X -f psp output.mp4 | 253 ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -ar 24000 -mbd
2 -flags +4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -meta
data title=X -f psp output.mp4 |
254 @item needed stuff for H.264 | 254 @item needed stuff for H.264 |
255 -acodec libfaac -vcodec libx264 width*height<=76800 width%16=0? height%16=0? -ar
48000 -coder 1 -r 30000/1001 or 15000/1001 -f psp | 255 -acodec libfaac -vcodec libx264 width*height<=76800 width%16=0? height%16=0? -ar
48000 -coder 1 -r 30000/1001 or 15000/1001 -f psp |
256 @item working stuff for H.264 | 256 @item working stuff for H.264 |
257 title, loop filter | 257 title, loop filter |
258 @item non-working stuff for H.264 | 258 @item non-working stuff for H.264 |
259 CAVLC | 259 CAVLC |
260 @item example command line | 260 @item example command line |
261 ffmpeg -i input -acodec libfaac -ab 128kb -vcodec libx264 -b 1200kb -ar 48000 -m
bd 2 -coder 1 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp -flags l
oop -trellis 2 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 output.m
p4 | 261 ffmpeg -i input -acodec libfaac -ab 128kb -vcodec libx264 -b 1200kb -ar 48000 -m
bd 2 -coder 1 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -metadata title=X -f psp
-flags loop -trellis 2 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8
output.mp4 |
262 @item higher resolution for newer PSP firmwares, width<=480, height<=272 | 262 @item higher resolution for newer PSP firmwares, width<=480, height<=272 |
263 -vcodec libx264 -level 21 -coder 1 -f psp | 263 -vcodec libx264 -level 21 -coder 1 -f psp |
264 @item example command line | 264 @item example command line |
265 ffmpeg -i input -acodec libfaac -ab 128kb -ac 2 -ar 48000 -vcodec libx264 -level
21 -b 640kb -coder 1 -f psp -flags +loop -trellis 2 -partitions +parti4x4+parti
8x8+partp4x4+partp8x8+partb8x8 -g 250 -s 480x272 output.mp4 | 265 ffmpeg -i input -acodec libfaac -ab 128kb -ac 2 -ar 48000 -vcodec libx264 -level
21 -b 640kb -coder 1 -f psp -flags +loop -trellis 2 -partitions +parti4x4+parti
8x8+partp4x4+partp8x8+partb8x8 -g 250 -s 480x272 output.mp4 |
266 @end table | 266 @end table |
267 | 267 |
268 @section Which are good parameters for encoding high quality MPEG-4? | 268 @section Which are good parameters for encoding high quality MPEG-4? |
269 | 269 |
270 '-mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2', | 270 '-mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2', |
271 things to try: '-bf 2', '-flags qprd', '-flags mv0', '-flags skiprd'. | 271 things to try: '-bf 2', '-flags qprd', '-flags mv0', '-flags skiprd'. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 494 |
495 @section AVStream.r_frame_rate is wrong, it is much larger than the framerate. | 495 @section AVStream.r_frame_rate is wrong, it is much larger than the framerate. |
496 | 496 |
497 r_frame_rate is NOT the average framerate, it is the smallest framerate | 497 r_frame_rate is NOT the average framerate, it is the smallest framerate |
498 that can accurately represent all timestamps. So no, it is not | 498 that can accurately represent all timestamps. So no, it is not |
499 wrong if it is larger than the average! | 499 wrong if it is larger than the average! |
500 For example, if you have mixed 25 and 30 fps content, then r_frame_rate | 500 For example, if you have mixed 25 and 30 fps content, then r_frame_rate |
501 will be 150. | 501 will be 150. |
502 | 502 |
503 @bye | 503 @bye |
OLD | NEW |