How to find the start and end duration of "Selected frames" from Video using didFinishPickingMediaWithInfo?
I am doing slow motion in audio and video using AVFoundation(for Video) and Dirac(Audio). As part of it, i will show the video as frames in which the user will select the frames to do slow motion. Eg: 5-6 min of 10 min video.
I have to show the users two kinds of videos 1. through the video recorder from my application itself. 2. from the gallery.
Case1: No problem Now,i can record the videos though my video recorder and show the videos as frames to the user to select. Once the user selects some frames(Eg: 5 to 6 min of 10 min recorded video), using the below code, i am able to find the start/end duration of the selected frames or video.
NSNumber *start = [info objectForKey:@"_UIImagePickerControllerVideoEditingStart"]; NSNumber *end = [info objectForKey:@"_UIImagePickerControllerVideoEditingEnd"]; int startMilliseconds = ([start doubleValue] * 1000);int endMilliseconds = ([end doubleValue] * 1000);
Case2: In this case, i am able to pick the video from the gallery and show them to the user in the form of frames to select. However, when i try to find the start/end duration of the video as i did in case 1 with the same code, its not working. I am always getting "0" for start/end duration.
Can you please give some suggestion on my Issue ?
+1 .. also. i'd to know is using "_UIImagePickerControllerVideoEditingStart"
the app won't be rejected..
thanks,
F
Similar Messages
-
How to find the start and end sector index/physical address of any given file?
I need to find the range of sectors that a file occupied. Then determine the slack space in that file and then analyze the slack space. This is a forensics project work. I am new to forensics and have no idea what Window API calls may help me accomplish
this task. Any kind of help will be appreciated.One solution if you want all the dates in one column:
SQL > SELECT *
2 FROM
3 (
4 SELECT (CASE WHEN ID = 1 THEN TRUNC(MTH,'MONTH') ELSE ADD_MONTHS(TRUNC(MTH,'MONTH'),1)-1 END) AS MTH
5 FROM
6 (
7 SELECT ADD_MONTHS(TO_DATE(:begin_month,'MM/DD/YYYY'),LEVEL-1) AS MTH
8 FROM DUAL
9 CONNECT BY LEVEL <= ABS(MONTHS_BETWEEN(TO_DATE(:begin_month,'MM/DD/YYYY'),TO_DATE(:end_month,'MM/DD/YYYY')))+1
10 )
11 CROSS JOIN
12 (
13 SELECT 1 AS ID FROM DUAL UNION ALL
14 SELECT 2 FROM DUAL
15 )
16 )
17 WHERE MTH BETWEEN TO_DATE(:begin_month,'MM/DD/YYYY') AND TO_DATE(:end_month,'MM/DD/YYYY')
18 ORDER BY MTH
19 /
MTH
03/31/2009 00:00:00
04/01/2009 00:00:00
04/30/2009 00:00:00
05/01/2009 00:00:00
05/31/2009 00:00:00
06/01/2009 00:00:00
06/30/2009 00:00:00
07/01/2009 00:00:00
07/31/2009 00:00:00
08/01/2009 00:00:00
08/31/2009 00:00:00
09/01/2009 00:00:00
09/30/2009 00:00:00
10/01/2009 00:00:00
10/31/2009 00:00:00
11/01/2009 00:00:00
11/30/2009 00:00:00
12/01/2009 00:00:00
12/31/2009 00:00:00
01/01/2010 00:00:00
01/31/2010 00:00:00
02/01/2010 00:00:00
02/28/2010 00:00:00
03/01/2010 00:00:00 -
How to find the start and ending dates of a quarter of a particular fiscal
Hi Experts,
I need a function mudule which returns starting and ending date s of a particular quarter of a particular fiscal year .
For Example: if pass 1 quarter and 2002 or 2 quarter 2002 it has to give me the star and end dates of that particular quarter na d fiscal year.
Please help me which is urgent for me.Hi Kishan thanks for reply.
But given function module the 2nd one is full but it is giving me the calender year dates but i need fiscal yea dates.
fro example: if i pass 1 st quarte and 2006 it is to give me the 1st-april to 30-jun2006.
And need this quater starting date and ending date for as per USA fiscal year calender.
If u get any idea plz let me know.
thanks.
Dashmantha. -
Query to find the start and end date of current quarter
I want a query to give me the start date and end date of current quarter
I don't want to use TRUNC and ROUND as the 16th day roundoff logic is not required.
Thanks in advance.Hi ,
I'm quite sure that the year quarters are static.....
So , you can save them as records of a table , such as:
QRTY START_DAY END DAY
============================
1 1/1 30/3
2 1/4 30/6
3 1/7 30/9
4 1/10 31/12
The sysdate(day of the current quarter) must be between a start_day and appropriate end_day of the quarters, concatenated with the sysyear (year of the sysdate).
So , if the above table is called Quarters ...
then
select start_day , end_day
from quarters
where to_date(sysdate,'dd/mm/rrrr') between (to_date(trim((start_day||'/'||to_char(sysdate,'rrrr'))),'dd/mm/rrrr'))
and (to_date(trim((end_day||'/'||to_char(sysdate,'rrrr'))),'dd/mm/rrrr'));
[b]Result
START_DAY END_DAY
1/10 31/12
Regards,
Simon
Message was edited by:
sgalaxy
Message was edited by:
sgalaxy -
Getting the start and end dates of the week
Hi,
I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
ThanksThere is no simple way. It has to be a math calculation.
There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
Hope this helps to get you started.
- Venkat Dhurjati. -
What is CPI-C and how to find the username and password for a 4.7c install
Dear Friends,
Please tell me what is a CPI-C username is ??
When do we use it?
And how/from where could I find the CPI-C user name and password of a particular system(4.7c)?
Please give me a detail knowledge.
waiting for replies ....
thx,
jeevanOS X 10.7 Lion, 10.8 Mountain Lion & 10.9 Mavericks
Reset Password starting from Recovery HD
Start the computer,then press and hold down command and R keys to start into recovery partition.
When you see the Apple logo, release the keys.
Wait until OS X Utilities window shows up.
Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
from the drop down.
Terminal window will appear.
Type in resetpassword and press enter on the keyboard.
Leave the Terminal window open.
Reset Password Utility window will open with Macintosh HD selected.
Select the user account from the popup menu box.
Enter a new password.
Reenter the new password for the user.
Enter a hint.
Click the "Save" button.
Click in the menubar and select Restart.
Log in.
If Keychain dialog box appears, select “Create New Keychain”. -
How to find the start condition of a ABAP program?
Hello Gurus!,
Could any one please explain how to find the start condition of a ABAP program?
like its a event based or time based?and also how to find that event and time..
Thanks in Advance...
DinakarHi Dinkar,
Go to Job Schedule, put Job Step parameter as your program and see scheduled Job.
In Schedule Job double click to see start condition. and steps to see details and variant.
Hope it helps.
Thanks
CK -
How to find the columns and tables used in a stored procedure?
Hi,
Can someone suggest how to find the columns and tables used within a stored procedure?
Thanks
VBKFor example:
SQL> create or replace
2 procedure p1
3 is
4 cnt number;
5 begin
6 select count(*) into cnt from emp;
7 end;
8 /
Procedure created.
SQL> select referenced_owner,
2 referenced_name
3 from dba_dependencies
4 where owner = 'SCOTT'
5 and name = 'P1'
6 and referenced_type = 'TABLE'
7 /
REFERENCED_OWNER REFERENCED_NAME
SCOTT EMP
SQL> SY. -
Define the start and end dates of an assigned academic period in fee calc.
Define the start and end dates of an assigned academic period
Message no. HRPIQ00ACCOUNTING132
Diagnosis
The academic calendar assigned to the top organizational unit does not contain a start or end date for the academic period (academic year and session) assigned to fee calculation period Z000.
System Response
The system will skip fee calculation period Z000 and continue processing with the next fee calculation period.
Procedure
1. Check which academic calendar is assigned to the top organizational unit.
2. Check which academic period is assigned to fee calculation period Z000. You check this setting in Customizing for Campus Management in the IMG activity Assign Academic Years and Sessions to Fee Calculation Periods.
3. In this academic calendar, create the start and end dates of the relevant academic period using standard time limit 0100 (standard duration of academic period) or a corresponding user-defined time limit.
For more information, see
Define Top Organizational Unit
Define Mandatory Time Limits for Academic Calendar
please give me the needful information to solve this problem.
Regards
Arun RaiArun,
Have you looked in the Student Accounting Cookbook
http://www.sdn.sap.com/irj/scn/advancedsearch?query=studentaccountingcookbook on page 13?
Page 1-18 will help you setup the Oranizational unit, the academic calendar and the modules.
Bev beck -
Adding a summary column in a table which contains the start and end dates in the week
Hi,
I've got a DIMENSION DATE table and want to add in another column which shows the start and end date of the week.
See below, the new column is WEEKOFYEARTEXT.
Does anybody know how i may generate this column using SQL and using the existing columns?
Umar JavedSee: http://www.sqlusa.com/bestpractices/datetimeconversion/
DECLARE @Year INT = '2015';
WITH cteDays AS (SELECT DayOfYear=Dateadd(dd, number,
CONVERT(DATE, CONVERT(char(4),@Year)+'0101'))
FROM master.dbo.spt_values WHERE type='P'),
CTE AS (SELECT DayOfYear, WeekOfYear=DATEPART(week,DayOfYear)
FROM cteDays WHERE YEAR(DayOfYear)= @YEAR)
SELECT WeekOfYear, StartOfWeek=MIN(DayOfYear), EndOfWeek=MAX(DayOfYear)
FROM CTE GROUP BY WeekOfYear ORDER BY WeekOfYear;
WeekOfYear StartOfWeek EndOfWeek
1 2015-01-01 2015-01-03
2 2015-01-04 2015-01-10
3 2015-01-11 2015-01-17
4 2015-01-18 2015-01-24
5 2015-01-25 2015-01-31
6 2015-02-01 2015-02-07
7 2015-02-08 2015-02-14
8 2015-02-15 2015-02-21
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014 -
How to find the Date and Time of Modification of Column in aTable?
Hi all,
Do you know how to find the Date and Time of Addition of Column to a Particular Table?.
I know however, How to find the modification time of the Table. Using the below Query :
Select Object_Name, to_Char(Last_DDL_TIME, 'DD-Mon-YYYY HH24:MI:SS') Last_DDL from User_Objects where Object_Type = 'TABLE';
Object_Name
Last_DDL
Employee
20-Aug-2013 09:23:03
I wanted to know the Creation or Modification Date and Timestamp of all columns of Employee Table?. Is it possible at all. If possible, How to get it?.
Regards,
Bhaskar MI agree with you on that. Since its a development enviornment I can remove the column but that not my point here.
My whole purpose it to know whether we get the Column's Creation or Modification DateTime. -
How to find the job and job status from RSPCM
hi all,
suppose we got an error and in rspcm the process was failed.i want to know the status of that particular job.and if any i want to stop that job in SM37.
plz tell me how to find the job and job ststus from RSPCM...and how to stop that job in SM37
thanks,
jackHi Jack,
RSPCM: T.Code
This transaction is used to monitor the process chains
First:
here you need to add the process chains into the sheet
Second:
Then you can monitor the process chains in this transaction code
Like you can see the : status ,proces chain ,Last run date ,Last run time ,Log ID
Status : Green when sucessful,Yellow when running & Red when you get errors
Now when yoy click on any of the process chain in RSPCM you will go to the LOG VIEW as you see in RSPC transaction
SM37:T.code
This transaction is used for Job Overview
you can see many options in SM37
like Released,active,cancelled,finished,etc
Just select the ACTIVE jobs and also pass STAR in JOB ID & USER ID
here you can only see the active jobs
Goto Step in toolbar
select the program displayed
then chose option GOTO - Variant in main menu bar
in the variant you can see the job belong to which Process chain
if you want to cancel this job come back to SM37 Display screen
Select the Job and select the JOB DETAILS tab in Tool Bar
Collect the WIP ( Work Permit ID)
Go to SM50 T.code and find the WIP
in Main Menu Bar you find the option Cancel with Core choose this it will cancel the Job
Regards
Hari -
How to find the Project and wbs Element System Status
Hi all,
How to find the Project and wbs Element System Status.
We can find the system status in the CJ20n transaction but I want the table and field name where it is stored.
Regards
RaghavendraHi,
try table <b>jest</b> with key = prps-objnr
Andreas -
How to find the header and item level status of a CRM contract ?
Hi,
Few questions
A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
B. How to get the BPs associated with a contract ?
Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
Note:
1. It doesnt store the Business Partner
responsible for the transaction. To
get the Partner No, link it with
CRM_ORDER_INDEX.
2. This table can be used for search
based on the Object Id(Business
Transaction No).
CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
CRMD_LINK Transaction GUID set for all the Business Transactions
CRMD_ORDER_INDEX Contains Header as well as Item details for a Business Transaction.
Note:
1. It doesnt store the Business
Transaction No (Object ID).
To get the Business Transaction No
link the table with
CRMD_ORDERADM_H
2. This table can be used for search
based on the Partner No
CRMD_ORDERADM_I Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
E.g. Service Contracts
CRMD_CUSTOMER_I Additional Site Details at the Item Level of a Service Contract
Pl.reward points....... -
How to find the font and replace another font using javascript in illustrator?
Dear All,
how to find the font and replace another font using javascript [batch process] in illustrator?
i have 700 image file, it very deficult replace one by one.
regards,
.Suresh.SAsk the creator of the file for a unprotected version.
Maybe you are looking for
-
How to populate fields "DocEntry" and "DocNum" in UDT? Those are not UDF.
I created a UDT with document type. When I populate the data, I don't know how to populate fields "DocEntry" and "DocNum". Those are not UDF. Here is my coding. Can somebody help me out? Dim objUserTable As SAPbobsCOM.UserTable ob
-
How can I arrange the order of pictures in a slide show and add a caption to each?
I go to:www.photoshop.com/users/name. Then to My Gallery and click onto the album name then to "slide show." I want to reorder the pictures and add captions. How?
-
Has anyone found a way to save emails to pdf or jpeg
I need a way to save the email itself from the ipad Mail app. An example would be the airline reservation emails I receive. I would like to save these as pdf's. I can copy the contents of the email and paste them into other apps then turn this int
-
I purchased some tv shows on itunes, but they won't transfer to my nano
-
Not able to execute the explain plan in development.
Hi In TOAD when try to click "Explain plan current statement." icon, I getting the below error message. ORA-00604: error occurred at recursive SQL level 1 ORA-01950: no privileges on table space 'DEFAULT_DATA' can anybody give some idea to solve this