KR20220147324A - Electronic device and method of operation thereof - Google Patents
Electronic device and method of operation thereof Download PDFInfo
- Publication number
- KR20220147324A KR20220147324A KR1020210054309A KR20210054309A KR20220147324A KR 20220147324 A KR20220147324 A KR 20220147324A KR 1020210054309 A KR1020210054309 A KR 1020210054309A KR 20210054309 A KR20210054309 A KR 20210054309A KR 20220147324 A KR20220147324 A KR 20220147324A
- Authority
- KR
- South Korea
- Prior art keywords
- video
- file
- electronic device
- image
- processor
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 45
- 230000004044 response Effects 0.000 claims description 21
- 230000000694 effects Effects 0.000 claims description 20
- 238000004891 communication Methods 0.000 description 49
- 230000006870 function Effects 0.000 description 27
- 230000033001 locomotion Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 12
- 239000000284 extract Substances 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000013528 artificial neural network Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 238000013473 artificial intelligence Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 238000011017 operating method Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000306 recurrent effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003155 kinesthetic effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 230000002787 reinforcement Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/79—Processing of colour television signals in connection with recording
- H04N9/87—Regeneration of colour television signals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/41—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H04N5/23229—
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
- H04N5/77—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/92—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/92—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
- H04N5/9201—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving the multiplexing of an additional signal and the video signal
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
Description
본 문서에서 개시되는 실시 예들은, 전자 장치 및 전자 장치의 동작 방법에 관한 것이다.Embodiments disclosed in this document relate to an electronic device and an operating method of the electronic device.
최근에 사진 촬영 시 사진과 함께 촬영하는 시점에서의 3~5초 정도 분량의 비디오의 영상 및 오디오를 사진과 함께 저장하여, 사진을 촬영했던 순간을 짧은 영상으로 제공할 수 있는 멀티미디어 포맷을 지원하는 전자 기기가 점차 늘어나고 있다. 이러한 포맷은, 기존의 사진이 가지고 있는 빠르게 촬영할 수 있고 용량이 작다는 장점과 함께, 비교적 작은 용량의 파일로 사진을 찍었던 당시의 분위기를 짧은 시간이지만 영상으로 생생히 느낄 수 있는 장점을 가지고 있다.When taking a photo recently, it supports a multimedia format that can provide a short video of the moment when the photo was taken by storing the video and audio of the video of about 3 to 5 seconds at the time of taking the photo along with the photo. Electronic devices are gradually increasing. This format has the advantage of being able to shoot quickly and having a small capacity, as well as the advantages of being able to take a picture with a relatively small capacity, and having the advantage of being able to feel the atmosphere of the time when the picture was taken with a relatively small file in a short period of time.
사진과 함께 사진이 촬영된 시점에서의 짧은 비디오를 함께 저장하는 멀티미디어 포맷을 지원하는 전자 장치는 해당 포맷의 파일에 일반적으로 3~5초 정도의 짧은 시간 분량의 비디오 밖에 저장할 수 없으므로, 사용자는 동일한 시간대에 복수의 촬영을 진행한 경우 복수의 짧은 비디오만 개별적으로 감상할 수 있을 뿐, 동일한 시간대에 촬영된 짧은 비디오들을 통합하여 감상하기 어려울 수 있다. 이에 따라, 본 문서에 개시되는 다양한 실시 예들은, 동일한 시간대에 촬영되어 복수의 파일에 수초 분량으로 나뉘어 저장된 비디오를 연속된 긴 시간의 동영상으로 통합(또는, 연결)하여 새로운 콘텐츠를 제공할 수 있는 전자 장치 및 그 동작 방법을 제공하고자 한다.An electronic device that supports a multimedia format that stores a short video together with a picture at the time the picture was taken can only store a short video of about 3 to 5 seconds in a file of the corresponding format, so users can use the same When multiple shots are taken at the same time period, only a plurality of short videos can be individually viewed, and it may be difficult to combine the short videos shot at the same time zone. Accordingly, various embodiments disclosed in this document can provide new content by integrating (or concatenating) a video shot at the same time period and stored in a plurality of files divided into several seconds into a continuous long-time video. An object of the present invention is to provide an electronic device and an operating method thereof.
또한, 사용자는 비디오 및 오디오 편집 툴을 이용하여 복수의 파일에 나뉘어져 저장된 짧은 비디오들을 병합할 수 있으나, 예를 들어, 서로 다른 파일에 저장된 데이터가 중복되는 경우 각 파일에 저장된 비디오 프레임 및 오디오 프레임의 싱크(sync)를 맵핑(mapping)하거나, 별도의 중복 프레임 검출(detecting) 알고리즘 기반의 툴을 이용하여 중복 프레임을 제거해야 하므로, 복수의 파일에 나뉘어져 저장된 동일 시간대의 짧은 비디오들을 중복 구간 없이 연결한 하나의 비디오를 생성하는데 많은 시간을 필요로 한다. 이에 따라, 본 문서에 개시되는 다양한 실시 예들은, 별도의 툴을 이용하지 않고도 복수의 파일에 나뉘어져 저장된 동일 시간대의 짧은 비디오들을 중복 구간 없이 연결하여 재생할 수 있는 전자 장치 및 그 동작 방법을 제공하고자 한다.In addition, a user can merge short videos that are divided and stored in a plurality of files by using a video and audio editing tool. For example, when data stored in different files is duplicated, the video frame and audio frame stored in each file Because it is necessary to remove duplicate frames by using sync mapping or a separate duplicate frame detection algorithm-based tool, short videos of the same time period stored in multiple files are connected without overlapping sections. It takes a lot of time to create one video. Accordingly, various embodiments disclosed in this document are intended to provide an electronic device capable of connecting and playing short videos of the same time period divided and stored in a plurality of files without using a separate tool without using a duplicate section and an operating method thereof .
본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 카메라, 마이크, 디스플레이, 메모리, 및 상기 카메라, 상기 마이크, 상기 디스플레이 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 카메라를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득하고, 상기 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제1 동영상을 상기 제1 이미지와 함께 제1 파일로 저장하고, 상기 제2 이미지를 획득한 제2 시점으로부터 상기 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제2 동영상을 상기 제2 이미지와 함께 제2 파일로 저장하고, 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 하나 이상의 인스트럭션들(instructions)을 저장할 수 있다.An electronic device according to an embodiment disclosed in this document includes a camera, a microphone, a display, a memory, and a processor operatively connected to the camera, the microphone, the display, and the memory, wherein the memory, when executed In, the processor acquires a plurality of images including a first image and a second image by using the camera, and the camera and the microphone from a first designated time before the first time point at which the first image is acquired stores the first video acquired using the as a first file together with the first image, and acquired using the camera and the microphone before the first specified time from the second time point when the second image was acquired One that stores a second video as a second file together with the second image, and connects and plays the first video and the second video based on information related to the connection between the first video and the second video The above instructions may be stored.
또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치의 동작 방법은, 상기 전자 장치의 카메라를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득하고, 상기 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 상기 카메라 및 상기 전자 장치의 마이크를 이용하여 획득한 제1 동영상을 상기 제1 이미지와 함께 제1 파일로 저장하고, 상기 제2 이미지를 획득한 제2 시점으로부터 상기 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제2 동영상을 상기 제2 이미지와 함께 제2 파일로 저장하고, 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생할 수 있다.Also, in the method of operating an electronic device according to an embodiment disclosed in this document, a plurality of images including a first image and a second image are acquired using a camera of the electronic device, and the first image is acquired. A first video acquired by using the camera and a microphone of the electronic device from a first time point before a first designated time is stored as a first file together with the first image, and a second image obtained by acquiring the second image A second video acquired by using the camera and the microphone from a point in time before the first designated time is stored as a second file together with the second image, and information related to a connection between the first video and the second video Based on the , the first video and the second video may be connected and played.
본 문서에 개시되는 다양한 실시 예들에 따르면, 동일한 시간대에 촬영되어 복수의 파일에 수초 분량으로 나뉘어 저장된 비디오를 연속된 긴 시간의 동영상으로 통합(또는, 연결)하여 새로운 콘텐츠를 제공할 수 있는 전자 장치 및 그 동작 방법을 제공할 수 있다.According to various embodiments disclosed in this document, an electronic device capable of providing new content by integrating (or linking) a video shot at the same time period and stored in a plurality of files divided into several seconds into a continuous long-time video and an operating method thereof.
또한, 본 문서에 개시된 다양한 실시 예들에 따르면, 별도의 툴을 이용하지 않고도 복수의 파일에 나뉘어져 저장된 동일 시간대의 짧은 비디오들을 중복 구간 없이 연결하여 재생할 수 있는 전자 장치 및 그 동작 방법을 제공할 수 있다.Also, according to various embodiments disclosed in this document, it is possible to provide an electronic device capable of connecting and playing short videos of the same time period divided and stored in a plurality of files without using a separate tool without using an overlapping section and an operating method thereof. .
이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.In addition, various effects directly or indirectly identified through this document may be provided.
도 1은 다양한 실시 예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 일 실시예에 따른 전자 장치의 블록도이다.
도 3은 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도이다.
도 4는 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도이다.
도 5는 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도이다.
도 6은 일 실시예에 따른 전자 장치의 동작을 설명하기 위한 도면이다.
도 7은 일 실시예에 따른 전자 장치가 생성한 파일의 구조를 나타낸 도면이다.
도 8은 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도이다.
도 9는 일 실시예에 따른 전자 장치의 동작을 설명하기 위한 도면이다.
도 10은 일 실시예에 따른 전자 장치가 제공하는 사용자 인터페이스를 나타낸 도면이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device according to an exemplary embodiment.
3 is a flowchart illustrating an operation of an electronic device according to an exemplary embodiment.
4 is a flowchart illustrating an operation of an electronic device according to an exemplary embodiment.
5 is a flowchart illustrating an operation of an electronic device according to an exemplary embodiment.
6 is a diagram for describing an operation of an electronic device according to an exemplary embodiment.
7 is a diagram illustrating a structure of a file generated by an electronic device according to an exemplary embodiment.
8 is a flowchart illustrating an operation of an electronic device according to an exemplary embodiment.
9 is a diagram for describing an operation of an electronic device according to an exemplary embodiment.
10 is a diagram illustrating a user interface provided by an electronic device according to an exemplary embodiment.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar components.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The secondary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology is a high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low -latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) in order to achieve a high data rate, for example. The wireless communication module 192 uses various techniques for securing performance in a high frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. Technologies such as full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna may be supported. The wireless communication module 192 may support various requirements specified in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to one embodiment, the wireless communication module 192 is configured to implement a peak data rate (eg, 20 Gbps or more) for realization of eMBB, loss coverage for realization of mMTC (eg, 164 dB or less), or U-plane latency (for URLLC realization) ( Example: Downlink (DL) and uplink (UL) may support 0.5 ms or less, or 1 ms or less round trip respectively).
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as “first”, “second”, or “first” or “second” may simply be used to distinguish an element from other such elements, and may refer elements to other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document include one or more instructions stored in a storage medium (eg, the internal memory 136 or the external memory 138) readable by a machine (eg, the electronic device 101). may be implemented as software (eg, the program 140) including For example, the processor (eg, the processor 120 ) of the device (eg, the electronic device 101 ) may call at least one of one or more instructions stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be provided in a computer program product (computer program product). Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store ™ ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly, online between smartphones (eg: smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, a module or a program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.
이하, 도 2 및 도 3을 참조하여, 일 실시예에 따른 전자 장치의 구성 및 동작에 대하여 설명한다.Hereinafter, a configuration and operation of an electronic device according to an exemplary embodiment will be described with reference to FIGS. 2 and 3 .
도 2는 일 실시예에 따른 전자 장치의 블록도(200)이다.2 is a block diagram 200 of an electronic device according to an exemplary embodiment.
도 2를 참조하면, 전자 장치(201)(예: 도 1의 전자 장치(101))는 카메라(210)(예: 도 1의 카메라 모듈(180)), 마이크(220)(예: 도 1의 입력 모듈(150)), 디스플레이(230)(예: 도 1의 디스플레이 모듈(160)), 메모리(240)(예: 도 1의 메모리(130)), 및 프로세서(250)(예: 도 1의 프로세서(120))를 포함할 수 있다.Referring to FIG. 2 , the electronic device 201 (eg, the electronic device 101 of FIG. 1 ) includes a camera 210 (eg, the camera module 180 of FIG. 1 ) and a microphone 220 (eg, FIG. 1 ). of input module 150 ), display 230 (eg,
일 실시예에 따르면, 카메라(210)는 정지 영상(또는, 이미지)(예: 사진) 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라(210)는 정지 영상에 대응하는 이미지 데이터 및 동영상에 대응하는 비디오 데이터를 획득할 수 있다.According to an embodiment, the
일 실시예에 따르면, 마이크(220)는 전자 장치(201)의 외부(예: 사용자)로부터 입력되는 소리를 오디오 데이터로 변환할 수 있다. 일 실시예에 따르면, 마이크(220)는 카메라(210)가 동영상 촬영을 시작할 때 함께 활성화되어, 동영상에 대응하는 오디오 데이터를 획득할 수 있다. 일 실시예에 따르면, 오디오 데이터는 카메라(210)에 의해 획득된 비디오 데이터에 대응될 수 있다.According to an embodiment, the
일 실시예에 따르면, 디스플레이(230)는 전자 장치(201)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 일 실시예에 따르면, 디스플레이(230)는 이미지 및 동영상을 표시할 수 있다. 일 실시예에 따르면, 디스플레이(230)는 사용자 인터페이스(user interface, UI)를 표시할 수 있다. 일 실시예에 따르면, 디스플레이(230)는 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. 예를 들어, 디스플레이(230)는 사용자 인터페이스에 대응하는 터치 입력을 수신할 수 있다.According to an embodiment, the
일 실시예에 따르면, 메모리(240)는 프로세서(250)에 의해 실행되는 하나 이상의 인스트럭션들(instructions)을 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 카메라(210)에 의해 획득된 이미지 데이터 및 비디오 데이터를 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 마이크(220)에 의해 획득된 오디오 데이터를 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 비디오 데이터, 및 비디오 데이터에 대응하는 오디오 데이터를 임시로 저장하는 버퍼(buffer)를 포함할 수 있다. 예를 들어, 버퍼는 링 버퍼(ring buffer)일 수 있다. 일 실시예에 따르면, 버퍼는 버퍼의 크기만큼 시간 순으로 비디오 데이터 및 오디오 데이터를 저장할 수 있고, 버퍼가 모두 채워진 경우 가장 오래된 데이터를 제거하고, 새로운 데이터를 저장할 있다. 일 실시예에 따르면, 비디오 데이터 및 오디오 데이터를 버퍼에 임시로 저장하는 동작은 버퍼링(buffering)으로 칭해질 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 메모리(240)에 저장된 인스트럭션들을 실행함에 따라 전자 장치(201)의 동작을 제어할 수 있다. 일 실시예에 따르면, 프로세서(250)는 카메라(210)를 이용하여 획득한 이미지(또는, 정지 영상)(예: 사진)를 카메라(210) 및 마이크(220)를 이용하여 획득한 동영상과 함께 하나의 파일로 저장할 수 있다. 일 실시예에 따르면, 프로세서(250)는 이미지와 동영상을 컨테이너 포맷(container format)으로 저장하여 하나의 파일을 생성할 수 있다. 일 실시예에 따르면, 컨테이너 포맷(container format)은, 상이한 형식의 데이터와 메타데이터를 하나의 파일에 저장할 수 있는 파일 형식을 의미할 수 있다. 예를 들어, 이미지와 동영상을 포함하는 컨테이너 포맷은 JPEG(joint photographic experts group) 및/또는 HEIC(high efficiency image container)를 포함할 수 있으나 이에 제한되는 것은 아니다. 예를 들어, 이미지와 동영상을 포함하는 컨테이너 포맷에는 지정된 코덱을 사용하여 압축된 이미지 파일 및 지정된 코덱을 사용하여 압축된 동영상 파일이 포함될 수 있다. 예를 들어, JPEG 컨테이너 포맷에는 JPEG 포맷의 이미지 파일이 프레임 영역에 포함되고, 제1 지정된 시간(예: 3초)의 영상을 포함하는 MP4(MPEG-4) 포맷의 동영상 파일이 메타데이터 영역(예: 사용자 데이터 영역)에 포함될 수 있다. According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 컨테이너 포맷으로 이미지와 동영상을 저장하는 기능이 실행됨에 따라 카메라(210)를 이용하여 비디오 데이터를 획득하고, 마이크(220)를 이용하여 오디오 데이터를 획득할 수 있다. 예를 들어, 상기 기능은, 모션 포토(motion photo) 기능으로 칭해질 수 있다. 일 실시예에 따르면, 프로세서(250)는 카메라(210) 및 마이크(220)를 이용하여 획득한 비디오 데이터 및 오디오 데이터를 프레임 단위로 버퍼에 저장할 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 이미지를 캡처(capture)(예: 사진 촬영)하도록 하는 사용자 입력에 응답하여 이미지 캡처가 요청된 시점(또는, 프레임)의 이미지를 결정할 수 있다. 이하, 캡처가 요청된 시점은, 캡처 시점으로 칭해질 수 있다. 일 실시예에 따르면, 프로세서(250)는 이미지 캡처가 요청된 시점으로부터 제1 지정된 시간 이전 또는 이후에 대응하는 시점(또는, 프레임)을 결정할 수 있다. 일 실시예에 따르면, 제1 지정된 시간(예: 3초)은, 전자 장치(201)에 미리 설정된 시간, 또는 사용자 입력에 기반하여 설정된 시간을 포함할 수 있다. 일 실시예에 따르면, 프로세서(250)는 결정된 시점(또는, 프레임)에 기반하여 버퍼 상의 위치를 특정할 수 있다. 일 실시예에 따르면, 프로세서(250)는 특정된 버퍼 상의 위치에 기반하여 캡처가 요청된 이미지에 대응하는 이미지 데이터와 캡처가 요청된 시점으로부터 제1 지정된 시간 이전부터 캡처가 요청된 시점까지(또는, 캡처가 요청된 시점으로부터 제1 지정된 시간 이후의 시점까지)의 제1 지정된 시간 길이에 대응하는 동영상에 대응하는 비디오 데이터 및 오디오 데이터를 버퍼로부터 추출할 수 있다. 이하에서, 제1 지정된 시간 길이에 대응하는 동영상은 이미지의 캡처가 요청된 시점으로부터 제1 지정된 시간 이전부터 캡처가 요청된 시점까지의 제1 지정된 시간 길이에 대응하는 동영상인 경우를 중심으로 설명되나, 설명되는 내용은 이미지의 캡처가 요청된 시점으로부터 제1 지정된 시간 이후의 시점까지의 제1 지정된 시간 길이에 대응하는 동영상에 대해서도 동일 또는 유사하게 적용될 수 있다. 일 실시예에 따르면, 프로세서(250)는 버퍼로부터 추출된 이미지 데이터, 비디오 데이터, 및 오디오 데이터를 하나의 파일에 저장할 수 있다. 예를 들어, 프로세서(250)는 추출된 이미지(예: 하나의 이미지 프레임)는 JPEG 포맷으로 인코딩하고, 추출된 비디오 데이터(예: 복수의 이미지 프레임들) 및 오디오 데이터는 MP4 포맷으로 인코딩하여 인코딩한 이미지는 JPEG 포맷의 이미지 영역에 포함시키고, MP4 포맷의 동영상 데이터는 메타데이터 영역(예: 사용자 데이터 영역)에 포함하여 인코딩할 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 캡처가 요청된 이미지와 캡처가 요청된 시점으로부터 제1 지정된 시간 이전부터 카메라(210) 및 마이크(220)를 이용하여 획득한 동영상을 하나의 파일로 저장할 수 있다. 일 실시예에 따르면, 캡처된 이미지와 하나의 파일로 저장되는 동영상은, 프로세서(250)가 캡처된 이미지를 획득한 시점으로부터 제1 지정된 시간 이전부터 캡처된 이미지를 획득한 시점까지 획득한 동영상일 수 있다. 상술한 바에 따르면, 프로세서(250)는 모션 포토 기능이 실행된 이후부터 카메라(210) 및 마이크(220)를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼링할 수 있다. 일 실시예에 따르면, 프로세서(250)는 버퍼에서 캡처 시점에 대응하는 이미지 데이터, 및 캡처 시점으로부터 제1 지정된 시간 이전의 시점부터 캡처 시점까지의 시점들에 대응하는 비디오 데이터 및 오디오 데이터를 추출하여 하나의 파일에 저장할 수 있다. 예를 들어, 캡처 시점은 운영 체제(예: 도 1의 운영 체제(142))에 의해 실행되는 타이머로 판단되거나 또는 카메라 어플리케이션에 의해 실행되는 타이머로 판단될 수 있으며 제한은 없다. 다른 실시예에 따르면, 프로세서(250)는 캡처 시점으로부터 지정된 개수의 프레임들로 비디오 데이터 및 오디오 데이터를 추출할 수도 있다. 예를 들어, 캡처 시점으로부터 90개의 이미지 프레임들(예컨대, 30fps의 프레임 레이트를 갖는 동영상의 경우 3초에 해당하는 프레임들)을 비디오 데이터로서 추출할 수 있다. 이하, 설명의 편의를 위해, 프로세서(250)가 지정된 시간만큼 비디오 데이터 및 오디오 데이터를 추출하는 것으로 주로 설명한다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 복수의 이미지를 캡처할 수 있다. 프로세서(250)는 복수의 이미지를 캡처함에 따라 복수의 파일을 생성할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 파일 간의 관련성에 대한 정보를 각 파일 생성 시 파일에 저장(또는, 삽입)할 수 있다. 예를 들어, JPEG 포맷의 메타데이터 영역(예: 사용자 데이터 영역)에 저장할 수 있다. 또 다른 예에 따르면, 프로세서(250)는 복수의 파일 간의 관련성에 대한 정보를 별도의 데이터(예: 파일)에 저장할 수도 있다. 예를 들어, 별도의 파일에는 복수의 파일에 대한 인덱스 및 복수의 파일 간의 관련성에 대한 정보가 테이블 형식으로 포함될 수 있다. 이하, 설명의 편의를 위해, 프로세서(250)가 복수의 파일 간의 관련성에 대한 정보를 복수의 파일 각각에 저장하는 것으로 주로 설명한다. 일 실시예에 따르면, 복수의 파일 간의 관련성을 나타내는 정보는, 복수의 파일 각각에 포함된 동영상 간의 관련성에 대한 정보를 포함할 수 있다. 일 실시예에 따르면, 동영상 간의 관련성은, 동영상들이 서로 시간적 또는 장면적으로 연관됨을 의미할 수 있다. 일 실시예에 따르면, 동영상 간의 관련성에 대한 정보는, 복수의 동영상(예: 제1 동영상 및 제2 동영상)의 연결과 관련된 정보로 참조될 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상의 연결과 관련된 정보에 기반하여 복수의 동영상을 연결하여 재생할 수 있다. 예를 들어, 프로세서(250)가 복수의 동영상을 연결하여 재생하는 방법은 복수의 동영상을 메모리(240)에 로드하여 각 동영상을 순서대로 재생하는 것을 포함할 수 있다. 또 다른 예를 들어, 프로세서(250)가 복수의 동영상을 연결하여 재생하는 방법은 복수의 동영상(예컨대, 복수의 동영상에 포함된 프레임들)을 연결한 하나의 동영상을 생성하여 재생하는 것을 포함할 수도 있다.According to an embodiment, the
예를 들어, 복수의 동영상의 연결과 관련된 정보는, 서로 다른 파일에 포함된 동영상의 연결 여부 및 연결 순서를 결정하기 위한 정보, 서로 다른 파일에 포함된 동영상의 중복 여부 및/또는 중복 부분을 결정하기 위한 정보 중 적어도 하나를 포함할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상 재생 시, 복수의 동영상의 연결과 관련된 정보에 기반하여 복수의 동영상의 연결 여부 및 연결 순서를 결정할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상의 연결과 관련된 정보에 기반하여 복수의 동영상 간의 중복 여부를 판단하고, 중복 부분(또는, 중복 구간)이 존재하는 경우 재생 시 중복 부분이 없도록 복수의 동영상을 연결하여 재생할 수 있다.For example, information related to the linking of a plurality of videos includes information for determining whether videos included in different files are linked and the order in which they are linked, and whether videos included in different files are duplicated and/or a duplicate part is determined It may include at least one of information for According to an embodiment, when a plurality of videos are reproduced, the
일 실시예에 따르면, 프로세서(250)는 파일 생성 시 파일에 그룹 ID(group ID)를 저장(또는, 삽입)할 수 있다. 예를 들어, 그룹 ID는 컨테이너 포맷의 메타데이터 영역(예: 사용자 데이터 영역)에 포함될 수 있다. 또 다른 실시예에서는 모션 포토 파일 및 그에 대응하는 그룹 ID를 포함하는 별도의 데이터 테이블(또는, 파일)에 저장될 수 있으나, 설명의 편의를 위해 컨테이너 포맷 내부에 저장되는 실시예로 주로 설명한다. 일 실시예에 따르면, 그룹 ID는, 서로 다른 파일에 포함된 동영상의 연결 여부를 결정하기 위한 정보일 수 있다. 일 실시예에 따르면, 그룹 ID는 고유한 식별자(unique ID, UID)일 수 있다. 일 실시예에 따르면, 프로세서(250)는 파일에 그룹 ID를 저장함으로써 파일을 그룹화할 수 있다. 일 실시예에 따르면, 프로세서(250)는 그룹 ID에 기반하여 파일의 그룹을 식별할 수 있다. 예를 들어, 프로세서(250)는 동일한 그룹 ID를 저장하고 있는 파일들을 동일한 그룹으로 식별할 수 있고, 다른 그룹 ID를 저장하고 있는 파일들을 다른 그룹으로 식별할 수 있다. 일 실시예에 따르면, 프로세서(250)는 그룹 ID에 기반하여 복수의 파일에 포함된 동영상들의 연결 여부를 결정할 수 있다. 예를 들어, 프로세서(250)는 동일한 그룹 ID를 저장하고 있는 파일들에 포함된 동영상들을 연결하는 것으로 결정할 수 있고, 다른 그룹 ID를 저장하고 있는 파일들에 포함된 동영상들을 연결하지 않는 것으로 결정할 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 모션 포토 기능이 실행된 이후(또는, 모션 포토 기능이 실행된 상태에서) 최초로 이미지가 캡처된 시점으로부터 제2 지정된 시간 이내에 캡처된 이미지가 저장되는 파일에 최초로 캡처된 이미지가 저장된 파일에 저장된 그룹 ID와 동일한 그룹 ID를 저장할 수 있다. 일 실시예에 따르면, 제2 지정된 시간은, 프로세서(250)가 복수의 파일을 동일한 그룹으로 판단할 수 있는 임계 값일 수 있으며, 전자 장치(201)에 미리 설정되거나 사용자 입력에 의해 설정된 값일 수 있다. 일 실시예에 따르면, 제1 지정된 시간 및 제2 지정된 시간은 서로 동일하거나 다른 값일 수 있다. 제1 지정된 시간 및 제2 지정된 시간이 서로 동일한 값인 경우, 하나의 저장된 설정 값을 사용할 수도 있다. 일 실시예에 따르면, 이미지가 캡처되는 시점은, 캡처된 이미지가 동영상과 함께 파일로 저장되는 시점, 또는 파일이 생성되는 시점에 대응될 수 있다. 이미지가 캡처되는 시점의 값은 메모리(240)에 적어도 일시적으로 저장될 수 있다. 예를 들어, 이미지가 캡처되는 시점은 그룹 ID의 할당을 위한 참조 값으로서 메모리(240)에 저장된 후 제2 지정된 시간이 지나면 리셋되거나, 제2 지정된 시간이 지난 후 최초 이미지 캡처 시점의 값으로 업데이트될 수 있다. 일 실시예에 따르면, 프로세서(250)는 동일한 그룹 ID를 할당(부여, 또는 삽입)하는 파일을 최초로 이미지가 캡처된 시점으로부터 제2 지정된 시간 이내로 제한함으로써 특정 시간대에 촬영된 동영상들을 포함하는 파일들에 동일한 그룹 ID를 할당할 수 있으며, 동일한 그룹 ID가 할당된 파일들의 개수를 제한할 수 있다.According to an embodiment, after the motion photo function is executed (or in a state in which the motion photo function is executed), the
일 실시예에 따르면, 프로세서(250)는 이미지 캡처 시 해당 이미지의 캡처 시점 이전 가장 최근에 캡처된 이미지의 캡처 시점으로부터 제2 지정된 시간 이내에 캡처되었는지 여부에 기초하여 현재 캡처된 이미지가 저장되는 파일에 그룹 ID를 저장할 수 있다. 예를 들어, 프로세서(250)는 제1 이미지가 캡처된 제1 시점으로부터 제2 지정된 시간 이내에 제2 이미지가 캡처된 경우 제2 이미지가 저장되는 파일에 제1 이미지가 저장된 파일에 저장된 그룹 ID와 동일한 그룹 ID를 저장할 수 있다. 프로세서(250)는 제1 이미지가 캡처된 제1 시점으로부터 제2 지정된 시간이 경과한 이후에 제2 이미지가 캡처된 경우 제2 이미지가 저장되는 파일에 제1 이미지가 저장된 파일에 저장된 그룹 ID와 다른 그룹 ID를 저장할 수 있다. 일 실시예에 따르면, 프로세서(250)는 현재 캡처된 이미지가 해당 이미지의 캡처 이전 가장 최근에 캡처된 이미지가 캡처된 시점으로부터 제2 지정된 시간 이내에 캡처되었는지 여부에 기반하여 그룹 ID를 할당함으로써, 현재 생성하는 파일에 포함된 동영상이 해당 파일의 생성 이전 가장 최근에 생성된 파일에 포함된 동영상과 시간적으로 연결성(또는, 연속성)이 있는지를 결정할 수 있다.According to an embodiment, when capturing an image, the
다양한 실시예에 따르면, 프로세서(250)는 파일에 이미지와 함께 저장되는 동영상의 장면의 유형을 인식할 수 있다. 일 실시예에 따르면, 프로세서(250)는 동영상 내 객체, 동영상 촬영 시의 카메라(210)의 움직임 정보(예: 촬영 방향, 또는 촬영 각도), 또는 동영상의 소리 정보에 기반하여 동영상의 장면의 유형을 인식할 수 있다. 일 실시예에 따르면, 프로세서(250)는 제1 파일에 저장되는 제1 동영상이 제2 파일에 저장되는 제2 동영상과 장면의 유형이 동일한지 여부를 판단할 수 있다. 예를 들어, 프로세서(250)는 제1 동영상 및 제2 동영상으로부터 인식되는 객체가 서로 동일하거나 유사한 경우, 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다. 다른 예로, 프로세서(250)는 제1 동영상 및 제2 동영상으로부터 인식되는 객체가 서로 동일 또는 유사하고, 제1 동영상 및 제2 동영상 촬영 시의 카메라(210)의 촬영 방향 또는 촬영 각도가 유사하다고 판단됨에 따라 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다. 또 다른 예로, 프로세서(250)는 제1 동영상 및 제2 동영상으로부터 인식되는 배경 음악, 또는 화자가 동일하다고 판단됨에 따라 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(250)는 인식된 장면의 유형 정보를 파일에 이미지 및 동영상과 함께 저장할 수 있다. 예를 들어, 유형 정보는 모션 포토 파일의 컨테이너 포맷 내부의 메타데이터 영역(예: 사용자 데이터 영역)에 저장되거나 별도의 파일에 저장될 수 있다. 일 실시예에 따르면, 장면의 유형 정보는, 프로세서(250)가 복수의 동영상의 장면의 유형이 동일한지 여부를 판단할 수 있는 근거가 되는 정보를 의미할 수 있다. 예를 들어, 장면의 유형 정보는, 동영상으로부터 인식된 객체 정보, 동영상 촬영 시의 카메라(210)의 움직임 정보, 또는 동영상으로부터 인식된 소리 정보 중 적어도 하나를 포함할 수 있다. 예를 들어, 객체 정보는, 인식된 객체로 인식된 영역이 지정된 값 이상으로 변화되는지 여부, 인식된 객체의 종류(예: 사람, 나무), 또는 배경의 변화 여부 중 적어도 하나를 포함할 수 있다. 카메라(210)의 움직임 정보는, 전자 장치(201)에 포함된 적어도 하나의 움직임 센서(예: 지자기 센서, 가속도 센서)를 통해 감지된 전자 장치(201)의 움직임이 임계 값 이상인지 여부로 판단될 수 있다. 소리 정보는, 전자 장치(201)의 마이크(220)로부터 입력된 데이터의 유사도(예: 메인 음성, 또는 배경 소리)를 포함할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(250)는 제1 파일에 저장되는 제1 동영상이 제2 파일에 저장되는 제2 동영상과 장면의 유형이 동일하다고 판단됨에 따라 제1 파일 및 제2 파일에 동일한 그룹 ID를 저장할 수 있고, 제1 동영상이 제2 동영상과 장면의 유형이 동일하지 않다고 판단됨에 따라 제1 파일 및 제2 파일에 다른 그룹 ID를 저장할 수 있다. 예를 들어, 프로세서(250)는 제1 파일 생성 시 파일에 저장되는 제1 동영상의 장면의 유형을 인식하고, 제1 파일 이전에 생성된 제2 파일에 저장된 제2 동영상의 장면의 유형 정보에 기반하여 제1 파일에 제2 파일에 저장한 그룹 ID와 동일한 그룹 ID를 저장할지, 또는 다른 그룹 ID를 저장할지 결정할 수 있다.According to various embodiments, the
일 실시예에 따르면, 프로세서(250)는 동일한 그룹 ID를 저장하는 파일들에 파일 생성 순서에 따라 시퀀스 번호(sequence number)를 저장할 수 있다. 일 실시예에 따르면, 시퀀스 번호는, 파일이 해당 파일이 속하는 그룹 내에서 몇 번째로 생성된 파일인지를 나타내는 정보일 수 있다. 일 실시예에 따르면, 파일 생성 순서는, 파일에 저장되는 이미지가 캡처된 순서에 대응될 수 있다. 예를 들어, 프로세서(250)는 제1 시점에 제1 이미지를 캡처함에 따라 제1 이미지를 포함하는 제1 파일을 생성할 수 있고, 제1 시점으로부터 제2 지정된 시간 이내인 제2 시점에 제2 이미지를 캡처함에 따라 제2 이미지를 포함하는 제2 파일을 생성할 수 있다. 이 경우, 프로세서(250)는 제1 파일 및 제2 파일에 동일한 그룹 ID를 할당할 수 있으며, 제1 파일 및 제2 파일이 해당 파일과 동일한 그룹 ID를 갖는 파일들 중에 몇 번째로 생성된 파일인지를 나타내는 시퀀스 번호를 할당할 수 있다. 예를 들어, 프로세서(250)는 제1 시점에 최초로 캡처된 이미지를 저장한 제1 파일에 그룹 ID 및 시퀀스 번호를 삽입하고, 제1 시점으로부터 제2 지정된 시간 이내에 캡처된 이미지를 저장하는 제2 파일에 제1 파일에 삽입한 그룹 ID와 동일한 그룹 ID를 삽입하고, 제1 파일에 삽입한 시퀀스 번호보다 증가된 시퀀스 번호를 삽입할 수 있다. 일 실시예에 따라, 프로세서(250)는 새롭게 캡처된 이미지가 최초로 캡처된 이미지가 캡처된 제1 시점으로부터 제2 지정된 시간 이내에 캡처되었는지 여부에 관한 조건을 만족하는 파일이 하나씩 증가할 때마다 시퀀스 번호를 하나씩 증가시킬 수 있다.According to an embodiment, the
다양한 실시에에 따르면, 프로세서(250)는 전자 장치(201)에 부여된 고유 번호와 이미지 또는 동영상의 촬영 시간 정보를 조합하여 고유 식별자를 생성할 수 있다. 프로세서(250)는 전자 장치(201)의 고유 번호 및 촬영 시간 정보에 기반하여 생성된 고유 식별자를 상술한 그룹 ID 및 시퀀스 번호에 갈음하여 파일에 저장할 수 있다. According to various embodiments, the
일 실시예에 따르면, 프로세서(250)는 복수의 파일들에 포함된 복수의 동영상들 간의 중복 여부 및 중복 부분(또는, 중복 구간)을 판단하기 위한 중복 정보를 복수의 파일들에 저장할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상 재생 시, 각 동영상을 포함하는 파일들에 저장된 중복 정보에 기반하여 복수의 동영상 간의 중복 여부 및/또는 중복 프레임을 판단할 수 있다. 일 실시예에 따르면, 프로세서(250)는 파일 생성 시 중복 정보를 파일에 저장할 수 있다. 예를 들어, 프로세서(250)는 이미지를 캡처함에 따라 파일을 생성할 때, 이미지 캡처 시점으로부터 제1 지정된 시간 이전부터 이미지 캡처 시점까지 획득된 동영상을 버퍼로부터 추출하게 되고, 해당 동영상이 버퍼에 저장된 위치 정보를 중복 정보로서 파일에 이미지 및 동영상과 함께 저장할 수 있다. 예를 들어, 동영상이 버퍼에 저장된 위치 정보는, 프로세서(250)가 동일한 그룹 ID를 갖는 적어도 하나의 파일 중 첫 번째 파일(예를 들어, 파일의 생성 시점이 가장 앞서는 파일, 또는 파일의 시퀀스 번호가 가장 작은 파일)에 포함된 동영상의 시작 부분이 버퍼에 저장되는 위치를 0으로 설정하였을 때, 현재 저장하는 동영상이 버퍼에 저장되는 상대적 위치를 나타낼 수 있다. 예를 들어, 프로세서(250)는 버퍼에 동영상 저장 시 프레임 단위로 저장하게 되므로, 버퍼의 위치는 프레임 번호(frame number)에 대응될 수 있다. 예를 들어, 동영상이 버퍼에 저장된 위치 정보는, 해당 동영상의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보를 포함할 수 있다.According to an embodiment, the
다양한 실시예에서, 설명의 편의를 위해 다양한 정보(예: 그룹 ID, 시퀀스 번호, 고유 식별자, 객체 정보, 또는 중복 정보)를 이미지 및 동영상과 함께 하나의 파일에 저장하는 것으로 설명하였으나, 이미지 및 동영상이 저장되는 파일과는 별도의 파일에 저장할 수도 있다.In various embodiments, for convenience of description, it has been described that various information (eg, group ID, sequence number, unique identifier, object information, or duplicate information) is stored in one file together with images and videos, but images and videos It can also be saved in a file separate from the saved file.
일 실시예에 따르면, 프로세서(250)는 디스플레이(230)에 적어도 하나의 파일(또는, 파일 목록)을 표시할 수 있다. 예를 들어, 프로세서(250)는 파일에 포함된 이미지(예컨대, 썸네일(thumbnail) 이미지)를 디스플레이(230)에 표시함으로써 적어도 하나의 파일(또는, 파일 목록)을 표시할 수 있다. 일 실시예에 따르면, 프로세서(250)는 디스플레이(230)에 표시된 적어도 하나의 파일(예: 모션 포토 파일) 중 하나를 선택하는 사용자 입력을 수신할 수 있으며, 파일 선택 입력에 응답하여 선택된 파일과 동일한 그룹의 다른 파일을 추가로 선택할 수 있다. 프로세서(250)는 선택된 파일에 저장된 그룹 ID와 동일한 그룹 ID를 가진 파일들을 선택할 수 있다. 일 실시예에 따르면, 프로세서(250)는 선택된 복수의 파일에 포함된 복수의 동영상을 연결하여 재생할 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 제1 파일을 선택하는 입력에 응답하여 제1 파일의 그룹 ID를 식별하고, 제1 파일의 그룹 ID와 동일한 그룹 ID를 가진 파일을 검색할 수 있다. 일 실시예에 따르면, 프로세서(250)는 제1 파일, 및 제1 파일의 그룹 ID와 동일한 그룹 ID를 가진 적어도 하나의 파일을 각 파일에 저장된 시퀀스 번호에 기반하여 배열할 수 있다. 예를 들어, 프로세서(250)는 시퀀스 번호가 증가하는 순서대로 복수의 파일을 배열할 수 있다. 일 실시예에 따르면, 프로세서(250)는 배열된 복수의 파일로부터 동영상을 추출(또는, 분리)할 수 있다. 예를 들어, 프로세서(250)는 배열된 복수의 파일 각각으로부터 동영상을 프레임 순서대로 메모리(240)에 로드(load)함으로써 복수의 동영상을 추출할 수 있다. 일 실시예에 따르면, 프로세서(250)는 추출된 복수의 동영상들을 각 동영상이 포함된 파일이 배열된 순서에 따라 배열한 재생 목록을 생성할 수 있다. 일 실시예에 따르면, 재생 목록은 추출된 복수의 동영상들을 포함하거나, 복수의 동영상에 포함된 복수의 프레임들을 포함하거나 또는 복수의 동영상에 포함된 복수의 프레임들에 기반하여 생성된 동영상을 포함할 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 복수의 파일들에 포함된 중복 정보에 기반하여 복수의 동영상 간의 중복 여부를 판단하고, 중복 부분(또는, 중복 구간)을 결정할 수 있다. 예를 들어, 중복 정보는, 적어도 하나의 동영상의 시작 프레임 번호 및 종료 프레임 번호를 포함할 수 있다. 일 실시예에 따라, 프로세서(250)는 복수의 동영상 간의 중복되는 프레임 번호를 식별할 수 있다. 일 실시예에 따르면, 프로세서(250)는 중복되는 프레임 번호에 기반하여 복수의 동영상 간의 중복되는 프레임을 제거할 수 있다. 프로세서(250)는 중복되는 프레임이 제거된 복수의 동영상을 포함하는 재생 목록을 생성할 수 있다. 예를 들어, 프로세서(250)가 복수의 동영상 간의 중복되는 프레임을 제거하는 것은, 복수의 동영상 중 나중에 재생되는 동영상을 재생 시에 먼저 재생된 동영상과 중복되는 프레임을 스킵(skip)하여 재생하는 것을 의미할 수 있다. 다른 예로, 프로세서(250)가 복수의 동영상 간의 중복되는 프레임을 제거하는 것은, 프로세서(250)가 복수의 동영상을 연결한 하나의 영상을 생성하여 메모리(240)에 저장 시에 복수의 동영상의 원본으로부터 각 프레임을 복사(copy)할 수 있으나, 복수의 동영상 간의 중복되는 프레임은 한 번만 복사하는 것을 의미할 수 있다.According to an embodiment, the
다양한 실시예에 따르면, 프로세서(250)는 중복되는 프레임을 제거한후 연속된 두 동영상 사이에 지정된 효과를 삽입할 수 있다. 일 실시예에 따르면, 지정된 효과는, 프레임과 프레임을 연결하는 애니메이션(animation) 효과를 의미할 수 있다. 예를 들어, 지정된 효과는 전환(transition) 효과를 포함할 수 있다. 일 실시예에 따라, 프로세서(250)가 중복 부분이 없는 동영상들 사이에 지정된 효과를 삽입함으로써 동영상들을 자연스럽게 연결하여 재생할 수 있다.According to various embodiments, the
일 실시예에 따르면, 프로세서(250)는 복수의 동영상을 연결하여 하나의 동영상처럼 재생하도록 하는 사용자 인터페이스(예: 재생 버튼)를 디스플레이(230)에 표시할 수 있다. 일 실시예에 따르면, 프로세서(250)는 사용자 인터페이스를 선택하는 사용자 입력에 응답하여 복수의 동영상을 연결하여 재생할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상을 중복 부분 없이 연결하여 재생할 수 있다. 예를 들어, 프로세서(250)는 복수의 동영상을 배열된 순서대로 재생할 수 있으며, 동영상 재생 시에 해당 동영상 이전에 재생된 동영상의 프레임 번호보다 프레임 번호가 큰 프레임부터 재생할 수 있다. 예를 들어, 프로세서(250)는 복수의 동영상 중 나중에 재생되는 동영상을 재생 시에 먼저 재생된 동영상과 중복되는 프레임을 스킵(skip)하여 재생할 수 있다.According to an embodiment, the
일 실시예에 따르면, 프로세서(250)는 복수의 동영상이 연결되어 재생된 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라 복수의 동영상이 연결된 동영상을 생성 및 저장할 수 있다.According to an embodiment, the
도 2에는 도시되지 않았으나, 전자 장치(201)는 통신 회로(미도시)(예: 도 1의 통신 모듈(190))를 포함할 수 있다. 일 실시예에 따르면, 프로세서(250)는 통신 회로를 이용하여 서버(예: 도 1의 서버(108)), 또는 외부 전자 장치(예: 도 1의 전자 장치(102, 또는 104))와 데이터를 송수신할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 파일에 포함된 복수의 동영상을 연결하여 생성한 하나의 동영상을 외부 전자 장치 또는 서버로 전송할 수 있다.Although not shown in FIG. 2 , the
일 실시예에 따르면, 프로세서(250)는 그룹 ID, 시퀀스 번호, 및 중복 정보를 파일의 메타데이터 영역에 저장할 수 있다. 일 실시예에 따라, 그룹 ID, 시퀀스 번호, 및 중복 정보는 메타데이터에 해당할 수 있다. 다양한 실시예에 따르면, 프로세서(250)는 복수의 동영상과 복수의 동영상 각각에 대응하는 메타데이터와 함께 외부 전자 장치 또는 서버로 전송할 수 있다. 다양한 실시예에 따르면, 외부 전자 장치는 전자 장치(201) 또는 서버로부터 수신한 복수의 동영상과 그 메타데이터에 기반하여 복수의 동영상을 자체적으로 연결하여 재생할 수 있다. 다양한 실시예에 따르면, 외부 전자 장치는 전자 장치(201) 또는 서버로부터 수신한 복수의 동영상과 그 메타데이터에 기반하여 메타데이터를 변경할 수 있다. 예를 들어, 전자 장치는 동영상이 촬영된 시간을 기준으로 그룹 ID를 결정하였으나, 외부 전자 장치는 동영상의 장면의 유형을 기반으로 그룹 ID를 결정할 수도 있다. 다양한 실시예에 따르면, 외부 전자 장치는 변경된 메타데이터에 기반하여 전자 장치로(201) 또는 서버로부터 수신한 복수의 동영상의 적어도 일부를 연결하여 재생할 수 있다.According to an embodiment, the
이하, 도 3을 참조하여, 일 실시예에 따른 전자 장치의 동작에 대하여 설명한다.Hereinafter, an operation of an electronic device according to an exemplary embodiment will be described with reference to FIG. 3 .
도 3은 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도(300)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.3 is a
동작 301에서, 전자 장치는 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 2의 카메라(210))를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치가 이미지를 획득하는 동작은 사용자 입력에 응답하여 이미지를 캡처하는 동작을 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 이미지(예: 제1 이미지 또는 제2 이미지)를 캡처할 수 있다. 예를 들어, 전자 장치는 제1 시점에 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 제1 이미지를 획득하고, 제2 시점에 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 제2 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행함에 따라 카메라 및 마이크(예: 도 2의 마이크(220))를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼링할 수 있다. 일 실시예에 따르면, 비디오 데이터는 각 프레임에 대응하는 이미지 데이터를 포함할 수 있다. 일 실시예에 따라, 전자 장치는 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 이미지 캡처 시점에 대응하는 프레임의 이미지를 획득할 수 있다. 예를 들면, 전자 장치는 제1 시점에 대응하는 프레임의 이미지를 제1 이미지로 획득하고 제2 시점에 대응하는 프레임의 이미지를 제2 이미지로 획득할 수 있다.In
편의상 제1 이미지를 획득하는 동작 및 제2 이미지를 획득하는 동작을 동작 301로 통합하여 설명하였으나, 이에 제한되는 것은 아니고, 제1 이미지를 획득하는 동작, 및 제2 이미지를 획득하는 동작은 별개로 수행될 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지를 획득한 후 동작 303을 수행하고, 제2 이미지를 획득한 후 동작 305를 수행할 수 있다.For convenience, the operation of acquiring the first image and the operation of acquiring the second image have been described as integrated into
동작 303에서, 전자 장치는 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 획득한 제1 동영상을 제1 이미지와 함께 제1 파일로 저장할 수 있다. 일 실시예에 따르면, 제1 시점은, 전자 장치가 사용자 입력에 응답하여 제1 이미지를 캡처한 시점일 수 있다. 일 실시예에 따르면, 제1 지정된 시간은, 전자 장치에 미리 설정된 시간, 또는 사용자 입력에 기반하여 설정된 시간을 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 제1 시점까지 획득한 동영상에 대응하는 비디오 데이터 및 오디오 데이터를 버퍼로부터 추출할 수 있다. 예를 들어, 제1 지정된 시간이 3초인 경우, 전자 장치는 제1 시점으로부터 3초 전의 시점부터 제1 시점까지 획득한 3초 길이의 동영상을 버퍼로부터 획득할 수 있다. 일 실시예에 따르면, 제1 이미지는 동영상의 마지막 프레임(또는, 종료 프레임)에 대응하는 이미지일 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지와 제1 동영상을 하나의 파일에 저장할 수 있다. 일 실시예에 따르면, 제1 파일은, 컨테이너 포맷(container format)의 파일일 수 있다.In
동작 305에서, 전자 장치는 제2 이미지를 획득한 제2 시점으로부터 제1 지정된 시간 이전부터 획득한 제2 동영상을 제2 이미지와 함께 제2 파일로 저장할 수 있다. 일 실시예에 따르면, 제2 시점은, 전자 장치가 사용자 입력에 응답하여 제2 이미지를 캡처한 시점일 수 있다. 일 실시예에 따르면, 전자 장치는 제2 시점으로부터 제1 지정된 시간 이전부터 제2 시점까지 획득한 동영상에 대응하는 비디오 데이터 및 오디오 데이터를 버퍼로부터 추출할 수 있다. 예를 들어, 제1 지정된 시간이 3초인 경우, 전자 장치는 제2 시점으로부터 3초 전의 시점부터 제2 시점까지 획득한 3초 길이의 동영상을 획득할 수 있다. 일 실시예에 따르면, 제2 이미지는 동영상의 마지막 프레임(또는, 종료 프레임)에 대응하는 이미지일 수 있다. 일 실시예에 따르면, 전자 장치는 제2 이미지와 제2 동영상을 하나의 파일에 저장할 수 있다. 일 실시예에 따르면, 제2 파일은, 컨테이너 포맷(container format)의 파일일 수 있다.In
도 3에 도시되지는 않았으나, 전자 장치는 제1 파일 및 제2 파일 생성 시에, 제1 파일 및 제2 파일의 메타데이터 영역에 제1 파일 및 제2 파일에 포함된 제1 동영상 및 제2 동영상의 연결 여부 및 연결 순서를 결정하기 위한 정보를 저장할 수 있다. 일 실시예에 따르면, 제1 동영상 및 제2 동영상의 연결 여부를 결정하기 위한 정보는, 제1 파일 및 제2 파일에 저장된 그룹 ID를 포함할 수 있다. 일 실시예에 따르면, 제1 동영상 및 제2 동영상의 연결 순서를 결정하기 위한 정보는, 제1 파일 및 제2 파일에 저장된 시퀀스 번호를 포함할 수 있다.Although not shown in FIG. 3 , when the electronic device generates the first file and the second file, the first video and the second video included in the first file and the second file in the metadata area of the first file and the second file It is possible to store information for determining whether videos are connected and the order in which they are connected. According to an embodiment, the information for determining whether to connect the first video and the second video may include group IDs stored in the first file and the second file. According to an embodiment, the information for determining the connection order of the first video and the second video may include sequence numbers stored in the first file and the second file.
일 실시예에 따르면, 전자 장치는 제1 시점과 제2 시점의 간격이 지정된 임계 값 미만인지 여부를 판단할 수 있다. 일 실시예에 따르면, 지정된 임계 값은, 시간을 나타내는 값일 수 있다. 전자 장치는 제1 시점과 제2 시점의 간격이 지정된 임계 값 미만(예: 30초)으로 판단됨에 따라 제1 파일 및 제2 파일에 동일한 그룹 ID를 저장할 수 있다. 전자 장치는 제1 시점과 제2 시점의 간격이 지정된 임계 값 이상으로 판단됨에 따라 제1 파일 및 제2 파일에 서로 다른 그룹 ID를 저장할 수 있다.According to an embodiment, the electronic device may determine whether the interval between the first time point and the second time point is less than a specified threshold value. According to an embodiment, the specified threshold value may be a value indicating time. As it is determined that the interval between the first time point and the second time point is less than a specified threshold value (eg, 30 seconds), the electronic device may store the same group ID in the first file and the second file. The electronic device may store different group IDs in the first file and the second file as it is determined that the interval between the first time point and the second time point is equal to or greater than a specified threshold value.
일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상의 장면의 유형을 인식할 수 있다. 예를 들어, 전자 장치는 동영상으로부터 인식된 객체 정보, 동영상 촬영 시의 카메라의 움직임 정보, 또는 동영상으로부터 인식된 소리 정보 중 적어도 하나에 기반하여 장면의 유형을 인식할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상이 동일한 유형의 장면으로 인식됨에 따라 제1 파일 및 제2 파일에 동일한 그룹 ID를 저장할 수 있다. 전자 장치는 제1 동영상 및 제2 동영상이 동일한 유형의 장면으로 인식되지 않음에 따라 제1 파일 및 제2 파일에 서로 다른 그룹 ID를 저장할 수 있다.According to an embodiment, the electronic device may recognize the types of scenes of the first video and the second video. For example, the electronic device may recognize the type of scene based on at least one of object information recognized from a moving picture, camera movement information when capturing a moving picture, and sound information recognized from a moving picture. According to an embodiment, as the first video and the second video are recognized as the same type of scene, the electronic device may store the same group ID in the first file and the second file. Since the first video and the second video are not recognized as the same type of scene, the electronic device may store different group IDs in the first file and the second file.
일 실시예에 따르면, 전자 장치는 동일한 그룹 ID가 저장된 제1 파일 및 제2 파일에 제1 시점 및 제2 시점의 시간 순서에 따라 시퀀스 번호를 저장할 수 있다. 예를 들어, 제1 시점이 제2 시점보다 앞서는 경우, 전자 장치는 제1 파일에 저장한 시퀀스 번호보다 증가된 시퀀스 번호를 제2 파일에 저장할 수 있다. 일 실시예에 따라, 전자 장치가 제1 파일 및 제2 파일에 그룹 ID 및 시퀀스 번호를 삽입하는 동작에 대하여 도 4 및 도 5를 참조하여 후술한다.According to an embodiment, the electronic device may store the sequence number in the first file and the second file in which the same group ID is stored according to the time order of the first time point and the second time point. For example, when the first time point precedes the second time point, the electronic device may store a sequence number increased from the sequence number stored in the first file in the second file. According to an exemplary embodiment, an operation of the electronic device inserting a group ID and a sequence number into the first file and the second file will be described below with reference to FIGS. 4 and 5 .
도 3에 도시되지는 않았으나, 전자 장치는 제1 파일 및 제2 파일의 메타데이터 영역에 제1 파일 및 제2 파일에 포함된 제1 동영상 및 제2 동영상의 중복 여부 및 중복 부분(또는, 중복 구간)을 결정하기 위한 정보를 저장할 수 있다. 일 실시예에 따르면, 제1 동영상 및 제2 동영상의 중복 여부 및 중복 부분을 결정하기 위한 정보는, 제1 파일 및 제2 파일에 저장된 중복 정보를 포함할 수 있다. 일 실시예에 따르면, 중복 정보는, 전자 장치가 제1 동영상 및 제2 동영상을 획득하여 임시로 저장한 위치를 나타내는 정보를 포함할 수 있다. 예를 들면, 중복 정보는, 제1 동영상 및 제2 동영상에 대응하는 비디오 데이터 및 오디오 데이터가 저장된 버퍼의 위치 정보를 포함할 수 있다. 일 실시예에 따라, 전자 장치는 비디오 데이터 및 오디오 데이터를 프레임 단위로 버퍼에 저장할 수 있고, 저장 순서에 따라 각 프레임에 번호를 붙일 수 있다. 일 실시예에 따르면, 버퍼의 위치 정보는, 프레임 번호 정보에 대응될 수 있다. 예를 들어, 중복 정보는, 각 동영상에 대응하는 비디오 데이터 및 오디오 데이터의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보일 수 있다. 일 실시예에 따라 전자 장치가 파일에 중복 정보를 저장하는 실시예에 대하여 도 6을 참조하여 후술한다.Although not shown in FIG. 3 , in the metadata area of the first file and the second file, the electronic device determines whether the first video and the second video included in the first file and the second file overlap and the overlapping part (or overlapping part) section) may be stored. According to an embodiment, the information for determining whether the first video and the second video overlap and the overlapping portion may include redundant information stored in the first file and the second file. According to an embodiment, the duplicate information may include information indicating a location in which the electronic device acquires the first video and the second video and temporarily stores it. For example, the duplicate information may include location information of a buffer in which video data and audio data corresponding to the first video and the second video are stored. According to an embodiment, the electronic device may store video data and audio data in a buffer in units of frames, and may number each frame according to a storage order. According to an embodiment, location information of the buffer may correspond to frame number information. For example, the duplicate information may be frame number information including a start frame number and an end frame number of video data and audio data corresponding to each moving picture. An embodiment in which the electronic device stores duplicate information in a file according to an embodiment will be described below with reference to FIG. 6 .
일 실시예에 따라 전자 장치가 이미지를 동영상과 함께 하나의 파일로 저장하여 생성한 파일의 구조에 대하여 도 7을 참조하여 후술한다.A structure of a file generated by an electronic device storing an image together with a moving picture as one file according to an exemplary embodiment will be described below with reference to FIG. 7 .
동작 307에서, 전자 장치는 제1 동영상 및 제2 동영상을 연결하여 재생할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상의 연결과 관련된 정보에 기반하여 제1 동영상 및 제2 동영상을 연결하여 재생할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상이 동일한 시간대에 촬영된 동영상들이거나, 동일한 장면의 유형으로 인식되는 경우 제1 동영상 및 제2 동영상이 서로 관련된다고 판단할 수 있다. 일 실시예에 따르면, 제1 동영상 및 제2 동영상의 연결과 관련된 정보는, 제1 동영상 및 제2 동영상의 연결 여부 및 연결 순서를 결정하기 위한 정보, 또는 제1 동영상 및 제2 동영상의 중복 여부 및 중복 부분(또는, 중복 구간)을 결정하기 위한 정보 중 적어도 하나를 포함할 수 있다.In
일 실시예에 따르면, 전자 장치는 제1 파일 및 제2 파일에 저장된 그룹 ID에 기반하여 제1 동영상 및 제2 동영상의 연결 여부를 결정할 수 있다. 예를 들어, 전자 장치는 제1 파일에 저장된 그룹 ID와 제2 파일에 저장된 그룹 ID가 동일한 경우, 제1 파일을 선택하는 입력에 응답하여 제2 파일을 추가로 선택할 수 있고, 제1 동영상 및 제2 동영상을 연결하여 재생하도록 결정할 수 있다.According to an embodiment, the electronic device may determine whether to connect the first video and the second video based on the group ID stored in the first file and the second file. For example, when the group ID stored in the first file is the same as the group ID stored in the second file, the electronic device may additionally select the second file in response to an input for selecting the first file, and include the first video and It may be decided to connect and play the second video.
일 실시예에 따르면, 전자 장치는 제1 파일 및 제2 파일에 저장된 시퀀스 번호에 기반하여 제1 동영상 및 제2 동영상의 연결 순서를 결정할 수 있다. 일 실시예에 따르면, 전자 장치는 시퀀스 번호가 증가하는 순서에 따라 제1 동영상 및 제2 동영상을 배열하고, 배열된 순서에 따라 제1 동영상 및 제2 동영상을 연결하도록 결정할 수 있다. 예를 들어, 전자 장치는 제1 파일에 저장된 시퀀스 번호가 제2 파일에 저장된 시퀀스 번호보다 작은 경우, 제1 동영상을 제2 동영상보다 먼저 재생하도록 결정할 수 있다.According to an embodiment, the electronic device may determine a connection order of the first video and the second video based on sequence numbers stored in the first file and the second file. According to an embodiment, the electronic device may determine to arrange the first video and the second video according to the increasing sequence of the sequence number, and to connect the first video and the second video according to the arrangement order. For example, when the sequence number stored in the first file is smaller than the sequence number stored in the second file, the electronic device may determine to play the first video before the second video.
일 실시예에 따르면, 전자 장치는 제1 파일 및 제2 파일에 저장된 중복 정보에 기반하여 제1 동영상 및 제2 동영상의 중복 여부를 판단할 수 있다. 예를 들어, 제1 동영상과 제2 동영상의 프레임 번호가 중복되는 경우 제1 동영상 및 제2 동영상이 중복된다고 판단할 수 있다. 일 실시예에 따르면, 제1 동영상 및 제2 동영상이 중복된다고 판단됨에 따라 제1 동영상 및 제2 동영상의 중복 부분을 제거하여 재생할 수 있다. 예를 들어, 제1 동영상의 시작 프레임 번호가 0이고, 종료 프레임 번호가 130이며, 제2 동영상의 시작 프레임 번호가 70이고, 종료 프레임 번호가 220인 경우, 전자 장치는 제1 동영상을 재생한 후 제2 동영상을 프레임 번호가 131인 프레임부터 재생할 수 있다. 일 실시예에 따르면, 제1 동영상 및 제2 동영상이 중복되지 않는다고 판단됨에 따라 제1 동영상 및 제2 동영상 사이에 지정된 효과를 삽입하여 재생할 수 있다. 예를 들어, 제1 동영상의 시작 프레임 번호가 0이고, 종료 프레임 번호가 130이며, 제2 동영상의 시작 프레임 번호가 135이고, 종료 프레임 번호가 220인 경우, 전자 장치는 제1 동영상을 재생한 후 지정된 효과에 대응하는 화면을 출력하고, 제2 동영상을 이어서 재생할 수 있다.According to an embodiment, the electronic device may determine whether the first video and the second video overlap based on overlap information stored in the first file and the second file. For example, when the frame numbers of the first video and the second video overlap, it may be determined that the first video and the second video overlap. According to an embodiment, when it is determined that the first video and the second video overlap, the overlapping portions of the first video and the second video may be removed and reproduced. For example, when the start frame number of the first video is 0, the end frame number is 130, the start frame number of the second video is 70, and the end frame number is 220, the electronic device plays the first video Afterwards, the second video may be played from the frame having the frame number 131 . According to an embodiment, when it is determined that the first video and the second video do not overlap, a specified effect may be inserted between the first video and the second video to be played. For example, when the start frame number of the first video is 0, the end frame number is 130, the start frame number of the second video is 135, and the end frame number is 220, the electronic device plays the first video After that, a screen corresponding to the specified effect may be output, and the second video may be continuously played.
일 실시예에 따르면, 전자 장치는 디스플레이(예: 도 2의 디스플레이(230))에 표시된 적어도 하나의 파일 중 제1 파일을 선택하는 사용자 입력을 수신할 수 있다. 전자 장치는 제1 파일 및 제2 파일에 저장된 제1 동영상 및 제2 동영상의 연결과 관련된 정보에 기반하여 제2 파일을 추가로 선택할 수 있다. 예를 들어, 전자 장치는 제1 파일에 저장된 그룹 ID와 동일한 그룹 ID가 저장된 제2 파일을 추가로 선택할 수 있다.According to an embodiment, the electronic device may receive a user input for selecting a first file from among at least one file displayed on a display (eg, the
일 실시예에 따르면, 전자 장치는 제1 파일 및 제2 파일에 저장된 시퀀스 번호에 따라 제1 파일 및 제2 파일을 배열하고, 제1 파일 및 제2 파일로부터 제1 동영상 및 제2 동영상을 추출(또는, 분리)하고, 제1 동영상 및 제2 동영상을 상기 제1 파일 및 제2 파일의 배열 순서에 따라 연결하여 재생하도록 하는 사용자 인터페이스를 디스플레이에 표시할 수 있다. 예를 들어, 사용자 인터페이스는, 재생 버튼을 포함할 수 있다.According to an embodiment, the electronic device arranges the first file and the second file according to sequence numbers stored in the first file and the second file, and extracts the first video and the second video from the first file and the second file (or separate), and a user interface for connecting and playing the first video and the second video according to the arrangement order of the first file and the second file may be displayed on the display. For example, the user interface may include a play button.
일 실시예에 따르면, 전자 장치는 사용자 인터페이스를 선택하는 사용자 입력을 수신함에 따라 제1 동영상 및 제2 동영상을 연결하여 재생할 수 있다. 일 실시예에 따라 전자 장치가 제1 동영상 및 제2 동영상을 연결하여 재생하는 동작에 대하여는 상술하였으므로, 중복된 설명은 생략하거나 간단히 한다.According to an embodiment, in response to receiving a user input for selecting a user interface, the electronic device may connect and play the first video and the second video. Since the operation of connecting and reproducing the first video and the second video by the electronic device according to an exemplary embodiment has been described above, the redundant description will be omitted or simplified.
도 3에 도시되지는 않았으나, 전자 장치는 재생된 제1 동영상 및 제2 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라 제1 동영상 및 제2 동영상을 연결한 제3 동영상을 생성하고, 제3 동영상을 저장할 수 있다.Although not shown in FIG. 3 , the electronic device generates a third video in which the first video and the second video are connected in response to a user input for storing the reproduced first video and the second video, and the third video can be saved.
이하, 도 4를 참조하여, 일 실시예에 따른 전자 장치가 파일에 그룹 ID 및 시퀀스 번호를 삽입하는 동작에 대하여 설명한다.Hereinafter, an operation of inserting a group ID and a sequence number into a file by the electronic device according to an exemplary embodiment will be described with reference to FIG. 4 .
도 4는 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도(400)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.4 is a
일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행 중인 상태일 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 2의 카메라(210)) 및 마이크(예: 도 2의 마이크(220))를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼링할 수 있다. 일 실시예에 따르면, 비디오 데이터는 각 프레임에 대응하는 이미지 데이터를 포함할 수 있다.According to an embodiment, the electronic device may be in a state in which a motion photo function is being executed. According to an embodiment, the electronic device may buffer video data and audio data obtained by using a camera (eg, the
동작 401에서, 전자 장치는 제1 시점에 제1 이미지를 캡처할 수 있다. 일 실시예에 따라, 전자 장치는 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 이미지 캡처 시점에 대응하는 프레임의 이미지를 획득할 수 있다. 일 실시예에 따르면, 이미지를 캡처하는 동작은, 사진 촬영을 의미할 수 있다.In
동작 403에서, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 획득한 제1 동영상을 제1 이미지와 함께 제1 파일로 저장할 수 있다. 일 실시예에 따르면, 제1 지정된 시간은, 전자 장치에 미리 설정된 시간, 또는 사용자 입력에 기반하여 설정된 시간을 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 제1 시점까지 획득한 동영상에 대응하는 비디오 데이터 및 오디오 데이터를 버퍼로부터 추출할 수 있다. 예를 들어, 제1 지정된 시간이 3초인 경우, 전자 장치는 제1 시점으로부터 3초 전의 시점부터 제1 시점까지 획득한 3초 길이의 동영상을 버퍼로부터 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지와 제1 동영상을 하나의 제1 파일에 저장할 수 있다. 일 실시예에 따르면, 제1 파일은, 컨테이너 포맷(container format)의 파일일 수 있다.In
동작 405에서, 전자 장치는 제1 이미지가 카메라 실행 후 캡처한 최초 이미지인지 여부를 판단할 수 있다. 일 실시예에 따르면, 전자 장치가 카메라를 실행하는 동작은, 전자 장치가 모션 포토 기능을 실행하는 동작을 포함할 수 있다. 예를 들어, 사용자가 카메라 어플리케이션의 모션 포토 기능을 실행시킨 후, 최초로 사진을 촬영하도록 하는 입력을 수행함에 따라, 전자 장치는 상기 입력에 응답하여 카메라 실행 후 최초로 이미지를 캡처할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지가 모션 포토 기능이 실행된 상태에서 최초로 캡처된 이미지라고 판단됨에 따라(동작 405-YES) 동작 407을 수행할 수 있고, 제1 이미지가 모션 포토 기능이 실행된 상태에서 최초로 캡처된 이미지가 아니라고 판단됨에 따라(동작 405-NO) 동작 409를 수행할 수 있다.In
동작 407에서, 전자 장치는 그룹 ID 및 시퀀스 번호를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 파일이 속한 그룹을 구분하기 위한 고유 식별자(unique ID, UID)를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일임을 나타내는 시퀀스 번호를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 파일의 생성 순서는, 파일에 저장되는 이미지가 캡처된 순서에 대응될 수 있다. 일 실시예에 따르면, 전자 장치는 그룹 ID 및 시퀀스 번호를 제1 파일의 메타데이터 영역에 저장할 수 있다.In
동작 409에서, 전자 장치는 제1 시점과 제1 시점 이전의 제2 이미지 캡처 시점인 제2 시점의 간격이 지정된 임계 값 미만인지 여부를 판단할 수 있다. 일 실시예에 따르면, 제2 이미지는, 전자 장치가 제1 시점 이전에 생성한 파일이 속한 그룹에서 최초로 생성된 파일에 저장된 이미지, 또는 전자 장치가 제1 시점 이전 가장 최근에 캡처한 이미지를 포함할 수 있다. 일 실시예에 따르면, 지정된 임계 값은, 시간을 나타내는 값일 수 있다. 일 실시예에 따르면, 지정된 임계 값은, 전자 장치에 미리 설정되거나, 사용자 입력에 기반하여 설정될 수 있다. 예를 들어, 지정된 임계 값이 1분인 경우, 전자 장치는 제1 시점이 제2 시점으로부터 1분 이내인 경우 제1 시점과 제2 시점의 간격이 지정된 임계 값 미만이라고 판단할 수 있고, 제1 시점이 제2 시점으로부터 1분이 경과한 이후의 시점인 경우 제1 시점과 제2 시점의 간격이 지정된 임계 값 미만이 아니라고 판단할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 시점과 제1 시점 이전의 제2 시점의 간격이 지정된 임계 값 미만이라고 판단됨에 따라(동작 409-YES) 동작 411을 수행하고, 제1 시점과 제1 시점 이전의 제2 시점의 간격이 지정된 임계 값 미만이 아니라고 판단됨에 따라(동작 409-NO) 동작 413을 수행할 수 있다.In
동작 411에서, 전자 장치는 제1 파일에 동일한 그룹 ID를 삽입하고, 시퀀스 번호를 증가시켜 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 이미지가 저장된 제2 파일에 삽입된 그룹 ID와 동일한 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 지정된 조건을 만족하는 파일이 하나씩 증가할 때마다 시퀀스 번호를 하나씩 증가시킬 수 있다. 일 실시예에 따르면, 지정된 조건은, 제1 시점과 제1 시점 이전에 생성된 파일이 속한 그룹에서 최초로 생성된 파일(예: 제2 파일)에 저장된 이미지(예: 제2 이미지)가 캡처된 시점(예: 제2 시점) 간의 간격이 지정된 임계 값 미만인지 여부를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 증가된 시퀀스 번호를 제1 파일에 삽입할 수 있다.In
동작 413에서, 전자 장치는 제1 파일에 그룹 ID를 변경하여 삽입하고, 시퀀스 번호를 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 이미지가 저장된 제2 파일에 삽입된 그룹 ID와 다른 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일일 수 있다. 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일임을 나타내는 시퀀스 번호를 제1 파일에 삽입할 수 있다.In
이하, 도 5를 참조하여, 다양한 실시예에 따른 전자 장치가 파일에 그룹 ID 및 시퀀스 번호를 삽입하는 동작에 대하여 설명한다.Hereinafter, an operation of inserting a group ID and a sequence number into a file by an electronic device according to various embodiments will be described with reference to FIG. 5 .
도 5는 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도(500)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.5 is a
일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행 중인 상태일 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 2의 카메라(210)) 및 마이크(예: 도 2의 마이크(220))를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼링할 수 있다. 일 실시예에 따르면, 비디오 데이터는 각 프레임에 대응하는 이미지 데이터를 포함할 수 있다.According to an embodiment, the electronic device may be in a state in which a motion photo function is being executed. According to an embodiment, the electronic device may buffer video data and audio data obtained by using a camera (eg, the
동작 501에서, 전자 장치는 제1 시점에 제1 이미지를 캡처할 수 있다. 일 실시예에 따르면, 동작 501은 도 4의 동작 401에 대응될 수 있으며, 동작 401에 대하여 상술한 설명이 동일하게 적용될 수 있다.In
동작 503에서, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 획득한 제1 동영상을 제1 이미지와 함께 제1 파일로 저장할 수 있다. 일 실시예에 따르면, 동작 503은 도 4의 동작 403에 대응될 수 있으며, 동작 403에 대하여 상술한 설명이 동일하게 적용될 수 있다.In
동작 505에서, 전자 장치는 제1 동영상의 장면의 유형을 인식할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 내 객체, 제1 동영상 촬영 시의 카메라의 움직임 정보(예: 촬영 방향, 또는 촬영 각도), 또는 동영상의 소리 정보에 기반하여 동영상의 장면의 유형을 인식할 수 있다.In
동작 507에서, 전자 장치는 제1 동영상과 제1 시점 이전의 제2 시점으로부터 제1 지정된 시간 이전부터 획득한 제2 동영상의 장면의 유형이 동일한지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 제1 동영상 및 제2 동영상으로부터 인식되는 객체가 서로 동일한 경우, 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다. 다른 예로, 전자 장치는 제1 동영상 및 제2 동영상으로부터 인식되는 객체가 서로 동일하고, 제1 동영상 및 제2 동영상 촬영 시의 카메라의 촬영 방향 또는 촬영 각도가 유사하다고 판단됨에 따라 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다. 또 다른 예로, 전자 장치는는 제1 동영상 및 제2 동영상으로부터 인식되는 배경 음악, 또는 화자가 동일하다고 판단됨에 따라 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다.In
일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단됨에 따라(동작 507-YES) 동작 509를 수행하고, 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단됨에 따라(동작 507-NO) 동작 511을 수행할 수 있다.According to an embodiment, the electronic device performs
동작 509에서, 전자 장치는 제1 파일에 동일한 그룹 ID를 삽입하고, 시퀀스 번호를 증가시켜 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 동영상이 저장된 제2 파일에 삽입된 그룹 ID와 동일한 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 지정된 조건을 만족하는 파일이 하나씩 증가할 때마다 시퀀스 번호를 하나씩 증가시킬 수 있다. 일 실시예에 따르면, 지정된 조건은, 제1 동영상과 제1 시점 이전에 생성된 파일(예: 제2 파일)에 저장된 동영상(예: 제2 동영상)의 장면의 유형이 동일한지 여부를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 증가된 시퀀스 번호를 제1 파일에 삽입할 수 있다.In
동작 511에서, 전자 장치는 제1 파일에 그룹 ID를 변경하여 삽입하고, 시퀀스 번호를 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 동영상이 저장된 제2 파일에 삽입된 그룹 ID와 다른 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일일 수 있다. 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일임을 나타내는 시퀀스 번호를 제1 파일에 삽입할 수 있다.In
이하, 도 6을 참조하여, 일 실시예에 따른 전자 장치가 파일에 중복 정보를 저장하는 동작에 대하여 설명한다.Hereinafter, an operation in which the electronic device stores duplicate information in a file according to an exemplary embodiment will be described with reference to FIG. 6 .
도 6은 일 실시예에 따른 전자 장치의 동작을 설명하기 위한 도면(600)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.6 is a diagram 600 for explaining an operation of an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the
일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행 중인 상태일 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 2의 카메라(210)) 및 마이크(예: 도 2의 마이크(220))를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼(buffer)에 저장할 수 있다. 예를 들어, 버퍼는 링 버퍼(ring buffer)일 수 있다.According to an embodiment, the electronic device may be in a state in which a motion photo function is being executed. According to an embodiment, the electronic device stores video data and audio data obtained using a camera (eg, the
일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행한 이후 최초로 이미지를 캡처함에 따라 첫 번째 파일을 생성할 수 있고, 그룹 ID를 생성하여 첫 번째 파일에 그룹 ID를 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 첫 번째 파일에 저장되는 동영상의 첫 번째 비디오 프레임 및 첫 번째 오디오 프레임의 프레임 번호를 0으로 재설정(reset)할 수 있다. 일 실시예에 따르면, 전자 장치는 버퍼에 오디오 데이터 및 비디오 데이터를 프레임 단위로 순차적으로 저장하므로, 순차적으로 저장되는 순서에 따라 각 프레임에 넘버링(numbering)할 수 있다.According to an embodiment, the electronic device may generate a first file by first capturing an image after executing the motion photo function, and may generate a group ID and store the group ID in the first file. According to an embodiment, the electronic device may reset the frame numbers of the first video frame and the first audio frame of the moving picture stored in the first file to 0. According to an embodiment, since the electronic device sequentially stores audio data and video data in frame units in a buffer, each frame may be numbered according to the sequentially stored order.
도 6은 일 실시예에 따른 전자 장치가 버퍼에 저장한 오디오 데이터 및 비디오 데이터를 막대 형태로 나타내며, X축은 시간 축, 또는 프레임 축을 의미할 수 있다. 도 6에 도시된 오디오 데이터 및 비디오 데이터에 대응하는 막대의 길이는 시간 길이 또는 프레임 길이에 대응할 수 있다. 예를 들면, 도 6에 도시된 X축의 길이는 전자 장치에 미리 설정된 임계 값일 수 있다. 일 실시예에 따르면, 임계 값은, 전자 장치가 복수의 파일 또는 복수의 동영상을 동일한 그룹으로 판단하기 위한 기준 값일 수 있다. 일 실시예에 따르면, X축 아래 도시된 100, 200, 또는 300과 같은 숫자는, 전자 장치가 오디오 프레임 및 비디오 프레임에 넘버링한 프레임 번호를 의미할 수 있다.6 illustrates audio data and video data stored in a buffer of an electronic device in a bar form according to an embodiment, and the X axis may mean a time axis or a frame axis. The length of the bar corresponding to the audio data and the video data shown in FIG. 6 may correspond to a time length or a frame length. For example, the length of the X-axis shown in FIG. 6 may be a threshold value preset in the electronic device. According to an embodiment, the threshold value may be a reference value for the electronic device to determine a plurality of files or a plurality of videos as the same group. According to an embodiment, a number such as 100, 200, or 300 shown under the X-axis may mean a frame number numbered by the electronic device in the audio frame and the video frame.
일 실시예에 따르면, 전자 장치는 제1 시점에 제1 이미지를 캡처함에 따라 제1 시점으로부터 제1 지정된 시간 이전부터 획득한 제1 동영상(610)을 제1 이미지와 함께 제1 파일에 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지가 모션 포토 기능 실행 이후 최초로 캡처한 이미지임에 따라 제1 동영상(610)의 첫 번째 오디오 프레임 및 비디오 프레임의 프레임 번호를 0으로 재설정할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상의 시작 프레임 번호(0) 및 종료 프레임 번호(130)를 포함하는 중복 정보([0, 130])를 제1 파일에 저장할 수 있다. 일 실시예에 따르면, 제1 이미지는 제1 동영상의 프레임 중 130이라는 프레임 번호가 할당된 프레임에 대응될 수 있다.According to an embodiment, as the first image is captured at the first time point, the electronic device may store the
일 실시예에 따르면, 전자 장치는 제2 시점에 제2 이미지를 캡처함에 따라 제2 시점으로부터 제1 지정된 시간 이전부터 획득한 제2 동영상(620)을 제2 이미지와 함께 제2 파일에 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 시점과 제1 시점의 간격이 지정된 임계 값 미만이라고 판단됨에 따라 제2 파일에 제1 파일에 저장한 그룹 ID와 동일한 그룹 ID를 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 동영상의 시작 프레임 번호(70) 및 종료 프레임 번호(220)를 포함하는 중복 정보([70, 220])를 제2 파일에 저장할 수 있다. 일 실시예에 따르면, 제2 이미지는 제2 동영상의 프레임 중 220이라는 프레임 번호가 할당된 프레임에 대응될 수 있다.According to an embodiment, as the second image is captured at the second time point, the electronic device may store the
일 실시예에 따르면, 전자 장치는 제3 시점에 제3 이미지를 캡처함에 따라 제3 시점으로부터 제1 지정된 시간 이전부터 획득한 제3 동영상(630)을 제3 이미지와 함께 제3 파일에 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제3 시점과 제1 시점의 간격이 지정된 임계 값 미만이라고 판단됨에 따라 제3 파일에 제1 파일에 저장한 그룹 ID와 동일한 그룹 ID를 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제3 동영상의 시작 프레임 번호(200) 및 종료 프레임 번호(330)를 포함하는 중복 정보([200, 330])를 제3 파일에 저장할 수 있다. 일 실시예에 따르면, 제3 이미지는 제3 동영상의 프레임 중 330이라는 프레임 번호가 할당된 프레임에 대응될 수 있다.According to an embodiment, as the third image is captured at the third time point, the electronic device may store the
일 실시예에 따르면, 전자 장치는 제4 시점에 제4 이미지를 캡처함에 따라 제4 시점으로부터 제1 지정된 시간 이전부터 획득한 제4 동영상(640)을 제4 이미지와 함께 제4 파일에 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제4 시점과 제1 시점의 간격이 지정된 임계 값 미만이라고 판단됨에 따라 제4 파일에 제1 파일에 저장한 그룹 ID와 동일한 그룹 ID를 저장할 수 있다. 일 실시예에 따르면, 전자 장치는 제4 동영상의 시작 프레임 번호(300) 및 종료 프레임 번호(420)를 포함하는 중복 정보([300, 420])를 제4 파일에 저장할 수 있다. 일 실시예에 따르면, 제4 이미지는 제4 동영상의 프레임 중 420이라는 프레임 번호가 할당된 프레임에 대응될 수 있다.According to an embodiment, as the fourth image is captured at the fourth time point, the electronic device may store the
일 실시예에 따르면, 전자 장치는 제1 파일 내지 제4 파일에 중복 정보를 저장함으로써, 중복 정보에 기반하여 제1 파일 내지 제4 파일 간의 중복 여부 및 중복 부분(또는, 중복 구간)을 판단할 수 있다. 예를 들어, 전자 장치는 제1 파일 및 제2 파일의 중복 정보에 기반하여 제1 동영상 및 제2 동영상이 프레임 번호가 70인 프레임부터 프레임 번호가 130인 프레임까지 중복됨을 식별할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상을 연결하여 재생 시에, 제1 동영상을 프레임 번호 0부터 프레임 번호 130까지 재생한 후, 제2 동영상을 프레임 번호 131부터 프레임 번호 220까지 재생할 수 있다.According to an embodiment, the electronic device stores duplicate information in the first file to the fourth file to determine whether or not there is a duplicate between the first file to the fourth file and a duplicate part (or a duplicate section) based on the duplicate information. can For example, the electronic device may identify that the first video and the second video overlap from a frame having a frame number of 70 to a frame having a frame number of 130 based on overlap information of the first file and the second file. According to an embodiment, when the first video and the second video are connected and played, the electronic device plays the first video from
이하, 도 7을 참조하여, 일 실시예에 따른 전자 장치가 이미지를 동영상과 함께 하나의 파일로 저장하여 생성한 파일의 구조에 대하여 설명한다.Hereinafter, a structure of a file generated by an electronic device storing an image together with a moving picture as one file according to an exemplary embodiment will be described with reference to FIG. 7 .
도 7은 일 실시예에 따른 전자 장치가 생성한 파일의 구조를 나타낸 도면(700)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.7 is a diagram 700 illustrating a structure of a file generated by an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the
일 실시예에 따르면, 전자 장치는 이미지와 동영상을 함께 저장한 하나의 파일(701)을 생성할 수 있다. 일 실시예에 따르면, 파일(701)은 컨테이너 포맷(container format)으로, 상이한 유형의 데이터와 메타데이터를 함께 저장할 수 있다.According to an embodiment, the electronic device may create one
도 7을 참조하여 예를 들면, 파일(701)은 비디오 데이터(710) 및 이미지 데이터(720)를 포함할 수 있다. 일 실시예에 따르면, 비디오 데이터(710)는 영상과 음성을 모두 포함하는 데이터일 수 있다. 일 실시예에 따르면, 파일(701)은 메타데이터(730)를 포함할 수 있다.Referring to FIG. 7 , for example, the
일 실시예에 따르면, 메타데이터(730)는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터의 연결 여부를 결정하기 위한 그룹 ID(Group ID)(731)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 그룹 ID(731)에 기반하여 파일(701)과 다른 파일이 동일한 그룹에 속하는지 여부, 또는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터를 연결하여 재생할지 여부를 결정할 수 있다.According to an embodiment, the
일 실시예에 따르면, 메타데이터(730)는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터의 연결 순서를 결정하기 위한 시퀀스 번호(sequence number)(732)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 시퀀스 번호(732)에 기반하여 파일(701)이 속하는 그룹 내에서 파일(701)이 몇 번째 파일인지를 나타내는지 식별할 수 있다. 일 실시예에 따르면, 전자 장치는 시퀀스 번호(732)에 기반하여 파일(701)에 포함된 비디오 데이터(710)와 파일(701)이 속하는 그룹 내 다른 파일에 포함된 비디오 데이터를 연결하여 재생할 때의 연결 순서 또는 재생 순서를 결정할 수 있다.According to an embodiment, the
일 실시예에 따르면, 메타데이터(730)는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터 간의 중복 여부 및 중복 부분(또는, 중복 구간)을 결정하기 위한 중복 정보를 포함할 수 있다. 일 실시예에 따르면, 중복 정보는 비디오 중복 정보(733) 및 오디오 중복 정보(734)를 포함할 수 있다. 일 실시예에 따라, 전자 장치는 비디오 데이터(710)를 프레임 단위로 버퍼에 저장할 수 있고, 저장 순서에 따라 각 프레임에 번호를 붙일 수 있다. 일 실시예에 따르면, 비디오 중복 정보(733)는 비디오 데이터(710)의 영상 데이터가 버퍼에 저장된 위치 정보를 포함할 수 있고, 오디오 중복 정보(734)는 비디오 데이터(710)의 음성 데이터가 버퍼에 저장된 위치 정보를 포함할 수 있다. 예를 들어, 비디오 중복 정보(734)는 비디오 데이터(710)의 영상 데이터의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보를 포함할 수 있고, 오디오 중복 정보(734)는 비디오 데이터(710)의 음성 데이터의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보를 포함할 수 있다. 예를 들면, 전자 장치는 비디오 중복 정보(733) 및 오디오 중복 정보(734)에 기반하여 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터의 중복 프레임의 존재 여부 및 중복 프레임 번호를 결정할 수 있다.According to an embodiment, the
일 실시예에 따르면, 전자 장치는 메타데이터(730)에 기반하여 파일(701)을 포함하는 전자 장치에 저장된 복수의 파일을 관리할 수 있다. 예를 들어, 전자 장치는 동일한 그룹 ID를 가진 복수의 파일에 포함된 적어도 하나의 데이터(예: 이미지 데이터)를 한꺼번에 복사, 삭제, 또는 전달할 수 있다. 일 실시예에 따라, 전달이란, 전자 장치가 전자 장치와 통신 연결된 외부 전자 장치로 전송하는 것을 포함할 수 있다.According to an embodiment, the electronic device may manage a plurality of files stored in the electronic device including the
이하, 도 8을 참조하여, 일 실시예에 따른 전자 장치가 복수의 파일에 포함된 복수의 동영상을 연결하여 재생하는 동작에 대하여 설명한다.Hereinafter, an operation in which an electronic device connects and reproduces a plurality of videos included in a plurality of files according to an embodiment will be described with reference to FIG. 8 .
도 8은 일 실시예에 따른 전자 장치의 동작을 나타낸 흐름도(800)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.8 is a
일 실시예에 따르면, 전자 장치는 디스플레이(예: 도 2의 디스플레이(230))에 적어도 하나의 파일을 표시할 수 있다. 예를 들어, 전자 장치는 전자 장치에 저장된 이미지 및 동영상을 열람하는 어플리케이션(예: 갤러리(gallery) 어플리케이션)을 통해 적어도 하나의 파일에 포함된 이미지를 지정된 형태로 배열하여 표시할 수 있다. 일 실시예에 따르면, 전자 장치는 디스플레이에 적어도 하나의 파일을 표시한 상태에서 도 8에 도시된 동작들을 수행할 수 있다.According to an embodiment, the electronic device may display at least one file on a display (eg, the
동작 801에서, 전자 장치는 제1 파일을 선택하는 입력을 수신할 수 있다. 일 실시예에 따르면, 전자 장치는 디스플레이에 표시된 제1 파일을 나타내는 이미지를 선택하는 입력을 수신할 수 있다. 예를 들어, 제1 파일을 선택하는 입력은, 제1 파일을 나타내는 이미지에 대한 터치 입력, 또는 제1 파일을 나타내는 이미지를 지칭하는 음성 입력을 포함할 수 있다.In
동작 803에서, 전자 장치는 제1 파일의 그룹 ID를 식별할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일을 선택하는 입력을 수신함에 따라 제1 파일에 저장된 그룹 ID를 식별할 수 있다.In
동작 805에서, 전자 장치는 식별된 그룹 ID를 갖는 제2 파일을 선택할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일로부터 식별된 그룹 ID와 동일한 그룹 ID가 저장된 제2 파일을 검색할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일을 선택하는 입력을 수신함에 따라 제1 파일을 선택하고, 제1 파일로부터 식별된 그룹 ID를 갖는 제2 파일을 추가로 선택할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일을 선택하는 입력만을 수신하더라도 제1 파일, 및 제1 파일과 동일한 그룹에 속한 제1 파일 이외의 파일을 지정(또는, 선택)할 수 있다.In
일 실시예에 따르면, 전자 장치는 선택된 제1 파일 및 제2 파일에 포함된 동영상들을 포함하는 재생 목록을 생성할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일 및 제2 파일에 저장된 시퀀스 번호에 기반하여 각 파일에 포함된 동영상들의 재생 순서를 결정할 수 있다.According to an embodiment, the electronic device may create a playlist including moving pictures included in the selected first file and the second file. According to an embodiment, the electronic device may determine the playback order of moving pictures included in each file based on sequence numbers stored in the first file and the second file.
동작 807에서, 전자 장치는 제1 파일에 저장된 제1 동영상과 제2 파일에 저장된 제2 동영상 간에 중복이 존재하는지 여부를 판단할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일에 저장된 중복 정보 및 제2 파일에 저장된 중복 정보에 기반하여 제1 동영상과 제2 동영상의 중복 여부 및 중복 부분(또는, 중복 구간)를 판단할 수 있다. 일 실시예에 따라, 전자 장치가 복수의 파일에 저장된 중복 정보에 기반하여 복수의 파일 각각에 저장된 동영상 간의 중복 여부 및 중복 부분을 판단하는 방법에 대하여는 상술하였으므로, 중복된 설명은 생략하거나 간단히 한다. 일 실시예에 따르면, 전자 장치는 제1 파일에 저장된 제1 동영상과 제2 파일에 저장된 제2 동영상 간에 중복이 존재하는 것으로 판단됨에 따라(동작 809-YES) 동작 811을 수행하고, 전자 장치는 제1 파일에 저장된 제1 동영상과 제2 파일에 저장된 제2 동영상 간에 중복이 존재하지 않는 것으로 판단됨에 따라(동작 809-NO) 동작 809를 수행할 수 있다.In
동작 809에서, 전자 장치는 제1 동영상과 제2 동영상 사이에 변환(또는, 전환)(transition) 효과를 삽입할 수 있다. 예를 들면, 전자 장치는 제1 동영상과 제2 동영상의 중복이 없다고 판단됨에 따라 제1 동영상과 제2 동영상의 자연스러운 연결을 위해 제1 동영상의 마지막 프레임과 제2 동영상의 첫 번째 프레임 사이에 변환 효과를 삽입할 수 있다. 일 실시예에 따라, 변환 효과는, 프레임과 프레임을 연결하는 애니메이션(animation) 효과일 수 있다.In
동작 811에서, 전자 장치는 제1 동영상과 제2 동영상의 중복 프레임을 제거할 수 있다. 예를 들면, 전자 장치는 제1 동영상과 제2 동영상의 중복이 있다고 판단됨에 따라 제1 동영상과 제2 동영상의 중복 프레임을 식별하고, 제1 동영상의 마지막 프레임 이후에 제2 동영상의 프레임 중 중복 프레임 이후의 프레임부터 재생되도록 설정할 수 있다.In
동작 813에서, 전자 장치는 제1 동영상 및 제2 동영상을 연결하여 재생할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상을 하나의 동영상인 것처럼 연결하여 재생할 수 있다. 예를 들어, 전자 장치는 중복 구간이 존재하는 제1 동영상 및 제2 동영상을 연결하여 재생 시에는 제1 동영상 재생 후 제2 동영상을 중복 프레임 이후의 프레임부터 재생할 수 있다. 전자 장치는 제1 동영상 재생 후 제2 동영상 재생 시, 제1 동영상의 마지막 프레임의 프레임 번호보다 큰 프레임 번호에 대응하는 프레임부터 재생할 수 있다. 다른 예로, 전자 장치는 중복 구간이 존재하지 않는 제1 동영상 및 제2 동영상을 연결하여 재생 시에는 제1 동영상 재생 후 삽입된 변환 효과를 출력한 후 제2 동영상을 재생할 수 있다.In
상술한 실시예에서는, 전자 장치가 하나의 파일을 선택하는 사용자 입력을 수신한 경우를 예로 들었으나, 이에 한정되는 것은 아니며, 전자 장치는 복수의 파일을 선택하는 사용자 입력을 수신할 수도 있고, 선택된 복수의 파일 각각에 포함된 동영상들을 연결하여 재생할 수도 있다.In the above-described embodiment, the case in which the electronic device receives a user input for selecting one file is taken as an example, but the present invention is not limited thereto, and the electronic device may receive a user input for selecting a plurality of files, or Videos included in each of a plurality of files may be linked and played.
이하, 도 9를 참조하여, 일 실시예에 따른 전자 장치가 복수의 파일에 포함된 복수의 동영상을 연결하여 재생하는 동작에 대하여 설명한다.Hereinafter, an operation in which an electronic device connects and reproduces a plurality of videos included in a plurality of files according to an embodiment will be described with reference to FIG. 9 .
도 9는 일 실시예에 따른 전자 장치의 동작을 설명하기 위한 도면(900)이다. 이하에서 설명하는 전자 장치(예: 도 2의 전자 장치(201))의 동작들은 전자 장치의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다.9 is a diagram 900 for explaining an operation of an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the
일 실시예에 따르면, 전자 장치는 제1 파일, 제2 파일, 제3 파일, 제4 파일, 및 제5 파일을 선택하는 입력을 수신함에 따라 제1 파일에 포함된 제1 동영상(901), 제2 파일에 포함된 제2 동영상(902), 제3 파일에 포함된 제3 동영상(903), 제4 파일에 포함된 제4 동영상(904), 및 제5 파일에 포함된 제5 동영상(905)을 포함하는 재생 목록을 생성할 수 있다. 일 실시예에 따르면, 제1 파일, 제2 파일, 제3 파일, 제4 파일, 및 제5 파일을 선택하는 입력은, 제1 파일, 제2 파일, 제3 파일, 제4 파일, 또는 제5 파일 중 하나를 선택하는 입력을 포함할 수 있으며, 전자 장치는 제1 파일, 제2 파일, 제3 파일, 제4 파일, 또는 제5 파일 중 선택된 하나의 파일과 동일한 그룹 ID를 가진 파일을 추가로 선택하여 제1 파일, 제2 파일, 제3 파일, 제4 파일, 및 제5 파일을 선택한 것일 수 있다.According to an embodiment, when the electronic device receives an input for selecting the first file, the second file, the third file, the fourth file, and the fifth file, the
일 실시예에 따르면, 전자 장치는 제1 파일, 제2 파일, 제3 파일, 제4 파일, 및 제5 파일에 저장된 시퀀스 번호에 기반하여 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)을 배열할 수 있다. 예를 들면, 전자 장치는 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)을 각 동영상에 대응하는 시퀀스 번호가 증가하는 순서로 배열할 수 있다.According to an embodiment, the electronic device performs a
일 실시예에 따르면, 전자 장치는 제1 파일, 제2 파일, 제3 파일, 제4 파일, 및 제5 파일에 저장된 중복 정보에 기반하여 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)의 중복 여부 및 중복 구간을 식별할 수 있다. 예를 들어, 전자 장치는 제2 동영상(902) 및 제3 동영상(903)의 중복 구간인 제1 중복 구간(921), 제3 동영상(903) 및 제4 동영상(904)의 중복 구간인 제2 중복 구간(922), 제4 동영상(904) 및 제5 동영상(905)의 중복 구간인 제3 중복 구간(923)을 식별할 수 있다. 일 실시예에 따르면, 중복 구간은, 복수의 동영상 간에 중복되는 프레임에 대응될 수 있다.According to an embodiment, the electronic device performs a
일 실시예에 따르면, 전자 장치는 제1 중복 구간(921), 제2 중복 구간(922), 및 제3 중복 구간(923)을 제거할 수 있다. 예를 들면, 전자 장치는 재생 목록에서 제3 동영상(903)의 프레임 중 제1 중복 구간(921)을 제외하고, 제4 동영상(904)의 프레임 중 제2 중복 구간(922)을 제외하고, 제5 동영상(905)의 프레임 중 제3 중복 구간(923)을 제외시킬 수 있다.According to an embodiment, the electronic device may remove the first overlapping
일 실시예에 따르면, 전자 장치는 제1 동영상(901) 및 제2 동영상(902) 간에 중복이 없다고 식별됨에 따라, 제1 동영상(901) 및 제2 동영상(902) 사이에 지정된 애니메이션 효과를 삽입할 수 있다. 예를 들어, 전자 장치는 재생 목록에서 제1 동영상(901)의 마지막 프레임과 제2 동영상(902)의 첫 번째 프레임 사이에 제1 애니메이션 효과(915)를 삽입할 수 있다.According to an embodiment, as it is identified that there is no overlap between the
일 실시예에 따르면, 전자 장치는 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)을 재생하도록 하는 입력을 수신함에 따라 생성된 재생 목록에 따라 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)을 연결하여 재생할 수 있다. 일 실시예에 따르면, 전자 장치는 재생된 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)을 하나의 동영상으로 저장하도록 하는 사용자 입력을 수신함에 따라, 재생 목록에 따라 제1 동영상(901), 제2 동영상(902), 제3 동영상(903), 제4 동영상(904), 및 제5 동영상(905)을 연결한 동영상(930)을 생성 및 저장할 수 있다.According to an embodiment, the electronic device receives an input for playing the
이하, 도 10을 참조하여, 일 실시예에 따른 전자 장치가 제공하는 사용자 인터페이스에 대하여 설명한다.Hereinafter, a user interface provided by an electronic device according to an embodiment will be described with reference to FIG. 10 .
도 10은 일 실시예에 따른 전자 장치가 제공하는 사용자 인터페이스를 나타낸 도면(1000)이다. 이하에서 설명하는 전자 장치(1001)(예: 도 2의 전자 장치(201))의 동작들은 전자 장치(1001)의 프로세서(예: 도 2의 프로세서(250))에 의해 수행될 수 있다. 제1 화면(S1), 제2 화면(S2), 및 제3 화면(S3)은 전자 장치(1001)가 전자 장치(1001)의 디스플레이(예: 도 2의 디스플레이(230))에 표시하는 사용자 인터페이스를 나타낼 수 있다.10 is a diagram 1000 illustrating a user interface provided by an electronic device according to an exemplary embodiment. Operations of the electronic device 1001 (eg, the
제1 화면(S1)을 참조하면, 전자 장치(1001)는 디스플레이에 적어도 하나의 파일을 표시할 수 있다. 일 실시예에 따르면, 적어도 하나의 파일은 각각 그룹 ID(예: ID1, 또는 ID2)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치(1001)는 제1 파일(1010)을 선택하는 입력을 수신할 수 있다. 예를 들어, 제1 파일(1010)을 선택하는 입력은, 제1 파일(1010)이 표시된 디스플레이 영역에 대한 터치 입력(예: 롱 프레스(long press))를 포함할 수 있다.Referring to the first screen S1 , the
제2 화면(S2)을 참조하면, 전자 장치(1001)는 제1 파일(1010)을 선택하는 입력을 수신함에 따라 제1 파일(1010)의 그룹 ID(예: ID1)와 동일한 그룹 ID를 가진 파일을 추가로 선택할 수 있다. 일 실시예에 따르면, 전자 장치(1001)는 선택된 파일들에 포함된 동영상들을 재생하도록 하는 제1 사용자 인터페이스(1020)(예: 재생 버튼)를 표시할 수 있다. 일 실시예에 따르면, 전자 장치(1001)는 제1 사용자 인터페이스(1020)를 선택하는 입력을 수신할 수 있다. 예를 들어, 제1 사용자 인터페이스(1020)를 선택하는 입력은, 제1 사용자 인터페이스(1020)에 대한 터치 입력(예: 탭(tap))을 포함할 수 있다.Referring to the second screen S2 , when the
제3 화면(S3)을 참조하면, 전자 장치(1001)는 선택된 파일들에 포함된 동영상들을 연결하여 재생할 수 있다. 일 실시예에 따라 전자 장치(1001)가 선택된 파일들에 포함된 동영상을 연결하여 재생하는 방법에 대하여는 도 8을 참조하여 상술한 방법이 동일하게 적용될 수 있다.Referring to the third screen S3 , the
본 문서에 개시되는 일 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101), 또는 도 2의 전자 장치(201))는, 카메라(예: 도 1의 카메라 모듈(180), 또는 도 2의 카메라(210)), 마이크(예: 도 1의 입력 모듈(150), 또는 도 2의 마이크(220)), 디스플레이(예: 도 1의 디스플레이 모듈(160), 또는 도 2의 디스플레이(230)), 메모리(예: 도 1의 메모리(130), 또는 도 2의 메모리(240)), 및 상기 카메라, 상기 마이크, 상기 디스플레이 및 상기 메모리와 작동적으로 연결된 프로세서(예: 도 1의 프로세서(120), 또는 도 2의 프로세서(250))를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 카메라를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득하고, 상기 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제1 동영상을 상기 제1 이미지와 함께 제1 파일로 저장하고, 상기 제2 이미지를 획득한 제2 시점으로부터 상기 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제2 동영상을 상기 제2 이미지와 함께 제2 파일로 저장하고, 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 하나 이상의 인스트럭션들(instructions)을 저장할 수 있다.According to an embodiment disclosed in this document, an electronic device (eg, the electronic device 101 of FIG. 1 , or the
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 시점과 상기 제2 시점의 간격이 지정된 임계 값 미만인지 여부를 판단하고, 상기 제1 시점과 상기 제2 시점의 간격이 상기 지정된 임계 값 미만으로 판단됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장하도록 할 수 있다.According to an embodiment disclosed in this document, the instructions, the processor determines whether the interval between the first time point and the second time point is less than a specified threshold value, the first time point and the second time point When it is determined that the interval of ' is less than the specified threshold value, the same group ID may be stored in the first file and the second file.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 동일한 그룹 ID가 저장된 상기 제1 파일 및 상기 제2 파일에 상기 제1 시점 및 상기 제2 시점의 시간 순서에 따라 시퀀스 번호를 저장하도록 할 수 있다.According to an embodiment disclosed in this document, the instructions are sequenced by the processor according to the time sequence of the first time point and the second time point in the first file and the second file in which the same group ID is stored. You can save the number.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하기 위한 중복 정보를 상기 제1 파일 및 상기 제2 파일에 저장하도록 하고, 상기 중복 정보는, 상기 프로세서가 상기 제1 동영상 및 상기 제2 동영상을 획득하여 임시로 저장한 위치를 나타내는 정보를 포함할 수 있다.According to an embodiment disclosed in this document, the instructions are such that the processor stores duplicate information for determining whether the first video and the second video overlap in the first file and the second file. and, the duplicate information may include information indicating a location where the processor obtains and temporarily stores the first and second moving images.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 그룹 ID에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 연결 여부를 결정하고, 상기 제1 동영상 및 상기 제2 동영상을 연결하는 것으로 결정함에 따라, 상기 시퀀스 번호에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 배열하고, 상기 배열된 순서에 따라 상기 제1 동영상 및 상기 제2 동영상을 연결하도록 할 수 있다.According to an embodiment disclosed in this document, in the instructions, the processor determines whether to connect the first video and the second video based on the group ID, and the first video and the second video When it is determined to connect , the first video and the second video may be arranged based on the sequence number, and the first video and the second video may be connected according to the arrangement order.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 중복 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하고, 상기 제1 동영상 및 상기 제2 동영상이 중복된다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상의 중복 부분을 제거하여 재생하도록 할 수 있다.According to an embodiment disclosed in this document, in the instructions, the processor determines whether the first video and the second video overlap based on the overlap information, and the first video and the second video When it is determined that the images overlap, the overlapping portions of the first video and the second video may be removed to be reproduced.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 동영상 및 상기 제2 동영상이 중복되지 않는다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상 사이에 지정된 효과를 삽입하여 재생하도록 할 수 있다.According to an embodiment disclosed in this document, the instructions insert a specified effect between the first video and the second video as the processor determines that the first video and the second video do not overlap. so you can play it.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 디스플레이에 표시된 적어도 하나의 파일 중 상기 제1 파일을 선택하는 사용자 입력을 수신하고, 상기 제1 파일 및 상기 제2 파일에 저장된 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제2 파일을 추가로 선택하고, 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 사용자 인터페이스를 상기 디스플레이에 표시하고, 상기 사용자 인터페이스를 선택하는 사용자 입력을 수신하고, 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 할 수 있다.According to an embodiment disclosed in this document, the instructions, the processor receives a user input for selecting the first file from among at least one file displayed on the display, the first file and the second file A user interface for further selecting the second file based on the information related to the connection of the first video and the second video stored in the display, and connecting the first video and the second video to play. display, receive a user input for selecting the user interface, and connect and play the first video and the second video.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 재생된 제1 동영상 및 제2 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라, 상기 제1 동영상 및 상기 제2 동영상을 연결한 제3 동영상을 생성하고, 상기 제3 동영상을 저장하도록 할 수 있다.According to one embodiment disclosed in this document, the instructions, when the processor receives a user input for storing the reproduced first video and the second video, the first video and the second video A connected third video may be created and the third video may be stored.
본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 동영상 및 상기 제2 동영상의 장면의 유형을 인식하고, 상기 제1 동영상 및 상기 제2 동영상이 동일한 유형의 장면으로 인식됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장하도록 할 수 있다.According to an embodiment disclosed in this document, in the instructions, the processor recognizes the types of scenes of the first video and the second video, and the first video and the second video are of the same type. As recognized as , the same group ID may be stored in the first file and the second file.
본 문서에 개시되는 일 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101), 또는 도 2의 전자 장치(201))의 동작 방법은, 상기 전자 장치의 카메라(예: 도 1의 카메라 모듈(180), 또는 도 2의 카메라(210))를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득하고, 상기 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 상기 카메라 및 상기 전자 장치의 마이크(예: 도 1의 입력 모듈(150), 또는 도 2의 마이크(220))를 이용하여 획득한 제1 동영상을 상기 제1 이미지와 함께 제1 파일로 저장하고, 상기 제2 이미지를 획득한 제2 시점으로부터 상기 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제2 동영상을 상기 제2 이미지와 함께 제2 파일로 저장하고, 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생할 수 있다.According to an embodiment disclosed in this document, a method of operating an electronic device (eg, the electronic device 101 of FIG. 1 or the
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 제1 시점과 상기 제2 시점의 간격이 지정된 임계 값 미만인지 여부를 판단하고, 상기 제1 시점과 상기 제2 시점의 간격이 상기 지정된 임계 값 미만으로 판단됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장할 수 있다.According to an embodiment disclosed in this document, in the method of operating the electronic device, it is determined whether an interval between the first time point and the second time point is less than a specified threshold value, and the first time point and the second time point are The same group ID may be stored in the first file and the second file when it is determined that the interval of is less than the specified threshold value.
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 동일한 그룹 ID가 저장된 상기 제1 파일 및 상기 제2 파일에 상기 제1 시점 및 상기 제2 시점의 시간 순서에 따라 상기 시퀀스 번호를 저장할 수 있다.According to an embodiment disclosed in this document, in the method of operating the electronic device, in the first file and the second file in which the same group ID is stored, according to a time sequence of the first time point and the second time point, the You can store sequence numbers.
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하기 위한 중복 정보를 상기 제1 파일 및 상기 제2 파일에 저장하고, 상기 중복 정보는, 상기 전자 장치가 상기 제1 동영상 및 상기 제2 동영상을 획득하여 임시로 저장한 위치를 나타내는 정보를 포함할 수 있다.According to an exemplary embodiment disclosed in this document, the method of operating the electronic device includes storing duplicate information for determining whether the first video and the second video overlap in the first file and the second file; , the duplicate information may include information indicating a location where the electronic device obtains and temporarily stores the first and second moving images.
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 그룹 ID에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 연결 여부를 결정하고, 상기 제1 동영상 및 상기 제2 동영상을 연결하는 것으로 결정함에 따라, 상기 시퀀스 번호에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 배열하고, 상기 배열된 순서에 따라 상기 제1 동영상 및 상기 제2 동영상을 연결할 수 있다.According to an embodiment disclosed in this document, the method of operating the electronic device includes determining whether to connect the first video and the second video based on the group ID, and the first video and the second video As it is determined to connect , the first video and the second video may be arranged based on the sequence number, and the first video and the second video may be connected according to the arrangement order.
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 중복 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하고, 상기 제1 동영상 및 상기 제2 동영상이 중복된다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상의 중복 부분을 제거하여 재생할 수 있다.According to an embodiment disclosed in this document, the method of operating the electronic device includes determining whether the first video and the second video overlap based on the overlap information, and the first video and the second video When it is determined that the images overlap, the overlapping portions of the first video and the second video may be removed and reproduced.
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 제1 동영상 및 상기 제2 동영상이 중복되지 않는다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상 사이에 지정된 효과를 삽입하여 재생할 수 있다.According to an embodiment disclosed in this document, in the method of operating the electronic device, a specified effect is inserted between the first video and the second video as it is determined that the first video and the second video do not overlap. can be played by
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 전자 장치의 디스플레이(예: 도 1의 디스플레이 모듈(160), 또는 도 2의 디스플레이(230))에 표시된 적어도 하나의 파일 중 상기 제1 파일을 선택하는 사용자 입력을 수신하고, 상기 제1 파일 및 상기 제2 파일에 저장된 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제2 파일을 추가로 선택하고, 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 사용자 인터페이스를 상기 디스플레이에 표시할 수 있다.According to an embodiment disclosed in this document, the method of operating the electronic device includes at least one displayed on a display (eg, the
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 재생된 제1 동영상 및 제2 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라, 상기 제1 동영상 및 상기 제2 동영상을 연결한 제3 동영상을 생성하고, 상기 제3 동영상을 저장할 수 있다.According to an embodiment disclosed in this document, in the method of operating the electronic device, upon receiving a user input for storing the reproduced first video and second video, the first video and the second video are displayed. A connected third video may be created and the third video may be stored.
본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 제1 동영상 및 상기 제2 동영상의 장면의 유형을 인식하고, 상기 제1 동영상 및 상기 제2 동영상이 동일한 유형의 장면으로 인식됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장할 수 있다.According to an embodiment disclosed in this document, the method of operating the electronic device recognizes a scene type of the first moving image and the second moving image, and the first moving image and the second moving image are of the same type. As recognized as , the same group ID may be stored in the first file and the second file.
Claims (20)
카메라;
마이크;
디스플레이;
메모리; 및
상기 카메라, 상기 마이크, 상기 디스플레이 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가,
상기 카메라를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득하고,
상기 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제1 동영상을 상기 제1 이미지와 함께 제1 파일로 저장하고,
상기 제2 이미지를 획득한 제2 시점으로부터 상기 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제2 동영상을 상기 제2 이미지와 함께 제2 파일로 저장하고,
상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 하나 이상의 인스트럭션들(instructions)을 저장하는, 전자 장치.In an electronic device,
camera;
MIC;
display;
Memory; and
a processor operatively coupled to the camera, the microphone, the display, and the memory;
The memory, when executed, causes the processor to:
Acquire a plurality of images including a first image and a second image using the camera,
Store a first video acquired using the camera and the microphone as a first file together with the first image from before a first specified time from the first time point at which the first image was acquired,
Stores a second video acquired using the camera and the microphone from a second time point at which the second image is acquired by using the camera and the microphone from before the first designated time as a second file together with the second image,
and storing one or more instructions for linking and playing the first video and the second video based on information related to the connection between the first video and the second video.
상기 인스트럭션들은, 상기 프로세서가,
상기 제1 시점과 상기 제2 시점의 간격이 지정된 임계 값 미만인지 여부를 판단하고,
상기 제1 시점과 상기 제2 시점의 간격이 상기 지정된 임계 값 미만으로 판단됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장하도록 하는, 전자 장치.The method according to claim 1,
The instructions, the processor,
It is determined whether the interval between the first time point and the second time point is less than a specified threshold value,
and store the same group ID in the first file and the second file when it is determined that the interval between the first time point and the second time point is less than the specified threshold value.
상기 인스트럭션들은, 상기 프로세서가,
상기 동일한 그룹 ID가 저장된 상기 제1 파일 및 상기 제2 파일에 상기 제1 시점 및 상기 제2 시점의 시간 순서에 따라 시퀀스 번호를 저장하도록 하는, 전자 장치.3. The method according to claim 2,
The instructions, the processor,
and to store a sequence number in the first file and the second file in which the same group ID is stored according to a time sequence of the first time point and the second time point.
상기 인스트럭션들은, 상기 프로세서가,
상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하기 위한 중복 정보를 상기 제1 파일 및 상기 제2 파일에 저장하도록 하고,
상기 중복 정보는, 상기 프로세서가 상기 제1 동영상 및 상기 제2 동영상을 획득하여 임시로 저장한 위치를 나타내는 정보를 포함하는, 전자 장치.3. The method according to claim 2,
The instructions, the processor,
to store duplicate information for determining whether the first video and the second video overlap in the first file and the second file;
The duplicate information includes information indicating a location where the processor obtains the first video and the second video and temporarily stores them.
상기 인스트럭션들은, 상기 프로세서가,
상기 그룹 ID에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 연결 여부를 결정하고,
상기 제1 동영상 및 상기 제2 동영상을 연결하는 것으로 결정함에 따라, 상기 시퀀스 번호에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 배열하고,
상기 배열된 순서에 따라 상기 제1 동영상 및 상기 제2 동영상을 연결하도록 하는, 전자 장치.4. The method of claim 3,
The instructions, the processor,
determining whether to connect the first video and the second video based on the group ID;
When it is determined that the first video and the second video are linked, the first video and the second video are arranged based on the sequence number,
and to connect the first video and the second video according to the arranged order.
상기 인스트럭션들은, 상기 프로세서가,
상기 중복 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하고,
상기 제1 동영상 및 상기 제2 동영상이 중복된다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상의 중복 부분을 제거하여 재생하도록 하는, 전자 장치.5. The method according to claim 4,
The instructions, the processor,
Determining whether the first video and the second video overlap based on the overlap information,
and removing the overlapping portion of the first video and the second video to be played back when it is determined that the first video and the second video overlap.
상기 인스트럭션들은, 상기 프로세서가,
상기 제1 동영상 및 상기 제2 동영상이 중복되지 않는다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상 사이에 지정된 효과를 삽입하여 재생하도록 하는, 전자 장치.7. The method of claim 6,
The instructions, the processor,
and inserting a specified effect between the first moving image and the second moving image to play the first moving image and the second moving image when it is determined that the first moving image and the second moving image do not overlap.
상기 인스트럭션들은, 상기 프로세서가,
상기 디스플레이에 표시된 적어도 하나의 파일 중 상기 제1 파일을 선택하는 사용자 입력을 수신하고,
상기 제1 파일 및 상기 제2 파일에 저장된 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제2 파일을 추가로 선택하고,
상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 사용자 인터페이스를 상기 디스플레이에 표시하고,
상기 사용자 인터페이스를 선택하는 사용자 입력을 수신하고,
상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는, 전자 장치.The method according to claim 1,
The instructions, the processor,
receiving a user input for selecting the first file from among at least one file displayed on the display;
and further selecting the second file based on information related to the connection of the first video and the second video stored in the first file and the second file,
displaying a user interface on the display to connect and play the first video and the second video,
receiving user input selecting the user interface;
An electronic device that connects and plays the first video and the second video.
상기 인스트럭션들은, 상기 프로세서가,
상기 재생된 제1 동영상 및 제2 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라, 상기 제1 동영상 및 상기 제2 동영상을 연결한 제3 동영상을 생성하고,
상기 제3 동영상을 저장하도록 하는, 전자 장치.9. The method of claim 8,
The instructions, the processor,
In response to receiving a user input for storing the reproduced first video and second video, a third video in which the first video and the second video are connected is generated,
an electronic device to store the third video.
상기 인스트럭션들은, 상기 프로세서가,
상기 제1 동영상 및 상기 제2 동영상의 장면의 유형을 인식하고,
상기 제1 동영상 및 상기 제2 동영상이 동일한 유형의 장면으로 인식됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장하도록 하는, 전자 장치.3. The method according to claim 2,
The instructions, the processor,
Recognizing the types of scenes of the first video and the second video,
and store the same group ID in the first file and the second file as the first video and the second video are recognized as the same type of scene.
상기 전자 장치의 카메라를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득하고,
상기 제1 이미지를 획득한 제1 시점으로부터 제1 지정된 시간 이전부터 상기 카메라 및 상기 전자 장치의 마이크를 이용하여 획득한 제1 동영상을 상기 제1 이미지와 함께 제1 파일로 저장하고,
상기 제2 이미지를 획득한 제2 시점으로부터 상기 제1 지정된 시간 이전부터 상기 카메라 및 상기 마이크를 이용하여 획득한 제2 동영상을 상기 제2 이미지와 함께 제2 파일로 저장하고,
상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하는, 방법.A method of operating an electronic device, comprising:
acquiring a plurality of images including a first image and a second image by using the camera of the electronic device;
storing a first moving picture obtained using the camera and the microphone of the electronic device from a first designated time before a first specified time from the first time point at which the first image is acquired as a first file together with the first image,
Stores a second video acquired using the camera and the microphone from a second time point at which the second image is acquired by using the camera and the microphone from before the first designated time as a second file together with the second image,
The method of connecting and playing the first video and the second video based on information related to the connection between the first video and the second video.
상기 제1 시점과 상기 제2 시점의 간격이 지정된 임계 값 미만인지 여부를 판단하고,
상기 제1 시점과 상기 제2 시점의 간격이 상기 지정된 임계 값 미만으로 판단됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장하는, 방법.12. The method of claim 11,
It is determined whether the interval between the first time point and the second time point is less than a specified threshold value,
and storing the same group ID in the first file and the second file as the interval between the first time point and the second time point is determined to be less than the specified threshold value.
상기 동일한 그룹 ID가 저장된 상기 제1 파일 및 상기 제2 파일에 상기 제1 시점 및 상기 제2 시점의 시간 순서에 따라 상기 시퀀스 번호를 저장하는, 방법.13. The method of claim 12,
and storing the sequence number in the first file and the second file in which the same group ID is stored according to a time sequence of the first time point and the second time point.
상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하기 위한 중복 정보를 상기 제1 파일 및 상기 제2 파일에 저장하고,
상기 중복 정보는, 상기 전자 장치가 상기 제1 동영상 및 상기 제2 동영상을 획득하여 임시로 저장한 위치를 나타내는 정보를 포함하는, 방법.13. The method of claim 12,
Storing redundant information for determining whether the first video and the second video overlap in the first file and the second file,
The duplicate information includes information indicating a location where the electronic device obtains the first video and the second video and temporarily stores them.
상기 그룹 ID에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 연결 여부를 결정하고,
상기 제1 동영상 및 상기 제2 동영상을 연결하는 것으로 결정함에 따라, 상기 시퀀스 번호에 기반하여 상기 제1 동영상 및 상기 제2 동영상을 배열하고,
상기 배열된 순서에 따라 상기 제1 동영상 및 상기 제2 동영상을 연결하는, 방법.14. The method of claim 13,
determining whether to connect the first video and the second video based on the group ID;
When it is determined that the first video and the second video are linked, the first video and the second video are arranged based on the sequence number,
Concatenating the first video and the second video according to the arranged order, the method.
상기 중복 정보에 기반하여 상기 제1 동영상 및 상기 제2 동영상의 중복 여부를 판단하고,
상기 제1 동영상 및 상기 제2 동영상이 중복된다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상의 중복 부분을 제거하여 재생하는, 방법.15. The method of claim 14,
Determining whether the first video and the second video overlap based on the overlap information,
When it is determined that the first video and the second video overlap, the overlapping portion of the first video and the second video is removed and reproduced.
상기 제1 동영상 및 상기 제2 동영상이 중복되지 않는다고 판단됨에 따라 상기 제1 동영상 및 상기 제2 동영상 사이에 지정된 효과를 삽입하여 재생하는, 방법.17. The method of claim 16,
When it is determined that the first video and the second video do not overlap, a specified effect is inserted between the first video and the second video and played back.
상기 전자 장치의 디스플레이에 표시된 적어도 하나의 파일 중 상기 제1 파일을 선택하는 사용자 입력을 수신하고,
상기 제1 파일 및 상기 제2 파일에 저장된 상기 제1 동영상 및 상기 제2 동영상의 연결과 관련된 정보에 기반하여 상기 제2 파일을 추가로 선택하고,
상기 제1 동영상 및 상기 제2 동영상을 연결하여 재생하도록 하는 사용자 인터페이스를 상기 디스플레이에 표시하는, 방법.12. The method of claim 11,
receiving a user input for selecting the first file from among at least one file displayed on a display of the electronic device;
and further selecting the second file based on information related to the connection of the first video and the second video stored in the first file and the second file,
A method of displaying a user interface on the display to connect and play the first video and the second video.
상기 재생된 제1 동영상 및 제2 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라, 상기 제1 동영상 및 상기 제2 동영상을 연결한 제3 동영상을 생성하고,
상기 제3 동영상을 저장하는, 방법.19. The method of claim 18,
In response to receiving a user input for storing the reproduced first video and second video, a third video in which the first video and the second video are connected is generated,
storing the third video.
상기 제1 동영상 및 상기 제2 동영상의 장면의 유형을 인식하고,
상기 제1 동영상 및 상기 제2 동영상이 동일한 유형의 장면으로 인식됨에 따라 상기 제1 파일 및 상기 제2 파일에 동일한 그룹 ID를 저장하는, 방법.13. The method of claim 12,
Recognizing the types of scenes of the first video and the second video,
and storing the same group ID in the first file and the second file as the first video and the second video are recognized as the same type of scene.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210054309A KR20220147324A (en) | 2021-04-27 | 2021-04-27 | Electronic device and method of operation thereof |
PCT/KR2022/005426 WO2022231180A1 (en) | 2021-04-27 | 2022-04-14 | Electronic device and method for operating electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210054309A KR20220147324A (en) | 2021-04-27 | 2021-04-27 | Electronic device and method of operation thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20220147324A true KR20220147324A (en) | 2022-11-03 |
Family
ID=83848191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020210054309A KR20220147324A (en) | 2021-04-27 | 2021-04-27 | Electronic device and method of operation thereof |
Country Status (2)
Country | Link |
---|---|
KR (1) | KR20220147324A (en) |
WO (1) | WO2022231180A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040090533A1 (en) * | 2002-11-11 | 2004-05-13 | Dow James C. | System and method for video image capture |
KR100755821B1 (en) * | 2005-05-30 | 2007-09-06 | 주식회사 마이크로로봇 | Divice and method taking the picture of digital camera |
JP2009296299A (en) * | 2008-06-05 | 2009-12-17 | Panasonic Corp | Image recorder, image recording program and recording medium with image recording program stored |
KR101600090B1 (en) * | 2009-10-20 | 2016-03-04 | 엘지전자 주식회사 | Method for storing image data in portable terminal method for displaying image data in portable terminal and portable terminal thereof |
JP2014192532A (en) * | 2013-03-26 | 2014-10-06 | Nk Works Co Ltd | Image processing program and image processing device |
-
2021
- 2021-04-27 KR KR1020210054309A patent/KR20220147324A/en active Search and Examination
-
2022
- 2022-04-14 WO PCT/KR2022/005426 patent/WO2022231180A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022231180A1 (en) | 2022-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3902241B1 (en) | Audio and video processing method and apparatus, terminal and storage medium | |
KR102569032B1 (en) | Electronic device and method for providing content thereof | |
KR20200092631A (en) | Apparatus and method for generating slow motion video | |
KR20200043818A (en) | Electronic device and method for obtaining images | |
CN115053516A (en) | Electronic device and method for storing image | |
US11955141B2 (en) | Electronic device, method, and non-transitory storage medium for editing video | |
US20230410253A1 (en) | Electronic device for image generation, and operating method of electronic device | |
KR20210155961A (en) | Electronic device and operation method thereof | |
KR20200087401A (en) | Electronic device for controlling frame rate of image sensor and method thereof | |
KR20230067443A (en) | An electronic device and method for automatically generating edited video | |
WO2022158932A1 (en) | Method for providing personalized media content and electronic device using same | |
KR20220147324A (en) | Electronic device and method of operation thereof | |
KR20200017294A (en) | The electronic apparatus for generating animated massege by drawing input | |
KR20220125648A (en) | Apparatus and method for generating image | |
KR20220128131A (en) | Electronic device and method for controlling the same | |
KR20220126084A (en) | Photographing method of electronic apparatus and electronic apparatus thereof | |
KR20210110097A (en) | The method for streaming a video and the electronic device supporting same | |
EP4383726A1 (en) | Method and device for editing media file | |
KR20230065668A (en) | Electronic device providing video recording and method thereof | |
US12073852B2 (en) | Electronic device and method for automatically generating edited video | |
KR20230073928A (en) | Device and method for editing media file | |
US20240037722A1 (en) | Electronic device for encoding video, and control method therefor | |
KR20230100091A (en) | Electronic device and operation method of electronic device | |
KR20230023504A (en) | Electronic device including flexible display and method of operating the same | |
KR20230112303A (en) | Electronic device method for controlling picture in picture window in the electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination |