Should mpgtx be able to process Audio TS files?
For example, I tried running mpgtx -i and -d with
audio files recorded as TS files by DVB satellite
receiver "Dreambox". One example of a recordings of
BBC Radio 4 (Astra 28E), is shown below.
I have attached the first 32 KB of the Radio 4 file. I
believe this is a valid TS file because "X081" can
demux it (see below). The .MP2 file after X081
contains about 2 seconds of speech by BBC presenter Sue
Lawley.
I was hoping that "mpgtx" would work better than
"X081", which is a larger Java program. In particular
there are some streams which X081 cannot demux, where I
was hoping for better luck with mpgtx.
FWIW the PC is running FreeBSD 4.9 using the port in
/usr/ports/multimedia/mpgtx . Tried with gcc2.95 and
gcc3.3.
Many thanks!
Best regards,
- Martin Johnson.
-------------------------------------
toybox# mpgtx -v
mpgtx Version 1.3
Copyleft 2001 Laurent Alacoque
<laureck@users.sourceforge.net>
Partial work 2002 by Philipp Biermann
<mpegcut@biermann.org>
updates, bugs, patch, money :
http://mpgtx.sourceforge.net
toybox# mpginfo BBC_R4_Archers.ts
Skipped -2 zeroes at start of file
mpgtx: AT EOF - please stop me!
mmm, this file does not start with a pack, offset: -2
use the desperate_mode switch as the first option -X to
search for a header in the whole file!
if you want to force the operation. May yield to an
endless loop if no valid header is found!
Does not even begin with a 00 00 01 xx sequence!
Warning, prog num 6854 redefined !
Warning, prog num 6854 redefined !
Warning, prog num 6854 redefined !
....
Segmentation fault (core dumped)
--------------------------------
Output of X081;
=> File 0: /usr/root/BBC_R4_Archers_TRIMMED.ts (30720
bytes)
=> File is DVB/MPEG-2 TS (Video/Audio/TTX PES)
=> demux
-> no PMT found (at a short scan)
--> PID 0x1F (SIT) (0x0 #1) -> ignored
ok> PID 0x940 has PES-ID 0xC0 (MPEG Audio) (0x11A0 #25)
packs: 163 100% 30832
--> MPEG Audio (0xC0) on PID 0x940
Audio PTS: first packet 00:35:36.264, last packet
00:35:37.032
-> adjusting audio at its own timeline
=> src_audio: MPEG-1,Layer2,48000Hz,stereo,192kbps,CRC
@ 00:00:00.000
audio frames: wri/pre/skip/ins/add 40/0/0/0/0 @
00:00:00.960 done..
-> 5 stereo/jointstereo change(s) detected...
===> new File:
/mnt/dreambox/movie/MP2/BBC_R4_Archers_TRIMMED.mp2
?
summary of created media files:
Audio 0: 40 Frames 00:00:00.960 0/0/0/0
/mnt/dreambox/movie/MP2/BBC_R4_Archers_TRIMMED.mp2
=> 23040 bytes written...
Short audio .TS input file that causes core dump