KR20220147324A - Electronic device and method of operation thereof - Google Patents

Electronic device and method of operation thereof Download PDF

Info

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
Application number
KR1020210054309A
Other languages
Korean (ko)
Inventor
김성환
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020210054309A priority Critical patent/KR20220147324A/en
Priority to PCT/KR2022/005426 priority patent/WO2022231180A1/en
Publication of KR20220147324A publication Critical patent/KR20220147324A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • H04N9/87Regeneration of colour television signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N5/23229
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N5/9201Transformation 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

Disclosed is an electronic device that comprises a camera, a microphone, a display, a memory, and a processor operatively coupled to the camera, the microphone, the display, and the memory. The memory, when executed, may store one or more instructions configured to cause the processor to: acquire a plurality of images including a first image and a second image by using the camera; store, as a first file together with the first image, a first video acquired by using the camera and the microphone before a first designated time from a first time point at which the first image is acquired; store, as a second file together with the second image, a second video acquired by using the camera and the microphone before the first designated time from a second time point at which the second image is acquired; and link and play the first video and the second video on the basis of information related to a connection between the first video and the second video. Various other embodiments identified through the specification are possible. The present invention can provide new content by integrating (or connecting) short videos into a continuous long video.

Description

전자 장치 및 전자 장치의 동작 방법{ELECTRONIC DEVICE AND METHOD OF OPERATION THEREOF}Electronic device and method of operation of electronic device

본 문서에서 개시되는 실시 예들은, 전자 장치 및 전자 장치의 동작 방법에 관한 것이다.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 network environment 100, according to various embodiments. Referring to FIG. 1 , in a network environment 100 , the electronic device 101 communicates with the electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with at least one of the electronic device 104 and the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 . In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be

프로세서(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 sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in , process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 . According to an embodiment, the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 uses less power than the main processor 121 or is set to be specialized for a specified function. can The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .

보조 프로세서(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 display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

메모리(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 sound output module 155 may output a sound signal to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 . The display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 101 . The electronic device 102) (eg, a speaker or headphones) may output a sound.

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(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 power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(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 electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : LAN (local area network) communication module, or a power line communication module) may be included. A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified or authenticated.

무선 통신 모듈(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 antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. The server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.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, display module 160 of FIG. 1 ), memory 240 (eg, memory 130 of FIG. 1 ), and processor 250 (eg, FIG. 1 ). 1 processor 120).

일 실시예에 따르면, 카메라(210)는 정지 영상(또는, 이미지)(예: 사진) 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라(210)는 정지 영상에 대응하는 이미지 데이터 및 동영상에 대응하는 비디오 데이터를 획득할 수 있다.According to an embodiment, the camera 210 may capture a still image (or an image) (eg, a photo) and a moving picture. According to an embodiment, the camera 210 may acquire image data corresponding to a still image and video data corresponding to a moving image.

일 실시예에 따르면, 마이크(220)는 전자 장치(201)의 외부(예: 사용자)로부터 입력되는 소리를 오디오 데이터로 변환할 수 있다. 일 실시예에 따르면, 마이크(220)는 카메라(210)가 동영상 촬영을 시작할 때 함께 활성화되어, 동영상에 대응하는 오디오 데이터를 획득할 수 있다. 일 실시예에 따르면, 오디오 데이터는 카메라(210)에 의해 획득된 비디오 데이터에 대응될 수 있다.According to an embodiment, the microphone 220 may convert a sound input from the outside (eg, a user) of the electronic device 201 into audio data. According to an embodiment, the microphone 220 may be activated together when the camera 210 starts recording a video to acquire audio data corresponding to the video. According to an embodiment, the audio data may correspond to video data obtained by the camera 210 .

일 실시예에 따르면, 디스플레이(230)는 전자 장치(201)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 일 실시예에 따르면, 디스플레이(230)는 이미지 및 동영상을 표시할 수 있다. 일 실시예에 따르면, 디스플레이(230)는 사용자 인터페이스(user interface, UI)를 표시할 수 있다. 일 실시예에 따르면, 디스플레이(230)는 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. 예를 들어, 디스플레이(230)는 사용자 인터페이스에 대응하는 터치 입력을 수신할 수 있다.According to an embodiment, the display 230 may visually provide information to the outside (eg, a user) of the electronic device 201 . According to an embodiment, the display 230 may display images and videos. According to an embodiment, the display 230 may display a user interface (UI). According to an embodiment, the display 230 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch. For example, the display 230 may receive a touch input corresponding to the user interface.

일 실시예에 따르면, 메모리(240)는 프로세서(250)에 의해 실행되는 하나 이상의 인스트럭션들(instructions)을 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 카메라(210)에 의해 획득된 이미지 데이터 및 비디오 데이터를 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 마이크(220)에 의해 획득된 오디오 데이터를 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 비디오 데이터, 및 비디오 데이터에 대응하는 오디오 데이터를 임시로 저장하는 버퍼(buffer)를 포함할 수 있다. 예를 들어, 버퍼는 링 버퍼(ring buffer)일 수 있다. 일 실시예에 따르면, 버퍼는 버퍼의 크기만큼 시간 순으로 비디오 데이터 및 오디오 데이터를 저장할 수 있고, 버퍼가 모두 채워진 경우 가장 오래된 데이터를 제거하고, 새로운 데이터를 저장할 있다. 일 실시예에 따르면, 비디오 데이터 및 오디오 데이터를 버퍼에 임시로 저장하는 동작은 버퍼링(buffering)으로 칭해질 수 있다.According to an embodiment, the memory 240 may store one or more instructions executed by the processor 250 . According to an embodiment, the memory 240 may store image data and video data acquired by the camera 210 . According to an embodiment, the memory 240 may store audio data acquired by the microphone 220 . According to an embodiment, the memory 240 may include a buffer for temporarily storing video data and audio data corresponding to the video data. For example, the buffer may be a ring buffer. According to an embodiment, the buffer may store video data and audio data in chronological order according to the size of the buffer, and when the buffer is full, the oldest data may be removed and new data may be stored. According to an embodiment, an operation of temporarily storing video data and audio data in a buffer may be referred to as buffering.

일 실시예에 따르면, 프로세서(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 processor 250 may control the operation of the electronic device 201 by executing instructions stored in the memory 240 . According to an embodiment, the processor 250 records an image (or still image) (eg, a photo) acquired using the camera 210 with a video acquired using the camera 210 and the microphone 220 . It can be saved as one file. According to an embodiment, the processor 250 may generate one file by storing the image and the video in a container format. According to an embodiment, the container format may refer to a file format capable of storing different types of data and metadata in one file. For example, a container format including an image and a moving picture may include, but is not limited to, a joint photographic experts group (JPEG) and/or a high efficiency image container (HEIC). For example, a container format including an image and a video may include an image file compressed using a specified codec and a video file compressed using a specified codec. For example, in the JPEG container format, an image file in JPEG format is included in the frame area, and a video file in MP4 (MPEG-4) format including an image of the first specified time (eg, 3 seconds) is included in the metadata area ( Example: user data area).

일 실시예에 따르면, 프로세서(250)는 컨테이너 포맷으로 이미지와 동영상을 저장하는 기능이 실행됨에 따라 카메라(210)를 이용하여 비디오 데이터를 획득하고, 마이크(220)를 이용하여 오디오 데이터를 획득할 수 있다. 예를 들어, 상기 기능은, 모션 포토(motion photo) 기능으로 칭해질 수 있다. 일 실시예에 따르면, 프로세서(250)는 카메라(210) 및 마이크(220)를 이용하여 획득한 비디오 데이터 및 오디오 데이터를 프레임 단위로 버퍼에 저장할 수 있다.According to an embodiment, the processor 250 acquires video data using the camera 210 and acquires audio data using the microphone 220 as a function of storing images and videos in a container format is executed. can For example, the function may be referred to as a motion photo function. According to an embodiment, the processor 250 may store the video data and audio data obtained by using the camera 210 and the microphone 220 in the buffer in units of frames.

일 실시예에 따르면, 프로세서(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 processor 250 may determine an image at a point in time (or frame) at which image capture is requested in response to a user input for capturing an image (eg, taking a photo). Hereinafter, a time point at which capture is requested may be referred to as a capture time point. According to an embodiment, the processor 250 may determine a time point (or frame) corresponding to before or after the first specified time from the time point at which image capture is requested. According to an embodiment, the first specified time (eg, 3 seconds) may include a time preset in the electronic device 201 or a time set based on a user input. According to an embodiment, the processor 250 may specify a location on the buffer based on the determined time point (or frame). According to an embodiment, the processor 250 includes image data corresponding to the image for which capture is requested based on the location on the specified buffer and the first specified time from the time when the capture is requested to the time when the capture is requested (or , video data and audio data corresponding to a moving picture corresponding to a first specified length of time (from a time point at which capture is requested to a time point after the first specified time) may be extracted from the buffer. Hereinafter, the video corresponding to the first specified length of time will be mainly described in the case of a video corresponding to the first specified length of time from the time when the capture of the image is requested to the time when the capture is requested from before the first specified time. , described may be equally or similarly applied to a moving picture corresponding to a first specified length of time from a point in time when capturing of an image is requested to a point in time after the first designated time. According to an embodiment, the processor 250 may store image data, video data, and audio data extracted from the buffer in one file. For example, the processor 250 encodes the extracted image (eg, one image frame) into a JPEG format, and encodes the extracted video data (eg, a plurality of image frames) and audio data into an MP4 format. One image may be included in the image area of the JPEG format, and video data of the MP4 format may be encoded by being included in the metadata area (eg, user data area).

일 실시예에 따르면, 프로세서(250)는 캡처가 요청된 이미지와 캡처가 요청된 시점으로부터 제1 지정된 시간 이전부터 카메라(210) 및 마이크(220)를 이용하여 획득한 동영상을 하나의 파일로 저장할 수 있다. 일 실시예에 따르면, 캡처된 이미지와 하나의 파일로 저장되는 동영상은, 프로세서(250)가 캡처된 이미지를 획득한 시점으로부터 제1 지정된 시간 이전부터 캡처된 이미지를 획득한 시점까지 획득한 동영상일 수 있다. 상술한 바에 따르면, 프로세서(250)는 모션 포토 기능이 실행된 이후부터 카메라(210) 및 마이크(220)를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼링할 수 있다. 일 실시예에 따르면, 프로세서(250)는 버퍼에서 캡처 시점에 대응하는 이미지 데이터, 및 캡처 시점으로부터 제1 지정된 시간 이전의 시점부터 캡처 시점까지의 시점들에 대응하는 비디오 데이터 및 오디오 데이터를 추출하여 하나의 파일에 저장할 수 있다. 예를 들어, 캡처 시점은 운영 체제(예: 도 1의 운영 체제(142))에 의해 실행되는 타이머로 판단되거나 또는 카메라 어플리케이션에 의해 실행되는 타이머로 판단될 수 있으며 제한은 없다. 다른 실시예에 따르면, 프로세서(250)는 캡처 시점으로부터 지정된 개수의 프레임들로 비디오 데이터 및 오디오 데이터를 추출할 수도 있다. 예를 들어, 캡처 시점으로부터 90개의 이미지 프레임들(예컨대, 30fps의 프레임 레이트를 갖는 동영상의 경우 3초에 해당하는 프레임들)을 비디오 데이터로서 추출할 수 있다. 이하, 설명의 편의를 위해, 프로세서(250)가 지정된 시간만큼 비디오 데이터 및 오디오 데이터를 추출하는 것으로 주로 설명한다.According to an embodiment, the processor 250 stores the image for which capture is requested and the video obtained by using the camera 210 and the microphone 220 from a first specified time before the capture request as a single file. can According to an embodiment, the captured image and the moving picture stored as one file are moving images acquired from the time when the processor 250 acquires the captured image to the time when the captured image is acquired from before a first specified time. can As described above, the processor 250 may buffer video data and audio data obtained by using the camera 210 and the microphone 220 after the motion photo function is executed. According to an embodiment, the processor 250 extracts image data corresponding to the capture time from the buffer, and video data and audio data corresponding to the time points from the first specified time before the capture time to the capture time. It can be saved in one file. For example, the capture time point may be determined as a timer executed by an operating system (eg, the operating system 142 of FIG. 1 ) or may be determined as a timer executed by a camera application, and there is no limitation. According to another embodiment, the processor 250 may extract video data and audio data from a capture point in a specified number of frames. For example, 90 image frames (eg, frames corresponding to 3 seconds in the case of a moving picture having a frame rate of 30 fps) may be extracted as video data from the capture time. Hereinafter, for convenience of description, it will be mainly described that the processor 250 extracts video data and audio data for a specified time.

일 실시예에 따르면, 프로세서(250)는 복수의 이미지를 캡처할 수 있다. 프로세서(250)는 복수의 이미지를 캡처함에 따라 복수의 파일을 생성할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 파일 간의 관련성에 대한 정보를 각 파일 생성 시 파일에 저장(또는, 삽입)할 수 있다. 예를 들어, JPEG 포맷의 메타데이터 영역(예: 사용자 데이터 영역)에 저장할 수 있다. 또 다른 예에 따르면, 프로세서(250)는 복수의 파일 간의 관련성에 대한 정보를 별도의 데이터(예: 파일)에 저장할 수도 있다. 예를 들어, 별도의 파일에는 복수의 파일에 대한 인덱스 및 복수의 파일 간의 관련성에 대한 정보가 테이블 형식으로 포함될 수 있다. 이하, 설명의 편의를 위해, 프로세서(250)가 복수의 파일 간의 관련성에 대한 정보를 복수의 파일 각각에 저장하는 것으로 주로 설명한다. 일 실시예에 따르면, 복수의 파일 간의 관련성을 나타내는 정보는, 복수의 파일 각각에 포함된 동영상 간의 관련성에 대한 정보를 포함할 수 있다. 일 실시예에 따르면, 동영상 간의 관련성은, 동영상들이 서로 시간적 또는 장면적으로 연관됨을 의미할 수 있다. 일 실시예에 따르면, 동영상 간의 관련성에 대한 정보는, 복수의 동영상(예: 제1 동영상 및 제2 동영상)의 연결과 관련된 정보로 참조될 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상의 연결과 관련된 정보에 기반하여 복수의 동영상을 연결하여 재생할 수 있다. 예를 들어, 프로세서(250)가 복수의 동영상을 연결하여 재생하는 방법은 복수의 동영상을 메모리(240)에 로드하여 각 동영상을 순서대로 재생하는 것을 포함할 수 있다. 또 다른 예를 들어, 프로세서(250)가 복수의 동영상을 연결하여 재생하는 방법은 복수의 동영상(예컨대, 복수의 동영상에 포함된 프레임들)을 연결한 하나의 동영상을 생성하여 재생하는 것을 포함할 수도 있다.According to an embodiment, the processor 250 may capture a plurality of images. The processor 250 may generate a plurality of files by capturing a plurality of images. According to an embodiment, the processor 250 may store (or insert) information on the relationship between a plurality of files in a file when each file is created. For example, it can be stored in the metadata area (eg, user data area) in JPEG format. According to another example, the processor 250 may store information on the relationship between a plurality of files in separate data (eg, a file). For example, the separate file may include indexes for a plurality of files and information on relationships between the plurality of files in a table format. Hereinafter, for convenience of description, it will be mainly described that the processor 250 stores information on the relationship between the plurality of files in each of the plurality of files. According to an embodiment, the information indicating the relation between the plurality of files may include information on the relation between the moving pictures included in each of the plurality of files. According to an embodiment, the relevance between moving pictures may mean that the moving pictures are temporally or scenewisely related to each other. According to an embodiment, the information on the relationship between the videos may be referred to as information related to the connection of a plurality of videos (eg, the first video and the second video). According to an embodiment, the processor 250 may connect and play a plurality of videos based on information related to the connection of the plurality of videos. For example, a method for the processor 250 to connect and play a plurality of videos may include loading the plurality of videos into the memory 240 and sequentially playing each video. For another example, the method for the processor 250 to connect and play a plurality of moving images may include generating and playing one moving image by connecting a plurality of moving images (eg, frames included in the plurality of moving images). may be

예를 들어, 복수의 동영상의 연결과 관련된 정보는, 서로 다른 파일에 포함된 동영상의 연결 여부 및 연결 순서를 결정하기 위한 정보, 서로 다른 파일에 포함된 동영상의 중복 여부 및/또는 중복 부분을 결정하기 위한 정보 중 적어도 하나를 포함할 수 있다. 일 실시예에 따르면, 프로세서(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 processor 250 may determine whether to connect a plurality of videos and a connection order based on information related to the connection of the plurality of videos. According to an embodiment, the processor 250 determines whether there is overlap between a plurality of videos based on information related to the connection of the plurality of videos, and if there is a duplicate part (or overlapping section), there is no duplicate part during playback. Multiple videos can be linked and played.

일 실시예에 따르면, 프로세서(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 processor 250 may store (or insert) a group ID in the file when the file is created. For example, the group ID may be included in the metadata area (eg, user data area) of the container format. In another embodiment, the motion photo file and the corresponding group ID may be stored in a separate data table (or file), but for convenience of description, the embodiment will be mainly described as an embodiment stored in a container format. According to an embodiment, the group ID may be information for determining whether to link videos included in different files. According to an embodiment, the group ID may be a unique ID (UID). According to an embodiment, the processor 250 may group the files by storing the group ID in the file. According to an embodiment, the processor 250 may identify the group of the file based on the group ID. For example, the processor 250 may identify files storing the same group ID as the same group, and may identify files storing different group IDs as different groups. According to an embodiment, the processor 250 may determine whether to connect the videos included in the plurality of files based on the group ID. For example, the processor 250 may determine to link videos included in files storing the same group ID, and determine not to link videos included in files storing different group IDs. have.

일 실시예에 따르면, 프로세서(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 processor 250 stores the captured image within a second specified time from the first time the image is captured. You can store the same group ID as the group ID stored in the file where the first captured image is saved. According to an embodiment, the second specified time may be a threshold value at which the processor 250 determines a plurality of files as the same group, and may be a value preset in the electronic device 201 or set by a user input. . According to an embodiment, the first designated time and the second designated time may be the same or different values. When the first designated time and the second designated time have the same value, one stored setting value may be used. According to an embodiment, the time point at which the image is captured may correspond to the time point at which the captured image is saved as a file together with the moving picture or the time point at which the file is generated. The value at the point in time at which the image is captured may be stored at least temporarily in the memory 240 . For example, the time point at which the image is captured is stored in the memory 240 as a reference value for group ID assignment and is reset when a second specified time elapses, or is updated to the value of the first image capture time after the second specified time elapses. can be According to an embodiment, the processor 250 limits files to which the same group ID is assigned (granted, or inserted) to within a second specified time from the point in time when the first image is captured, so as to The same group ID can be assigned to , and the number of files to which the same group ID is assigned can be limited.

일 실시예에 따르면, 프로세서(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 processor 250 stores the currently captured image in a file in which it is stored based on whether the image is captured within a second specified time from the capturing time of the most recently captured image before the capturing time of the corresponding image. You can store the group ID. For example, when the second image is captured within a second specified time from the first time point at which the first image is captured, the processor 250 may include a group ID stored in a file in which the first image is stored in a file in which the second image is stored, and You can store the same group ID. When the second image is captured after a second specified time has elapsed from the first point in time at which the first image was captured, the processor 250 includes a group ID stored in a file in which the first image is stored in a file in which the second image is stored, and You can store different group IDs. According to one embodiment, the processor 250 assigns a group ID based on whether the currently captured image was captured within a second specified time from the time the most recently captured image was captured prior to the capture of the image, thereby It may be determined whether the video included in the file to be created has temporal connection (or continuity) with the video included in the most recently created file before the creation of the file.

다양한 실시예에 따르면, 프로세서(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 processor 250 may recognize a type of a scene of a video stored together with an image in a file. According to one embodiment, the processor 250 is a type of scene of a video based on an object in the video, motion information (eg, a shooting direction or a shooting angle) of the camera 210 when shooting a video, or sound information of the video can be recognized According to an embodiment, the processor 250 may determine whether the first video stored in the first file has the same scene type as the second video stored in the second file. For example, when objects recognized from the first video and the second video are the same or similar to each other, the processor 250 may determine that the scene types of the first video and the second video are the same. As another example, the processor 250 determines that the objects recognized from the first video and the second video are the same or similar to each other, and that the photographing direction or photographing angle of the camera 210 when the first video and the second video are photographed are similar. Accordingly, it may be determined that the scene types of the first video and the second video are the same. As another example, the processor 250 may determine that the scene types of the first video and the second video are the same as the background music or the speaker recognized from the first video and the second video is determined to be the same.

다양한 실시예에 따르면, 프로세서(250)는 인식된 장면의 유형 정보를 파일에 이미지 및 동영상과 함께 저장할 수 있다. 예를 들어, 유형 정보는 모션 포토 파일의 컨테이너 포맷 내부의 메타데이터 영역(예: 사용자 데이터 영역)에 저장되거나 별도의 파일에 저장될 수 있다. 일 실시예에 따르면, 장면의 유형 정보는, 프로세서(250)가 복수의 동영상의 장면의 유형이 동일한지 여부를 판단할 수 있는 근거가 되는 정보를 의미할 수 있다. 예를 들어, 장면의 유형 정보는, 동영상으로부터 인식된 객체 정보, 동영상 촬영 시의 카메라(210)의 움직임 정보, 또는 동영상으로부터 인식된 소리 정보 중 적어도 하나를 포함할 수 있다. 예를 들어, 객체 정보는, 인식된 객체로 인식된 영역이 지정된 값 이상으로 변화되는지 여부, 인식된 객체의 종류(예: 사람, 나무), 또는 배경의 변화 여부 중 적어도 하나를 포함할 수 있다. 카메라(210)의 움직임 정보는, 전자 장치(201)에 포함된 적어도 하나의 움직임 센서(예: 지자기 센서, 가속도 센서)를 통해 감지된 전자 장치(201)의 움직임이 임계 값 이상인지 여부로 판단될 수 있다. 소리 정보는, 전자 장치(201)의 마이크(220)로부터 입력된 데이터의 유사도(예: 메인 음성, 또는 배경 소리)를 포함할 수 있다.According to various embodiments, the processor 250 may store the recognized scene type information in a file together with an image and a moving picture. For example, the type information may be stored in a metadata area (eg, a user data area) within the container format of the motion photo file or stored in a separate file. According to an embodiment, the scene type information may refer to information that is a basis for the processor 250 to determine whether the scene types of a plurality of moving pictures are the same. For example, the scene type information may include at least one of object information recognized from a moving image, motion information of the camera 210 when capturing a moving image, or sound information recognized from a moving image. For example, the object information may include at least one of whether an area recognized as a recognized object changes by more than a specified value, a type of a recognized object (eg, a person, a tree), or whether a background is changed. . The motion information of the camera 210 is determined by determining whether the motion of the electronic device 201 detected through at least one motion sensor (eg, a geomagnetic sensor or an acceleration sensor) included in the electronic device 201 is equal to or greater than a threshold value. can be The sound information may include a similarity (eg, a main voice or a background sound) of data input from the microphone 220 of the electronic device 201 .

다양한 실시예에 따르면, 프로세서(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 processor 250 determines that the first video stored in the first file has the same scene type as the second video stored in the second file, so that the first file and the second file have the same group. IDs may be stored, and different group IDs may be stored in the first file and the second file when it is determined that the type of the scene of the first video is not the same as that of the second video. For example, the processor 250 recognizes the type of the scene of the first moving picture stored in the file when the first file is created, and is based on the type information of the scene of the second moving picture stored in the second file created before the first file. Based on this, it may be determined whether to store the same group ID as the group ID stored in the second file in the first file or a different group ID in the first file.

일 실시예에 따르면, 프로세서(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 processor 250 may store a sequence number in files storing the same group ID according to a file creation order. According to an embodiment, the sequence number may be information indicating the number of files generated within a group to which the corresponding file belongs. According to an embodiment, the file creation order may correspond to the captured order of images stored in the file. For example, the processor 250 may generate a first file including the first image by capturing the first image at the first time point, and may generate a first file including the first image at a second time point within a second specified time from the first time point. As the second image is captured, a second file including the second image may be generated. In this case, the processor 250 may assign the same group ID to the first file and the second file, and the file in which the first file and the second file have the same group ID as the number of generated files A sequence number indicating recognition may be assigned. For example, the processor 250 inserts the group ID and sequence number into the first file that stores the image first captured at the first time point, and stores the image captured within a second specified time from the first time point. The same group ID as the group ID inserted into the first file may be inserted into the file, and a sequence number increased from the sequence number inserted into the first file may be inserted. According to one embodiment, the processor 250 may increment the sequence number by one each time the newly captured image is incremented by one that satisfies the condition regarding whether the first captured image was captured within a second specified time from the first time point at which the captured image was captured. can be increased by one.

다양한 실시에에 따르면, 프로세서(250)는 전자 장치(201)에 부여된 고유 번호와 이미지 또는 동영상의 촬영 시간 정보를 조합하여 고유 식별자를 생성할 수 있다. 프로세서(250)는 전자 장치(201)의 고유 번호 및 촬영 시간 정보에 기반하여 생성된 고유 식별자를 상술한 그룹 ID 및 시퀀스 번호에 갈음하여 파일에 저장할 수 있다. According to various embodiments, the processor 250 may generate a unique identifier by combining the unique number assigned to the electronic device 201 and information on the shooting time of the image or video. The processor 250 may store the unique identifier generated based on the unique number of the electronic device 201 and the photographing time information in a file in place of the aforementioned group ID and sequence number.

일 실시예에 따르면, 프로세서(250)는 복수의 파일들에 포함된 복수의 동영상들 간의 중복 여부 및 중복 부분(또는, 중복 구간)을 판단하기 위한 중복 정보를 복수의 파일들에 저장할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상 재생 시, 각 동영상을 포함하는 파일들에 저장된 중복 정보에 기반하여 복수의 동영상 간의 중복 여부 및/또는 중복 프레임을 판단할 수 있다. 일 실시예에 따르면, 프로세서(250)는 파일 생성 시 중복 정보를 파일에 저장할 수 있다. 예를 들어, 프로세서(250)는 이미지를 캡처함에 따라 파일을 생성할 때, 이미지 캡처 시점으로부터 제1 지정된 시간 이전부터 이미지 캡처 시점까지 획득된 동영상을 버퍼로부터 추출하게 되고, 해당 동영상이 버퍼에 저장된 위치 정보를 중복 정보로서 파일에 이미지 및 동영상과 함께 저장할 수 있다. 예를 들어, 동영상이 버퍼에 저장된 위치 정보는, 프로세서(250)가 동일한 그룹 ID를 갖는 적어도 하나의 파일 중 첫 번째 파일(예를 들어, 파일의 생성 시점이 가장 앞서는 파일, 또는 파일의 시퀀스 번호가 가장 작은 파일)에 포함된 동영상의 시작 부분이 버퍼에 저장되는 위치를 0으로 설정하였을 때, 현재 저장하는 동영상이 버퍼에 저장되는 상대적 위치를 나타낼 수 있다. 예를 들어, 프로세서(250)는 버퍼에 동영상 저장 시 프레임 단위로 저장하게 되므로, 버퍼의 위치는 프레임 번호(frame number)에 대응될 수 있다. 예를 들어, 동영상이 버퍼에 저장된 위치 정보는, 해당 동영상의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보를 포함할 수 있다.According to an embodiment, the processor 250 may store duplicate information in the plurality of files to determine whether or not there is a duplicate between a plurality of moving pictures included in the plurality of files and a duplicate part (or overlapping section). According to an embodiment, when a plurality of moving images are reproduced, the processor 250 may determine whether or not there is overlap between the plurality of moving images and/or overlapping frames based on duplicate information stored in files including each moving image. According to an embodiment, the processor 250 may store duplicate information in a file when a file is created. For example, when generating a file as the image is captured, the processor 250 extracts a video obtained from the first specified time from the time of capturing the image to the time of capturing the image from the buffer, and the video is stored in the buffer. Location information can be stored together with images and videos in a file as redundant information. For example, the location information where the video is stored in the buffer is the first file among at least one file having the same group ID by the processor 250 (eg, the file having the earliest creation time, or the sequence number of the file) When the position at which the beginning of the video included in the smallest file) is stored in the buffer is set to 0, it may indicate the relative position where the currently stored video is stored in the buffer. For example, since the processor 250 stores the video in frame units when storing the video in the buffer, the location of the buffer may correspond to a frame number. For example, location information where a video is stored in the buffer may include frame number information including a start frame number and an end frame number of the corresponding video.

다양한 실시예에서, 설명의 편의를 위해 다양한 정보(예: 그룹 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 processor 250 may display at least one file (or a file list) on the display 230 . For example, the processor 250 may display at least one file (or a list of files) by displaying an image (eg, a thumbnail image) included in the file on the display 230 . According to an embodiment, the processor 250 may receive a user input for selecting one of at least one file (eg, a motion photo file) displayed on the display 230 , and in response to the file selection input, the selected file and You can additionally select other files from the same group. The processor 250 may select files having the same group ID as the group ID stored in the selected file. According to an embodiment, the processor 250 may connect and play a plurality of videos included in a plurality of selected files.

일 실시예에 따르면, 프로세서(250)는 제1 파일을 선택하는 입력에 응답하여 제1 파일의 그룹 ID를 식별하고, 제1 파일의 그룹 ID와 동일한 그룹 ID를 가진 파일을 검색할 수 있다. 일 실시예에 따르면, 프로세서(250)는 제1 파일, 및 제1 파일의 그룹 ID와 동일한 그룹 ID를 가진 적어도 하나의 파일을 각 파일에 저장된 시퀀스 번호에 기반하여 배열할 수 있다. 예를 들어, 프로세서(250)는 시퀀스 번호가 증가하는 순서대로 복수의 파일을 배열할 수 있다. 일 실시예에 따르면, 프로세서(250)는 배열된 복수의 파일로부터 동영상을 추출(또는, 분리)할 수 있다. 예를 들어, 프로세서(250)는 배열된 복수의 파일 각각으로부터 동영상을 프레임 순서대로 메모리(240)에 로드(load)함으로써 복수의 동영상을 추출할 수 있다. 일 실시예에 따르면, 프로세서(250)는 추출된 복수의 동영상들을 각 동영상이 포함된 파일이 배열된 순서에 따라 배열한 재생 목록을 생성할 수 있다. 일 실시예에 따르면, 재생 목록은 추출된 복수의 동영상들을 포함하거나, 복수의 동영상에 포함된 복수의 프레임들을 포함하거나 또는 복수의 동영상에 포함된 복수의 프레임들에 기반하여 생성된 동영상을 포함할 수 있다.According to an embodiment, the processor 250 may identify the group ID of the first file in response to an input for selecting the first file, and search for a file having the same group ID as the group ID of the first file. According to an embodiment, the processor 250 may arrange the first file and at least one file having the same group ID as the group ID of the first file based on a sequence number stored in each file. For example, the processor 250 may arrange a plurality of files in an increasing sequence number. According to an embodiment, the processor 250 may extract (or separate) a video from a plurality of arranged files. For example, the processor 250 may extract a plurality of moving images by loading the moving images from each of the arranged files into the memory 240 in frame order. According to an embodiment, the processor 250 may generate a playlist in which a plurality of extracted moving pictures are arranged in the order in which files including each moving picture are arranged. According to an embodiment, the playlist may include a plurality of extracted videos, a plurality of frames included in a plurality of videos, or a video generated based on a plurality of frames included in a plurality of videos. can

일 실시예에 따르면, 프로세서(250)는 복수의 파일들에 포함된 중복 정보에 기반하여 복수의 동영상 간의 중복 여부를 판단하고, 중복 부분(또는, 중복 구간)을 결정할 수 있다. 예를 들어, 중복 정보는, 적어도 하나의 동영상의 시작 프레임 번호 및 종료 프레임 번호를 포함할 수 있다. 일 실시예에 따라, 프로세서(250)는 복수의 동영상 간의 중복되는 프레임 번호를 식별할 수 있다. 일 실시예에 따르면, 프로세서(250)는 중복되는 프레임 번호에 기반하여 복수의 동영상 간의 중복되는 프레임을 제거할 수 있다. 프로세서(250)는 중복되는 프레임이 제거된 복수의 동영상을 포함하는 재생 목록을 생성할 수 있다. 예를 들어, 프로세서(250)가 복수의 동영상 간의 중복되는 프레임을 제거하는 것은, 복수의 동영상 중 나중에 재생되는 동영상을 재생 시에 먼저 재생된 동영상과 중복되는 프레임을 스킵(skip)하여 재생하는 것을 의미할 수 있다. 다른 예로, 프로세서(250)가 복수의 동영상 간의 중복되는 프레임을 제거하는 것은, 프로세서(250)가 복수의 동영상을 연결한 하나의 영상을 생성하여 메모리(240)에 저장 시에 복수의 동영상의 원본으로부터 각 프레임을 복사(copy)할 수 있으나, 복수의 동영상 간의 중복되는 프레임은 한 번만 복사하는 것을 의미할 수 있다.According to an embodiment, the processor 250 may determine whether a plurality of videos are overlapped based on overlap information included in the plurality of files, and determine the overlapping portion (or overlapping section). For example, the duplicate information may include a start frame number and an end frame number of at least one video. According to an embodiment, the processor 250 may identify overlapping frame numbers between a plurality of moving images. According to an embodiment, the processor 250 may remove overlapping frames between a plurality of videos based on overlapping frame numbers. The processor 250 may generate a playlist including a plurality of videos from which overlapping frames are removed. For example, when the processor 250 removes overlapping frames between a plurality of videos, skipping a frame that overlaps with a video played earlier when a video played later among the plurality of videos is played can mean As another example, when the processor 250 removes overlapping frames between a plurality of moving images, the processor 250 generates one image in which the plurality of moving images are connected and stores the image in the memory 240 . Each frame may be copied from , but overlapping frames between a plurality of moving images may mean copying only once.

다양한 실시예에 따르면, 프로세서(250)는 중복되는 프레임을 제거한후 연속된 두 동영상 사이에 지정된 효과를 삽입할 수 있다. 일 실시예에 따르면, 지정된 효과는, 프레임과 프레임을 연결하는 애니메이션(animation) 효과를 의미할 수 있다. 예를 들어, 지정된 효과는 전환(transition) 효과를 포함할 수 있다. 일 실시예에 따라, 프로세서(250)가 중복 부분이 없는 동영상들 사이에 지정된 효과를 삽입함으로써 동영상들을 자연스럽게 연결하여 재생할 수 있다.According to various embodiments, the processor 250 may insert a designated effect between two consecutive moving images after removing overlapping frames. According to an embodiment, the specified effect may mean an animation effect that connects a frame to a frame. For example, the designated effect may include a transition effect. According to an embodiment, the processor 250 may naturally connect and reproduce the moving images by inserting a specified effect between the moving images having no overlapping portions.

일 실시예에 따르면, 프로세서(250)는 복수의 동영상을 연결하여 하나의 동영상처럼 재생하도록 하는 사용자 인터페이스(예: 재생 버튼)를 디스플레이(230)에 표시할 수 있다. 일 실시예에 따르면, 프로세서(250)는 사용자 인터페이스를 선택하는 사용자 입력에 응답하여 복수의 동영상을 연결하여 재생할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 동영상을 중복 부분 없이 연결하여 재생할 수 있다. 예를 들어, 프로세서(250)는 복수의 동영상을 배열된 순서대로 재생할 수 있으며, 동영상 재생 시에 해당 동영상 이전에 재생된 동영상의 프레임 번호보다 프레임 번호가 큰 프레임부터 재생할 수 있다. 예를 들어, 프로세서(250)는 복수의 동영상 중 나중에 재생되는 동영상을 재생 시에 먼저 재생된 동영상과 중복되는 프레임을 스킵(skip)하여 재생할 수 있다.According to an embodiment, the processor 250 may display on the display 230 a user interface (eg, a play button) that connects a plurality of videos to play them as one video. According to an embodiment, the processor 250 may connect and play a plurality of videos in response to a user input for selecting a user interface. According to an embodiment, the processor 250 may play a plurality of videos by connecting them without overlapping parts. For example, the processor 250 may reproduce a plurality of moving pictures in the order in which they are arranged, and when reproducing a moving picture, the processor 250 may play a frame having a larger frame number than a frame number of a moving picture played before the corresponding moving picture. For example, when a video reproduced later among a plurality of videos is reproduced, the processor 250 may skip a frame that overlaps with a video reproduced earlier to play it.

일 실시예에 따르면, 프로세서(250)는 복수의 동영상이 연결되어 재생된 동영상을 저장하도록 하는 사용자 입력을 수신함에 따라 복수의 동영상이 연결된 동영상을 생성 및 저장할 수 있다.According to an embodiment, the processor 250 may generate and store a video to which the plurality of videos are linked in response to receiving a user input for storing the video played by connecting the plurality of videos.

도 2에는 도시되지 않았으나, 전자 장치(201)는 통신 회로(미도시)(예: 도 1의 통신 모듈(190))를 포함할 수 있다. 일 실시예에 따르면, 프로세서(250)는 통신 회로를 이용하여 서버(예: 도 1의 서버(108)), 또는 외부 전자 장치(예: 도 1의 전자 장치(102, 또는 104))와 데이터를 송수신할 수 있다. 일 실시예에 따르면, 프로세서(250)는 복수의 파일에 포함된 복수의 동영상을 연결하여 생성한 하나의 동영상을 외부 전자 장치 또는 서버로 전송할 수 있다.Although not shown in FIG. 2 , the electronic device 201 may include a communication circuit (not shown) (eg, the communication module 190 of FIG. 1 ). According to one embodiment, the processor 250 uses a communication circuit to communicate with a server (eg, the server 108 of FIG. 1 ) or an external electronic device (eg, the electronic device 102 or 104 of FIG. 1 ) and data. can send and receive According to an embodiment, the processor 250 may transmit one video generated by connecting a plurality of videos included in a plurality of files to an external electronic device or a server.

일 실시예에 따르면, 프로세서(250)는 그룹 ID, 시퀀스 번호, 및 중복 정보를 파일의 메타데이터 영역에 저장할 수 있다. 일 실시예에 따라, 그룹 ID, 시퀀스 번호, 및 중복 정보는 메타데이터에 해당할 수 있다. 다양한 실시예에 따르면, 프로세서(250)는 복수의 동영상과 복수의 동영상 각각에 대응하는 메타데이터와 함께 외부 전자 장치 또는 서버로 전송할 수 있다. 다양한 실시예에 따르면, 외부 전자 장치는 전자 장치(201) 또는 서버로부터 수신한 복수의 동영상과 그 메타데이터에 기반하여 복수의 동영상을 자체적으로 연결하여 재생할 수 있다. 다양한 실시예에 따르면, 외부 전자 장치는 전자 장치(201) 또는 서버로부터 수신한 복수의 동영상과 그 메타데이터에 기반하여 메타데이터를 변경할 수 있다. 예를 들어, 전자 장치는 동영상이 촬영된 시간을 기준으로 그룹 ID를 결정하였으나, 외부 전자 장치는 동영상의 장면의 유형을 기반으로 그룹 ID를 결정할 수도 있다. 다양한 실시예에 따르면, 외부 전자 장치는 변경된 메타데이터에 기반하여 전자 장치로(201) 또는 서버로부터 수신한 복수의 동영상의 적어도 일부를 연결하여 재생할 수 있다.According to an embodiment, the processor 250 may store the group ID, sequence number, and duplicate information in the metadata area of the file. According to an embodiment, the group ID, sequence number, and duplicate information may correspond to metadata. According to various embodiments, the processor 250 may transmit a plurality of videos and metadata corresponding to each of the plurality of videos to an external electronic device or a server. According to various embodiments, the external electronic device may connect and reproduce the plurality of videos by itself based on the plurality of videos received from the electronic device 201 or the server and metadata thereof. According to various embodiments, the external electronic device may change the metadata based on the plurality of videos received from the electronic device 201 or the server and the metadata. For example, the electronic device determines the group ID based on the time at which the video is captured, but the external electronic device may determine the group ID based on the type of scene of the video. According to various embodiments, the external electronic device may connect and play at least some of the plurality of videos received from the server 201 or the electronic device based on the changed metadata.

이하, 도 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 flowchart 300 illustrating an operation of an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

동작 301에서, 전자 장치는 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 2의 카메라(210))를 이용하여 제1 이미지 및 제2 이미지를 포함하는 복수의 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치가 이미지를 획득하는 동작은 사용자 입력에 응답하여 이미지를 캡처하는 동작을 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 이미지(예: 제1 이미지 또는 제2 이미지)를 캡처할 수 있다. 예를 들어, 전자 장치는 제1 시점에 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 제1 이미지를 획득하고, 제2 시점에 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 제2 이미지를 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행함에 따라 카메라 및 마이크(예: 도 2의 마이크(220))를 이용하여 획득되는 비디오 데이터 및 오디오 데이터를 버퍼링할 수 있다. 일 실시예에 따르면, 비디오 데이터는 각 프레임에 대응하는 이미지 데이터를 포함할 수 있다. 일 실시예에 따라, 전자 장치는 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 이미지 캡처 시점에 대응하는 프레임의 이미지를 획득할 수 있다. 예를 들면, 전자 장치는 제1 시점에 대응하는 프레임의 이미지를 제1 이미지로 획득하고 제2 시점에 대응하는 프레임의 이미지를 제2 이미지로 획득할 수 있다.In operation 301, the electronic device may acquire a plurality of images including a first image and a second image. According to an embodiment, the electronic device may acquire a plurality of images including the first image and the second image by using a camera (eg, the camera 210 of FIG. 2 ). According to an embodiment, the operation of the electronic device acquiring the image may include the operation of capturing the image in response to a user input. According to an embodiment, the electronic device may capture an image (eg, a first image or a second image) in response to receiving a user input for capturing the image. For example, the electronic device may acquire a first image upon receiving a user input for capturing an image at a first time point, and obtain a second image upon receiving a user input for capturing an image at a second time point. can According to an embodiment, as the motion photo function is executed, the electronic device may buffer video data and audio data obtained using a camera and a microphone (eg, the microphone 220 of FIG. 2 ). According to an embodiment, the video data may include image data corresponding to each frame. According to an embodiment, the electronic device may acquire an image of a frame corresponding to an image capture point in response to receiving a user input for capturing an image. For example, the electronic device may acquire an image of a frame corresponding to a first viewpoint as a first image and acquire an image of a frame corresponding to a second viewpoint as a second image.

편의상 제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 operation 301, but the present invention is not limited thereto, and the operation of acquiring the first image and acquiring the second image are separately performed can be performed. According to an embodiment, the electronic device may perform operation 303 after acquiring the first image, and perform operation 305 after acquiring the second image.

동작 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 operation 303, the electronic device may store the first moving picture acquired before the first specified time from the first time point at which the first image is acquired as a first file together with the first image. According to an embodiment, the first time point may be a time point at which the electronic device captures the first image in response to a user input. According to an embodiment, the first designated time may include a time preset in the electronic device or a time set based on a user input. According to an embodiment, the electronic device may extract video data and audio data corresponding to a moving picture acquired from the first time point before the first specified time to the first time point from the buffer. For example, when the first designated time is 3 seconds, the electronic device may obtain a 3 second-long video obtained from a time point 3 seconds before the first time point to the first time point from the buffer. According to an embodiment, the first image may be an image corresponding to the last frame (or end frame) of the moving picture. According to an embodiment, the electronic device may store the first image and the first video in one file. According to an embodiment, the first file may be a file in a container format.

동작 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 operation 305, the electronic device may store the second video acquired before the first specified time from the second time point at which the second image is acquired as a second file together with the second image. According to an embodiment, the second time point may be a time point at which the electronic device captures the second image in response to a user input. According to an embodiment, the electronic device may extract video data and audio data corresponding to a moving picture acquired from the second time point before the first specified time to the second time point from the buffer. For example, when the first designated time is 3 seconds, the electronic device may acquire a video having a length of 3 seconds obtained from a time point 3 seconds before the second time point to the second time point. According to an embodiment, the second image may be an image corresponding to the last frame (or end frame) of the video. According to an embodiment, the electronic device may store the second image and the second video in one file. According to an embodiment, the second file may be a file in a container format.

도 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 operation 307, the electronic device may connect and play the first video and the second video. According to an embodiment, the electronic device may connect and play the first video and the second video based on information related to the connection of the first video and the second video. According to an embodiment, the electronic device may determine that the first video and the second video are related to each other when the first video and the second video are videos captured in the same time zone or are recognized as the same scene type. According to an embodiment, the information related to the connection of the first video and the second video may include information for determining whether the first video and the second video are connected and the connection order, or whether the first video and the second video overlap. And it may include at least one of information for determining the overlapping portion (or overlapping section).

일 실시예에 따르면, 전자 장치는 제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 display 230 of FIG. 2 ). The electronic device may additionally select the second file based on the first file and information related to the connection of the first video and the second video stored in the second file. For example, the electronic device may additionally select a second file in which the same group ID as the group ID stored in the first file is stored.

일 실시예에 따르면, 전자 장치는 제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 flowchart 400 illustrating an operation of an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행 중인 상태일 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 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 camera 210 of FIG. 2 ) and a microphone (eg, the microphone 220 of FIG. 2 ). According to an embodiment, the video data may include image data corresponding to each frame.

동작 401에서, 전자 장치는 제1 시점에 제1 이미지를 캡처할 수 있다. 일 실시예에 따라, 전자 장치는 이미지를 캡처하도록 하는 사용자 입력을 수신함에 따라 이미지 캡처 시점에 대응하는 프레임의 이미지를 획득할 수 있다. 일 실시예에 따르면, 이미지를 캡처하는 동작은, 사진 촬영을 의미할 수 있다.In operation 401, the electronic device may capture a first image at a first time point. According to an embodiment, the electronic device may acquire an image of a frame corresponding to an image capture point in response to receiving a user input for capturing an image. According to an embodiment, the operation of capturing an image may mean taking a photo.

동작 403에서, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 획득한 제1 동영상을 제1 이미지와 함께 제1 파일로 저장할 수 있다. 일 실시예에 따르면, 제1 지정된 시간은, 전자 장치에 미리 설정된 시간, 또는 사용자 입력에 기반하여 설정된 시간을 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 제1 시점까지 획득한 동영상에 대응하는 비디오 데이터 및 오디오 데이터를 버퍼로부터 추출할 수 있다. 예를 들어, 제1 지정된 시간이 3초인 경우, 전자 장치는 제1 시점으로부터 3초 전의 시점부터 제1 시점까지 획득한 3초 길이의 동영상을 버퍼로부터 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지와 제1 동영상을 하나의 제1 파일에 저장할 수 있다. 일 실시예에 따르면, 제1 파일은, 컨테이너 포맷(container format)의 파일일 수 있다.In operation 403, the electronic device may store the first video acquired from the first time point before the first specified time as a first file together with the first image. According to an embodiment, the first designated time may include a time preset in the electronic device or a time set based on a user input. According to an embodiment, the electronic device may extract video data and audio data corresponding to a moving picture acquired from the first time point before the first specified time to the first time point from the buffer. For example, when the first designated time is 3 seconds, the electronic device may obtain a 3-second video obtained from a time point 3 seconds before the first time point to the first time point from the buffer. According to an embodiment, the electronic device may store the first image and the first video in one first file. According to an embodiment, the first file may be a file in a container format.

동작 405에서, 전자 장치는 제1 이미지가 카메라 실행 후 캡처한 최초 이미지인지 여부를 판단할 수 있다. 일 실시예에 따르면, 전자 장치가 카메라를 실행하는 동작은, 전자 장치가 모션 포토 기능을 실행하는 동작을 포함할 수 있다. 예를 들어, 사용자가 카메라 어플리케이션의 모션 포토 기능을 실행시킨 후, 최초로 사진을 촬영하도록 하는 입력을 수행함에 따라, 전자 장치는 상기 입력에 응답하여 카메라 실행 후 최초로 이미지를 캡처할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 이미지가 모션 포토 기능이 실행된 상태에서 최초로 캡처된 이미지라고 판단됨에 따라(동작 405-YES) 동작 407을 수행할 수 있고, 제1 이미지가 모션 포토 기능이 실행된 상태에서 최초로 캡처된 이미지가 아니라고 판단됨에 따라(동작 405-NO) 동작 409를 수행할 수 있다.In operation 405, the electronic device may determine whether the first image is the first image captured after the camera is executed. According to an embodiment, the operation of the electronic device executing the camera may include the operation of the electronic device executing the motion photo function. For example, when a user executes a motion photo function of a camera application and then performs an input for first taking a photo, the electronic device may capture an image for the first time after running the camera in response to the input. According to an embodiment, as it is determined that the first image is the first image captured while the motion photo function is executed (operation 405 - YES), the electronic device may perform operation 407 , and the first image may display the motion photo function In this execution state, as it is determined that the image is not the first captured image (operation 405 - NO), operation 409 may be performed.

동작 407에서, 전자 장치는 그룹 ID 및 시퀀스 번호를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 파일이 속한 그룹을 구분하기 위한 고유 식별자(unique ID, UID)를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일임을 나타내는 시퀀스 번호를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 파일의 생성 순서는, 파일에 저장되는 이미지가 캡처된 순서에 대응될 수 있다. 일 실시예에 따르면, 전자 장치는 그룹 ID 및 시퀀스 번호를 제1 파일의 메타데이터 영역에 저장할 수 있다.In operation 407, the electronic device may insert the group ID and sequence number into the first file. According to an embodiment, the electronic device may insert a unique ID (UID) for identifying a group to which the file belongs to the first file. According to an embodiment, the electronic device may insert into the first file a sequence number indicating that the first file is a file that is first created in a group to which it belongs. According to an embodiment, the creation order of the file may correspond to the capturing order of images stored in the file. According to an embodiment, the electronic device may store the group ID and the sequence number in the metadata area of the first file.

동작 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 operation 409, the electronic device may determine whether an interval between the first time point and a second time point that is a second image capture point before the first time point is less than a specified threshold value. According to an embodiment, the second image includes an image stored in a file first created in a group to which a file created by the electronic device before the first time point belongs, or an image most recently captured by the electronic device before the first time point can do. According to an embodiment, the specified threshold value may be a value indicating time. According to an embodiment, the specified threshold value may be preset in the electronic device or may be set based on a user input. For example, when the specified threshold value is 1 minute, when the first time point is within 1 minute from the second time point, the electronic device may determine that the interval between the first time point and the second time point is less than the specified threshold value, When the time point is a time point after 1 minute has elapsed from the second time point, it may be determined that the interval between the first time point and the second time point is not less than a specified threshold value. According to an embodiment, when it is determined that the interval between the first time point and the second time point before the first time point is less than a specified threshold value (operation 409 - YES), the electronic device performs operation 411, and the first time point and the first time point As it is determined that the interval of the second time point before the time point is not less than the specified threshold (operation 409 - NO), operation 413 may be performed.

동작 411에서, 전자 장치는 제1 파일에 동일한 그룹 ID를 삽입하고, 시퀀스 번호를 증가시켜 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 이미지가 저장된 제2 파일에 삽입된 그룹 ID와 동일한 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 지정된 조건을 만족하는 파일이 하나씩 증가할 때마다 시퀀스 번호를 하나씩 증가시킬 수 있다. 일 실시예에 따르면, 지정된 조건은, 제1 시점과 제1 시점 이전에 생성된 파일이 속한 그룹에서 최초로 생성된 파일(예: 제2 파일)에 저장된 이미지(예: 제2 이미지)가 캡처된 시점(예: 제2 시점) 간의 간격이 지정된 임계 값 미만인지 여부를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 증가된 시퀀스 번호를 제1 파일에 삽입할 수 있다.In operation 411, the electronic device inserts the same group ID into the first file and increases the sequence number to insert it. According to an embodiment, the electronic device may insert the same group ID as the group ID inserted into the second file in which the second image is stored into the first file. According to an embodiment, the electronic device may increase the sequence number by one whenever the number of files satisfying the specified condition increases by one. According to an embodiment, the specified condition is that an image (eg, a second image) stored in a file (eg, a second file) first generated in a group to which a file generated before the first time and the first time is included is captured. It may include whether the interval between time points (eg, the second time point) is less than a specified threshold value. According to an embodiment, the electronic device may insert the increased sequence number into the first file.

동작 413에서, 전자 장치는 제1 파일에 그룹 ID를 변경하여 삽입하고, 시퀀스 번호를 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 이미지가 저장된 제2 파일에 삽입된 그룹 ID와 다른 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일일 수 있다. 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일임을 나타내는 시퀀스 번호를 제1 파일에 삽입할 수 있다.In operation 413, the electronic device may change and insert the group ID into the first file and insert the sequence number. According to an embodiment, the electronic device may insert a group ID different from the group ID inserted into the second file in which the second image is stored into the first file. According to an embodiment, the electronic device may be the first file created in the group to which the first file belongs. The electronic device may insert into the first file a sequence number indicating that the first file is a file that is first created in a group to which it belongs.

이하, 도 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 flowchart 500 illustrating an operation of an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행 중인 상태일 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 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 camera 210 of FIG. 2 ) and a microphone (eg, the microphone 220 of FIG. 2 ). According to an embodiment, the video data may include image data corresponding to each frame.

동작 501에서, 전자 장치는 제1 시점에 제1 이미지를 캡처할 수 있다. 일 실시예에 따르면, 동작 501은 도 4의 동작 401에 대응될 수 있으며, 동작 401에 대하여 상술한 설명이 동일하게 적용될 수 있다.In operation 501, the electronic device may capture a first image at a first time point. According to an embodiment, operation 501 may correspond to operation 401 of FIG. 4 , and the above description for operation 401 may be equally applied.

동작 503에서, 전자 장치는 제1 시점으로부터 제1 지정된 시간 이전부터 획득한 제1 동영상을 제1 이미지와 함께 제1 파일로 저장할 수 있다. 일 실시예에 따르면, 동작 503은 도 4의 동작 403에 대응될 수 있으며, 동작 403에 대하여 상술한 설명이 동일하게 적용될 수 있다.In operation 503, the electronic device may store the first video acquired from the first time point before the first specified time as a first file together with the first image. According to an embodiment, operation 503 may correspond to operation 403 of FIG. 4 , and the above description for operation 403 may be equally applied.

동작 505에서, 전자 장치는 제1 동영상의 장면의 유형을 인식할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 내 객체, 제1 동영상 촬영 시의 카메라의 움직임 정보(예: 촬영 방향, 또는 촬영 각도), 또는 동영상의 소리 정보에 기반하여 동영상의 장면의 유형을 인식할 수 있다.In operation 505, the electronic device may recognize the type of the scene of the first video. According to an embodiment, the electronic device selects the type of the scene of the video based on the object in the first video, motion information of the camera when the first video is captured (eg, a shooting direction or a shooting angle), or sound information of the video. can recognize

동작 507에서, 전자 장치는 제1 동영상과 제1 시점 이전의 제2 시점으로부터 제1 지정된 시간 이전부터 획득한 제2 동영상의 장면의 유형이 동일한지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 제1 동영상 및 제2 동영상으로부터 인식되는 객체가 서로 동일한 경우, 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다. 다른 예로, 전자 장치는 제1 동영상 및 제2 동영상으로부터 인식되는 객체가 서로 동일하고, 제1 동영상 및 제2 동영상 촬영 시의 카메라의 촬영 방향 또는 촬영 각도가 유사하다고 판단됨에 따라 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다. 또 다른 예로, 전자 장치는는 제1 동영상 및 제2 동영상으로부터 인식되는 배경 음악, 또는 화자가 동일하다고 판단됨에 따라 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단할 수 있다.In operation 507, the electronic device may determine whether the scene type of the first video is the same as that of the second video acquired from the second point of view before the first point of time before the first specified time. For example, when objects recognized from the first video and the second video are the same, the electronic device may determine that the scene types of the first video and the second video are the same. As another example, in the electronic device, when it is determined that objects recognized from the first moving image and the second moving image are the same, and that the shooting directions or shooting angles of the cameras when the first moving image and the second moving image are captured are similar, the first moving image and the second moving image are similar. 2 It can be determined that the types of scenes in the video are the same. As another example, the electronic device may determine that the scene types of the first video and the second video are the same as the background music recognized from the first video and the second video or the speaker is the same.

일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단됨에 따라(동작 507-YES) 동작 509를 수행하고, 제1 동영상 및 제2 동영상의 장면의 유형이 동일하다고 판단됨에 따라(동작 507-NO) 동작 511을 수행할 수 있다.According to an embodiment, the electronic device performs operation 509 as it is determined that the scene types of the first moving image and the second moving image are the same (operation 507 - YES), and the types of the scenes of the first moving image and the second moving image are determined to be the same. As it is determined to be the same (operation 507-NO), operation 511 may be performed.

동작 509에서, 전자 장치는 제1 파일에 동일한 그룹 ID를 삽입하고, 시퀀스 번호를 증가시켜 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 동영상이 저장된 제2 파일에 삽입된 그룹 ID와 동일한 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 지정된 조건을 만족하는 파일이 하나씩 증가할 때마다 시퀀스 번호를 하나씩 증가시킬 수 있다. 일 실시예에 따르면, 지정된 조건은, 제1 동영상과 제1 시점 이전에 생성된 파일(예: 제2 파일)에 저장된 동영상(예: 제2 동영상)의 장면의 유형이 동일한지 여부를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 증가된 시퀀스 번호를 제1 파일에 삽입할 수 있다.In operation 509, the electronic device inserts the same group ID into the first file and increases the sequence number to insert it. According to an embodiment, the electronic device may insert the same group ID as the group ID inserted into the second file in which the second video is stored into the first file. According to an embodiment, the electronic device may increase the sequence number by one whenever the number of files satisfying the specified condition increases by one. According to an embodiment, the specified condition may include whether the scene type of the first video and the video (eg, second video) stored in a file (eg, second file) generated before the first time point is the same. can According to an embodiment, the electronic device may insert the increased sequence number into the first file.

동작 511에서, 전자 장치는 제1 파일에 그룹 ID를 변경하여 삽입하고, 시퀀스 번호를 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제2 동영상이 저장된 제2 파일에 삽입된 그룹 ID와 다른 그룹 ID를 제1 파일에 삽입할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일일 수 있다. 전자 장치는 제1 파일이 속하는 그룹 내에서 최초로 생성된 파일임을 나타내는 시퀀스 번호를 제1 파일에 삽입할 수 있다.In operation 511, the electronic device may change and insert the group ID into the first file and insert the sequence number. According to an embodiment, the electronic device may insert a group ID different from the group ID inserted into the second file in which the second video is stored into the first file. According to an embodiment, the electronic device may be the first file created in the group to which the first file belongs. The electronic device may insert into the first file a sequence number indicating that the first file is a file that is first created in a group to which it belongs.

이하, 도 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 electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행 중인 상태일 수 있다. 일 실시예에 따르면, 전자 장치는 카메라(예: 도 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 camera 210 of FIG. 2 ) and a microphone (eg, the microphone 220 of FIG. 2 ) in a buffer. can be saved For example, the buffer may be a ring buffer.

일 실시예에 따르면, 전자 장치는 모션 포토 기능을 실행한 이후 최초로 이미지를 캡처함에 따라 첫 번째 파일을 생성할 수 있고, 그룹 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 first video 610 acquired from the first time point before a first specified time in the first file together with the first image. have. According to an embodiment, the electronic device may reset the frame numbers of the first audio frame and the video frame of the first moving picture 610 to 0 according to the first image being the first image captured after the motion photo function is executed. According to an embodiment, the electronic device may store duplicate information ([0, 130]) including the start frame number (0) and the end frame number 130 of the first video in the first file. According to an embodiment, the first image may correspond to a frame to which a frame number 130 is assigned among the frames of the first video.

일 실시예에 따르면, 전자 장치는 제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 second video 620 acquired from the second time point before the first specified time in the second file together with the second image. have. According to an embodiment, when it is determined that the interval between the second time point and the first time point is less than a specified threshold value, the electronic device may store the same group ID as the group ID stored in the first file in the second file. According to an embodiment, the electronic device may store duplicate information ([70, 220]) including the start frame number 70 and the end frame number 220 of the second video in the second file. According to an embodiment, the second image may correspond to a frame to which a frame number 220 is assigned among the frames of the second video.

일 실시예에 따르면, 전자 장치는 제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 third video 630 acquired before the first specified time from the third time point in the third file together with the third image. have. According to an embodiment, when it is determined that the interval between the third time point and the first time point is less than a specified threshold value, the electronic device may store the same group ID as the group ID stored in the first file in the third file. According to an embodiment, the electronic device may store duplicate information ([200, 330]) including the start frame number 200 and the end frame number 330 of the third video in the third file. According to an embodiment, the third image may correspond to a frame to which a frame number of 330 is assigned among frames of the third video.

일 실시예에 따르면, 전자 장치는 제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 fourth video 640 acquired before the first specified time from the fourth time point in the fourth file together with the fourth image. have. According to an embodiment, when it is determined that the interval between the fourth time point and the first time point is less than a specified threshold value, the electronic device may store the same group ID as the group ID stored in the first file in the fourth file. According to an embodiment, the electronic device may store duplicate information ([300, 420]) including the start frame number 300 and the end frame number 420 of the fourth video in the fourth file. According to an embodiment, the fourth image may correspond to a frame to which a frame number of 420 is assigned among frames of the fourth video.

일 실시예에 따르면, 전자 장치는 제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 frame number 0 to frame number 130, and then plays the second video from frame number 131 to frame number 220 can be played up to

이하, 도 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 electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

일 실시예에 따르면, 전자 장치는 이미지와 동영상을 함께 저장한 하나의 파일(701)을 생성할 수 있다. 일 실시예에 따르면, 파일(701)은 컨테이너 포맷(container format)으로, 상이한 유형의 데이터와 메타데이터를 함께 저장할 수 있다.According to an embodiment, the electronic device may create one file 701 in which an image and a moving picture are stored together. According to an embodiment, the file 701 is a container format, and may store different types of data and metadata together.

도 7을 참조하여 예를 들면, 파일(701)은 비디오 데이터(710) 및 이미지 데이터(720)를 포함할 수 있다. 일 실시예에 따르면, 비디오 데이터(710)는 영상과 음성을 모두 포함하는 데이터일 수 있다. 일 실시예에 따르면, 파일(701)은 메타데이터(730)를 포함할 수 있다.Referring to FIG. 7 , for example, the file 701 may include video data 710 and image data 720 . According to an embodiment, the video data 710 may be data including both an image and an audio. According to an embodiment, the file 701 may include metadata 730 .

일 실시예에 따르면, 메타데이터(730)는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터의 연결 여부를 결정하기 위한 그룹 ID(Group ID)(731)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 그룹 ID(731)에 기반하여 파일(701)과 다른 파일이 동일한 그룹에 속하는지 여부, 또는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터를 연결하여 재생할지 여부를 결정할 수 있다.According to an embodiment, the metadata 730 includes a group ID (Group ID) 731 for determining whether to connect the video data 710 included in the file 701 with the video data included in another file. can do. According to an embodiment, based on the group ID 731 , the electronic device includes whether the file 701 and the other file belong to the same group, or the video data 710 included in the file 701 is different from the file 701 . You can decide whether to play the video data by concatenating it.

일 실시예에 따르면, 메타데이터(730)는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터의 연결 순서를 결정하기 위한 시퀀스 번호(sequence number)(732)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치는 시퀀스 번호(732)에 기반하여 파일(701)이 속하는 그룹 내에서 파일(701)이 몇 번째 파일인지를 나타내는지 식별할 수 있다. 일 실시예에 따르면, 전자 장치는 시퀀스 번호(732)에 기반하여 파일(701)에 포함된 비디오 데이터(710)와 파일(701)이 속하는 그룹 내 다른 파일에 포함된 비디오 데이터를 연결하여 재생할 때의 연결 순서 또는 재생 순서를 결정할 수 있다.According to an embodiment, the metadata 730 includes a sequence number 732 for determining a concatenation order of the video data 710 included in the file 701 and the video data included in another file. can do. According to an embodiment, the electronic device may identify the number of the file 701 in the group to which the file 701 belongs, based on the sequence number 732 . According to an embodiment, when the electronic device connects and plays the video data 710 included in the file 701 with the video data included in another file in the group to which the file 701 belongs based on the sequence number 732, You can determine the connection order or playback order of

일 실시예에 따르면, 메타데이터(730)는 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터 간의 중복 여부 및 중복 부분(또는, 중복 구간)을 결정하기 위한 중복 정보를 포함할 수 있다. 일 실시예에 따르면, 중복 정보는 비디오 중복 정보(733) 및 오디오 중복 정보(734)를 포함할 수 있다. 일 실시예에 따라, 전자 장치는 비디오 데이터(710)를 프레임 단위로 버퍼에 저장할 수 있고, 저장 순서에 따라 각 프레임에 번호를 붙일 수 있다. 일 실시예에 따르면, 비디오 중복 정보(733)는 비디오 데이터(710)의 영상 데이터가 버퍼에 저장된 위치 정보를 포함할 수 있고, 오디오 중복 정보(734)는 비디오 데이터(710)의 음성 데이터가 버퍼에 저장된 위치 정보를 포함할 수 있다. 예를 들어, 비디오 중복 정보(734)는 비디오 데이터(710)의 영상 데이터의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보를 포함할 수 있고, 오디오 중복 정보(734)는 비디오 데이터(710)의 음성 데이터의 시작 프레임 번호 및 종료 프레임 번호를 포함하는 프레임 번호 정보를 포함할 수 있다. 예를 들면, 전자 장치는 비디오 중복 정보(733) 및 오디오 중복 정보(734)에 기반하여 파일(701)에 포함된 비디오 데이터(710)와 다른 파일에 포함된 비디오 데이터의 중복 프레임의 존재 여부 및 중복 프레임 번호를 결정할 수 있다.According to an embodiment, the metadata 730 includes duplicate information for determining whether there is a duplicate between the video data 710 included in the file 701 and the video data included in another file, and a duplicate part (or overlapping section). may include. According to an embodiment, the redundancy information may include video redundancy information 733 and audio redundancy information 734 . According to an embodiment, the electronic device may store the video data 710 in a buffer in units of frames, and may number each frame according to the storage order. According to an embodiment, the video redundancy information 733 may include location information in which the image data of the video data 710 is stored in a buffer, and the audio redundancy information 734 includes the audio data of the video data 710 in the buffer. It may include location information stored in the . For example, the video redundancy information 734 may include frame number information including a start frame number and an end frame number of the image data of the video data 710 , and the audio redundancy information 734 may include the video data 710 . ) may include frame number information including a start frame number and an end frame number of the voice data. For example, the electronic device determines whether there is a duplicate frame of the video data 710 included in the file 701 and the video data included in another file based on the video redundancy information 733 and the audio redundancy information 734 ; A duplicate frame number can be determined.

일 실시예에 따르면, 전자 장치는 메타데이터(730)에 기반하여 파일(701)을 포함하는 전자 장치에 저장된 복수의 파일을 관리할 수 있다. 예를 들어, 전자 장치는 동일한 그룹 ID를 가진 복수의 파일에 포함된 적어도 하나의 데이터(예: 이미지 데이터)를 한꺼번에 복사, 삭제, 또는 전달할 수 있다. 일 실시예에 따라, 전달이란, 전자 장치가 전자 장치와 통신 연결된 외부 전자 장치로 전송하는 것을 포함할 수 있다.According to an embodiment, the electronic device may manage a plurality of files stored in the electronic device including the file 701 based on the metadata 730 . For example, the electronic device may copy, delete, or transmit at least one data (eg, image data) included in a plurality of files having the same group ID at once. According to an embodiment, the transmission may include transmission by the electronic device to an external electronic device communicatively connected to the electronic device.

이하, 도 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 flowchart 800 illustrating an operation of an electronic device according to an exemplary embodiment. Operations of the electronic device (eg, the electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

일 실시예에 따르면, 전자 장치는 디스플레이(예: 도 2의 디스플레이(230))에 적어도 하나의 파일을 표시할 수 있다. 예를 들어, 전자 장치는 전자 장치에 저장된 이미지 및 동영상을 열람하는 어플리케이션(예: 갤러리(gallery) 어플리케이션)을 통해 적어도 하나의 파일에 포함된 이미지를 지정된 형태로 배열하여 표시할 수 있다. 일 실시예에 따르면, 전자 장치는 디스플레이에 적어도 하나의 파일을 표시한 상태에서 도 8에 도시된 동작들을 수행할 수 있다.According to an embodiment, the electronic device may display at least one file on a display (eg, the display 230 of FIG. 2 ). For example, the electronic device may arrange and display images included in at least one file in a specified form through an application (eg, a gallery application) for viewing images and videos stored in the electronic device. According to an embodiment, the electronic device may perform the operations illustrated in FIG. 8 while displaying at least one file on the display.

동작 801에서, 전자 장치는 제1 파일을 선택하는 입력을 수신할 수 있다. 일 실시예에 따르면, 전자 장치는 디스플레이에 표시된 제1 파일을 나타내는 이미지를 선택하는 입력을 수신할 수 있다. 예를 들어, 제1 파일을 선택하는 입력은, 제1 파일을 나타내는 이미지에 대한 터치 입력, 또는 제1 파일을 나타내는 이미지를 지칭하는 음성 입력을 포함할 수 있다.In operation 801, the electronic device may receive an input for selecting a first file. According to an embodiment, the electronic device may receive an input for selecting an image representing the first file displayed on the display. For example, the input for selecting the first file may include a touch input for an image representing the first file or a voice input for referring to an image representing the first file.

동작 803에서, 전자 장치는 제1 파일의 그룹 ID를 식별할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일을 선택하는 입력을 수신함에 따라 제1 파일에 저장된 그룹 ID를 식별할 수 있다.In operation 803, the electronic device may identify the group ID of the first file. According to an embodiment, in response to receiving an input for selecting the first file, the electronic device may identify the group ID stored in the first file.

동작 805에서, 전자 장치는 식별된 그룹 ID를 갖는 제2 파일을 선택할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일로부터 식별된 그룹 ID와 동일한 그룹 ID가 저장된 제2 파일을 검색할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일을 선택하는 입력을 수신함에 따라 제1 파일을 선택하고, 제1 파일로부터 식별된 그룹 ID를 갖는 제2 파일을 추가로 선택할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 파일을 선택하는 입력만을 수신하더라도 제1 파일, 및 제1 파일과 동일한 그룹에 속한 제1 파일 이외의 파일을 지정(또는, 선택)할 수 있다.In operation 805, the electronic device may select the second file having the identified group ID. According to an embodiment, the electronic device may search for a second file in which a group ID identical to the identified group ID is stored from the first file. According to an embodiment, the electronic device may select the first file in response to receiving an input for selecting the first file, and may additionally select a second file having a group ID identified from the first file. According to an embodiment, even when receiving only an input for selecting the first file, the electronic device may designate (or select) the first file and files other than the first file belonging to the same group as the first file.

일 실시예에 따르면, 전자 장치는 선택된 제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 operation 807, the electronic device may determine whether a duplicate exists between the first video stored in the first file and the second video stored in the second file. According to an embodiment, the electronic device may determine whether the first video and the second video overlap and the overlapping portion (or overlapping section) based on the overlapping information stored in the first file and the overlapping information stored in the second file. have. According to an embodiment, since the method of determining whether or not overlapping videos stored in each of the plurality of files are overlapped and the overlapping portion based on the overlap information stored in the plurality of files by the electronic device has been described above, the redundant description will be omitted or simplified. According to an embodiment, the electronic device performs operation 811 as it is determined that there is a duplicate between the first video stored in the first file and the second video stored in the second file (operation 809 - YES), and the electronic device As it is determined that there is no overlap between the first video stored in the first file and the second video stored in the second file (operation 809 - NO), operation 809 may be performed.

동작 809에서, 전자 장치는 제1 동영상과 제2 동영상 사이에 변환(또는, 전환)(transition) 효과를 삽입할 수 있다. 예를 들면, 전자 장치는 제1 동영상과 제2 동영상의 중복이 없다고 판단됨에 따라 제1 동영상과 제2 동영상의 자연스러운 연결을 위해 제1 동영상의 마지막 프레임과 제2 동영상의 첫 번째 프레임 사이에 변환 효과를 삽입할 수 있다. 일 실시예에 따라, 변환 효과는, 프레임과 프레임을 연결하는 애니메이션(animation) 효과일 수 있다.In operation 809, the electronic device may insert a transition (or transition) effect between the first video and the second video. For example, as it is determined that there is no overlap between the first video and the second video, the electronic device converts between the last frame of the first video and the first frame of the second video for a natural connection between the first video and the second video Effects can be inserted. According to an embodiment, the transformation effect may be an animation effect that connects frames to frames.

동작 811에서, 전자 장치는 제1 동영상과 제2 동영상의 중복 프레임을 제거할 수 있다. 예를 들면, 전자 장치는 제1 동영상과 제2 동영상의 중복이 있다고 판단됨에 따라 제1 동영상과 제2 동영상의 중복 프레임을 식별하고, 제1 동영상의 마지막 프레임 이후에 제2 동영상의 프레임 중 중복 프레임 이후의 프레임부터 재생되도록 설정할 수 있다.In operation 811, the electronic device may remove overlapping frames of the first video and the second video. For example, as it is determined that there is overlap between the first video and the second video, the electronic device identifies overlapping frames of the first video and the second video, and overlaps frames of the second video after the last frame of the first video It can be set to play from the frame after the frame.

동작 813에서, 전자 장치는 제1 동영상 및 제2 동영상을 연결하여 재생할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 동영상 및 제2 동영상을 하나의 동영상인 것처럼 연결하여 재생할 수 있다. 예를 들어, 전자 장치는 중복 구간이 존재하는 제1 동영상 및 제2 동영상을 연결하여 재생 시에는 제1 동영상 재생 후 제2 동영상을 중복 프레임 이후의 프레임부터 재생할 수 있다. 전자 장치는 제1 동영상 재생 후 제2 동영상 재생 시, 제1 동영상의 마지막 프레임의 프레임 번호보다 큰 프레임 번호에 대응하는 프레임부터 재생할 수 있다. 다른 예로, 전자 장치는 중복 구간이 존재하지 않는 제1 동영상 및 제2 동영상을 연결하여 재생 시에는 제1 동영상 재생 후 삽입된 변환 효과를 출력한 후 제2 동영상을 재생할 수 있다.In operation 813, the electronic device may connect and play the first video and the second video. According to an embodiment, the electronic device may connect and play the first video and the second video as if they were one video. For example, when playing by connecting a first video and a second video having overlapping sections, the electronic device may play the second video from a frame after the overlapping frame after the first video is reproduced. When the second video is reproduced after the first video is reproduced, the electronic device may reproduce a frame corresponding to a frame number greater than the frame number of the last frame of the first video first. As another example, when the first video and the second video having no overlapping section are connected and played, the electronic device may play the second video after outputting a conversion effect inserted after the first video is played.

상술한 실시예에서는, 전자 장치가 하나의 파일을 선택하는 사용자 입력을 수신한 경우를 예로 들었으나, 이에 한정되는 것은 아니며, 전자 장치는 복수의 파일을 선택하는 사용자 입력을 수신할 수도 있고, 선택된 복수의 파일 각각에 포함된 동영상들을 연결하여 재생할 수도 있다.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 electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device.

일 실시예에 따르면, 전자 장치는 제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 first video 901 included in the first file; The second video 902 included in the second file, the third video 903 included in the third file, the fourth video 904 included in the fourth file, and the fifth video included in the fifth file ( 905) can be created. According to an embodiment, the input for selecting the first file, the second file, the third file, the fourth file, and the fifth file is the first file, the second file, the third file, the fourth file, or the third file. may include an input for selecting one of the five files, and the electronic device selects a file having the same group ID as the selected one of the first file, the second file, the third file, the fourth file, and the fifth file. In addition, the first file, the second file, the third file, the fourth file, and the fifth file may be selected by additional selection.

일 실시예에 따르면, 전자 장치는 제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 first video 901, a second video 902, A third video 903 , a fourth video 904 , and a fifth video 905 may be arranged. For example, the electronic device assigns the first video 901 , the second video 902 , the third video 903 , the fourth video 904 , and the fifth video 905 to a sequence number corresponding to each video. can be arranged in increasing order.

일 실시예에 따르면, 전자 장치는 제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 first video 901, a second video 902, Whether the third video 903 , the fourth video 904 , and the fifth video 905 overlap and the overlapping section may be identified. For example, the electronic device uses a first overlapping section 921 that is an overlapping section of the second video 902 and the third video 903 , and a third overlapping section of the third video 903 and the fourth video 904 . A third overlapping section 923 that is an overlapping section of the second overlapping section 922 , the fourth video 904 , and the fifth video 905 may be identified. According to an embodiment, the overlapping section may correspond to a frame overlapping between a plurality of videos.

일 실시예에 따르면, 전자 장치는 제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 section 921 , the second overlapping section 922 , and the third overlapping section 923 . For example, in the playlist, the electronic device excludes the first overlapping section 921 of the frames of the third video 903 and excluding the second overlapping section 922 of the frames of the fourth video 904, Among the frames of the fifth video 905 , the third overlapping section 923 may be excluded.

일 실시예에 따르면, 전자 장치는 제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 first video 901 and the second video 902 , the electronic device inserts a specified animation effect between the first video 901 and the second video 902 . can do. For example, the electronic device may insert the first animation effect 915 between the last frame of the first video 901 and the first frame of the second video 902 in the playlist.

일 실시예에 따르면, 전자 장치는 제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 first video 901 , the second video 902 , the third video 903 , the fourth video 904 , and the fifth video 905 . The first video 901 , the second video 902 , the third video 903 , the fourth video 904 , and the fifth video 905 may be connected and played according to the playlist generated upon reception. . According to an embodiment, the electronic device combines the reproduced first video 901 , the second video 902 , the third video 903 , the fourth video 904 , and the fifth video 905 as one video. As a user input for saving as It is possible to create and store a video 930 connected to .

이하, 도 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 electronic device 201 of FIG. 2 ) described below may be performed by a processor (eg, the processor 250 of FIG. 2 ) of the electronic device 1001 . The first screen S1 , the second screen S2 , and the third screen S3 are the user displayed by the electronic device 1001 on the display of the electronic device 1001 (eg, the display 230 of FIG. 2 ). It can represent an interface.

제1 화면(S1)을 참조하면, 전자 장치(1001)는 디스플레이에 적어도 하나의 파일을 표시할 수 있다. 일 실시예에 따르면, 적어도 하나의 파일은 각각 그룹 ID(예: ID1, 또는 ID2)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치(1001)는 제1 파일(1010)을 선택하는 입력을 수신할 수 있다. 예를 들어, 제1 파일(1010)을 선택하는 입력은, 제1 파일(1010)이 표시된 디스플레이 영역에 대한 터치 입력(예: 롱 프레스(long press))를 포함할 수 있다.Referring to the first screen S1 , the electronic device 1001 may display at least one file on the display. According to an embodiment, each of the at least one file may include a group ID (eg, ID1 or ID2). According to an embodiment, the electronic device 1001 may receive an input for selecting the first file 1010 . For example, the input for selecting the first file 1010 may include a touch input (eg, a long press) for a display area in which the first file 1010 is displayed.

제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 electronic device 1001 receives an input for selecting the first file 1010 , the electronic device 1001 has the same group ID as the group ID (eg, ID1) of the first file 1010 . Additional files can be selected. According to an embodiment, the electronic device 1001 may display the first user interface 1020 (eg, a play button) for playing back moving pictures included in the selected files. According to an embodiment, the electronic device 1001 may receive an input for selecting the first user interface 1020 . For example, an input for selecting the first user interface 1020 may include a touch input (eg, a tap) for the first user interface 1020 .

제3 화면(S3)을 참조하면, 전자 장치(1001)는 선택된 파일들에 포함된 동영상들을 연결하여 재생할 수 있다. 일 실시예에 따라 전자 장치(1001)가 선택된 파일들에 포함된 동영상을 연결하여 재생하는 방법에 대하여는 도 8을 참조하여 상술한 방법이 동일하게 적용될 수 있다.Referring to the third screen S3 , the electronic device 1001 may connect and play videos included in the selected files. According to an exemplary embodiment, the method described above with reference to FIG. 8 may be applied to a method for the electronic device 1001 to connect and play a moving picture included in the selected files.

본 문서에 개시되는 일 실시예에 따르면, 전자 장치(예: 도 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 electronic device 201 of FIG. 2 ) includes a camera (eg, the camera module 180 of FIG. 1 ); or the camera 210 of FIG. 2 ), a microphone (eg, the input module 150 of FIG. 1 , or the microphone 220 of FIG. 2 ), a display (eg, the display module 160 of FIG. 1 , or of FIG. 2 ). display 230), a memory (eg, memory 130 of FIG. 1, or memory 240 of FIG. 2), and a processor operatively coupled with the camera, the microphone, the display and the memory (eg, FIG. 1 , or processor 250 of FIG. 2 ), wherein the memory, when executed, causes the processor to use the camera to generate a plurality of images including a first image and a second image. is obtained, and a first moving picture acquired using the camera and the microphone from a first specified time before a first specified time from the first time point at which the first image is acquired is stored as a first file together with the first image, A second video acquired using the camera and the microphone from a second time point at which the second image is acquired before the first specified time is stored as a second file together with the second image, and the first video and the second video are stored. One or more instructions for linking and playing the first video and the second video based on information related to the connection of two videos may be stored.

본 문서에 개시되는 일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제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 electronic device 201 of FIG. 2 ) may include a camera of the electronic device (eg, FIG. 1 ). A plurality of images including a first image and a second image are acquired using the camera module 180 of the camera module 180, or the camera 210 of FIG. A first video acquired by using the camera and the microphone of the electronic device (eg, the input module 150 of FIG. 1 or the microphone 220 of FIG. 2 ) from before a time is a first file together with the first image and save a second video acquired using the camera and the microphone from the second time point at which the second image is acquired by using the camera and the microphone before the first designated time as a second file together with the second image, and The first video and the second video may be connected and played based on information related to the connection of the first video and the second video.

본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 제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 display module 160 of FIG. 1 or the display 230 of FIG. 2 ) of the electronic device. Receives a user input for selecting the first file from among files, and adds 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 user interface for connecting and playing the first video and the second video may be displayed on the display.

본 문서에 개시되는 일 실시예에 따르면, 상기 전자 장치의 동작 방법은, 상기 재생된 제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에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 제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.
청구항 2에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 동일한 그룹 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.
청구항 2에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 제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.
청구항 3에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 그룹 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.
청구항 4에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 중복 정보에 기반하여 상기 제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.
청구항 6에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 제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 파일을 선택하는 사용자 입력을 수신하고,
상기 제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.
청구항 8에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 재생된 제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.
청구항 2에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 제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.
청구항 11에 있어서,
상기 제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.
청구항 12에 있어서,
상기 동일한 그룹 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.
청구항 12에 있어서,
상기 제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.
청구항 13에 있어서,
상기 그룹 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.
청구항 14에 있어서,
상기 중복 정보에 기반하여 상기 제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.
청구항 16에 있어서,
상기 제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.
청구항 11에 있어서,
상기 전자 장치의 디스플레이에 표시된 적어도 하나의 파일 중 상기 제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.
청구항 18에 있어서,
상기 재생된 제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.
청구항 12에 있어서,
상기 제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.
KR1020210054309A 2021-04-27 2021-04-27 Electronic device and method of operation thereof KR20220147324A (en)

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)

* Cited by examiner, † Cited by third party
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

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