[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Uddrage codec oplysninger fra multimedia filer



On Wed, 14 Oct 2009 20:28:27 +0200
Stig Hornuff <sslug@sslug> wrote:


> On 10/14/2009 08:15 PM, Eskild Nielsen wrote:
> > Multimediefiler indeholder information om hvilke codec, der er
> > brugt, hvilken opløsning, bitrater, varighed osv.
> >
> > I et bibliotek på en server ligger der nogle tusinde af den
> > slags filer
> > - fordelt i forskellige underbiblioteker.
> >
> > Jeg har brug for at danne en tabel (regneark, database, textfil
> > - i 
> > første omgang ligegyldigt) som indeholder sådanne tekniske
> > oplysninger for disse filer.
> >
> > hvis det kun var nogle få filer, så kunne jeg manelt åbne dem
> > med fx vlc, se relecvante data på tools/codec menuen, kopiere
> > dem til min output fil,  gentage med næste fil, osv.
> >
> > Men antallet gør at dette ikke er realsitisk
> >
> > Jeg kan huske, at jeg på disse sider har set noget der lignede
> > det rigtige; jeg kan bare ikke genfinde tråde
> >
> > Derfor spørger jeg påny og håber at også jeg kan få hjælp om
> > dette...
> >
> > /eskild
> >

> Tja... du kan jo evt. prøve med: mplayer -frames 1 -identify
> 
> - men det kræver selvfølgelig at du har/installerer mplayer.

for at korte responstid ned fx.:
$ mplayer -endpos 0.5 -vo null -vc null -ao null -identify <videofile>
giver masser af output, bl.a.

ID_CLIP_INFO_NAME1=Software
ID_CLIP_INFO_VALUE1=CanonMVI02
ID_CLIP_INFO_N=2
ID_FILENAME=MVI_4600.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=MJPG
ID_VIDEO_BITRATE=4804064
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=10.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=88192
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=3.70
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
ID_VIDEO_CODEC=ffmjpeg

// etc.etc.


-- 
Donald Axel <sslug@sslug>


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *