[FFmpeg-user] Converting ProRes 422 to mp4

saikari.hakala at laposte.net saikari.hakala at laposte.net
Mon Feb 15 12:09:13 CET 2016


Hello, 
  
Thank you very much. I looked at the web page you suggest and tried the following command but got the following error: 
  
#################### COMMAND AND OUPUT 
  
c:\ffmpeg\bin\ffmpeg.exe -i test.mov -c:v libx264 -preset slow -crf 22 -c:a copy  test.mp4 

ffmpeg version N-78313-g6632802 Copyright (c) 2000-2016 the FFmpeg developers 
  built with gcc 5.3.0 (GCC) 
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av 
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab 
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- 
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l 
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab 
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en 
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena 
ble-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis -- 
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-lib 
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-d 
ecklink --enable-zlib 
  libavutil      55. 17.100 / 55. 17.100 
  libavcodec     57. 24.101 / 57. 24.101 
  libavformat    57. 24.100 / 57. 24.100 
  libavdevice    57.  0.101 / 57.  0.101 
  libavfilter     6. 28.100 /  6. 28.100 
  libswscale      4.  0.100 /  4.  0.100 
  libswresample   2.  0.101 /  2.  0.101 
  libpostproc    54.  0.100 / 54.  0.100 
Guessed Channel Layout for  Input Stream #0.0 : mono 
Guessed Channel Layout for  Input Stream #0.1 : mono 
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'CUSTOM_79.mov': 
  Metadata: 
    major_brand     : qt 
    minor_version   : 537199360 
    compatible_brands: qt 
    creation_time   : 2014-06-17 18:57:31 
    timecode        : 18:57:21:18 
  Duration: 01:17:21.24, start: 0.000000, bitrate: 120617 kb/s 
    Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels 
, s32 (24 bit), 1152 kb/s (default) 
    Metadata: 
      creation_time   : 2014-06-17 18:57:32 
      handler_name    : Linux Alias Data Handler 
    Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels 
, s32 (24 bit), 1152 kb/s (default) 
    Metadata: 
      creation_time   : 2014-06-17 18:57:32 
      handler_name    : Linux Alias Data Handler 
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) 
    Metadata: 
      rotate          : 0 
      creation_time   : 2014-06-17 18:57:32 
      handler_name    : Apple Alias Data Handler 
      reel_name       : 1 
      timecode        : 18:57:21:18 
    Stream #0:3(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, 
 118310 kb/s, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default) 
    Metadata: 
      creation_time   : 2014-06-19 07:59:19 
      handler_name    : Apple Alias Data Handler 
      encoder         : Apple ProRes 422 
      timecode        : 18:57:21:18 
No pixel format specified, yuv422p for H.264 encoding chosen. 
Use -pix_fmt yuv420p for compatibility with outdated media players. 
[libx264 @ 00687fe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX 
[libx264 @ 00687fe0] profile High 4:2:2, level 5.0, 4:2:2 8-bit 
[libx264 @ 00687fe0] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Cop 
yleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deb 
lock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m 
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro 
ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 i 
nterlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenec 
ut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin= 
0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 
[mp4 @ 00687100] Could not find tag for codec pcm_s24le in stream #1, codec not 
currently supported in container 
Output #0, mp4, to 'mp4/crf1/CUSTOM_79.mp4': 
  Metadata: 
    major_brand     : qt 
    minor_version   : 537199360 
    compatible_brands: qt 
    timecode        : 18:57:21:18 
    encoder         : Lavf57.24.100 
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 1 
920x1080, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default) 
    Metadata: 
      creation_time   : 2014-06-19 07:59:19 
      handler_name    : Apple Alias Data Handler 
      timecode        : 18:57:21:18 
      encoder         : Lavc57.24.101 libx264 
    Side data: 
      unknown side data type 10 (24 bytes) 
    Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono (24 b 
it), 1152 kb/s (default) 
    Metadata: 
      creation_time   : 2014-06-17 18:57:32 
      handler_name    : Linux Alias Data Handler 
Stream mapping: 
  Stream #0:3 -> #0:0 (prores (native) -> h264 (libx264)) 
  Stream #0:0 -> #0:1 (copy) 
Could not write header for output file #0 (incorrect codec parameters ?): Invali 
d argument 
############################ END OUTPUT 
  
Is there something I'm doing wrong? 
Many thanks 
  
Saikari 
  
  
----- Mail original -----

De: "Dave Rice" <dave at dericed.com> 
À: "FFmpeg user questions" <ffmpeg-user at ffmpeg.org> 
Envoyé: Vendredi 12 Février 2016 19:53:09 
Objet: Re: [FFmpeg-user] Converting ProRes 422 to mp4 


> On Feb 12, 2016, at 11:02 AM, saikari.hakala at laposte.net wrote: 
> 
> Hello, 
> 
> I have a mov ProRes 422 video file (with no audio) that I need to convert to mp4 without losing quality. 

To not lose quality you'd need to use a lossless encoding with mp4, I think h264 is the only one supported in mp4. If the ProRes is 10 bit, you'd like to compile x264 as 10 bit and then configuration ffmpeg to use it. Then to encode h264 losslessly use -crf 0 -qp 0. There's a section on lossless h264 here: https://trac.ffmpeg.org/wiki/Encode/H.264 <https://trac.ffmpeg.org/wiki/Encode/H.264>. 
Dave Rice 

> I have tried to do this using the qscale option, but a warning appears saying qscale option is ignored. 
> Could anyone give an example command in ffmpeg to achieve this? 
> I am running ffmpeg on windows. The version is: 
> 
> ffmpeg version N-71418-g818e889 Copyright (c) 2000-2015 the FFmpeg developers 
> built with gcc 4.9.2 (GCC) 
> 
> Thank you very much 
> 
> Saikari 
> _______________________________________________ 
> ffmpeg-user mailing list 
> ffmpeg-user at ffmpeg.org 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

_______________________________________________ 
ffmpeg-user mailing list 
ffmpeg-user at ffmpeg.org 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 



More information about the ffmpeg-user mailing list