Discussion:
[MPlayer-users] Problem with audio in DVB-S2 transport stream
Mark Zimmerman
2010-08-08 15:27:20 UTC
Permalink
Greetings:

I recorded a transport stream from AMC-1 and I am having problems with the
audio.
It sounds like I am getting just the rear channels, or something like
that. The
audio I get seems to me in sync, but most of it is just not there.

Command line:

mplayer -nocorrect-pts -v sample.ts > mplayer.out

The -nocorrect-pts option is needed to keep it from playing at half speed.

Since it is possible that I recorded the stream improperly, I have posted
the file here:

<http://users.frii.com/markzimm/dvb-s2-test/sample.ts>

My mplayer.out is here:

<http://users.frii.com/markzimm/dvb-s2-test/mplayer.out>

Thank you for any insights...

-- Mark

--
----------
Carl Eugen Hoyos
2010-08-08 17:38:37 UTC
Permalink
Post by Mark Zimmerman
I recorded a transport stream from AMC-1 and I am having problems with the
audio.
It sounds like I am getting just the rear channels, or something like
that. The
audio I get seems to me in sync, but most of it is just not there.
The sample you uploaded only contains 2-channel MP2 audio, so I don't think
there is much MPlayer can do to improve it.

There is indication, however, that you managed not to record all audio streams
for this program - looking at FFmpeg's output:
Stream #0.1[0x2ef](aaa): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.2[0x2f0](aac): Audio: mp3, 0 channels, s16
Stream #0.3[0x2f1](aae): Audio: mp3, 0 channels, s16
Stream #0.4[0x2f2](aag): Audio: mp3, 0 channels, s16
Stream #0.5[0x1fd0]: Data: [6][0][0][0] / 0x0006
Stream #0.6[0x400]: Data: [241][0][0][0] / 0x00F1
0x2ef was recorded correctly, 2f0, 2f1 and 2f2 are missing (and while they
probably don't contain audio, it might not hurt to record 0x1fd0 and 0x400 as
well, if they contain teletext, we would be very interested in the sample).
You possibly used szap to record, unfortunately, it does not work the way we
would all like it to work...
Post by Mark Zimmerman
mplayer -nocorrect-pts -v sample.ts > mplayer.out
The -nocorrect-pts option is needed to keep it from playing at half speed.
That sounds unlikely to me, if it is really true, could you upload a longer
sample (this one is too short for A/V sync issues, imo).
Post by Mark Zimmerman
Since it is possible that I recorded the stream improperly, I have posted
<http://users.frii.com/markzimm/dvb-s2-test/sample.ts>
<http://users.frii.com/markzimm/dvb-s2-test/mplayer.out>
Apart from "please always attach the output, external links end to disappear":
Totally unrelated, your configure options do not look sane - most enable-*
options don't do what you expect them to, xvmc, tdfxfb, zr and s3fb make no
sense on your VDPAU hardware, enable-runtime-cpu-detection just makes MPlayer
slower, and enable-menu lets MPlayer crash on VDPAU hardware.
And I wonder why you are using --disable-internal-faad, internal faad allows you
to decode streams that cannot be decoded without.

Carl Eugen
Mark Zimmerman
2010-08-08 20:09:02 UTC
Permalink
Post by Carl Eugen Hoyos
Post by Mark Zimmerman
I recorded a transport stream from AMC-1 and I am having problems with the
audio.
It sounds like I am getting just the rear channels, or something like
that. The
audio I get seems to me in sync, but most of it is just not there.
The sample you uploaded only contains 2-channel MP2 audio, so I don't think
there is much MPlayer can do to improve it.
There is indication, however, that you managed not to record all audio streams
Stream #0.1[0x2ef](aaa): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.2[0x2f0](aac): Audio: mp3, 0 channels, s16
Stream #0.3[0x2f1](aae): Audio: mp3, 0 channels, s16
Stream #0.4[0x2f2](aag): Audio: mp3, 0 channels, s16
Stream #0.5[0x1fd0]: Data: [6][0][0][0] / 0x0006
Stream #0.6[0x400]: Data: [241][0][0][0] / 0x00F1
0x2ef was recorded correctly, 2f0, 2f1 and 2f2 are missing (and while they
probably don't contain audio, it might not hurt to record 0x1fd0 and 0x400 as
well, if they contain teletext, we would be very interested in the sample).
You possibly used szap to record, unfortunately, it does not work the way we
would all like it to work...
Yes, I used szap-s2, which will not let you specify multiple audio
streams. I think I will fix this limitation and try again.
Post by Carl Eugen Hoyos
Post by Mark Zimmerman
mplayer -nocorrect-pts -v sample.ts > mplayer.out
The -nocorrect-pts option is needed to keep it from playing at half speed.
That sounds unlikely to me, if it is really true, could you upload a longer
sample (this one is too short for A/V sync issues, imo).
How long should it be? I will post another once I have one with all
of the audio PIDs. I got the -nocorrect-pts option from a search of
the mailing list. It seems that this stream is really 60FPS 1080i but
without this option, mplayer treats it as 30FPS. There is no doubt
that it runs at half speed on my system, though this may not be the
best way to correct it.
Post by Carl Eugen Hoyos
Post by Mark Zimmerman
Since it is possible that I recorded the stream improperly, I have posted
<http://users.frii.com/markzimm/dvb-s2-test/sample.ts>
<http://users.frii.com/markzimm/dvb-s2-test/mplayer.out>
Sorry. Full output is appended to this message for the benefit of the
archives.
Post by Carl Eugen Hoyos
Totally unrelated, your configure options do not look sane - most enable-*
options don't do what you expect them to, xvmc, tdfxfb, zr and s3fb make no
sense on your VDPAU hardware, enable-runtime-cpu-detection just makes MPlayer
slower, and enable-menu lets MPlayer crash on VDPAU hardware.
And I wonder why you are using --disable-internal-faad, internal faad allows you
to decode streams that cannot be decoded without.
They are not really my configure options. I am using the packaged
version at debian-multimedia. Yes, this is lazy; I will try to do
better.

Here is the mplayer.out from the first message:


MPlayer SVN-r31918 (C) 2000-2010 MPlayer Team
CPU vendor name: AuthenticAMD max cpuid level: 1
CPU: AMD Athlon(tm) X2 Dual Core Processor BE-2400 (Family: 15, Model: 107, Stepping: 2)
extended cpuid-level: 24
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/mark/.mplayer/codecs.conf'
Reading /home/mark/.mplayer/codecs.conf: Can't open '/home/mark/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --enable-xmga --enable-mga --enable-joystick --disable-tremor-internal --enable-libopencore_amrnb --enable-libopencore_amrwb --disable-openal --disable-faad-internal --extra-libs-mencoder=-lvorbisenc --language=all --enable-largefiles --enable-menu --disable-libdvdcss-internal --enable-radio --enable-radio-capture --enable-xvmc --with-xvmclib=XvMCW --enable-tdfxfb --enable-s3fb --enable-zr --enable-runtime-cpudetection
CommandLine: '-nocorrect-pts' '-v' 'sample.ts'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/mark/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/mark/.mplayer/input.conf'
Parsing input config file /home/mark/.mplayer/input.conf
Input config file /home/mark/.mplayer/input.conf parsed: 59 binds
Setting up LIRC support...
get_path('sample.ts.conf') -> '/home/mark/.mplayer/sample.ts.conf'
Mark Zimmerman
2010-08-09 04:53:28 UTC
Permalink
Post by Mark Zimmerman
Post by Carl Eugen Hoyos
Post by Mark Zimmerman
I recorded a transport stream from AMC-1 and I am having problems with the
audio.
It sounds like I am getting just the rear channels, or something like
that. The
audio I get seems to me in sync, but most of it is just not there.
The sample you uploaded only contains 2-channel MP2 audio, so I don't think
there is much MPlayer can do to improve it.
There is indication, however, that you managed not to record all audio streams
Stream #0.1[0x2ef](aaa): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.2[0x2f0](aac): Audio: mp3, 0 channels, s16
Stream #0.3[0x2f1](aae): Audio: mp3, 0 channels, s16
Stream #0.4[0x2f2](aag): Audio: mp3, 0 channels, s16
Stream #0.5[0x1fd0]: Data: [6][0][0][0] / 0x0006
Stream #0.6[0x400]: Data: [241][0][0][0] / 0x00F1
0x2ef was recorded correctly, 2f0, 2f1 and 2f2 are missing (and while they
probably don't contain audio, it might not hurt to record 0x1fd0 and 0x400 as
well, if they contain teletext, we would be very interested in the sample).
You possibly used szap to record, unfortunately, it does not work the way we
would all like it to work...
Yes, I used szap-s2, which will not let you specify multiple audio
streams. I think I will fix this limitation and try again.
Post by Carl Eugen Hoyos
Post by Mark Zimmerman
mplayer -nocorrect-pts -v sample.ts > mplayer.out
The -nocorrect-pts option is needed to keep it from playing at half speed.
That sounds unlikely to me, if it is really true, could you upload a longer
sample (this one is too short for A/V sync issues, imo).
There is a 2 minute (372MB) sample here:

<http://users.frii.com/markzimm/dvb-s2-test/sample-2010-08-08.ts>

with all the audio streams. I also tried to get 0x1fd0 and 0x400 but
I am not sure if I succeeded:

Input #0, mpegts, from 'sample-2010-08-08.ts':
Duration: 00:01:59.63, start: 14200.413444, bitrate: 26084 kb/s
Program 1
Stream #0.0[0x200]: Video: h264, yuvj420p, 1920x1080 [PAR 1:1 DAR 16:9], 126.58 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x2ef](aaa): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.2[0x2f0](aac): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.3[0x2f1](aae): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.4[0x2f2](aag): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.5[0x1fd0]: Data: [6][0][0][0] / 0x0006
Stream #0.6[0x400]: Data: [241][0][0][0] / 0x00F1

I can play it without the -nocorrect-pts option. For audio, the clip
begins and ends with sound but there are several commercials in it;
some have sound and some do not.

This idea of multiple audio streams is new to me and I am not sure how
to tell mplayer how to do the right thing. Is it supposed to merge the
streams? Other clips I have recorded sometimes play back with only the
left or right channel, or sometimes just background (crowd noise). So
far it seems random.
Carl Eugen Hoyos
2010-08-09 14:49:35 UTC
Permalink
Post by Mark Zimmerman
<http://users.frii.com/markzimm/dvb-s2-test/sample-2010-08-08.ts>
Thank you for the sample, I do not think we already have a similar one!
I am not really audiophile, but as far as I can hear, there is:
FL and FR on 0x2ef (aaa)
Center and LFE on 0x2f0 (aac)
SL and SR on 0x2f1 (aae)
A downmixed stereo stream (that's what you are currently searching for) on 0x2f2
(aag), -aid 754 for -demuxer mpegts.

In the future, there will hopefully be a possibility to use these (strange)
streams' surround signal, but atm, I hope you found "#" and -aid in the
documentation (and MPlayer's output for -demuxer lavf).

Did you patch szap? If yes, could you point me to the patch, I have the same
problem and I can only solve it with kaffeine. (And do you have to decrypt as
well?)

Carl Eugen
Mark Zimmerman
2010-08-09 23:28:49 UTC
Permalink
Post by Carl Eugen Hoyos
Post by Mark Zimmerman
<http://users.frii.com/markzimm/dvb-s2-test/sample-2010-08-08.ts>
FYI, my ISP is complaining about the file size so I copied the sample to
incoming/mz-2010-08-08/sample-2010-08-08.ts
and have deleted the one on frii.com.
Post by Carl Eugen Hoyos
Thank you for the sample, I do not think we already have a similar one!
FL and FR on 0x2ef (aaa)
Center and LFE on 0x2f0 (aac)
SL and SR on 0x2f1 (aae)
A downmixed stereo stream (that's what you are currently searching for) on 0x2f2
(aag), -aid 754 for -demuxer mpegts.
In the future, there will hopefully be a possibility to use these (strange)
streams' surround signal, but atm, I hope you found "#" and -aid in the
documentation (and MPlayer's output for -demuxer lavf).
That is what I was looking for but had not yet found. Thanks!
Post by Carl Eugen Hoyos
Did you patch szap? If yes, could you point me to the patch, I have the same
problem and I can only solve it with kaffeine. (And do you have to decrypt as
well?)
I crudely hacked szap just to get this sample. I will post a patch once I
redo it in a less shameful manner. There was no decryption involved.

-- Mark
Mark Zimmerman
2010-08-10 13:37:32 UTC
Permalink
Post by Carl Eugen Hoyos
Thank you for the sample, I do not think we already have a similar one!
Would additional samples be useful to anyone at this time?
Post by Carl Eugen Hoyos
In the future, there will hopefully be a possibility to use these (strange)
streams' surround signal.
Conceptually speaking, in the case of spdif passthrough to an external
receiver, would this just be a matter of pulling out all of the
streams and sending them all down the wire?

-- Mark
Carl Eugen Hoyos
2010-08-10 17:49:06 UTC
Permalink
Post by Mark Zimmerman
Post by Carl Eugen Hoyos
Thank you for the sample, I do not think we already have a similar one!
Would additional samples be useful to anyone at this time?
Only if you can record a sample where the (missing) surround effect can be heard
very easily, but I think the sample is fine, I will upload it to our sample-
server.
Post by Mark Zimmerman
Post by Carl Eugen Hoyos
In the future, there will hopefully be a possibility to use these (strange)
streams' surround signal.
Conceptually speaking, in the case of spdif passthrough to an external
receiver, would this just be a matter of pulling out all of the
streams and sending them all down the wire?
Do you have an A/V receiver that is able to decode MPEG audio? And, even more
unlikely, MPEG surround?
Seriously, whenever FFmpeg's audio filter is finished and can be used from
MPlayer, then this should be discussed again.

Carl Eugen
Axel Balaguer
2011-03-22 15:10:20 UTC
Permalink
Hello

I can't find how to configure mplayer with win32 codecs enable.
The option --with-win32libdir=/usr/lib/win32 seems to be disable.

I'm trying to build mplayer with rev. 33091

Any hlp will be appreciate.

Axel
Axel Balaguer
2011-03-22 15:26:40 UTC
Permalink
Post by Axel Balaguer
Hello
I can't find how to configure mplayer with win32 codecs enable.
The option --with-win32libdir=/usr/lib/win32 seems to be disable.
I'm trying to build mplayer with rev. 33091
Any hlp will be appreciate.
Axel
_______________________________________________
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
I've also try with the option --codecsdir=/usr/lib/win32 in the
configure command line.
Same result :

Checking for Win32 codecs ... no

Axel
Henry
2011-03-22 15:36:41 UTC
Permalink
Post by Axel Balaguer
Post by Axel Balaguer
Hello
I can't find how to configure mplayer with win32 codecs enable.
The option --with-win32libdir=/usr/lib/win32 seems to be disable.
That's because it is disabled.
./configure --help | grep codecs
should reveal what current options are available with the configure command.
Post by Axel Balaguer
Post by Axel Balaguer
I've also try with the option --codecsdir=/usr/lib/win32 in the
configure command line.
Try placing your codecs in the standard place.
/usr/local/lib/codecs/
Axel Balaguer
2011-03-22 15:41:30 UTC
Permalink
Post by Henry
Post by Axel Balaguer
Post by Axel Balaguer
Hello
I can't find how to configure mplayer with win32 codecs enable.
The option --with-win32libdir=/usr/lib/win32 seems to be disable.
That's because it is disabled.
./configure --help | grep codecs
should reveal what current options are available with the configure command.
I've tried with the --codecsdir=/usr/lib/win32 options, and I've got
the same result
Post by Henry
Post by Axel Balaguer
Post by Axel Balaguer
I've also try with the option --codecsdir=/usr/lib/win32 in the
configure command line.
Try placing your codecs in the standard place.
/usr/local/lib/codecs/
I've tried to, and it doesn't work.


Perhaps that I've got the wrong version of the tar.gz file.
Do you know wich is the good source for a debian squeeze 64 ?

Thanxs
Post by Henry
_______________________________________________
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Henry
2011-03-22 15:48:57 UTC
Permalink
Perhaps that I've got the wrong version of the tar.gz file.
Post by Axel Balaguer
Do you know wich is the good source for a debian squeeze 64 ?
Just use the latest using a subversion checkout.
Unless, you're having problems because of older versions of libraries
because
of squeeze. In which case, I would compile the latest install those
libraries in
the /usr/local directory. Since /usr/local priority usually comes first, it
will detect
and use the latest versions in that directory.

I prefer using the Debian testing version and keep my sources pointed to
the
testing tree. Debian testing is probably more up to date and stable than
most
of the current releases of other versions.
Post by Axel Balaguer
Thanxs
_______________________________________________
Post by Axel Balaguer
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
_______________________________________________
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Kevin DeKorte
2011-03-22 15:51:25 UTC
Permalink
Post by Axel Balaguer
Perhaps that I've got the wrong version of the tar.gz file.
Post by Axel Balaguer
Do you know wich is the good source for a debian squeeze 64 ?
Just use the latest using a subversion checkout.
Unless, you're having problems because of older versions of libraries
because
of squeeze. In which case, I would compile the latest install those
libraries in
the /usr/local directory. Since /usr/local priority usually comes first, it
will detect
and use the latest versions in that directory.
I prefer using the Debian testing version and keep my sources pointed to
the
testing tree. Debian testing is probably more up to date and stable than
most
of the current releases of other versions.
BTW, win32 codecs don't work on 64bit mplayer. There is a separate 64bit
codecs package, but the need for external codecs is pretty minimal these
days.

Kevin

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
Axel Balaguer
2011-03-22 15:58:10 UTC
Permalink
Post by Kevin DeKorte
BTW, win32 codecs don't work on 64bit mplayer. There is a separate 64bit
codecs package, but the need for external codecs is pretty minimal these
days.
Kevin
So you mean that with libavcodec etc... it's not important to configure
mplayer with this packages ?

My interest is only to use mencoder in command line on a youtube like
server.
Henry
2011-03-22 16:02:36 UTC
Permalink
Post by Axel Balaguer
So you mean that with libavcodec etc... it's not important to configure
mplayer with this packages ?
My interest is only to use mencoder in command line on a youtube like
server.
_
Read the documentation.
Post by Axel Balaguer
"Choose the package that matches your processor and operating system. If
your system cannot manage Linux libraries, choose the Windows package
instead. On Windows MPlayer will try to use the codecs installed on your
system. Our packages can save you the hassle of installing every known codec
and using untested codec versions. "
________________
Axel Balaguer
2011-03-22 16:06:36 UTC
Permalink
Post by Henry
Read the documentation.
Post by Axel Balaguer
"Choose the package that matches your processor and operating system. If
your system cannot manage Linux libraries, choose the Windows package
instead. On Windows MPlayer will try to use the codecs installed on your
system. Our packages can save you the hassle of installing every known codec
and using untested codec versions. "
My english is not perfect and I don't understand all the sentences.
I don't always understand what is important to display video on X11 and
what is important to encode video with the command line.
So I'm gonna to configure without this package.

Thanxs for the help :)
Henry
2011-03-22 16:20:19 UTC
Permalink
My english is not perfect and I don't understand all the sentences.
Post by Axel Balaguer
I don't always understand what is important to display video on X11 and
what is important to encode video with the command line.
So I'm gonna to configure without this package.
use the ./configure --help to see a list of available options.
And then use the dselect program in Debian (use the </> key to do a search
for available pre-compiled packages that will meet your needs. You need to
install the developer packages to be able to support your desired options.

libsdl-dev is one important debian package to install. There are others.

Thanxs for the help :)
Post by Axel Balaguer
_______________________________________________
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Krzysztof Duchnowski
2011-03-22 21:12:02 UTC
Permalink
Post by Axel Balaguer
Post by Kevin DeKorte
BTW, win32 codecs don't work on 64bit mplayer. There is a separate 64bit
codecs package, but the need for external codecs is pretty minimal these
days.
Kevin
So you mean that with libavcodec etc... it's not important to configure
mplayer with this packages ?
My interest is only to use mencoder in command line on a youtube like
server.
1 - if you compile 64bit MPlayer then it might use win64 only, and it
have little than no codecs (allmost - 3-5 codecs in package).

2 - with win32 codecs, the only usefull that I could think is
IntelIndeo5 which isn't decodable any other way (for others there are
code within FFMPEG).

3 - win32/64 codecs are used for decoding only...
--
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
Vladimir Mosgalin
2011-03-22 22:18:23 UTC
Permalink
Hi Krzysztof Duchnowski!
Post by Krzysztof Duchnowski
2 - with win32 codecs, the only usefull that I could think is
IntelIndeo5 which isn't decodable any other way (for others there are
code within FFMPEG).
Uh, intel indeo 5 IS in ffmpeg for some time and works perfectly, better
than original indeo decoder or xanim one (doesn't crash on minor stream
problems).

However there are decoders which aren't in ffmpeg and exist only in
win32 form; one I miss the most is voxware audio codec, with 64-bit
systems these streams are always silent..
--
Vladimir
Reimar Döffinger
2011-03-23 07:04:10 UTC
Permalink
Post by Krzysztof Duchnowski
3 - win32/64 codecs are used for decoding only...
That's not really correct, they can be used for encoding with mencoder, too, it usually just doesn't really work.
Carl Eugen Hoyos
2011-03-23 05:29:02 UTC
Permalink
Post by Axel Balaguer
Do you know wich is the good source for a debian squeeze 64 ?
1) win32 codecs do not work with a 64 bit MPlayer

2) to configure a 32-bit MPlayer, use "./configure --cc='gcc -m32'"
(You should not use the --codecsdir option and you certainly don't need libsdl)

3) If you are really a website admin, you should know not to break threads:
http://thread.gmane.org/gmane.comp.video.mplayer.user/64411

Carl Eugen
Continue reading on narkive:
Loading...