[mpg123-devel] [ mpg123-Bugs-3393801 ] after each about 26h I got code 18
Brought to you by:
sobukus
From: SourceForge.net <no...@so...> - 2011-08-18 15:09:51
|
Bugs item #3393801, was opened at 2011-08-18 13:01 Message generated for change (Comment added) made by nopsoft You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=733194&aid=3393801&group_id=135704 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mpglib Group: 1.13.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Janusz Uzycki (nopsoft) Assigned to: Nobody/Anonymous (nobody) Summary: after each about 26h I got code 18 Initial Comment: (DVB) MPEG2-TS stream audio (MPEG1 Layer II) decoding: dumprtp | ts2es -stdin -stdout -pid 403 | mpg123 --stdout --resync-limit -1 - > /dev/null after about 26 hours (tested by 2 weeks - several attempts) I got: [...] ### Error reading TS packet in ts_extract_pid_packet ### Error reading TS packet in ts_extract_pid_packet Note: Illegal Audio-MPEG-Header 0x4b60d817 at offset 2152598041. Note: Trying to resync... Note: Skipped 432 bytes in input. [mpg123.c:665] error: ...in decoding next frame: Error reading the stream. (code 18) It seems it is caused by frame errors (part of TS frames is lost -> MPEG1 frames are cutted) and resync-ing. However the error 18 happens also when resync-limit is set below 0. Any ideas? ---------------------------------------------------------------------- >Comment By: Janusz Uzycki (nopsoft) Date: 2011-08-18 17:09 Message: I cut the last 2 bytes of the piece: dd if=a_cut.mp2 of=a_cut2.mp2 bs=1 count=17856 and again try with older 1.12.1 (1.13.3 has exactly the same bug - I've checked also): while [ 1 ]; do cat a_cut2.mp2; done | mpg123 --stdout - >/dev/null High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: - ... MPEG 1.0 layer II, 192 kbit/s, 48000 Hz stereo And here is no resync - the limit problem dissapeared (mpg123 does not finish itself). So the bug must be in resync section. ---------------------------------------------------------------------- Comment By: Janusz Uzycki (nopsoft) Date: 2011-08-18 16:08 Message: I attached short part of the stream (a_cut.mp2) extracted from MPEG2-TS. Now: while [ 1 ]; do cat a_cut.mp2; done | mpg123 --stdout - >/dev/null and after a moment: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: - ... MPEG 1.0 layer II, 192 kbit/s, 48000 Hz stereo [...] Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147353114. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147370972. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147388830. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147406688. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147424546. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147442404. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147460262. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147478120. Note: Trying to resync... Note: Skipped 2 bytes in input. Note: Illegal Audio-MPEG-Header 0x1ad0fffc at offset 2147495978. Note: Trying to resync... Note: Skipped 2 bytes in input. [mpg123.c:643] error: ...in decoding next frame: Error reading the stream. (code 18) [1491:08] Decoding of - finished. Is it offset value limit? How to workaround the limit? Is mpg123 able to decode a stream for more than 26 hours? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=733194&aid=3393801&group_id=135704 |