[MPlayer-dev-eng] how to demux mov file with mpeg1 muxed

Nico Sabbi nsabbi at email.it
Tue Oct 11 10:00:47 CEST 2005


Diego Biurrun wrote:

>On Sat, Oct 08, 2005 at 09:25:08PM +0200, Nico Sabbi wrote:
>  
>
>>du qwen wrote:
>>
>>    
>>
>>>the demux_mov.c only deals with MPEG4, the file
>>>www.vai.com/updates/vh-1_vids/MOV00059.mov<http://www.vai.com/updates/vh-1_vids/MOV00059.mov>
>>>can not be playered by mplayer,but quicktime player's info is :
>>>...format:MPEG1 Muxed....
>>>here is the mplayer's info :
>>>CommandLine: '../../movie/mov00059.mov' '-v'
>>>Playing ../../movie/mov00059.mov.
>>>[file] File size is 1372094 bytes
>>>STREAM: [file] ../../movie/mov00059.mov
>>>Searching demuxer type for filename ../../movie/mov00059.mov ext: .mov
>>>Trying demuxer 7 based on filename extension
>>>Checking for MOV
>>>MOV: Movie header found!
>>>MOV: 'WIDE' chunk found!
>>>MOV: Movie DATA found!
>>>QuickTime/MOV file format detected.
>>>MOV: Movie header (100 bytes): tscale=90000 dur=1360800
>>>--------------
>>>MOV: Track #0:
>>>MOV: Track header!
>>>tkhd len=84 ver=0 flags=0x0 id=1 dur=1360800 lay=0 vol=256
>>>MOV: Edit atom!
>>>MOV: Edit list table (1 entries) (ver:0,flags:0)
>>>MOV: entry#0: duration: 1360800 start time: 0 speed: 1.0x
>>>MOV: Media stream!
>>>MOV: Media header!
>>>MOV: Handler header: mhlr/MPEG (appl) Apple MPEG Media Handler
>>>MOV: Media info!
>>>MOV: Generic header!
>>>MOV: Handler header: dhlr/alis (appl) Apple Alias Data Handler
>>>MOV: unknown chunk: dinf 28
>>>MOV: Sample info!
>>>MOV: Description list! (cnt:1)
>>>MOV: desc #0: m1s (268 bytes)
>>>MOV: Sample duration table! (1 blocks)
>>>MOV: Sample->Chunk mapping table! (1 blocks) (ver:0,flags:0)
>>>MOV: Sample size table! (entries=1 ss=1371136) (ver:0,flags:0)
>>>MOV: Chunk offset table! (1 chunks)
>>>MOV track #0: 1 chunks, 0 samples
>>>pts=1360800 scale=90000 time=15.120
>>>EL#0: pts=0 1st_sample=0 frames=1 (15.120s) pts_offs=0
>>>Generic track - not completely understood! (id: 0)
>>>--------------
>>>Quicktime Clip Info:
>>>MOV: longest streams: A: #-1 (0 samples) V: #-1 (0 samples)
>>>      
>>>
>>try to add -demuxer 2 (or -demuxer mpegps) to your command line
>>    
>>
>
>QuickTime 7 plays the file without problems.  Is there a way to automate
>this?
>
>Diego
>
>  
>

yes: build a list of known mpeg atoms: 1ba is surely one (really poor 
fantasy:) )
m1s seems to be another one, then build a chained demuxer and return the 
new demuxer.
An example is in demux_rtp.cpp:

[...]
    stream_t* s = new_ds_stream(demuxer->video);
    demuxer_t* od = demux_open(s, DEMUXER_TYPE_UNKNOWN,      ///// 
DEMUXER_TYPE_MPEGPS in this case
                               audio_id, video_id, dvdsub_id, NULL);
    demuxer = new_demuxers_demuxer(od, od, od);
[...]
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Sono aperte le iscrizioni per il corso Nazionale di Web Marketing
* Imparerai come promuoverti sui motori di ricerca - clicca qui
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3215&d=11-10




More information about the MPlayer-dev-eng mailing list