Bug 454196

Summary: Totem has problems with some types of mkv files
Product: [Fedora] Fedora Reporter: Stephen So <steve8988>
Component: totemAssignee: Bastien Nocera <bnocera>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 9CC: s.adam
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-01 11:30:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
mkv file created using VirtualDubMod
none
mkv file created using avimux none

Description Stephen So 2008-07-06 13:00:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0

Description of problem:
When totem opens mkv (matroska video) files that were created in Windows using virtualdubmod, there are no problems.  Seeking is fast, total time of video is correct, etc.

When totem opens mkv files created using avimux (which the matroska.org recommends over virtualdubmod), there are issues.  Seeking is very slow and the total time of video is about twice as much.

I have attached a 25 second sample mkv files of the above two cases.  The vdub.mkv shows correct total time (25 secs) while the avimux.mkv shows 51 secs.

Both files play fine in mplayer and no issues occur

Totem is using the gstreamer backend here.

Version-Release number of selected component (if applicable):
totem-2.23.2-4

How reproducible:
Always


Steps to Reproduce:
1.  Open vdub.mkv in totem
2.  Play video till end and note the total time of the video
3.  Open avimux.mkv in totem
4.  Play video till end and note the total time of the video

Actual Results:
Playing vdub.mkv is fine and total time is 25 seconds.
Playing avimux.mkv is fine up till 25 seconds, where the video freezes.  Total time shown in totem is 51 seconds.

Expected Results:
avimux.mkv should play fine and display correct 25 second length.

Additional info:
I've attached both files.
They play fine in mplayer.
I've also tried switching the backend to xine.  When playing avimux.mkv, correct time is displayed but it always starts at 12 seconds onwards.

Comment 1 Stephen So 2008-07-06 13:02:32 UTC
Created attachment 311098 [details]
mkv file created using VirtualDubMod

This file plays fine in totem.	Correct time is 25 seconds.

Comment 2 Stephen So 2008-07-06 13:05:01 UTC
Created attachment 311099 [details]
mkv file created using avimux

This file has issues when opened in totem.  Totem time is 51 secs instead of
25.

Comment 3 Bastien Nocera 2008-09-01 11:23:27 UTC
I'd say a definite bug in avimux:
|+ Segment information
| + Muxing application: matroska muxer by Alexander Noe, build date Aug  8 2006
| + Writing application: AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
| + Duration: 51.600s (00:00:51.600000000)
| + Segment UID: 0xe0 0x77 0xcd 0xf9 0x13 0x5e 0x95 0x89 0xbc 0xfa 0x26 0x3b 0x25 0xee 0x95 0xa8
| + Timecode scale: 500000

The duration is 51.600 seconds. It doesn't hang here, and seems to stop a short while after reaching the 25 seconds. Avimux probably adds the length of the audio and video tracks, hence the discrepancy.

Comment 4 Bastien Nocera 2008-09-01 11:30:54 UTC
Filed upstream: http://bugzilla.gnome.org/show_bug.cgi?id=550191