0

PROBLEM: 3 identical-format files (all exported in batch together, with identical settings) concatenated using ffmpeg concat demuxer. Command runs without error (and no console printouts either) but also no output file. Mac OS 10.15.6, ffmpeg version 4.3.1

Concat text file "test.txt" as follows:

file 'test_clip1.mp4'
file 'test_clip2.mp4'
file 'test_clip3.mp4'

Each of these files ffprobe readouts are the same. There is no audio stream.

test_clip1.mp4:

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 911 kb/s, 23.98 fps, 23.98 tbr, 19184 tbn, 47.96 tbc (default)

test_clip2.mp4

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 628 kb/s, 23.98 fps, 23.98 tbr, 19184 tbn, 47.96 tbc (default)

test_clip3.mp4

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 615 kb/s, 23.98 fps, 23.98 tbr, 19184 tbn, 47.96 tbc (default)

FFmpeg command:

ffmpeg_cmd = ["ffmpeg",
              "-f",
              "concat",
              "-safe", "0",
              "-i", "test.txt",
              "test_concatenated.mp4"]
3
  • Run from console and check. Commented Aug 24, 2020 at 15:01
  • @Gyan, thank you! It worked immediately. Turns out this is a real facepalm mistake. I forgot to actually subprocess.call the command itself! Commented Aug 24, 2020 at 15:13
  • @dv151 Might as well make that the answer. Commented Aug 24, 2020 at 17:49

1 Answer 1

0

Facepalm mistake. I forgot to actually CALL the ffmpeg_cmd in my script with subprocess.call. FF command also worked just fine when called directly from the console. Thank you @Gyan for the tip.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.