[FFmpeg-trac] #4163(undetermined:closed): Encodes incompatible videos from similar picture and audio files

FFmpeg trac at avcodec.org
Thu Dec 11 20:14:24 CET 2014


#4163: Encodes incompatible videos from similar picture and audio files
-------------------------------------+-------------------------------------
             Reporter:  paheikki     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mjpeg        |               Resolution:  invalid
  aspect                             |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by paheikki):

 Thanks. As discussed above, I did not get the confirmation that U104.mp4
 is the file without aspect ratio info, but I suspect it is. Below, please
 find the console output of U104.mp4 and V105.mp4 and the latter should be
 ok. I have "-vf setsar=1" defined but it has no effect whatsoever. Is it
 defined in the wrong place in the command line or something like that?

 C:\Bin\FFMpeg\Bin\Ffmpeg.exe -loop 1 -i Kuva.jpg -i
 "C:/Users/käyttäjä/AppData/Local/Temp/mphTemp.mp3" -acodec copy -pix_fmt
 yuv420p -c:v libx264 -profile:v baseline -tune stillimage -vf setsar=1 -vf
 subtitles="'D\:/Temp/U104.srt'" -shortest D:/Temp/WORK/U104.mp4

 ffmpeg version N-68044-g9f9440b Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Nov 27 2014 03:04:01 with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-
 decklink --enable-zlib
   libavutil      54. 15.100 / 54. 15.100
   libavcodec     56. 13.100 / 56. 13.100
   libavformat    56. 15.100 / 56. 15.100
   libavdevice    56.  3.100 / 56.  3.100
   libavfilter     5.  2.103 /  5.  2.103
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, image2, from 'Kuva.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: 10829 kb/s
     Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown),
 640x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
 [mp3 @ 02947960] Estimating duration from bitrate, this may be inaccurate
 Input #1, mp3, from 'C:/Users/käyttäjä/AppData/Local/Temp/mphTemp.mp3':
   Duration: 00:00:02.80, start: 0.000000, bitrate: 256 kb/s
     Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
 [swscaler @ 0696ee80] deprecated pixel format used, make sure you did set
 range correctly
 [libx264 @ 0033da40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX
 [libx264 @ 0033da40] profile Constrained Baseline, level 3.0
 [libx264 @ 0033da40] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec
 - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
 cabac=0 ref=3 deblock=1:-3:-3 analyse=0x1:0x111 me=hex subme=7 psy=1
 psy_rd=2.00:0.70 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-4 threads=12
 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250
 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1
 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.20
 Output #0, mp4, to 'D:/Temp/WORK/U104.mp4':
   Metadata:
     encoder         : Lavf56.15.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 640x480, q=-1--1, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.13.100 libx264
     Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256
 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
   Stream #1:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  124 fps=0.0 q=-1.0 Lsize=     109kB time=00:00:02.84 bitrate=
 313.3kbits/s
 video:18kB audio:87kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 3.075183%
 [libx264 @ 0033da40] frame I:1     Avg QP:14.30  size: 11853
 [libx264 @ 0033da40] frame P:123   Avg QP:16.31  size:    73
 [libx264 @ 0033da40] mb I  I16..4: 73.4%  0.0% 26.6%
 [libx264 @ 0033da40] mb P  I16..4:  0.2%  0.0%  0.1%  P16..4:  0.7%  0.1%
 0.0%  0.0%  0.0%    skip:98.9%
 [libx264 @ 0033da40] coded y,uvDC,uvAC intra: 19.0% 36.6% 15.8% inter:
 0.1% 0.5% 0.0%
 [libx264 @ 0033da40] i16 v,h,dc,p: 68% 27%  4%  1%
 [libx264 @ 0033da40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 18% 16%  1%  1%
 1%  3%  0%  3%
 [libx264 @ 0033da40] i8c dc,h,v,p: 41% 16% 42%  1%
 [libx264 @ 0033da40] ref P L0: 94.6%  2.8%  2.5%
 [libx264 @ 0033da40] kb/s:33.67

 -------------

 C:\Bin\FFMpeg\Bin\Ffmpeg.exe -loop 1 -i Kuva.jpg -i
 "C:/Users/käyttäjä/AppData/Local/Temp/mphTemp.mp3" -acodec copy -pix_fmt
 yuv420p -c:v libx264 -profile:v baseline -tune stillimage -vf setsar=1 -vf
 subtitles="'D\:/Temp/V105.srt'" -shortest D:/Temp/WORK/V105.mp4

 ffmpeg version N-68044-g9f9440b Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Nov 27 2014 03:04:01 with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-
 decklink --enable-zlib
   libavutil      54. 15.100 / 54. 15.100
   libavcodec     56. 13.100 / 56. 13.100
   libavformat    56. 15.100 / 56. 15.100
   libavdevice    56.  3.100 / 56.  3.100
   libavfilter     5.  2.103 /  5.  2.103
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, image2, from 'Kuva.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: 8112 kb/s
     Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown),
 640x480 [SAR 100:100 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 25 tbc
 [mp3 @ 04ff6920] Estimating duration from bitrate, this may be inaccurate
 Input #1, mp3, from 'C:/Users/käyttäjä/AppData/Local/Temp/mphTemp.mp3':
   Duration: 00:00:03.06, start: 0.000000, bitrate: 256 kb/s
     Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
 [swscaler @ 04e8fea0] deprecated pixel format used, make sure you did set
 range correctly
 [libx264 @ 0298da40] using SAR=1/1
 [libx264 @ 0298da40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX
 [libx264 @ 0298da40] profile Constrained Baseline, level 3.0
 [libx264 @ 0298da40] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec
 - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
 cabac=0 ref=3 deblock=1:-3:-3 analyse=0x1:0x111 me=hex subme=7 psy=1
 psy_rd=2.00:0.70 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-4 threads=12
 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250
 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1
 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.20
 Output #0, mp4, to 'D:/Temp/WORK/V105.mp4':
   Metadata:
     encoder         : Lavf56.15.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc56.13.100 libx264
     Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256
 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
   Stream #1:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  130 fps=0.0 q=-1.0 Lsize=     119kB time=00:00:03.08 bitrate=
 317.0kbits/s
 video:20kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 2.965394%
 [libx264 @ 0298da40] frame I:1     Avg QP:13.21  size: 14016
 [libx264 @ 0298da40] frame P:129   Avg QP:14.66  size:    66
 [libx264 @ 0298da40] mb I  I16..4: 73.3%  0.0% 26.8%
 [libx264 @ 0298da40] mb P  I16..4:  0.2%  0.0%  0.1%  P16..4:  0.4%  0.0%
 0.0%  0.0%  0.0%    skip:99.2%
 [libx264 @ 0298da40] coded y,uvDC,uvAC intra: 19.7% 37.0% 16.2% inter:
 0.0% 0.3% 0.0%
 [libx264 @ 0298da40] i16 v,h,dc,p: 76% 13% 11%  0%
 [libx264 @ 0298da40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 17% 29%  3%  2%
 1%  3%  1%  4%
 [libx264 @ 0298da40] i8c dc,h,v,p: 62%  9% 29%  1%
 [libx264 @ 0298da40] ref P L0: 99.3%  0.6%  0.1%
 [libx264 @ 0298da40] kb/s:34.67

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4163#comment:21>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list