Opened 10 years ago

Closed 10 years ago

#1597 closed defect (fixed)

mplayer midentify doesn't detect video parameters

Reported by: denys@… Owned by: r_togni@…
Priority: normal Component: demuxer
Version: HEAD Severity: minor
Keywords: Cc: reimar
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Not sure which part it belongs, core or demux.

I have a file, where midentify will fail to detect correct parameters.
I am not sure it will cause playback problems, but probably it will be nice to show proper result in midentify.
I am using mplayer as tool to retrieve video/audio parameters from video files on my embedded box. Tested on svn version of ffmpeg (to build shared libavcodec), and git version of mplayer and tested there.

Also i test on latest ebuilds of mplayer on gentoo with x264 library enabled, it gives same results.

mplayer with debug output from gentoo
mplayer -vo null -ao null -frames 0 -identify -v /work/00001small.m2ts >/home/nuclear/x264_fail.txt

http://www.nuclearcat.com/files/x264_fail.txt

sample file (cut to 10Mbyte)
http://www.nuclearcat.com/files/00001small.m2ts

ffmpeg detecting file properly
home distfiles # ffmpeg -v 9 -loglevel debug -i /work/00001small.m2ts
FFmpeg version SVN-r20373, Copyright (c) 2000-2009 Fabrice Bellard, et al.

built on Nov 3 2009 02:16:15 with gcc 4.3.3
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-debug --disable-ffplay --disable-network --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --disable-indev=v4l --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-x11grab --enable-libdirac --enable-libgsm --disable-vdpau --disable-vdpau --disable-altivec --cpu=core2 --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avfilter-lavf --disable-stripping --enable-hardcoded-tables
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.37. 1
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1. 4. 1 / 1. 4. 1
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0

[NULL @ 0x860720]Probed with size=2048 and score=100
[h264 @ 0x87ced0]no picture
[mpegts @ 0x860720]MAX_READ_SIZE:5000000 reached

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001)
Input #0, mpegts, from '/work/00001small.m2ts':

Duration: 00:00:03.12, start: 599.958311, bitrate: 26188 kb/s
Program 1

Stream #0.0[0x1011], 1/90000: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 1001/48000, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0.1[0x1100](eng), 1/90000: Audio: truehd, 48000 Hz, 6 channels, s32
Stream #0.2[0x1100], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
Stream #0.3[0x1101](rus), 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Stream #0.4[0x1200](rus), 1/90000: Subtitle: pgssub
Stream #0.5[0x1201](rus), 1/90000: Subtitle: pgssub

If you need more information - let me know

Change History (2)

comment:1 Changed 10 years ago by compn

mplayer output:
Playing 00001.m2ts.
TS file format detected.
FPS seems to be: 23.976025
ID_FILENAME=00001.m2ts
ID_DEMUXER=mpegts
ID_VIDEO_FORMAT=0x10000005
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=0
ID_VIDEO_HEIGHT=0
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=0.00
ID_SEEKABLE=1
ID_CHAPTERS=0

mplayer -demuxer lavf output:
Playing 00001.m2ts.
libavformat file format detected.
[lavf] Video stream found, -vid 0
VIDEO: [HDMV] 1920x1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=00001.m2ts
ID_DEMUXER=lavf
ID_VIDEO_FORMAT=HDMV
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7778
ID_LENGTH=9.18
ID_SEEKABLE=1
ID_CHAPTERS=0

workaround: add -demuxer lavf to midentify script.

comment:2 Changed 10 years ago by denys@…

  • Resolution set to fixed
  • Status changed from new to closed

Thanks a lot, it is working like this

Note: See TracTickets for help on using tickets.