Changes between Initial Version and Version 1 of Ticket #5367, comment 2


Ignore:
Timestamp:
Mar 25, 2016, 9:21:04 AM (4 years ago)
Author:
leo.z
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5367, comment 2

    initial v1  
    1 I'm using command "ffmpeg -y -i hd_spts.ts -c copy 1.ts -report", just try to remux it.
    2 I had uploaded the source video, report log file and the dts/pts analyze form:
    3 source video: http://203.118.245.62/hd_spts.ts
    4 report log: http://203.118.245.62/ffmpeg-20160323-065632.log
    5 pts/dts: http://203.118.245.62/hd_spts.xlsx
    6 
     1Following are the uncut console output:
     2iptv@ubuntu:~$ ffmpeg -y -i hd_spts.ts -c copy -f mpegts 1.ts             
     3ffmpeg version 3.0-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers
     4  built with gcc 5.3.1 (Debian 5.3.1-8) 20160205
     5  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc
     6  libavutil      55. 17.103 / 55. 17.103
     7  libavcodec     57. 24.102 / 57. 24.102
     8  libavformat    57. 25.100 / 57. 25.100
     9  libavdevice    57.  0.101 / 57.  0.101
     10  libavfilter     6. 31.100 /  6. 31.100
     11  libswscale      4.  0.100 /  4.  0.100
     12  libswresample   2.  0.101 /  2.  0.101
     13  libpostproc    54.  0.100 / 54.  0.100
     14[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     15    Last message repeated 1 times
     16[h264 @ 0xb6bdf80] decode_slice_header error
     17[h264 @ 0xb6bdf80] no frame!
     18[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     19    Last message repeated 2 times
     20[h264 @ 0xb6bdf80] decode_slice_header error
     21[h264 @ 0xb6bdf80] no frame!
     22[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     23[h264 @ 0xb6bdf80] decode_slice_header error
     24[h264 @ 0xb6bdf80] no frame!
     25[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     26    Last message repeated 2 times
     27[h264 @ 0xb6bdf80] decode_slice_header error
     28[h264 @ 0xb6bdf80] no frame!
     29[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     30[h264 @ 0xb6bdf80] decode_slice_header error
     31[h264 @ 0xb6bdf80] no frame!
     32[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     33    Last message repeated 2 times
     34[h264 @ 0xb6bdf80] decode_slice_header error
     35[h264 @ 0xb6bdf80] no frame!
     36[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     37[h264 @ 0xb6bdf80] decode_slice_header error
     38[h264 @ 0xb6bdf80] no frame!
     39[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     40    Last message repeated 2 times
     41[h264 @ 0xb6bdf80] decode_slice_header error
     42[h264 @ 0xb6bdf80] no frame!
     43[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     44[h264 @ 0xb6bdf80] decode_slice_header error
     45[h264 @ 0xb6bdf80] no frame!
     46[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     47    Last message repeated 2 times
     48[h264 @ 0xb6bdf80] decode_slice_header error
     49[h264 @ 0xb6bdf80] no frame!
     50[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     51[h264 @ 0xb6bdf80] decode_slice_header error
     52[h264 @ 0xb6bdf80] no frame!
     53[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     54    Last message repeated 2 times
     55[h264 @ 0xb6bdf80] decode_slice_header error
     56[h264 @ 0xb6bdf80] no frame!
     57[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     58[h264 @ 0xb6bdf80] decode_slice_header error
     59[h264 @ 0xb6bdf80] no frame!
     60[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     61    Last message repeated 2 times
     62[h264 @ 0xb6bdf80] decode_slice_header error
     63[h264 @ 0xb6bdf80] no frame!
     64[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     65[h264 @ 0xb6bdf80] decode_slice_header error
     66[h264 @ 0xb6bdf80] no frame!
     67[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
     68    Last message repeated 1 times
     69[h264 @ 0xb6bdf80] decode_slice_header error
     70[h264 @ 0xb6bdf80] no frame!
    771Input #0, mpegts, from 'hd_spts.ts':
    872  Duration: 00:01:43.30, start: 16966.364000, bitrate: 8120 kb/s
     
    1175      service_name    : FIGHT SPORTS HD
    1276      service_provider:
    13     Stream #0:0[0xc0], 255, 1/90000: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    14     Stream #0:1[0x124], 211, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    15 Successfully opened the file.
    16 Parsing a group of options: output file 1.ts.
    17 Applying option c (codec name) with argument copy.
    18 Successfully parsed a group of options.
    19 Opening an output file: 1.ts.
    20 [file @ 0xb4945a0] Setting default whitelist 'file'
    21 Successfully opened the file.
    22 [mpegts @ 0xb493fe0] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
     77    Stream #0:0[0xc0]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     78    Stream #0:1[0x124]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    2379Output #0, mpegts, to '1.ts':
    2480  Metadata:
    2581    encoder         : Lavf57.25.100
    26     Stream #0:0, 0, 1/90000: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    27     Stream #0:1, 0, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s
     82    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
     83    Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s
    2884Stream mapping:
    2985  Stream #0:0 -> #0:0 (copy)
    3086  Stream #0:1 -> #0:1 (copy)
    3187Press [q] to stop, [?] for help
    32 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    33 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    34 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    35 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    36 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    37 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    38 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    39 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    40 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    41 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    42 ...
    43 [mpegts @ 0xb493fe0] Delay between the first packet and last packet in the muxing queue is 10008000 > 10000000: forcing output
    44 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    45 [mpegts @ 0xb493fe0] Delay between the first packet and last packet in the muxing queue is 10008000 > 10000000: forcing output
    46 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    47 [mpegts @ 0xb493fe0] Delay between the first packet and last packet in the muxing queue is 10008000 > 10000000: forcing output
    48 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    49 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    50 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    51 cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    52 No more output streams to write to, finishing.
    53 frame=    0 fps=0.0 q=-1.0 Lsize=    2657kB time=00:01:42.91 bitrate= 211.5kbits/s speed= 150x   
     88frame=    0 fps=0.0 q=-1.0 Lsize=    2657kB time=00:01:42.91 bitrate= 211.5kbits/s speed= 195x   
    5489video:0kB audio:2411kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.197172%
    55 Input file #0 (hd_spts.ts):
    56   Input stream #0:0 (video): 5148 packets read (97738708 bytes);
    57   Input stream #0:1 (audio): 4287 packets read (2469312 bytes);
    58   Total: 9435 packets (100208020 bytes) demuxed
    59 Output file #0 (1.ts):
    60   Output stream #0:0 (video): 0 packets muxed (0 bytes);
    61   Output stream #0:1 (audio): 4287 packets muxed (2469312 bytes);
    62   Total: 4287 packets (2469312 bytes) muxed
    63 0 frames successfully decoded, 0 decoding errors
    64 [AVIOContext @ 0xb45df20] Statistics: 0 seeks, 858 writeouts
    65 [AVIOContext @ 0xb460e60] Statistics: 110383212 bytes read, 3 seeks
     90
     91no video muxed.
     92i have looked into the code, it seems there are something wrong with the AVPackets which av_read_frame returned, the dts/pts value was set to AV_NOPTS_VALUE of the every other returned AVPackets, kind of divided one frame to two AVPacket.
     93
     94would you please take some time looking into it, thanks.