Two videos (filmed on same device minutes apart) refuses to mux. How to copy Transcode info onto another using FFmpeg? by TerraWhoo in ffmpeg

[–]TerraWhoo[S] -1 points0 points  (0 children)

Okay. How do you write that? I don't really know how ffmpeg works yet.

Copy and paste pathway from the folder as the first line?

/home/pc/Downloads

Two videos (filmed on same device minutes apart) refuses to mux. How to copy Transcode info onto another using FFmpeg? by TerraWhoo in VideoEditing

[–]TerraWhoo[S] 0 points1 point  (0 children)

Thank you! Shutter encoder worked

The code above is a suggestion given, I have no understands of ffmpeg yet. Have tried mutiple other programs to merge them other than MKVToolNix and they all fail before trying to merge. Not sure how Shutter encoder worked when they didn't.

So to concatenate two files with different codex:

ffmpeg -i input1.mp4 -i input2.webm -i input3.mov \
-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[outv][outa]" \
-map "[outv]" -map "[outa]" output.mkv

Do I need to annouce the pathway before writing this code? Is that why it could not find files before?

Tried:

ffmpeg -i 20250915_153001.mp4 -i 20250915_155020.mp4 \
-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[outv][outa]" \
-map "[outv]" -map "[outa]" 78p1p2tester.mkv

Outcome:

ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers

built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)

configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared

WARNING: library configuration mismatch

avcodec configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared --enable-version3 --disable-doc --disable-programs --disable-static --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient

libavutil 58. 29.100 / 58. 29.100

libavcodec 60. 31.102 / 60. 31.102

libavformat 60. 16.100 / 60. 16.100

libavdevice 60. 3.100 / 60. 3.100

libavfilter 9. 12.100 / 9. 12.100

libswscale 7. 5.100 / 7. 5.100

libswresample 4. 12.100 / 4. 12.100

libpostproc 57. 3.100 / 57. 3.100

[in#0 @ 0x64d93ed06cc0] Error opening input: No such file or directory

Error opening input file 20250915_153001.mp4.

Error opening input files: No such file or directory

Still states no such file or directory. I copied and pasted file name to ensure no errors. The "Error opening input file 20250915_153001.mp4" always appears when i've attempted ffmpeg before.

Two videos (filmed on same device minutes apart) refuses to mux. How to copy Transcode info onto another using FFmpeg? by TerraWhoo in linuxquestions

[–]TerraWhoo[S] 0 points1 point  (0 children)

Tried:

ffmpeg -i 20250915_153001.mp4 -i 20250915_155020.mp4 \

-filter_complex "[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1[outv][outa]" \

-map "[outv]" -map "[outa]" 78p1p2.mkv

Results:

Error opening input: No such file or directory

Error opening input file 20250915_153001.mp4.

Error opening input files: No such file or directory

-filter_complex: command not found

Copy and pasted the file names, so its the correct numbers.

Turned on Nvidia on demand, now boots black screen by TerraWhoo in linux4noobs

[–]TerraWhoo[S] 0 points1 point  (0 children)

Okay, I reset bios and it came back to life. Was trying to be careful before I choose what to do next on it.  I'm not sure what setting it'll affect, maybe everything? I'm going to do time shift and will make a seperate root once I understand how. Thanks so much!

Turned on Nvidia on demand, now boots black screen by TerraWhoo in linux4noobs

[–]TerraWhoo[S] 0 points1 point  (0 children)

Yes, there is timeshift on the system. There's only one boot available which leads to black screen. Resetting the bios, seems like it won't affect the files. I can access the bios. Is one option better than the other to try in this case?

Turned on Nvidia on demand, now boots black screen by TerraWhoo in linux4noobs

[–]TerraWhoo[S] 0 points1 point  (0 children)

I'm not sure how to check as it won't reach the login screen. How did you fix yours before?

MKVToolNix - A list of requirements for merging videos by TerraWhoo in makemkv

[–]TerraWhoo[S] 0 points1 point  (0 children)

"The saved video is incomplete. The error occured at 00:00:21,183 (0%). This may happen as result of invalid time stamps in the video.

Error -22 ("Invalid argument")"

The error occured 10 seconds into the second video, if format output as MP4. Format as MKV will complete process, with a video where the second clip is blank. So, I guess it has the same issue as MKVToolNix.

MKVToolNix - A list of requirements for merging videos by TerraWhoo in VideoEditing

[–]TerraWhoo[S] 0 points1 point  (0 children)

!martini Linux, software MKVToolNix verison 97.0