Portál AbcLinuxu, 8. května 2025 18:53
GUI má například Kdenlive a Shotcut. Nicméně na popsaný problém (vystřihnout kusy videa a spojit je, bez dalších efektů) je ffmpeg v terminálu nejjednodušší.
General Complete name : out01.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 6.30 MiB Duration : 32s 1ms Overall bit rate : 1 651 Kbps Movie name : LIVE555 Streaming Media v2017.10.28 Writing application : Lavf58.20.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L3.0 Format settings, CABAC : Yes Format settings, ReFrames : 1 frame Format settings, GOP : M=1, N=25 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 31s 405ms Bit rate : 1 608 Kbps Width : 640 pixels Height : 360 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 25.000 fps Minimum frame rate : 19.634 fps Maximum frame rate : 38.282 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.279 Stream size : 6.02 MiB (96%) Language : English Audio ID : 2 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Codec ID : .mp3 Duration : 32s 1ms Bit rate mode : Constant Bit rate : 64.0 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 44.1 KHz Compression mode : Lossy Stream size : 250 KiB (4%) Language : EnglishStrih isiel vyborne
ffmpeg -i in_file.mov -ss 00:00:15 -t 00:00:25 -c copy out_file.movAle spojenie ako skusam, tak skusam, nefunguje. Vygooglil som, ze subory mp4, mov ... nejdu spojit. Avsak je ich mozne spojit tak, ze sa cesty k suborom naladuju do txt suboru a v prikaze sa zavola txt subor.
ffmpeg -f concat -i join.txt -c copy output,movale ak to tak spravim, tak
[concat @ 0x7f8528f8a380] Line 1: unknown keyword '/home/jany2/out01.mov' join.txt: Invalid data found when processing input
file /home/jany2/out01.mov file /home/jany2/out02.mov file /home/jany2/out03.mov ...
[concat @ 0x7f24fb353380] Unsafe file name '/home/jany2/out01.mov' join.txt: Operation not permittedstacilo ale pridat parameter -safe 0. Takze
ffmpeg -f concat -safe 0 -i join.txt -c copy output.mov
-i "concat:soubor1|soubor2|soubor3"Jirka
Tak avidemux je něco jako virtualdub. I virtualdub je v AURu v archlinuxu skrze wine.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.