[FFmpeg-user] Help converting .mov and .mp4 to .mp4 and playing in JWPlayer5

Andrew Rietbergen andrew at reflexionsdata.com
Mon Jan 6 15:56:53 CET 2014


Hello ffmpeg-user,

I'm having some trouble converting some files (.mp4 and .mov) to .mp4 and subsequently trying to play the file with JWPlayer 5. The most common side effect I get is that the file converts and an file is created, but the audio is there, but there is no video. I need some guidance.

I noticed the
"
No pixel format specified, rgb24 for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
"
in the output, when I use the -pix_fmt yuv420p parameter, I get :
"Incompatible pixel format 'yuv420p' for codec 'libx264rgb', auto-selecting format 'bgr24'"

Here is the command I am attempting to run some directory names changed:

/usr/bin/ffmpeg -i '/var/www/vhosts/[HOST_NAME]/public/htdocs/uploads/sample.mov' -codec:v libx264rgb -codec:a libfdk_aac -y -s 640x360 -b:v 345k '/var/www/vhosts/[HOST_NAME]/public/htdocs/uploads/sample.mp4' 2> '/var/www/vhosts/[HOST_NAME]/logs/ffmpeg/01-06-2014_09-08-34_mp4.log'

Here is the output:

ffmpeg version git-2013-12-19-a33c7dd Copyright (c) 2000-2013 the FFmpeg developers
  built on Dec 19 2013 17:29:21 with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2)
  configuration: --prefix=/usr/bin/ffmpeg_build --extra-cflags=-I/usr/bin/ffmpeg_build/include --extra-ldflags=-L/usr/bin/ffmpeg_build/lib --bindir=/usr/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libtheora
  libavutil      52. 58.101 / 52. 58.101
  libavcodec     55. 45.102 / 55. 45.102
  libavformat    55. 22.100 / 55. 22.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  0.100 /  4.  0.100
  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 '/var/www/vhosts/passportbeta.interexchange.org/public/htdocs/uploads/sample.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2005-08-18 23:51:16
    copyright       : © Apple Computer, Inc. 2005
    copyright-eng   : © Apple Computer, Inc. 2005
    title           : QuickTime Sample Movie
    title-eng       : QuickTime Sample Movie
  Duration: 00:00:04.83, start: 0.000000, bitrate: 92 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 8000 Hz, stereo, fltp, 18 kb/s (default)
    Metadata:
      creation_time   : 2005-08-18 23:51:16
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 192x242, 66 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      creation_time   : 2005-08-18 23:51:16
      handler_name    : Apple Alias Data Handler
No pixel format specified, rgb24 for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264rgb @ 0x2030ae0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264rgb @ 0x2030ae0] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264rgb @ 0x2030ae0] 264 - core 140 r2 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=345 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/var/www/vhosts/passportbeta.interexchange.org/public/htdocs/uploads/sample.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    title-eng       : QuickTime Sample Movie
    copyright       : © Apple Computer, Inc. 2005
    copyright-eng   : © Apple Computer, Inc. 2005
    title           : QuickTime Sample Movie
    encoder         : Lavf55.22.100
    Stream #0:0(eng): Video: h264 (libx264rgb) ([33][0][0][0] / 0x0021), rgb24, 640x360, q=-1--1, 345 kb/s, 15360 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2005-08-18 23:51:16
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 8000 Hz, stereo, s16, 23 kb/s (default)
    Metadata:
      creation_time   : 2005-08-18 23:51:16
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:1 -> #0:0 (h264 -> libx264rgb)
  Stream #0:0 -> #0:1 (aac -> libfdk_aac)
Press [q] to stop, [?] for help
frame=  145 fps= 22 q=33.0 Lsize=     280kB time=00:00:04.86 bitrate= 470.7kbits/s    
video:261kB audio:15kB subtitle:0 global headers:0kB muxing overhead 1.291398%
[libx264rgb @ 0x2030ae0] frame I:1     Avg QP:20.17  size:    92
[libx264rgb @ 0x2030ae0] frame P:57    Avg QP:17.04  size:  3660
[libx264rgb @ 0x2030ae0] frame B:87    Avg QP:19.21  size:   665
[libx264rgb @ 0x2030ae0] consecutive B-frames: 12.4% 19.3% 10.3% 57.9%
[libx264rgb @ 0x2030ae0] mb I  I16..4:  0.1% 99.9%  0.0%
[libx264rgb @ 0x2030ae0] mb P  I16..4:  2.1%  3.7%  0.7%  P16..4:  8.7%  5.7%  2.8%  0.0%  0.0%    skip:76.3%
[libx264rgb @ 0x2030ae0] mb B  I16..4:  0.0%  0.1%  0.1%  B16..8:  4.9%  0.6%  0.1%  direct: 0.6%  skip:93.5%  L0:24.5% L1:66.8% BI: 8.7%
[libx264rgb @ 0x2030ae0] final ratefactor: 24.07
[libx264rgb @ 0x2030ae0] 8x8 transform intra:65.0% inter:74.3%
[libx264rgb @ 0x2030ae0] coded y,u,v intra: 22.4% 28.4% 29.3% inter: 2.6% 3.7% 4.1%
[libx264rgb @ 0x2030ae0] i16 v,h,dc,p: 32% 50%  4% 14%
[libx264rgb @ 0x2030ae0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 32% 51%  1%  2%  1%  3%  1%  2%
[libx264rgb @ 0x2030ae0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 45% 22%  2%  4%  2%  5%  2%  5%
[libx264rgb @ 0x2030ae0] Weighted P-Frames: Y:1.8% UV:1.8%
[libx264rgb @ 0x2030ae0] ref P L0: 70.6% 13.7% 11.5%  4.2%
[libx264rgb @ 0x2030ae0] ref B L0: 86.9% 12.3%  0.8%
[libx264rgb @ 0x2030ae0] ref B L1: 97.2%  2.8%
[libx264rgb @ 0x2030ae0] kb/s:441.24












More information about the ffmpeg-user mailing list