Hello, I'm using a libopus enabled ffmpeg version on Kubuntu (Not that this should matter from what I've seen), and i'm interested in adding metadata (Such as Track Title/Artist) to my videos that I convert. How can I do this? I've seen the metadata usage and read the ffmpeg documentation, but I'm still uncertain. I'm currently using command similar to: ffmpeg -ss 00:00:24.0 -i 40.mp4 -t 00:01:20.0 -y -b:a 320k 40.opus for conversion to opus files. This gets me the .opus file (At a certain specified time), but I've never seen how to add metadata to it. The solution doesn't necessarily have to be ffmpeg based. I have opusenc installed as well, but as far as I know, it doesn't add opus metadata to an already existing opus file. Thanks! Sent with [ProtonMail](https://protonmail.com) Secure Email. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/opus/attachments/20180418/3094051a/attachment.html>
You can do so with ffmpeg, with the -metadata option. For example, simply set -metadata ALBUM=asdf before specifying the output file. ffmpeg should also copy any metadata that's in your mp4 file - if it doesn't, it's a ffmpeg bug. On 04/18/2018 06:47 AM, Sarah Szabo wrote:> Hello, > > I'm using a libopus enabled ffmpeg version on Kubuntu (Not that this > should matter from what I've seen), and i'm interested in adding > metadata (Such as Track Title/Artist) to my videos that I convert. How > can I do this? I've seen the metadata usage and read the ffmpeg > documentation, but I'm still uncertain. > > I'm currently using command similar to: ffmpeg -ss 00:00:24.0 -i 40.mp4 > -t 00:01:20.0 -y -b:a 320k 40.opus > > for conversion to opus files. > > > This gets me the .opus file (At a certain specified time), but I've > never seen how to add metadata to it. The solution doesn't necessarily > have to be ffmpeg based. I have opusenc installed as well, but as far as > I know, it doesn't add opus metadata to an already existing opus file. > > Thanks! > > > Sent with ProtonMail <https://protonmail.com> Secure Email. > > > > _______________________________________________ > opus mailing list > opus at xiph.org > http://lists.xiph.org/mailman/listinfo/opus >
ffmpeg should be able to add it with a second -i parameter containing the thumbnail, however I think coverart embedding was only added very recently and have not tried it myself. Make sure it doesn't generate a Theora track! Alternatively there is this tool: https://github.com/Martchus/tageditor On 04/18/2018 04:38 PM, Sarah Szabo wrote:> > Adding the title and author worked perfectly. > > What about setting the thumbnail? How would I do this, and does it have to be a 32x32 PNG? > > Thanks! > > Sent with ProtonMail Secure Email. > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On April 18, 2018 4:04 PM, Thomas Daede <tdaede at mozilla.com> wrote: > >> You can do so with ffmpeg, with the -metadata option. For example, >> >> simply set -metadata ALBUM=asdf before specifying the output file. >> >> ffmpeg should also copy any metadata that's in your mp4 file - if it >> >> doesn't, it's a ffmpeg bug. >> >> On 04/18/2018 06:47 AM, Sarah Szabo wrote: >> >>> Hello, >>> >>> I'm using a libopus enabled ffmpeg version on Kubuntu (Not that this >>> >>> should matter from what I've seen), and i'm interested in adding >>> >>> metadata (Such as Track Title/Artist) to my videos that I convert. How >>> >>> can I do this? I've seen the metadata usage and read the ffmpeg >>> >>> documentation, but I'm still uncertain. >>> >>> I'm currently using command similar to: ffmpeg -ss 00:00:24.0 -i 40.mp4 >>> >>> -t 00:01:20.0 -y -b:a 320k 40.opus >>> >>> for conversion to opus files. >>> >>> This gets me the .opus file (At a certain specified time), but I've >>> >>> never seen how to add metadata to it. The solution doesn't necessarily >>> >>> have to be ffmpeg based. I have opusenc installed as well, but as far as >>> >>> I know, it doesn't add opus metadata to an already existing opus file. >>> >>> Thanks! >>> >>> Sent with ProtonMail https://protonmail.com Secure Email. >>> >>> opus mailing list >>> >>> opus at xiph.org >>> >>> http://lists.xiph.org/mailman/listinfo/opus >> >> opus mailing list >> >> opus at xiph.org >> >> http://lists.xiph.org/mailman/listinfo/opus > >
Just realized I sent this direct to Thomas and not to the list, whoops. Bad gmail. -map_metadata is the command to automatically apply the first input's metadata to the output, along with many parameters to integrate multiple source's metadata. I wish it was default. An explicit -metadata will override any tag map_metadata produces. On Wed, Apr 18, 2018 at 1:12 PM Thomas Daede <tdaede at mozilla.com> wrote:> You can do so with ffmpeg, with the -metadata option. For example, > simply set -metadata ALBUM=asdf before specifying the output file. > > ffmpeg should also copy any metadata that's in your mp4 file - if it > doesn't, it's a ffmpeg bug. > _______________________________________________ > opus mailing list > opus at xiph.org > http://lists.xiph.org/mailman/listinfo/opus >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/opus/attachments/20180420/e363aec9/attachment.html>