Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#743 No duration for Mpeg 2 video

Incorrect_result
open-accepted
None
3
2013-03-08
2013-03-07
valievkarim
No

Hello.
Mediainfo v0.7.62 (built from http://mediaarea.net/download/binary/mediainfo/0.7.62/MediaInfo_CLI_0.7.62_GNU_FromSource.tar.bz2) doen't report video duration on some files.

Sample file: http://91.236.183.34/karim/zl.mkv
v0.7.58 from Ubuntu forks fine.

karim@ru-msk-dln-tfarm-dev2:~/new-me/MediaInfo_CLI_GNU_FromSource$ ./MediaInfo/Project/GNU/CLI/mediainfo zl.mkv
General
Unique ID : 111962147081540706781759331442201557790 (0x543B200B27DD058869FFD73DD4897B1E)
Complete name : zl.mkv
Format : Matroska
Format version : Version 2
File size : 4.90 MiB
Duration : 10s 120ms
Overall bit rate mode : Variable
Overall bit rate : 4 058 Kbps
Writing application : Lavf54.61.103
Writing library : Lavf54.61.103

Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : No
Format settings, Matrix : Custom
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Bit rate mode : Variable
Bit rate : 3 593 Kbps
Maximum bit rate : 8 500 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Original frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Time code of first frame : 00:00:15:20
Time code source : Group of pictures header
Title : Займемся любовью
Language : Russian
Default : Yes
Forced : No

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 10s 120ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 5s 240ms
Stream size : 474 KiB (9%)
Language : Russian
Default : Yes
Forced : No

karim@ru-msk-dln-tfarm-dev2:~/new-me/MediaInfo_CLI_GNU_FromSource$ ./MediaInfo/Project/GNU/CLI/mediainfo '--Inform=Video;%Duration%' zl.mkv

I will be grateful for any help you can provide.

Karim.

Discussion

  • It is actually a correction: currently, I don't check the ned boundary of MKV file, and the MKV header has only the container duration(one unique duration for the complete file, all streams together).

    I see that there is audio duration, it is an issue because it is not well calculated. I'll remove the audio duration computing the way it is currently implemented, and I add a check of end boundary so you may have the stream duration. In the meanwhile, you can use the container duration if it fits your needs.

     
    • status: open --> open-accepted
    • assigned_to: Jerome Martinez
    • priority: 5 --> 3