Mercurial > mplayer.hg
annotate TOOLS/midentify.sh @ 36545:f0e92381681d
Add support for files with MLTI chunks.
Fixes 06.rm and 08_lect_01.rm from FFmpeg trac #2152
Fixes also files from ftp://ftp.aduni.org/videos/
The patch has these limitations:
- no multirate files with MLTI chunks
- no mixed files (eg. MLTI for audio but not for video)
- no MLTI for video together with non-ra audio (eg. ralf)
- only DATA v0 (no v1, versions greater than 1 should not exist)
Files with these feature shuld not really exist anyway.
Also video MLTI files with only one stream are supported but untested
author | rtogni |
---|---|
date | Sun, 19 Jan 2014 15:12:46 +0000 |
parents | 877e37095c2d |
children |
rev | line source |
---|---|
27198 | 1 #!/bin/sh |
2 # | |
3 # This is a wrapper around the -identify functionality. | |
4 # It is supposed to escape the output properly, so it can be easily | |
5 # used in shellscripts by 'eval'ing the output of this script. | |
6 # | |
7 # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de> | |
8 # Licensed under GNU GPL. | |
9 | |
10 if [ -z "$1" ]; then | |
11 echo "Usage: midentify.sh <file> [<file> ...]" | |
12 exit 1 | |
13 fi | |
14 | |
34598
877e37095c2d
Optimize midentify script to not wasted time filling the cache.
reimar
parents:
27198
diff
changeset
|
15 mplayer -noconfig all -cache-min 0 -vo null -ao null -frames 0 -identify "$@" 2>/dev/null | |
27198 | 16 sed -ne '/^ID_/ { |
17 s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p | |
18 }' |