FFMPEG not concatenating webm videos on centos | Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I'm trying to concat multiple .webm videos into single video using ffmpeg on centos 7 server. I have txt file like: video.txt

file upload_0d62886ccceb71117f93e08f6ce40ed4.webm
file upload_0dc5935ea564aa105484b17cf0eae2cb.webm
file upload_0dc89839a1cb1d1cb84649c966b03f9b.webm
file upload_eefa16438205bcead017145b7d15ec58.webm

I'm using below command for concat:

ffmpeg -f concat -safe 0 -i video.txt -c copy output.webm

Then I got the following output

ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg - 
-incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man -- 
arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 - 
fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc- 
switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable- 
libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc -- 
enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable- 
ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable- 
indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame -- 
enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse -- 
enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora 
--enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 -- 
enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample -- 
enable-postproc --enable-pthreads --disable-static --enable-shared --enable- 
gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable- 
runtime-cpudetect
libavutil      54. 31.100 / 54. 31.100
libavcodec     56. 60.100 / 56. 60.100
libavformat    56. 40.101 / 56. 40.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 40.101 /  5. 40.101
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  2.101 /  1.  2.101
libpostproc    53.  3.100 / 53.  3.100
Input #0, concat, from 'video.txt': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp Stream #0:1(eng): Video: h264 (Constrained Baseline), yuv420p, 640x480, SAR 1:1 DAR 4:3, 30.30 fps, 30 tbr, 1k tbn, 60 tbc [webm @ 0x708120] Codec for stream 0 does not use global headers but container format requires global headers [webm @ 0x708120] Codec for stream 1 does not use global headers but container format requires global headers [webm @ 0x708120] Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. Output #0, webm, to 'output.webm': Metadata: encoder : Lavf56.40.101 Stream #0:0(eng): Video: h264, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 30.30 fps, 30 tbr, 1k tbn, 1k tbc Stream #0:1(eng): Audio: opus, 48000 Hz, mono Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:0 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.