[FFmpeg-trac] #2478(undetermined:new): PTS: DTS: invalid, clipping with pcm audio codec

FFmpeg trac at avcodec.org
Tue Apr 23 18:10:49 CEST 2013


#2478: PTS: DTS: invalid, clipping with pcm audio codec
-------------------------------------+-------------------------------------
             Reporter:  MrNice       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by MrNice):

 I did other try to confirm the PTS/DST invalid, clipping error.

 $ ffmpeg -debug 1 -f v4l2 -channel 1 -input_format yuyv422 -i /dev/video0
 -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -map 0:v -map 1:a -c:a
 pcm_s16le -c:v ffv1 /Store3/Test/pcm_ffv1_`date +%m%d_%H%M`.avi
 ffmpeg version N-52061-g8137ea3 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Apr 13 2013 21:10:51 with gcc 4.4.7 (GCC) 20120313 (Red Hat
 4.4.7-3)
   configuration: --prefix=/opt/ffmpeg-opt/usr --enable-shared
 --bindir=/opt/ffmpeg-opt/usr/bin --datadir=/opt/ffmpeg-opt/usr/share
 /ffmpeg-opt --incdir=/opt/ffmpeg-opt/usr/include/ffmpeg-opt --libdir=/opt
 /ffmpeg-opt/usr/lib64 --mandir=/opt/ffmpeg-opt/usr/share/man
 --shlibdir=/opt/ffmpeg-opt/usr/lib64 --arch=x86_64 --optflags='-O2 -g'
 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
 --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-
 libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-
 libopus --enable-libpulse --enable-libschroedinger --enable-libspeex
 --enable-libtheora --enable-libvorbis --enable-libx264 --disable-libv4l2
 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc
 --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-
 debug --disable-stripping --build-suffix=1 --disable-doc --enable-runtime-
 cpudetect
   libavutil      52. 26.100 / 52. 26.100
   libavcodec     55.  2.100 / 55.  2.100
   libavformat    55.  2.100 / 55.  2.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 53.101 /  3. 53.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100
  matched as AVOption 'debug' with argument '1'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'v4l2'.
 Reading option '-channel' ... matched as AVOption 'channel' with argument
 '1'.
 Reading option '-input_format' ... matched as AVOption 'input_format' with
 argument 'yuyv422'.
 Reading option '-i' ... matched as input file with argument '/dev/video0'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'alsa'.
 Reading option '-ac' ... matched as option 'ac' (set number of audio
 channels) with argument '2'.
 Reading option '-channel_layout' ... matched as option 'channel_layout'
 (set channel layout) with argument 'stereo'.
 Reading option '-i' ... matched as input file with argument 'hw:0,0'.
 Reading option '-map' ... matched as option 'map' (set input stream
 mapping) with argument '0:v'.
 Reading option '-map' ... matched as option 'map' (set input stream
 mapping) with argument '1:a'.
 Reading option '-c:a' ... matched as option 'c' (codec name) with argument
 'pcm_s16le'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'ffv1'.
 Reading option '/Store3/Test/pcm_ffv1_0423_1621.avi' ... matched as output
 file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Successfully parsed a group of options.
 Parsing a group of options: input file /dev/video0.
 Applying option f (force format) with argument v4l2.
 Successfully parsed a group of options.
 Opening an input file: /dev/video0.
 [video4linux2,v4l2 @ 0x2600e80] fd:4 capabilities:5020041
 [video4linux2,v4l2 @ 0x2600e80] Selecting input_channel: 1
 [video4linux2,v4l2 @ 0x2600e80] Current input_channel: 1, input_name:
 S-Video
 [video4linux2,v4l2 @ 0x2600e80] Querying the device for the current frame
 size
 [video4linux2,v4l2 @ 0x2600e80] Setting frame size to 720x576
 [video4linux2,v4l2 @ 0x2600e80] The V4L2 driver is using the interlaced
 mode
 [video4linux2,v4l2 @ 0x2600e80] Current standard: PAL, id: 255,
 frameperiod: 1/25
 [video4linux2,v4l2 @ 0x2600e80] All info found
 Input #0, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1366730482.825332, bitrate: 165888 kb/s
     Stream #0:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559),
 yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
 tbc
 Successfully opened the file.
 Parsing a group of options: input file hw:0,0.
 Applying option f (force format) with argument alsa.
 Applying option ac (set number of audio channels) with argument 2.
 Applying option channel_layout (set channel layout) with argument stereo.
 Successfully parsed a group of options.
 Opening an input file: hw:0,0.
 [alsa @ 0x2602ac0] All info found
 Input #1, alsa, from 'hw:0,0':
   Duration: N/A, start: 1366730482.829165, bitrate: 1536 kb/s
     Stream #1:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16,
 1536 kb/s
 Successfully opened the file.
 Parsing a group of options: output file
 /Store3/Test/pcm_ffv1_0423_1621.avi.
 Applying option map (set input stream mapping) with argument 0:v.
 Applying option map (set input stream mapping) with argument 1:a.
 Applying option c:a (codec name) with argument pcm_s16le.
 Applying option c:v (codec name) with argument ffv1.
 Successfully parsed a group of options.
 Opening an output file: /Store3/Test/pcm_ffv1_0423_1621.avi.
 Successfully opened the file.
 [graph 0 input from stream 0:0 @ 0x2621400] Setting 'video_size' to value
 '720x576'
 [graph 0 input from stream 0:0 @ 0x2621400] Setting 'pix_fmt' to value '1'
 [graph 0 input from stream 0:0 @ 0x2621400] Setting 'time_base' to value
 '1/1000000'
 [graph 0 input from stream 0:0 @ 0x2621400] Setting 'pixel_aspect' to
 value '0/1'
 [graph 0 input from stream 0:0 @ 0x2621400] Setting 'sws_param' to value
 'flags=2'
 [graph 0 input from stream 0:0 @ 0x2621400] Setting 'frame_rate' to value
 '25/1'
 [graph 0 input from stream 0:0 @ 0x2621400] w:720 h:576 pixfmt:yuyv422
 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
 [format @ 0x260a400] compat: called with
 args=[yuv420p|yuva420p|yuva422p|yuv444p|yuva444p|yuv440p|yuv422p|yuv411p|yuv410p|bgr0|bgra|yuv420p16le|yuv422p16le|yuv444p16le|yuv444p9le|yuv422p9le|yuv420p9le|yuv420p10le|yuv422p10le|yuv444p10le|gray16le|gray|gbrp9le|gbrp10le|gbrp12le|gbrp14le]
 [format @ 0x260a400] Setting 'pix_fmts' to value
 'yuv420p|yuva420p|yuva422p|yuv444p|yuva444p|yuv440p|yuv422p|yuv411p|yuv410p|bgr0|bgra|yuv420p16le|yuv422p16le|yuv444p16le|yuv444p9le|yuv422p9le|yuv420p9le|yuv420p10le|yuv422p10le|yuv444p10le|gray16le|gray|gbrp9le|gbrp10le|gbrp12le|gbrp14le'
 [auto-inserted scaler 0 @ 0x2608e80] Setting 'w' to value '0'
 [auto-inserted scaler 0 @ 0x2608e80] Setting 'h' to value '0'
 [auto-inserted scaler 0 @ 0x2608e80] Setting 'flags' to value '0x4'
 [auto-inserted scaler 0 @ 0x2608e80] w:0 h:0 flags:'0x4' interl:0
 [format @ 0x260a400] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [AVFilterGraph @ 0x2600ba0] query_formats: 4 queried, 3 merged, 1 already
 done, 0 delayed
 [auto-inserted scaler 0 @ 0x2608e80] picking yuv422p out of 26 ref:yuyv422
 alpha:0
 [auto-inserted scaler 0 @ 0x2608e80] w:720 h:576 fmt:yuyv422 sar:0/1 ->
 w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
 [graph 1 input from stream 1:0 @ 0x2609680] Setting 'time_base' to value
 '1/48000'
 [graph 1 input from stream 1:0 @ 0x2609680] Setting 'sample_rate' to value
 '48000'
 [graph 1 input from stream 1:0 @ 0x2609680] Setting 'sample_fmt' to value
 's16'
 [graph 1 input from stream 1:0 @ 0x2609680] Setting 'channel_layout' to
 value '0x3'
 [graph 1 input from stream 1:0 @ 0x2609680] tb:1/48000 samplefmt:s16
 samplerate:48000 chlayout:0x3
 [audio format for output stream 0:1 @ 0x2609200] Setting 'sample_fmts' to
 value 's16'
 [AVFilterGraph @ 0x2609880] query_formats: 4 queried, 9 merged, 0 already
 done, 0 delayed
 [ffv1 @ 0x2624540] detected 8 logical cores
 Output #0, avi, to '/Store3/Test/pcm_ffv1_0423_1621.avi':
   Metadata:
     ISFT            : Lavf55.2.100
     Stream #0:0, 0, 1/25: Video: ffv1 (FFV1 / 0x31564646), yuv422p,
 720x576, 1/25, q=2-31, 200 kb/s, 25 tbn, 25 tbc
     Stream #0:1, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo -> ffv1)
   Stream #1:0 -> #0:1 (pcm_s16le -> pcm_s16le)
 Press [q] to stop, [?] for help
 st:0 PTS: 31659 DTS: 31659 < 31660 invalid, clipping:00.52
 bitrate=32304.5kbits/s
 [avi @ 0x2623dc0] st:0 PTS: 34594 DTS: 34594 < 34595 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 38009 DTS: 38009 < 38010 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 38495 DTS: 38495 < 38496 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 40451 DTS: 40451 < 40452 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 44851 DTS: 44851 < 44852 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 44852 DTS: 44852 < 44853 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 46318 DTS: 46318 < 46319 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 46319 DTS: 46319 < 46320 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 47783 DTS: 47783 < 47784 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 47784 DTS: 47784 < 47785 invalid, clipping
 st:0 PTS: 50707 DTS: 50707 < 50708 invalid, clipping:01.04
 bitrate=30989.3kbits/s
 [avi @ 0x2623dc0] st:0 PTS: 52170 DTS: 52170 < 52171 invalid, clipping
 [avi @ 0x2623dc0] st:0 PTS: 53141 DTS: 53141 < 53142 invalid, clipping



 Audio codec, Video codec, Container, Result

 There is invalid, clipping with
 pcm_s16le ffv1 avi
 pcm_s16le huffyuv avi
 pcm_alaw ffv1 avi
 pcm_f32le ffv1 avi
 pcm_mulaw ffv1 avi

 There is NO invalid, clipping message with the following
 flac ffv1 avi
 ac3 ffv1 avi
 mp3 ffv1 avi
 mp2 ffv1 avi

 flac huffyuv avi
 ac3 huffyuv avi
 mp3 huffyuv avi
 mp2 huffyuv avi

 pcm_s16le ffv1 mkv
 flac ffv1 mkv
 ac3 ffv1 mkv
 mp3 ffv1 mkv
 mp2 ffv1 mkv

 pcm_s16le huffyuv mkv
 flac huffyuv mkv
 ac3 huffyuv mkv
 mp3 huffyuv mkv
 mp2 huffyuv mkv

 audio PCM and container AVI when associated give the message invalid,
 clipping.

 what mean these messages.
 I am ready to do more tests

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


More information about the FFmpeg-trac mailing list