On creating PSP/walkman video files using ffmpeg

Using ffmpeg to Transcode Videos

Here is an example of how to use ffmpeg to transcode a short mpg video to a PSP compatible
MP4 file.

ffmpeg -y -i cnn.mpg -title “cnn” -timestamp “2005-04-08 03:12:36” -bitexact -vcodec
xvid -s 320×240 -r 29.97 -b 1500 -acodec aac -ac 2 -ar 24000 -ab 64 -f psp -muxvb 768
Input #0, mpegts, from ‘d:\avh\My Videos\cnn.mpg’:
Duration: 00:00:28.2, start: 0.350000, bitrate: 6386 kb/s
Stream #0.0[0x3e9]: Video: mpeg2video, 480×480, 29.97 fps
Stream #0.1[0x3ea]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Output #0, psp, to ‘j:/MP_ROOT/100MNV01/M4V80113.mp4’:
Stream #0.0: Video: xvid, 320×240, 29.97 fps, q=2-31, 1500 kb/s
Stream #0.1: Audio: aac, 24000 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
frame= 859 q=2.0 Lsize= 5133kB time=28.4 bitrate=1479.7kbits/s
video:3020kB audio:439kB global headers:0kB muxing overhead 48.367791%

Using ffmpeg to Create Thumbnails

Here is an example of how to use ffmpeg to extract a thumbnail image from a video.

ffmpeg.exe -y -i cnn.mpg -f singlejpeg -ss 5 -vframes 1 -s 160×120 -an M4V10005.THM

Can you tell I just copy/pasted this from a google search? 😛

~ by praetor on April 28, 2008.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: