[MPlayer-users] mplayer -identify incorrect for certain .ts files
stattik
stattik at gmail.com
Tue Oct 2 23:40:19 CEST 2007
Hi All,
Mplayer is identifying certain TS files from the local CBS and CW
affiliates incorrectly.The local CBS affiliate broadcasts in 1080i and
the local CW affiliate broadcasts in 480P and 1080i.
When using the following command, mplayer correctly identifies the
framerate but gets the length wrong.
mplayer.exe test.file.ts -vo null -ao null -identify -frames 0
1>"test.file.info"
MPlayer dev-SVN-r24387-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 31, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
113 audio & 235 video codecs
Playing D:\Video\test.file\test.file.ts.
TS file format detected.
ID_VIDEO_ID=49
...
ID_VIDEO_ID=49
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)! PROGRAM N. 0
ID_VIDEO_ID=49
ID_AUDIO_ID=52
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 65000.0 kbps (8125.0 kbyte/s)
ID_FILENAME=D:\Video\test.file\test.file.ts
ID_DEMUXER=mpegts
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=65000000
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=2.51
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1920x1080 => 1920x1080 Mpeg PES
Selected video codec: [mpegpes] vfm: mpegpes (MPEG-PES output (.mpg or
DXR3/IVTV/DVB card))
==========================================================================
ID_VIDEO_CODEC=mpegpes
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=a52
Starting playback...
Exiting... (End of file)
When forcing -demuxer 35, the length is correct, but the framerate is
identified as 59.940
mplayer.exe test.file.ts -vo null -ao null -demuxer 35 -identify
-frames 0 1>"test.file.info"
MPlayer dev-SVN-r24387-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 31, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
113 audio & 235 video codecs
Playing D:\Video\test.file\test.file.ts.
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] Video stream found, -vid 0
ID_AUDIO_ID=1
[lavf] Audio stream found, -aid 1
VIDEO: [mpg2] 1920x1080 0bpp 59.940 fps 65000.0 kbps (7934.6 kbyte/s)
ID_FILENAME=D:\Video\test.file\test.file.ts
ID_DEMUXER=lavf
ID_VIDEO_FORMAT=mpg2
ID_VIDEO_BITRATE=65000000
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=59.940
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=11.03
==========================================================================
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
ID_VIDEO_CODEC=mpeg12
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=a52
Starting playback...
Since I use the ID_LENGTH info for two-pass encoding, I've always used
the -demuxer 35 option when working with TS files. Shows from NBC and
ABC are identified correctly.
I've uploaded a test clip and verbose outputs to
ftp://upload.mplayerhq.hu/MPlayer/incoming/ts.file-bad.identify/
Any help would be greatly appreciated.
--
stattik
More information about the MPlayer-users
mailing list