[MPlayer-dev-eng] Patch to display the start time of a media file with -identify

Kevin DeKorte kdekorte at gmail.com
Sun Jun 6 05:18:41 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/05/2010 12:04 PM, Reimar Döffinger wrote:
> On Sat, Jun 05, 2010 at 08:57:08AM -0600, Kevin DeKorte wrote:
>> @@ -1239,6 +1239,7 @@
>>    int width;
>>    char *line;
>>    unsigned pos = 0;
>> +  static start_shown = 0;
> 
> Missing a type and will not work with multiple files on the commandline.
> 

Duh, ok that is a basic mistake..

>> @@ -1262,6 +1263,11 @@
>>        sadd_hhmmssf(line, &pos, width, len);
>>        saddf(line, &pos, width, ") ");
>>      }
>> +    if (!start_shown) {
>> +      mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_START_TIME=%6.1f\n", a_pos);
>> +      start_shown = 1;
>> +    }
>> +
> 
> This also is definitely the wrong place, and it does not work with
> video-only files and will also be quite questionable with files with
> very different starting times for different streams.


So where would be a better place to put this. I tried putting it where
ID_LENGTH is output, but I kept getting zero values.

Kevin
- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkwLE5EACgkQ6w2kMH0L1dEhNQCeLoYM0g/8XP/vwn9d/twWo28J
OjsAn2HWd/DXKUvXpy6zZDjKTV/qOs5d
=Cd29
-----END PGP SIGNATURE-----



More information about the MPlayer-dev-eng mailing list