[FFmpeg-trac] #1523(undetermined:new): automatic set a default -slices value for ffv1 version 3

FFmpeg trac at avcodec.org
Sat Jul 14 13:43:24 CEST 2012


#1523: automatic set a default -slices value for ffv1 version 3
-------------------------------------+-------------------------------------
             Reporter:  dericed      |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
  ffv1,threads                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dericed):

 It worked.

 Here's with no -slices expressed.


 {{{
 ffmpeg started on 2012-07-14 at 07:26:01
 Report written to "ffmpeg-20120714-072601.log"
 Command line:
 ffmpeg -report -f lavfi -t 1 -i testsrc -c:v ffv1 -g 1 -level 3 -strict
 experimental -y out.mov
 ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
   built on Jul 13 2012 22:09:29 with gcc 4.2.1 (Apple Inc. build 5666)
 (dot 3)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
 --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables
 --enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-
 libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-
 libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libass --enable-libvo-aacenc --enable-
 libopenjpeg
   libavutil      51. 64.100 / 51. 64.100
   libavcodec     54. 37.100 / 54. 37.100
   libavformat    54. 16.104 / 54. 16.104
   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
   libpostproc    52.  0.100 / 52.  0.100
 [Parsed_testsrc_0 @ 0x7fdf5bc18560] size:320x240 rate:25/1
 duration:-1.000000 sar:1/1
 [lavfi @ 0x7fdf5c04e200] All info found
 [lavfi @ 0x7fdf5c04e200] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, lavfi, from 'testsrc':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0, 1, 1/25: Video: rawvideo (RGB[24] / 0x18424752), rgb24,
 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 -t is not an input option, keeping it for the next output; consider fixing
 your command line.
 [buffer @ 0x7fdf5bc19c40] Setting entry with key 'video_size' to value
 '320x240'
 [buffer @ 0x7fdf5bc19c40] Setting entry with key 'pix_fmt' to value '2'
 [buffer @ 0x7fdf5bc19c40] Setting entry with key 'time_base' to value
 '1/25'
 [buffer @ 0x7fdf5bc19c40] Setting entry with key 'pixel_aspect' to value
 '1/1'
 [buffer @ 0x7fdf5bc19c40] Setting entry with key 'sws_param' to value
 'flags=2'
 [buffer @ 0x7fdf5bc19c40] Setting entry with key 'frame_rate' to value
 '25/1'
 [graph 0 input from stream 0:0 @ 0x7fdf5bc19d00] w:320 h:240 pixfmt:rgb24
 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
 [format @ 0x7fdf5bc1a3a0] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [auto-inserted scaler 0 @ 0x7fdf5bc1a720] w:320 h:240 fmt:rgb24 sar:1/1 ->
 w:320 h:240 fmt:bgr0 sar:1/1 flags:0x4
 [ffv1 @ 0x7fdf5c054400] detected 2 logical cores
 [mov @ 0x7fdf5c055000] Using MS style video codec tag, the file may be
 unplayable!
 Output #0, mov, to 'out.mov':
   Metadata:
     encoder         : Lavf54.16.104
     Stream #0:0, 0, 1/25: Video: ffv1, bgr0, 320x240 [SAR 1:1 DAR 4:3],
 q=2-31, 200 kb/s, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo -> ffv1)
 Press [q] to stop, [?] for help
 No more output streams to write to, finishing.
 frame=   25 fps=0.0 q=0.0 Lsize=     117kB time=00:00:01.00 bitrate=
 956.6kbits/s
 video:116kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.693918%

 }}}

 and here's with a non-default slices expressed:


 {{{
 ffmpeg started on 2012-07-14 at 07:31:39
 Report written to "ffmpeg-20120714-073139.log"
 Command line:
 ffmpeg -report -f lavfi -t 1 -i testsrc -c:v ffv1 -g 1 -level 3 -strict
 experimental -slices 12 -y out_12.mov
 ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
   built on Jul 13 2012 22:09:29 with gcc 4.2.1 (Apple Inc. build 5666)
 (dot 3)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
 --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables
 --enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-
 libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-
 libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libass --enable-libvo-aacenc --enable-
 libopenjpeg
   libavutil      51. 64.100 / 51. 64.100
   libavcodec     54. 37.100 / 54. 37.100
   libavformat    54. 16.104 / 54. 16.104
   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
   libpostproc    52.  0.100 / 52.  0.100
 [Parsed_testsrc_0 @ 0x7f99e8c185a0] size:320x240 rate:25/1
 duration:-1.000000 sar:1/1
 [lavfi @ 0x7f99e904e200] All info found
 [lavfi @ 0x7f99e904e200] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, lavfi, from 'testsrc':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0, 1, 1/25: Video: rawvideo (RGB[24] / 0x18424752), rgb24,
 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 -t is not an input option, keeping it for the next output; consider fixing
 your command line.
 [buffer @ 0x7f99e8c19d60] Setting entry with key 'video_size' to value
 '320x240'
 [buffer @ 0x7f99e8c19d60] Setting entry with key 'pix_fmt' to value '2'
 [buffer @ 0x7f99e8c19d60] Setting entry with key 'time_base' to value
 '1/25'
 [buffer @ 0x7f99e8c19d60] Setting entry with key 'pixel_aspect' to value
 '1/1'
 [buffer @ 0x7f99e8c19d60] Setting entry with key 'sws_param' to value
 'flags=2'
 [buffer @ 0x7f99e8c19d60] Setting entry with key 'frame_rate' to value
 '25/1'
 [graph 0 input from stream 0:0 @ 0x7f99e8c19e00] w:320 h:240 pixfmt:rgb24
 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
 [format @ 0x7f99e8c1a460] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [auto-inserted scaler 0 @ 0x7f99e8c1a7e0] w:320 h:240 fmt:rgb24 sar:1/1 ->
 w:320 h:240 fmt:bgr0 sar:1/1 flags:0x4
 [ffv1 @ 0x7f99e9054400] detected 2 logical cores
 [mov @ 0x7f99e9055000] Using MS style video codec tag, the file may be
 unplayable!
 Output #0, mov, to 'out_12.mov':
   Metadata:
     encoder         : Lavf54.16.104
     Stream #0:0, 0, 1/25: Video: ffv1, bgr0, 320x240 [SAR 1:1 DAR 4:3],
 q=2-31, 200 kb/s, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo -> ffv1)
 Press [q] to stop, [?] for help
 No more output streams to write to, finishing.
 frame=   25 fps=0.0 q=0.0 Lsize=     127kB time=00:00:01.00
 bitrate=1041.0kbits/s
 video:126kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.637253%

 }}}

 However neither ffmpeg during encoding, nor ffprobe, could report on the
 slice count used. In order to verify the slice count of the encoding I
 used zzuf to corrupt the file and looked for the slices patterns during
 playback. I'll add another ticket to report on slices and version of ffv1
 in ffprobe.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1523#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list