티스토리 뷰
반응형
동영상 합치기 ffmpeg
아이폰으로 촬영한 여러 동영상을 하나로 합치고 싶을 때, 아래의 명령으로 간단하게 합칠 수 있습니다. 한번에 쭈욱 찍고 싶은데, 녹화 중에 전화가와서 끊어진 동영상들을 간단하게 이어보세요.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | C:\work\tmp>ffmpeg -f concat -i videolist.txt -c copy video.mov ffmpeg version N-94014-g80e68ce116 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.3.1 (GCC) 20190414 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 - -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --e nable-dxva2 --enable-avisynth --enable-libopenmpt libavutil 56. 28.100 / 56. 28.100 libavcodec 58. 52.102 / 58. 52.102 libavformat 58. 27.103 / 58. 27.103 libavdevice 58. 7.100 / 58. 7.100 libavfilter 7. 55.100 / 7. 55.100 libswscale 5. 4.101 / 5. 4.101 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 [concat @ 00000000003a0440] Could not find codec parameters for stream 2 (Unknown: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [concat @ 00000000003a0440] Could not find codec parameters for stream 3 (Unknown: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, concat, from 'videolist.txt': Duration: N/A, start: 0.000000, bitrate: 11828 kb/s Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 11634 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 600 tbc Metadata: creation_time : 2019-07-22T12:49:18.000000Z handler_name : Core Media Video encoder : HEVC Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 194 kb/s Metadata: creation_time : 2019-07-22T12:49:18.000000Z handler_name : Core Media Audio Stream #0:2: Unknown: none Stream #0:3: Unknown: none Output #0, mov, to 'video.mov': Metadata: encoder : Lavf58.27.103 Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, q=2-31, 11634 kb/s, 29.97 fps, 29.97 tbr, 19200 tbn, 600 tbc Metadata: creation_time : 2019-07-22T12:49:18.000000Z handler_name : Core Media Video encoder : HEVC Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 194 kb/s Metadata: creation_time : 2019-07-22T12:49:18.000000Z handler_name : Core Media Audio Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=126820 fps=2322 q=-1.0 Lsize= 6106314kB time=01:10:31.35 bitrate=11822.0kbits/s speed=77.5x video:6000542kB audio:100242kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.090647% C:\work\tmp>type videolist.txt file 'IMG_2680.MOV' file 'IMG_2681.MOV' C:\work\tmp>dir C:\work\tmp 디렉터리 2019-07-24 오후 10:52 <DIR> . 2019-07-24 오후 10:52 <DIR> .. 2019-07-22 오후 09:49 5,566,649,876 IMG_2680.MOV 2019-07-22 오후 10:53 686,944,413 IMG_2681.MOV 2019-07-24 오후 10:53 6,252,865,769 video.mov 2019-07-24 오후 10:51 42 videolist.txt | cs |
참 쉽죠잉!?
반응형
'Programming > ffmpeg' 카테고리의 다른 글
입력 파일 두개 받아서 재생시키기... (1) | 2021.08.07 |
---|
반응형
04-10 02:11
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
TAG
- 영자신문
- 입이 트이는 영어
- PIL
- cnn student news
- 귀가 트이는 영어
- 러닝화
- 귀트영
- EBS
- HTPC
- kodi
- ffmpeg
- Linux
- Python
- CNN
- 입트영
- MOUNT
- 해석
- 영어공부
- imageGrab
- Raspberry Pi
글 보관함