[FFmpeg-user] converting .mov(MJPEG) to web optimized .mp4(h264)

Reindl Harald h.reindl at thelounge.net
Mon Jun 30 13:13:15 CEST 2014


Am 30.06.2014 13:07, schrieb Amila Perera:
> Sorry... It was a typo in the mail. I actually used 'profile' in the
> command.
> Please have a look at my output.
> The bold line indicates the error.
> Thank you in advance.

x264 [error]: baseline profile doesn't support 4:2:2
*[libx264 @ 0x8a41580] Error setting profile baseline.*
[libx264 @ 0x8a41580] Possible profiles: baseline main high high10 high422

no idea - maybe you are using a stoneold x264 library
i am building a own version and link it static to
last years to avoid dependecy-chains with other software

>  % ffmpeg -i input.mov -profile:v 'baseline' -crf 35.0 -vcodec libx264
> -acodec libvo_aacenc -ar 48000 -b:a 128k -coder 1 -rc_lookahead 50 -threads
> 0 lmno.mp4
> ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Feb 25 2014 08:27:08 with gcc 4.8.2 (GCC) 20131212 (Red Hat
> 4.8.2-7)
>   configuration: --prefix=/usr --bindir=/usr/bin
> --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib
> --mandir=/usr/share/man --arch=i686 --optflags='-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686
> -mtune=atom -fasynchronous-unwind-tables' --enable-bzlib
> --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass
> --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack
> --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal
> --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse
> --enable-libschroedinger --enable-libsoxr --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx
> --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter
> --enable-avresample --enable-postproc --enable-pthreads --disable-static
> --enable-shared --enable-gpl --disable-debug --disable-stripping
> --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect
>   libavutil      52. 48.101 / 52. 48.101
>   libavcodec     55. 39.101 / 55. 39.101
>   libavformat    55. 19.104 / 55. 19.104
>   libavdevice    55.  5.100 / 55.  5.100
>   libavfilter     3. 90.100 /  3. 90.100
>   libavresample   1.  1.  0 /  1.  1.  0
>   libswscale      2.  5.101 /  2.  5.101
>   libswresample   0. 17.104 /  0. 17.104
>   libpostproc    52.  3.100 / 52.  3.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
>   Metadata:
>     major_brand     : qt
>     minor_version   : 538052608
>     compatible_brands: qt  MTEC
>     creation_time   : 2014-03-28 03:22:20
>   Duration: 00:00:10.03, start: 0.000000, bitrate: 26948 kb/s
>     Stream #0:0(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc),
> 1920x1080, 26932 kb/s, 30.10 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
>     Metadata:
>       creation_time   : 2014-03-28 03:22:20
>     Stream #0:1(eng): Subtitle: mov_text (tx3g / 0x67337874), 1920x64, 9
> kb/s (default)
>     Metadata:
>       creation_time   : 2014-03-28 03:22:20
> Codec AVOption b (set bitrate (in bits/s)) specified for output file #0
> (lmno.mp4) has not been used for any stream. The most likely reason is
> either wrong type (e.g. a video option with no video streams) or that it is
> a private option of some encoder which was not actually used for any stream.
> Codec AVOption rc_lookahead (Number of frames to look ahead for alternate
> reference frame selection) specified for output file #0 (lmno.mp4) has not
> been used for any stream. The most likely reason is either wrong type (e.g.
> a video option with no video streams) or that it is a private option of
> some encoder which was not actually used for any stream.
> File 'lmno.mp4' already exists. Overwrite ? [y/N] y
> No pixel format specified, yuvj422p for H.264 encoding chosen.
> Use -pix_fmt yuv420p for compatibility with outdated media players.
> x264 [error]: baseline profile doesn't support 4:2:2
> *[libx264 @ 0x8a41580] Error setting profile baseline.*
> [libx264 @ 0x8a41580] Possible profiles: baseline main high high10 high422
> high444
> Output #0, mp4, to 'lmno.mp4':
>   Metadata:
>     major_brand     : qt
>     minor_version   : 538052608
>     compatible_brands: qt  MTEC
>     Stream #0:0(eng): Video: h264, yuvj422p, 1920x1080, q=-1--1, 90k tbn,
> 29.97 tbc (default)
>     Metadata:
>       creation_time   : 2014-03-28 03:22:20
> Stream mapping:
>   Stream #0:0 -> #0:0 (mjpeg -> libx264)
> --------
> 
> 
> On Mon, Jun 30, 2014 at 4:23 PM, Reindl Harald <h.reindl at thelounge.net>
> wrote:
> 
>>
>>
>> Am 30.06.2014 12:50, schrieb Amila Perera:
>>> On Mon, Jun 30, 2014 at 4:02 PM, Reindl Harald <h.reindl at thelounge.net>
>>> wrote:
>>>
>>>> Array
>>>> (
>>>>     [calls] => Array
>>>>         (
>>>>             [video] => /usr/local/bin/ffmpeg -i
>>>> '/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -ab '96k' -bt '64k'
>>>> -ar '44100' -ac '2' -r '25' -vf
>>>> 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -async '1' -maxrate
>>>> '544k' -f
>>>> 'ipod' -vcodec 'libx264' -acodec 'aac' -strict 'experimental' -cutoff
>>>> '15000' -flags '+loop+mv4' -cmp '256'
>>>> -partitions '+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8' -me_method
>>>> 'hex' -me_range '16' -subq '9' -trellis '1'
>>>> -refs '5' -g '250' -keyint_min '25' -sc_threshold '40' -i_qfactor '0.71'
>>>> -qcomp '0.6' -qmin '0' -qmax '69' -qdiff
>>>> '4' -bufsize '2M' -rc_lookahead '50' -threads '4' -movflags '+faststart'
>>>> -profile:v 'baseline' -coder '0' -bf '0'
>>>> -wpredp '0' -metadata 'creation_time=2014-06-24T16:41:49'
>>>> '/autotest/parts/ffmpeg/targets/test.x264.mp4' >>
>>>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>>
>>>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
>>>>             [qt_faststart] => native
>>>>             [thumb] => /usr/local/bin/ffmpeg -i
>>>> '/autotest/parts/ffmpeg/demo.mp4' -y -r '25' -f 'mjpeg' -vframes
>>>> '1' -ss '5' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000'
>>>> '/autotest/parts/ffmpeg/targets/images/test.x264.mp4.jpg' >>
>>>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>>
>>>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
>>>>         )
>>>>
>>>>     [result] => 1
>>>>     [status] => Video '/autotest/parts/ffmpeg/demo.mp4' wurde in
>>>> '/autotest/parts/ffmpeg/targets/test.x264.mp4'
>>>> konvertiert
>>>>     [status_thumb] => Thumbnail
>>>> '/autotest/parts/ffmpeg/targets/images/test.x264.mp4.jpg' wurde erstellt
>>>> (Sekunde: 5)
>>>>     [status_extended] => Array
>>>>         (
>>>>         )
>>>>
>>>>     [flvtool2] => 0
>>>>     [qt_faststart] => 1
>>>>     [duration] => 00:00:20
>>>>     [twopass] => 0
>>>> )
>>>>
>>>
>>> Thank you for the reply.
>>>
>>> I am using version 2.1.4-1 on Fedora, but it doesn't seem to identify
>>> "-profole:v baseline"
>>
>> no wonder if you really typed "profole"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140630/920c8a2a/attachment.asc>


More information about the ffmpeg-user mailing list