The following command concatenates three MPEG-2 TS files and concatenates them without re-encoding: ffmpeg -i "concat:input1.ts|input2.ts|input3.ts" -c copy output.ts This is analogous to using cat on UNIX-like systems or copy on Windows. Certain files (MPEG-2 transport streams, possibly others) can be concatenated. While the demuxer works at the stream level, the concat protocol works at the file level. Now it perfectly combines both videos together with no issue. I think it was due to the videos being encoded using different settings. Previous to this, the video was freezing at the first insertion for about 3 seconds, and then playing the rest of the video at half FPS. I used the "intermediate files" method, which uses MPEG-2 TS files. I was going to comment on paulzag's comment, but I need 50 reputation (what a stupid system).įor me, the filter and demuxer weren't working at all, but I found out about "Concat protocol" on ffmpeg's site, which worked prefectly for me: How could I cut video parts to be similar in properties to work without problem on concatenation part? Question is most of the time video parts are not from the same video type and output is not playable. The first cutted video part is dominant on other parts. Which again works ok if cutted video parts are from the same type of video, and if they aren't there will be no video and only audio or jittery video on non-similar video parts. preset slow -crf 20 -c:a aac " videoOut " -y -report" "\\':force_style='FontName=DejaVu Serif,FontSize=26'\" -c:v libx264 Libx264 -preset slow -crf 20 -c:a aac -t " duration.ToString() " "Īnd then try to merge these videos with this command:į = "/c ffmpeg.exe -f concat -safe 0 -i \"" ĬoncatTextDirectory "\" -c copy -vf \"subtitles=\\'" videoInSrt Scale video > scale png > pad scaled_video > add icon to padded_scaled_video > encode.į = ffmpeg.exe -i " VideoIn " -i " I use this command to cut specific parts: I have big videos with different types of properties and trying to collect some part of these videos by ffmpeg.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |