timecodes

objective c - AvAssetReader and Writer to overlay video

时光毁灭记忆、已成空白 提交于 2020-01-06 17:26:24
问题 I am trying to overlay a recorded video with AvAssetReader and AvAssetWriter with some images. Following this tutorial, I am able to copy a video (and audio) into a new file. Now my objective is to overlay some of the initial video frames with some images with this code: while ([assetWriterVideoInput isReadyForMoreMediaData] && !completedOrFailed) { // Get the next video sample buffer, and append it to the output file. CMSampleBufferRef sampleBuffer = [assetReaderVideoOutput

Using AVPlayer in iOS can you know the current .ts file or the current timestamp from the encoder?

删除回忆录丶 提交于 2020-01-01 12:32:10
问题 Since we are unable to get Closed caption data or subtitle data out of the AVPlayer, we are looking at other trigger methods, such as timecode or at least the knowledge of the .ts file that is currently active. I couldn't find anything in the documentation and the CMTime from the player doesn't give me the timecode that is embedded in the m3u8 files. NSLog(@"%f", CMTimeGetSeconds([mPlayer currentTime] ) ); is not what I'm looking for. #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:562

Remove elements of an EDL text file, perform arithmetic on other parts

 ̄綄美尐妖づ 提交于 2019-12-23 02:47:14
问题 I have a simply formatted text file (Edit Decision List) with rows of numbers (timecode frame rate 25) followed by rows of properties (names etc.). Ultimately I am trying to: retrieve the lines starting with * FROM CLIP NAME: and the row/line (timecode) immediately above. On this line are Timecodes, there are 4 groups of numbers, each are expressed as 00:00:00:00 - or HH:MM:SS:FF or Hours, minutes, seconds, frames. Then I discard everything else. Use the first 2 number groups (they are start

Keep timecode in ffmpeg?

房东的猫 提交于 2019-12-13 05:26:14
问题 Im running a script that makes proress 422 proxies for editing in ffmpeg, but the timecode on the files seems to get lost or nulled out. the parameters im using: ffmpeg -i file.mov -vcodec prores -profile:v 0 -an file.mov is there any way of preserving the timecode from the raw files? I've also come over ffmbc wich seems be more suited for this, but it's for linux only. Any way this can be compiled for osx? I'm on osx 10.8.4 Thanks in advanced! 回答1: from man page: http://ffmpeg.org/ffmpeg

How to do timecode calculation?

隐身守侯 提交于 2019-12-09 04:55:34
问题 I got a question regarding calculating time code delta. I read metadata from a movie file containing a timecode formated HH:MM:SS:FF ( FF = frame, 00->23 for example. So its like 00 to framerate-1 ) So i get some data like 15:41:08:02 and from another refrence file i get 15:41:07:00 Now I have to calculate the timeoffset (like timedelta but just with frames). How would i go around doing this? 回答1: framerate = 24 def timecode_to_frames(timecode): return sum(f * int(t) for f,t in zip((3600

Remove elements of an EDL text file, perform arithmetic on other parts

亡梦爱人 提交于 2019-12-06 20:53:26
I have a simply formatted text file (Edit Decision List) with rows of numbers (timecode frame rate 25) followed by rows of properties (names etc.). Ultimately I am trying to: retrieve the lines starting with * FROM CLIP NAME: and the row/line (timecode) immediately above. On this line are Timecodes, there are 4 groups of numbers, each are expressed as 00:00:00:00 - or HH:MM:SS:FF or Hours, minutes, seconds, frames. Then I discard everything else. Use the first 2 number groups (they are start and end times) to derive duration . Then append duration to the Clip Name line. Save file as

Using AVPlayer in iOS can you know the current .ts file or the current timestamp from the encoder?

北城以北 提交于 2019-12-04 10:56:56
Since we are unable to get Closed caption data or subtitle data out of the AVPlayer, we are looking at other trigger methods, such as timecode or at least the knowledge of the .ts file that is currently active. I couldn't find anything in the documentation and the CMTime from the player doesn't give me the timecode that is embedded in the m3u8 files. NSLog(@"%f", CMTimeGetSeconds([mPlayer currentTime] ) ); is not what I'm looking for. #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:562 #EXT-X-PROGRAM-DATE-TIME:2020-10-23T14:18:59+08:00 #EXTINF:10, http://aedsgios1-i.akamaihd.net/hls

How to do timecode calculation?

回眸只為那壹抹淺笑 提交于 2019-12-03 03:52:04
I got a question regarding calculating time code delta. I read metadata from a movie file containing a timecode formated HH:MM:SS:FF ( FF = frame, 00->23 for example. So its like 00 to framerate-1 ) So i get some data like 15:41:08:02 and from another refrence file i get 15:41:07:00 Now I have to calculate the timeoffset (like timedelta but just with frames). How would i go around doing this? framerate = 24 def timecode_to_frames(timecode): return sum(f * int(t) for f,t in zip((3600*framerate, 60*framerate, framerate, 1), timecode.split(':'))) print timecode_to_frames('15:41:08:02') - timecode

How to convert midi timeline into the actual timeline that should be played

痞子三分冷 提交于 2019-12-01 17:05:02
I have researched the subject for some time now and still haven't figure it out. I use midas3 library (Midi-actionscript3) to import midi to flash. I get each note-item on a timeline. I get the divisions value (192) and all of the "GET-TEMPO" elements are equal to 81. I tried a lot of combinations to get the actual time of the midi but still no good (timeline*192/60 for example). The reason I know it is not synchronized to the actual time is that when I visualize the notes as simple rectangles in flash - I check if they appear exactly to what the mp3 file plays (I have converted the midi file

How to convert midi timeline into the actual timeline that should be played

烈酒焚心 提交于 2019-12-01 16:25:31
问题 I have researched the subject for some time now and still haven't figure it out. I use midas3 library (Midi-actionscript3) to import midi to flash. I get each note-item on a timeline. I get the divisions value (192) and all of the "GET-TEMPO" elements are equal to 81. I tried a lot of combinations to get the actual time of the midi but still no good (timeline*192/60 for example). The reason I know it is not synchronized to the actual time is that when I visualize the notes as simple