this post was submitted on 31 Dec 2023
34 points (90.5% liked)

Linux

48062 readers
699 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

hi all, ive tried using shotcut and kdenlive but the outputted file ends up being huge. i have a single image and want to put audio on top (releasing a song) but these programs end up making video files where they render the same image on each frame and the files end up being huge. what is the best way to achieve my use case of making a single photo music 'video' that doesnt degrade the quality of the image and can be posted to youtube?

tl;dr: need a still image video (image is lossless) where rhe imsge isnt reduplicared and has audio

top 11 comments
sorted by: hot top controversial new old
[–] gray@pawb.social 16 points 10 months ago (2 children)
[–] luthis@lemmy.nz 21 points 10 months ago

The answer is always ffmpeg

[–] jackpot@lemmy.ml 2 points 10 months ago

im confused sorry, i tried the libx265 codec but the image still has blurry edges??

[–] haroldstork@lemm.ee 7 points 10 months ago

This might depend on where you’re uploading/how you’re playing this file, but you could add a thumbnail to the audio file? I know that vlc and mpv will play your audio file and show the thumbnail, but I’m not sure if YouTube would take that. Not sure if this is exactly what you’re looking for but it is pretty efficient.

[–] hinterlufer@lemmy.world 6 points 10 months ago

In kdenlive, the following settings work well for me (you can transfer the options to ffmpeg cli as well if you prefer that):

f=matroska movflags=+faststart vcodec=libx264 tune=stillimage progressive=1 g=1000 bf=2 crf=%quality acodec=flac ar=48000

For reference, I get a 3.7 GB video with a duration of over 5 h @4k resolution. The audio itself is already 3.7 GB and it's just a still image. For CRF, set something around 23, that should do.

[–] turkalino@lemmy.yachts 5 points 10 months ago (1 children)

Are you sure your rendering settings are correct? It sounds like the video isn't being encoded at all. Video encoding works by storing a frame in full quality every couple seconds or so. For the rest of the frames, only their differences from the previous full-quality frame are stored. But from what you describe, it sounds like the latter sentence isn't happening

[–] jackpot@lemmy.ml 2 points 10 months ago

oh i didnt think this is how it worked, i ended up using ffmpeg to make a one frame a second video but it still looks blurry??

[–] andrew_bidlaw@sh.itjust.works 4 points 10 months ago* (last edited 10 months ago)

Can you intentionally set various bitrate (VBR) with a big difference, like from 16mbps max to 1mbps min? Constant bitrate can be your problem. Premiere had this on media export menu, I can't remember where others have this. And, if you want to upload it to youtube, see what size it has on a private upload by downloading it - they reencode every video themselves to their uniform standard, so maybe you don't even need to bother with that.

[–] bbbhltz@beehaw.org 3 points 10 months ago

Recommended YT settings might be helpful here.

What command have you been using?

[–] jws_shadotak@sh.itjust.works 1 points 10 months ago (1 children)

Are you able to add it through the file properties menu?

[–] jackpot@lemmy.ml 1 points 10 months ago* (last edited 10 months ago)

probably? would that be able to be sent to people / uploaded? how do i do this? linux mint btw