[MPlayer-dev-eng] [PATCH] vf_screenshot, output filename corresponding to the played file

Ruslan Savchenko ruslan.savchenko at gmail.com
Sun Nov 30 01:18:03 CET 2008


On Sat, Nov 29, 2008 at 12:47 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Nov 25, 2008 at 11:26:49PM +0300, Ruslan Savchenko wrote:
>> On Tue, Nov 25, 2008 at 10:19 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
>> > On Sun, Nov 23, 2008 at 07:59:26PM +0300, Ruslan Savchenko wrote:
>> Is the following code ok? ipts handles 2^32 msecs which is more than
>> 490 days video length.
>>
>>     long int ipts;
>>     uint32_t hour, min, sec, msec;
>>     ipts = lrint(pts * 100);
>>     hour = (uint32_t) (ipts/360000);
>>     min  = (uint32_t) (ipts/6000) % 60;
>>     sec  = (uint32_t) (ipts/100) % 60;
>>     msec = (uint32_t) (ipts) % 100;
>
> i would use a int64_t in there
> except that it does look ok
>

Updated patches attached. Since Uoti objected the usage of the global
filename, only "shot" and user-specified basename are left.
I will highly appreciate if someone point me how passing the filename
into vf should be implemented.

-- 
Regards,
savrus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replace-magic-number-102-by-SHOT_FNAME_LENGTH-macro.patch
Type: application/octet-stream
Size: 917 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-priv-fname-allocation-from-static-to-dynamic.patch
Type: application/octet-stream
Size: 1519 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-m_option-structure-for-new-options-in-further-pa.patch
Type: application/octet-stream
Size: 1606 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Added-a-style-option-to-print-timestamp-in-screens.patch
Type: application/octet-stream
Size: 2722 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Cosmetics-in-gen_fname-.-Shift-old-code-to-appropri.patch
Type: application/octet-stream
Size: 1369 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Added-a-basename-option-to-use-instead-of-shot-whe.patch
Type: application/octet-stream
Size: 1444 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Update-screenshot-section-in-man-page.patch
Type: application/octet-stream
Size: 1200 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081130/7e03414e/attachment-0006.obj>


More information about the MPlayer-dev-eng mailing list