Every time I try to get some information about my video files with ffmpeg, it pukes a lot of useless information mixed with good things.
我用ffmpeg -i name_of_the_video.mpg
.
There are any possibilities to get that in a friendly way? I mean JSON would be great (and even ugly XML is fine).
到现在为止,我让我的应用程序用regex解析数据,但在一些特定的视频文件中出现了许多令人讨厌的角落.我修复了所有遇到的问题,但可能还有更多问题.
I wanted something like:
{
"Stream 0": {
"type": "Video",
"codec": "h264",
"resolution": "720x480"
},
"Stream 1": {
"type": "Audio",
"bitrate": "128 kbps",
"channels": 2
}
}