[FFmpeg-user] Need help with converting a h.264 3gp file to h.263 3gp

Michael Bradshaw mbradshaw at sorensonmedia.com
Fri Jul 20 21:02:56 CEST 2012


On Fri, Jul 20, 2012 at 12:51 PM, Mani Goswami <mani.goswami at gmail.com> wrote:
> Here is the complete console output:
>
> [manig at littlefamous-dr movies]$ sudo ffmpeg -i
> video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp
> -b:v 64k -vcodec h263 -acodec aac  -strict experimental newgph263.3gp
> Password:
> ffmpeg version N-42690-gb34ce5a Copyright (c) 2000-2012 the FFmpeg
> developers
>   built on Jul 20 2012 16:34:40 with gcc 4.1.2 (GCC) 20070626 (Red Hat
> 4.1.2-14)
>   configuration:
>   libavutil      51. 65.100 / 51. 65.100
>   libavcodec     54. 42.100 / 54. 42.100
>   libavformat    54. 17.101 / 54. 17.101
>   libavdevice    54.  1.100 / 54.  1.100
>   libavfilter     3.  2.100 /  3.  2.100
>   libswscale      2.  1.100 /  2.  1.100
>   libswresample   0. 15.100 /  0. 15.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> 'video_9BtjFG12DsMs1dtY.rSjshKA7AUtRJKTp6dbFubOxk92gcYmcNEeSf1ZV2EPZehAg.tuopOx_wI-_0.3gp':
>   Metadata:
>     major_brand     : 3gp5
>     minor_version   : 0
>     compatible_brands: 3gp53gp4mp41mp42isom
>     creation_time   : 1942-05-31 01:31:41
>   Duration: 00:01:10.33, start: 0.000000, bitrate: 88 kb/s
>     Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16,
> 15 kb/s
>     Metadata:
>       creation_time   : 1942-05-31 01:31:41
>       handler_name    : Apple Sound Media Handler
>     Stream #0:1(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
> yuv420p, 240x302 [SAR 1:1 DAR 120:151], 65 kb/s, SAR 12:11 DAR 1440:1661,
> 10 fps, 10 tbr, 10 tbn, 1k tbc
>     Metadata:
>       creation_time   : 1942-05-31 01:31:41
>       handler_name    : Apple Video Media Handler
>     Stream #0:2(und): Data: none (rtp  / 0x20707472)
>     Metadata:
>       creation_time   : 1942-05-30 00:34:36
>       handler_name    : GPAC ISO Hint Handler
>     Stream #0:3(und): Data: none (rtp  / 0x20707472)
>     Metadata:
>       creation_time   : 1942-05-30 00:34:36
>       handler_name    : GPAC ISO Hint Handler
> File 'newgph263.3gp' already exists. Overwrite ? [y/N] y
> w/h must be a multiple of 4

Console output says w/h needs to be a multiple of 4. Your height is
302. You either need to a) crop it down to 300, b) pad it to 304, or
c) squish/stretch it to 300 or 304 by setting -s 240x300 (or -s
240x304).

--Michael


More information about the ffmpeg-user mailing list