Author Topic: [Ts Demuxer] No PES startcode  (Read 708 times)

lodger

  • Newbie
  • *
  • Posts: 6
[Ts Demuxer] No PES startcode
« on: February 14, 2019, 11:04:29 AM »
Hi,
from latest version of avidemux the TS manage is much better: in the older version audio went out of sync. But sometimes it still can't open some TS files:
https://pastebin.com/vrXS1fJA

mpv plays it perfectly but says some errors:
Code: [Select]
$ mpv 0001.TS
mpv: /usr/lib/libssh.so.4: no version information available (required by /usr/lib/libavformat.so.58)
Unknown profile 'opengl'.
Error parsing option profile (option parameter could not be parsed)
Playing: 0001.TS
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/audio] mp2: Header missing
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/video] mpeg2video: Invalid frame dimensions 0x0.
[ffmpeg/demuxer] mpegts: start time for stream 2 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 2 (Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels): unspecified frame size
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 6 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 8 (Unknown: none ([12][0][0][0] / 0x000C)): unknown codec
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
 (+) Video --vid=1 (mpeg2video 720x576 25.000fps)
 (+) Audio --aid=1 --alang=ita (mp2 2ch 48000Hz)
     Audio --aid=2 --alang=eng (mp3)
     Subs  --sid=1 --slang=ita,ita,eng (dvb_teletext)
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/audio] mp2: Header missing
Error decoding audio.
AO: [alsa] 48000Hz stereo 2ch s16
VO: [gpu] 720x576 => 1024x576 yuv420p
AV: 00:00:01 / 10:27:01 (0%) A-V:  0.000


Exiting... (Quit)

I use ArchLinux32:
https://www.archlinux32.org/packages/i686/extra/avidemux-qt/
« Last Edit: February 14, 2019, 11:21:48 AM by lodger »

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2807
Re: [Ts Demuxer] No PES startcode
« Reply #1 on: February 14, 2019, 11:40:13 AM »
Please retest with a build off the latest ffmpeg4x branch.

lodger

  • Newbie
  • *
  • Posts: 6
Re: [Ts Demuxer] No PES startcode
« Reply #2 on: February 14, 2019, 12:55:50 PM »
i tried again: after one minute of error avidemux was able to open it  ::)

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2807
Re: [Ts Demuxer] No PES startcode
« Reply #3 on: February 14, 2019, 01:08:06 PM »
Do you refer to a build off the current ffmpeg4x branch now?

lodger

  • Newbie
  • *
  • Posts: 6
Re: [Ts Demuxer] No PES startcode
« Reply #4 on: February 14, 2019, 01:12:50 PM »
Do you refer to a build off the current ffmpeg4x branch now?

no, i have used same configuration of first post.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2807
Re: [Ts Demuxer] No PES startcode
« Reply #5 on: February 14, 2019, 01:17:49 PM »
You're on Linux. It is trivial to build and run a current Avidemux (it is even doesn't need to be installed). Similar issues were reported and fixed a while ago.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2807
Re: [Ts Demuxer] No PES startcode
« Reply #6 on: February 14, 2019, 04:49:49 PM »
Avidemux built from the current git ffmpeg4x branch head opens the sample you provided just fine without any perceptible delay.

lodger

  • Newbie
  • *
  • Posts: 6
Re: [Ts Demuxer] No PES startcode
« Reply #7 on: February 14, 2019, 04:59:12 PM »
then it's a problem that has recently been solved. i use ffmpeg 1:4.0.2-2.4 and avidemux-qt 2.7.1-5.0.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2807
Re: [Ts Demuxer] No PES startcode
« Reply #8 on: February 14, 2019, 06:30:37 PM »
This is exactly what I try to explain. Unless affordable time travel becomes available, there is no way to fix bugs for users of past releases. Build Avidemux off the current git ffmpeg4x branch (not master!) yourself to get a better experience.

Just to avoid a misunderstanding: a few decoding errors are present because the video stream is not perfectly error-free (temporary problems with signal quality is the most probably cause), Avidemux can't do anything about it.

lodger

  • Newbie
  • *
  • Posts: 6
Re: [Ts Demuxer] No PES startcode
« Reply #9 on: February 14, 2019, 08:41:32 PM »
i have tried avidemux3 of ffmpeg4x git branch. indeed it open immediately this TS file without error! 8)