Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th March 2015, 14:36   #1  |  Link
cool_snoopy
Registered User
 
Join Date: Feb 2013
Posts: 12
How to set audio track title in mp4 with ffmpeg

I used the following command
ffmpeg -i INPUT -c copy -metadata:s:a:0 title="name" OUTPUT.mp4
It didn't work
And I tried another command
ffmpeg -i VIDEO -i AUDIO -c:v copy -c:a copy -metadata:s:a:0 title="name" OUTPUT.mp4
It didn't workd either
But I tried to set audio track language
ffmpeg -i INPUT -c copy -metadata:s:a:0 language=jpn OUTPUT.mp4
It worked.
And if I used megui to mux and set audio track title, it worked
Is it possible to set audio track title in mp4 with ffmpeg?

Last edited by cool_snoopy; 16th March 2015 at 15:15.
cool_snoopy is offline   Reply With Quote
Old 22nd March 2015, 12:30   #2  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
Quote:
Originally Posted by CoRoNe View Post
I may be wrong, but I've got a hunch the MP4-container doesn't support stream titles.
Code:
ffmpeg.exe -i in.mkv -c copy out.mp4
...copies file-title and language-tag, but NOT stream-title (although ffmpeg tells you otherwise). MediaInfo and MPC-HC(LAV) don't show you any stream-titles. Not even when specifying manually:
Code:
ffmpeg.exe -i in.mkv -c copy -metadata:s:0 title="video stream" -metadata:s:1 title="audio stream" out.mp4
A quote from 17 months ago, but if you've tested it with a recent ffmpeg version, I guess this still doesn't work.
__________________
My hobby website
Reino is offline   Reply With Quote
Old 23rd March 2015, 17:00   #3  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Try this...

Code:
ffmpeg -i input -c copy -metadata:s:a handler="Name of my Stream" output.mp4

Last edited by Kurtnoise; 23rd March 2015 at 17:04.
Kurtnoise is offline   Reply With Quote
Old 23rd March 2015, 18:55   #4  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
Undocumentend commands... great! Thanks though, Kurtnoise. It works.
__________________
My hobby website
Reino is offline   Reply With Quote
Old 23rd March 2015, 19:11   #5  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,344
Its not exactly undocumented, the problem is that mp4 doesn't have a "title" metadata .. so people abuse "handler" for that (both players and encoders equally, mine included)
Its more of a missing feature in mp4 than an undocumented feature of ffmpeg.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 23rd March 2015 at 19:13.
nevcairiel is offline   Reply With Quote
Reply

Tags
ffmpeg, metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.