Opened 3 years ago

Closed 2 years ago

#5376 closed defect (duplicate)

ffmpeg divided one frame into two AVPackets when doing remux work, video muxed failed.

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

Description

no video muxed when remux the mpegts file, with no any warning/error log.
i 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. the source file played well using ffplay or vlc, you could download here: http://203.118.245.62/hd_spts.ts.
would you please take some time looking into it, thanks.
Following are the uncut console output:
iptv@ubuntu:~$ ffmpeg -y -i hd_spts.ts -c copy -f mpegts 1.ts
ffmpeg version 3.0-static ​http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.1 (Debian 5.3.1-8) 20160205
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
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 2 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
[h264 @ 0xb6bdf80] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0xb6bdf80] decode_slice_header error
[h264 @ 0xb6bdf80] no frame!
Input #0, mpegts, from 'hd_spts.ts':
Duration: 00:01:43.30, start: 16966.364000, bitrate: 8120 kb/s
Program 352
Metadata:
service_name : FIGHT SPORTS HD
service_provider:
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
Stream #0:1[0x124]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
Output #0, mpegts, to '1.ts':
Metadata:
encoder : Lavf57.25.100
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
Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, ? for help
frame= 0 fps=0.0 q=-1.0 Lsize= 2657kB time=00:01:42.91 bitrate= 211.5kbits/s speed= 195x
video:0kB audio:2411kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.197172%

Change History (1)

comment:1 Changed 2 years ago by cehoyos

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.