Opened 17 months ago

Last modified 17 months ago

#10478 new defect

no TS found error after ffmpeg segment (HLS) encoding

Reported by: maxjh Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I'm using ffmpeg to convert files to HLS format and found a file where audio seems to be corrupted after convertion.
How to reproduce:

% ffmpeg -i https://lp-us-vod-com.storage.googleapis.com/directUpload/7c5a68zgc5s6gmsl -c:a copy -c:v copy -f hls -hls_list_size 0 -hls_playlist_type vod -hls_segment_type mpegts -hls_time 10 -y index.m3u8
% ffprobe -loglevel warning -show_format -show_streams -print_format json index0.ts
{
[mpegts @ 0x13de04490] start time for stream 1 is not set in estimate_timings_from_pts
[mpegts @ 0x13de04490] stream 1 : no TS found at start of file, duration not set
[mpegts @ 0x13de04490] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
ffmpeg -version
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0-with-options_1 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash --enable-opencl --enable-audiotoolbox --enable-videotoolbox --enable-neon --disable-htmlpages --enable-libfdk-aac --enable-nonfree
libavutil      58.  2.100 / 58.  2.100
libavcodec     60.  3.100 / 60.  3.100
libavformat    60.  3.100 / 60.  3.100
libavdevice    60.  1.100 / 60.  1.100
libavfilter     9.  3.100 /  9.  3.100
libswscale      7.  1.100 /  7.  1.100
libswresample   4. 10.100 /  4. 10.100
libpostproc    57.  1.100 / 57.  1.100

Change History (1)

comment:1 by Steven Liu, 17 months ago

the audio is delay too long duration after the first video packet.

<?xml version="1.0" encoding="UTF-8"?>
<ffprobe>
    <packets>
        <packet codec_type="video" pts_time="-9.960000" dts_time="-10.000000"/>
        <packet codec_type="video" pts_time="-9.880000" dts_time="-9.960000"/>
        <packet codec_type="video" pts_time="-9.800000" dts_time="-9.880000"/>
        <packet codec_type="video" pts_time="-9.720000" dts_time="-9.800000"/>
        <packet codec_type="video" pts_time="-9.640000" dts_time="-9.720000"/>
        <packet codec_type="video" pts_time="-9.560000" dts_time="-9.640000"/>
        <packet codec_type="video" pts_time="-9.480000" dts_time="-9.560000"/>
        <packet codec_type="video" pts_time="-9.400000" dts_time="-9.480000"/>
        <packet codec_type="video" pts_time="-9.320000" dts_time="-9.400000"/>
        <packet codec_type="video" pts_time="-9.240000" dts_time="-9.320000"/>
        <packet codec_type="video" pts_time="-9.160000" dts_time="-9.240000"/>
        <packet codec_type="video" pts_time="-9.080000" dts_time="-9.160000"/>
        <packet codec_type="video" pts_time="-9.000000" dts_time="-9.080000"/>
        <packet codec_type="video" pts_time="-8.920000" dts_time="-9.000000"/>
        <packet codec_type="video" pts_time="-8.840000" dts_time="-8.920000"/>
        <packet codec_type="video" pts_time="-8.760000" dts_time="-8.840000"/>
        <packet codec_type="video" pts_time="-8.680000" dts_time="-8.760000"/>
        <packet codec_type="video" pts_time="-8.600000" dts_time="-8.680000"/>
        <packet codec_type="video" pts_time="-8.520000" dts_time="-8.600000"/>
        <packet codec_type="video" pts_time="-8.440000" dts_time="-8.520000"/>
        <packet codec_type="video" pts_time="-8.360000" dts_time="-8.440000"/>
        <packet codec_type="video" pts_time="-8.280000" dts_time="-8.360000"/>
        <packet codec_type="video" pts_time="-8.200000" dts_time="-8.280000"/>
        <packet codec_type="video" pts_time="-8.120000" dts_time="-8.200000"/>
        <packet codec_type="video" pts_time="-8.040000" dts_time="-8.120000"/>
        <packet codec_type="video" pts_time="-7.960000" dts_time="-8.040000"/>
        <packet codec_type="video" pts_time="-7.880000" dts_time="-7.960000"/>
        <packet codec_type="video" pts_time="-7.800000" dts_time="-7.880000"/>
        <packet codec_type="video" pts_time="-7.720000" dts_time="-7.800000"/>
        <packet codec_type="video" pts_time="-7.640000" dts_time="-7.720000"/>
        <packet codec_type="video" pts_time="-7.560000" dts_time="-7.640000"/>
        <packet codec_type="video" pts_time="-7.480000" dts_time="-7.560000"/>
        <packet codec_type="video" pts_time="-7.400000" dts_time="-7.480000"/>
        <packet codec_type="video" pts_time="-7.320000" dts_time="-7.400000"/>
        <packet codec_type="video" pts_time="-7.240000" dts_time="-7.320000"/>
        <packet codec_type="video" pts_time="-7.160000" dts_time="-7.240000"/>
        <packet codec_type="video" pts_time="-7.080000" dts_time="-7.160000"/>
        <packet codec_type="video" pts_time="-7.000000" dts_time="-7.080000"/>
        <packet codec_type="video" pts_time="-6.920000" dts_time="-7.000000"/>
        <packet codec_type="video" pts_time="-6.840000" dts_time="-6.920000"/>
        <packet codec_type="video" pts_time="-6.760000" dts_time="-6.840000"/>
        <packet codec_type="video" pts_time="-6.680000" dts_time="-6.760000"/>
        <packet codec_type="video" pts_time="-6.600000" dts_time="-6.680000"/>
        <packet codec_type="video" pts_time="-6.520000" dts_time="-6.600000"/>
        <packet codec_type="video" pts_time="-6.440000" dts_time="-6.520000"/>
        <packet codec_type="video" pts_time="-6.360000" dts_time="-6.440000"/>
        <packet codec_type="video" pts_time="-6.280000" dts_time="-6.360000"/>
        <packet codec_type="video" pts_time="-6.200000" dts_time="-6.280000"/>
        <packet codec_type="video" pts_time="-6.120000" dts_time="-6.200000"/>
        <packet codec_type="video" pts_time="-6.040000" dts_time="-6.120000"/>
        <packet codec_type="video" pts_time="-5.960000" dts_time="-6.040000"/>
        <packet codec_type="video" pts_time="-5.880000" dts_time="-5.960000"/>
        <packet codec_type="video" pts_time="-5.800000" dts_time="-5.880000"/>
        <packet codec_type="video" pts_time="-5.720000" dts_time="-5.800000"/>
        <packet codec_type="video" pts_time="-5.640000" dts_time="-5.720000"/>
        <packet codec_type="video" pts_time="-5.560000" dts_time="-5.640000"/>
        <packet codec_type="video" pts_time="-5.480000" dts_time="-5.560000"/>
        <packet codec_type="video" pts_time="-5.400000" dts_time="-5.480000"/>
        <packet codec_type="video" pts_time="-5.320000" dts_time="-5.400000"/>
        <packet codec_type="video" pts_time="-5.240000" dts_time="-5.320000"/>
        <packet codec_type="video" pts_time="-5.160000" dts_time="-5.240000"/>
        <packet codec_type="video" pts_time="-5.080000" dts_time="-5.160000"/>
        <packet codec_type="video" pts_time="-5.000000" dts_time="-5.080000"/>
        <packet codec_type="video" pts_time="-4.920000" dts_time="-5.000000"/>
        <packet codec_type="video" pts_time="-4.840000" dts_time="-4.920000"/>
        <packet codec_type="video" pts_time="-4.760000" dts_time="-4.840000"/>
        <packet codec_type="video" pts_time="-4.680000" dts_time="-4.760000"/>
        <packet codec_type="video" pts_time="-4.600000" dts_time="-4.680000"/>
        <packet codec_type="video" pts_time="-4.520000" dts_time="-4.600000"/>
        <packet codec_type="video" pts_time="-4.440000" dts_time="-4.520000"/>
        <packet codec_type="video" pts_time="-4.360000" dts_time="-4.440000"/>
        <packet codec_type="video" pts_time="-4.280000" dts_time="-4.360000"/>
        <packet codec_type="video" pts_time="-4.200000" dts_time="-4.280000"/>
        <packet codec_type="video" pts_time="-4.120000" dts_time="-4.200000"/>
        <packet codec_type="video" pts_time="-4.040000" dts_time="-4.120000"/>
        <packet codec_type="video" pts_time="-3.960000" dts_time="-4.040000"/>
        <packet codec_type="video" pts_time="-3.880000" dts_time="-3.960000"/>
        <packet codec_type="video" pts_time="-3.800000" dts_time="-3.880000"/>
        <packet codec_type="video" pts_time="-3.720000" dts_time="-3.800000"/>
        <packet codec_type="video" pts_time="-3.640000" dts_time="-3.720000"/>
        <packet codec_type="video" pts_time="-3.560000" dts_time="-3.640000"/>
        <packet codec_type="video" pts_time="-3.480000" dts_time="-3.560000"/>
        <packet codec_type="video" pts_time="-3.400000" dts_time="-3.480000"/>
        <packet codec_type="video" pts_time="-3.320000" dts_time="-3.400000"/>
        <packet codec_type="video" pts_time="-3.240000" dts_time="-3.320000"/>
        <packet codec_type="video" pts_time="-3.160000" dts_time="-3.240000"/>
        <packet codec_type="video" pts_time="-3.080000" dts_time="-3.160000"/>
        <packet codec_type="video" pts_time="-3.000000" dts_time="-3.080000"/>
        <packet codec_type="video" pts_time="-2.920000" dts_time="-3.000000"/>
        <packet codec_type="video" pts_time="-2.840000" dts_time="-2.920000"/>
        <packet codec_type="video" pts_time="-2.760000" dts_time="-2.840000"/>
        <packet codec_type="video" pts_time="-2.680000" dts_time="-2.760000"/>
        <packet codec_type="video" pts_time="-2.600000" dts_time="-2.680000"/>
        <packet codec_type="video" pts_time="-2.520000" dts_time="-2.600000"/>
        <packet codec_type="video" pts_time="-2.440000" dts_time="-2.520000"/>
        <packet codec_type="video" pts_time="-2.360000" dts_time="-2.440000"/>
        <packet codec_type="video" pts_time="-2.280000" dts_time="-2.360000"/>
        <packet codec_type="video" pts_time="-2.200000" dts_time="-2.280000"/>
        <packet codec_type="video" pts_time="-2.120000" dts_time="-2.200000"/>
        <packet codec_type="video" pts_time="-2.040000" dts_time="-2.120000"/>
        <packet codec_type="video" pts_time="-1.960000" dts_time="-2.040000"/>
        <packet codec_type="video" pts_time="-1.880000" dts_time="-1.960000"/>
        <packet codec_type="video" pts_time="-1.800000" dts_time="-1.880000"/>
        <packet codec_type="video" pts_time="-1.720000" dts_time="-1.800000"/>
        <packet codec_type="video" pts_time="-1.640000" dts_time="-1.720000"/>
        <packet codec_type="video" pts_time="-1.560000" dts_time="-1.640000"/>
        <packet codec_type="video" pts_time="-1.480000" dts_time="-1.560000"/>
<packet codec_type="video" pts_time="-1.400000" dts_time="-1.480000"/>
        <packet codec_type="video" pts_time="-1.320000" dts_time="-1.400000"/>
        <packet codec_type="video" pts_time="-1.240000" dts_time="-1.320000"/>
        <packet codec_type="video" pts_time="-1.160000" dts_time="-1.240000"/>
        <packet codec_type="video" pts_time="-1.080000" dts_time="-1.160000"/>
        <packet codec_type="video" pts_time="-1.000000" dts_time="-1.080000"/>
        <packet codec_type="audio" pts_time="-0.012208" dts_time="-0.012208">
            <side_data_list>
                <side_data side_data_type="Skip Samples" skip_samples="586" discard_padding="0" skip_reason="0" discard_reason="0"/>
            </side_data_list>
        </packet>
        <packet codec_type="video" pts_time="-0.920000" dts_time="-1.000000"/>
        <packet codec_type="audio" pts_time="0.009125" dts_time="0.009125"/>
        <packet codec_type="audio" pts_time="0.030458" dts_time="0.030458"/>
        <packet codec_type="audio" pts_time="0.051792" dts_time="0.051792"/>
        <packet codec_type="audio" pts_time="0.073125" dts_time="0.073125"/>
        <packet codec_type="video" pts_time="-0.840000" dts_time="-0.920000"/>
        <packet codec_type="audio" pts_time="0.094458" dts_time="0.094458"/>
        <packet codec_type="audio" pts_time="0.115792" dts_time="0.115792"/>
        <packet codec_type="audio" pts_time="0.137125" dts_time="0.137125"/>
        <packet codec_type="audio" pts_time="0.158458" dts_time="0.158458"/>
        <packet codec_type="video" pts_time="-0.760000" dts_time="-0.840000"/>
        <packet codec_type="audio" pts_time="0.179792" dts_time="0.179792"/>
        <packet codec_type="audio" pts_time="0.201125" dts_time="0.201125"/>
        <packet codec_type="audio" pts_time="0.222458" dts_time="0.222458"/>
        <packet codec_type="video" pts_time="-0.680000" dts_time="-0.760000"/>
        <packet codec_type="audio" pts_time="0.243792" dts_time="0.243792"/>
        <packet codec_type="audio" pts_time="0.265125" dts_time="0.265125"/>
        <packet codec_type="audio" pts_time="0.286458" dts_time="0.286458"/>
        <packet codec_type="audio" pts_time="0.307792" dts_time="0.307792"/>
        <packet codec_type="video" pts_time="-0.600000" dts_time="-0.680000"/>
        <packet codec_type="audio" pts_time="0.329125" dts_time="0.329125"/>
        <packet codec_type="audio" pts_time="0.350458" dts_time="0.350458"/>
        <packet codec_type="audio" pts_time="0.371792" dts_time="0.371792"/>
        <packet codec_type="audio" pts_time="0.393125" dts_time="0.393125"/>
        <packet codec_type="video" pts_time="-0.520000" dts_time="-0.600000"/>
        <packet codec_type="audio" pts_time="0.414458" dts_time="0.414458"/>
        <packet codec_type="audio" pts_time="0.435792" dts_time="0.435792"/>
        <packet codec_type="audio" pts_time="0.457125" dts_time="0.457125"/>
        <packet codec_type="audio" pts_time="0.478458" dts_time="0.478458"/>
        <packet codec_type="video" pts_time="-0.440000" dts_time="-0.520000"/>
        <packet codec_type="audio" pts_time="0.499792" dts_time="0.499792"/>
        <packet codec_type="audio" pts_time="0.521125" dts_time="0.521125"/>
        <packet codec_type="audio" pts_time="0.542458" dts_time="0.542458"/>
        <packet codec_type="video" pts_time="-0.360000" dts_time="-0.440000"/>
        <packet codec_type="audio" pts_time="0.563792" dts_time="0.563792"/>
        <packet codec_type="audio" pts_time="0.585125" dts_time="0.585125"/>
        <packet codec_type="audio" pts_time="0.606458" dts_time="0.606458"/>
        <packet codec_type="audio" pts_time="0.627792" dts_time="0.627792"/>
        <packet codec_type="video" pts_time="-0.280000" dts_time="-0.360000"/>
        <packet codec_type="audio" pts_time="0.649125" dts_time="0.649125"/>
        <packet codec_type="audio" pts_time="0.670458" dts_time="0.670458"/>
        <packet codec_type="audio" pts_time="0.691792" dts_time="0.691792"/>
        <packet codec_type="audio" pts_time="0.713125" dts_time="0.713125"/>
        <packet codec_type="video" pts_time="-0.200000" dts_time="-0.280000"/>
        <packet codec_type="audio" pts_time="0.734458" dts_time="0.734458"/>
        <packet codec_type="audio" pts_time="0.755792" dts_time="0.755792"/>
        <packet codec_type="audio" pts_time="0.777125" dts_time="0.777125"/>
        <packet codec_type="audio" pts_time="0.798458" dts_time="0.798458"/>
        <packet codec_type="video" pts_time="-0.120000" dts_time="-0.200000"/>
        <packet codec_type="audio" pts_time="0.819792" dts_time="0.819792"/>
        <packet codec_type="audio" pts_time="0.841125" dts_time="0.841125"/>
        <packet codec_type="audio" pts_time="0.862458" dts_time="0.862458"/>
        <packet codec_type="video" pts_time="-0.040000" dts_time="-0.120000"/>
        <packet codec_type="audio" pts_time="0.883792" dts_time="0.883792"/>
Note: See TracTickets for help on using tickets.