linux console查看高清视频文件信息

51 views
Skip to first unread message

Hades Enduos

unread,
Feb 2, 2010, 9:20:41 PM2/2/10
to sh...@googlegroups.com
有人知道什么软件能在命令行下查看高清1080p/720p文件后缀为MKV/AVI的视频/音频编码信息?

Ben Luo

unread,
Feb 2, 2010, 9:22:22 PM2/2/10
to sh...@googlegroups.com
ffmpeg?

2010/2/3 Hades Enduos <hades_...@hotmail.com>
有人知道什么软件能在命令行下查看高清1080p/720p文件后缀为MKV/AVI的视频/音频编码信息?

Xi Shen

unread,
Feb 2, 2010, 9:23:47 PM2/2/10
to sh...@googlegroups.com
2010/2/3 Hades Enduos <hades_...@hotmail.com>:
> 有人知道什么软件能在命令行下查看高清1080p/720p文件后缀为MKV/AVI的视频/音频编码信息?

console下可以看视频?用mplayer?怎么玩?


--
Best Regards,
David Shen

http://twitter.com/davidshen84/

Xi Shen

unread,
Feb 2, 2010, 9:24:27 PM2/2/10
to sh...@googlegroups.com
2010/2/3 Xi Shen <david...@googlemail.com>:


晕~~~看漏字了。忽略

yaoshi lee

unread,
Feb 2, 2010, 9:25:30 PM2/2/10
to sh...@googlegroups.com
mplayer xxx.avi -vo fbdev

Hades Enduos

unread,
Feb 2, 2010, 9:51:12 PM2/2/10
to sh...@googlegroups.com
果然不出所料还是mplayer,就没有别的了吗?

Marco

unread,
Feb 3, 2010, 2:05:55 AM2/3/10
to sh...@googlegroups.com
mplayer -identify -frames 0 -vo null -ao null -really-quiet <file_you_wanna_know.XXXX>

mplayer有什么不好吗?


2010/2/3 Hades Enduos <hades_...@hotmail.com>



--
LinuX
Violin
Canon EOS

Jiahua Huang

unread,
Feb 3, 2010, 2:09:37 AM2/3/10
to sh...@googlegroups.com
普通的控制台肯定不行,得开 framebuffer。
如果你只是要 framebuffer 下,那么启动个 xserver-xfbdev 算了,
而后就可以直接用 X 下的各种播放器,如 

xserver-xfbdev - Linux framebuffer device tiny X server
 xserver-xfbdev is a Linux framebuffer device tiny X server based on the
 kdrive X server.

Marco

unread,
Feb 3, 2010, 2:15:56 AM2/3/10
to sh...@googlegroups.com
还可以 mplayer -vo aa XXXXX

2010/2/3 Jiahua Huang <jhuang...@gmail.com>

--
LinuX
Violin
Canon EOS
Sent from Shanghai, 31, China

yaoshi lee

unread,
Feb 3, 2010, 2:24:22 AM2/3/10
to sh...@googlegroups.com
xserver-xfb跟framebuffer不是一回事情好哇

xserver-xfb是基于vga16fb的模式,就是vesa1.1/2.0的模式做的 我的理解就是啥加速多没有。

kernel framebuffer本身有加速的,尽管少的可怜,rivafb intelfb这种多能支持有限的加速模式,

真正基于framebuffer + 硬件加速的,就是directfb. 不过directfb上面也就gtk自己玩的happy,除了gtk,好像没啥应用库(好像qt有移植)

一般的硬件加速写法,大部分照opengl/mesa ,mesa实现又是基于X 的框架。加速的玩法是在xserver的驱动里面打开,在kernel里面没有对应的opengl接口。

普通的控制台的意思是vt100/vt102的话,那就没啥好说了

framebuffer的好处是启动快,占地小。不过高级货多不跟他玩。

Hades Enduos

unread,
Feb 3, 2010, 2:33:45 AM2/3/10
to sh...@googlegroups.com
额,貌似一开始的需求只是要看高清文件的视频/音频编码信息

From: yaoshi lee
Sent: Wednesday, February 03, 2010 3:24 PM
Subject: Re: [shlug] linux console查看高清视频文件信息

huang ying

unread,
Feb 3, 2010, 2:35:09 AM2/3/10
to sh...@googlegroups.com
如果只看信息不是playback的话,可以看看这个:

http://mediainfo.sourceforge.net/zh-CN

有Linux命令行版本的。

yaoshi lee

unread,
Feb 3, 2010, 2:44:02 AM2/3/10
to sh...@googlegroups.com
ffmpeg /mplayer/vlc/ 均采用libavformat

Hades Enduos

unread,
Feb 3, 2010, 2:44:58 AM2/3/10
to sh...@googlegroups.com
看上去这个比较有针对性。GOOD。

From: yaoshi lee
Sent: Wednesday, February 03, 2010 3:44 PM
Subject: Re: [shlug] linux console查看高清视频文件信息

Jiahua Huang

unread,
Feb 3, 2010, 2:49:57 AM2/3/10
to sh...@googlegroups.com
呃,命令行的编码信息查看啊,

ffmpeg 也可以

Chong Yang

unread,
Feb 4, 2010, 9:24:13 PM2/4/10
to sh...@googlegroups.com
hachoir-metadata extracts metadata from multimedia files: music,
picture, video, but also archives. It supports most common file
formats:

Archives: bzip2, gzip, zip, tar
Audio: MPEG audio ("MP3"), WAV, Sun/NeXT audio, Ogg/Vorbis (OGG),
MIDI, AIFF, AIFC, Real audio (RA)
Image: BMP, CUR, EMF, ICO, GIF, JPEG, PCX, PNG, TGA, TIFF, WMF, XCF
Misc: Torrent
Program: EXE
Video: ASF format (WMV video), AVI, Matroska (MKV), Quicktime (MOV),
Ogg/Theora, Real media (RM)


$ hachoir-metadata pacte_des_gnous.avi
Common:
- Duration: 4 min 25 sec
- Comment: Has audio/video index (248.9 KB)
- MIME type: video/x-msvideo
- Endian: Little endian
Video stream:
- Image width: 600
- Image height: 480
- Bits/pixel: 24
- Compression: DivX v4 (fourcc:"divx")
- Frame rate: 30.0
Audio stream:
- Channel: stereo
- Sample rate: 22.1 KHz
- Compression: MPEG Layer 3


http://pypi.python.org/pypi/hachoir-metadata/1.3.2

2010/2/3 Jiahua Huang <jhuang...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages