News:

--

Main Menu

[Ts Demuxer] No PES startcode

Started by lodger, February 14, 2019, 11:04:29 AM

Previous topic - Next topic

lodger

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:
$ 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/

eumagga0x2a

Please retest with a build off the latest ffmpeg4x branch.

lodger

i tried again: after one minute of error avidemux was able to open it  ::)

eumagga0x2a

Do you refer to a build off the current ffmpeg4x branch now?

lodger

Quote from: eumagga0x2a on February 14, 2019, 01:08:06 PM
Do you refer to a build off the current ffmpeg4x branch now?

no, i have used same configuration of first post.

eumagga0x2a

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

Avidemux built from the current git ffmpeg4x branch head opens the sample you provided just fine without any perceptible delay.

lodger

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

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

i have tried avidemux3 of ffmpeg4x git branch. indeed it open immediately this TS file without error! 8)