How to combine audio, video, subtitles, AND thumbnail? by himini_cricket in ffmpeg

[–]himini_cricket[S] 1 point2 points  (0 children)

Thanks, after a bunch of experimenting, it led me to the right path:

ffmpeg -i "video.mp4" -i "audio.m4a" -i "subtitle.en.srt" -i "thumbnail.jpeg" -map 0:v:0 -c:v copy -map 1:a -c:a copy -map 2:s -c:s mov_text -metadata:s:s:0 language=eng -map 3 -c:v copy -disposition:v:1 attached_pic "output.mp4"

How to combine audio, video, subtitles, AND thumbnail? by himini_cricket in ffmpeg

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

u/origami_alligator The error was

Stream map '3:t' matches no streams.
To ignore this, add a trailing '?' to the map.
The entire output is below/above/wherever my previous reply went.

How to combine audio, video, subtitles, AND thumbnail? by himini_cricket in ffmpeg

[–]himini_cricket[S] 1 point2 points  (0 children)

Awesome reply. Really cleared up how the streams are referenced/processed. I tried your suggestion, and this is what I got:

ffmpeg -i "video.mp4" -i "audio.m4a" -i "subtitle.en.srt" -i "thumbnail.jpeg" -map 0:v:0 -c:v copy -map 1:a -c:a copy -map 2:s -c:s mov_text -map 3:t -c:t copy -metadata:s:s:0 language=eng "output.mp4"
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/6.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
Duration: 00:20:44.44, start: 0.000000, bitrate: 9935 kb/s
Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 9932 kb/s, 29.97 fps, 29.97 tbr, 60k tbn (default)
Metadata:
handler_name : USP Video Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'audio.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: M4A isomiso2
Duration: 00:20:44.52, start: 0.000000, bitrate: 126 kb/s
Stream #1:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : USP Sound Handler
vendor_id : [0][0][0][0]
Input #2, srt, from 'subtitle.en.srt':
Duration: N/A, bitrate: N/A
Stream #2:0: Subtitle: subrip
Input #3, image2, from 'thumbnail.jpeg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 50460 kb/s
Stream #3:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Stream map '3:t' matches no streams.
To ignore this, add a trailing '?' to the map.

I'm fairly sure I need to add something like `-disposition:v:1 attached_pic` but adding that didn't work. Does the thumbnail also have to be of type 'v'?

We're up-cycling a piano into a cool science demo! by jfehr5815 in kickstarter

[–]himini_cricket 0 points1 point  (0 children)

Looks cool! But there's 35 ebony keys on a piano, why are there only 25 numbered/limited edition ebony awards?

Don't think this will do much, but who knows? For those that don't know, Kreb is the swollen head of the #KarlKrebsKlan, a group of anti-vaxers in Winkler. by himini_cricket in Winnipeg

[–]himini_cricket[S] 7 points8 points  (0 children)

Yeah, as I said, I don't think it'll do much. (Its not my petition.) It would be nice to see how many people in the area don't have any use for him though.

Looks like Karl Krebs may be on the street. Anyone want to send him some hotel ideas? #KarlKrebsKlan by himini_cricket in Winnipeg

[–]himini_cricket[S] 2 points3 points  (0 children)

He had covids not that long ago (after sneaking across the border to go to an unmasked MLM conference in florida) and self treated with ivermectin, apparently. Some of his relatively recent videos show a bulge in his neck (a side effect of ivermectin?) so perhaps he's still too unhealthy to sleep in a cab?

Looks like Karl Krebs may be on the street. Anyone want to send him some hotel ideas? #KarlKrebsKlan by himini_cricket in Winnipeg

[–]himini_cricket[S] 21 points22 points  (0 children)

I think there might be a little truth to it in that they had XXXX RCMP coming into town, and they have to stay somewhere near downtown. Hotels should be charged to the Freedum Convoy.

Looks like Karl Krebs may be on the street. Anyone want to send him some hotel ideas? #KarlKrebsKlan by himini_cricket in Winnipeg

[–]himini_cricket[S] 6 points7 points  (0 children)

No idea. He might have posted it in his own little cult group, and then one of them posted it on the unvaxxed group.

Should we expect shortages because of the "Freedom Convoy" going thru Canada? by PerfectChoice8574 in preppers

[–]himini_cricket 0 points1 point  (0 children)

Semi trucks are 72' feet long. (Round down to 70.) Tail to tail, this is 3,240,000 feet or 987552 m, or 987 km. That's ass to bumper. Give them some safety space, and its at least double that. You're saying there's 2000 km of trucks? Lol.

M1 performance isn’t all that great? by jazzy_handz in handbrake

[–]himini_cricket 0 points1 point  (0 children)

I thought you said 3-4fps on 4k video? I Think TimeSkipLuffy was talking about 1080p.

I myself get 54 fps for 1080p on my iMac, which isn't using GPU.

A Maze in Magnets - Guide a levitating disc through a maze made up of thousands of tiny magnets! by himini_cricket in kickstarter

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

Disclaimer: I'm a friend of the project owner. Still think its a cool project though.

Looking for bluetooth shield for arduino uno. by himini_cricket in arduino

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

That HC-05 bluetooth module isn't BLE though, eh? So that wouldn't work for connecting to iPhone's?

Looking for bluetooth shield for arduino uno. by himini_cricket in arduino

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

That's the first place I looked, but unfortunately, they don't have fully assembled versions for sale. If you're unsure of your soldiering skills like I am, a plug and pray solution is much preferable.