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, 13: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 14:15.
cool_snoopy is offline   Reply With Quote
Old 22nd March 2015, 11:30   #2  |  Link
CoRoNe
Registered User
 
CoRoNe's Avatar
 
Join Date: Nov 2005
Posts: 648
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
CoRoNe is offline   Reply With Quote
Old 23rd March 2015, 16:00   #3  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,183
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 16:04.
Kurtnoise is offline   Reply With Quote
Old 23rd March 2015, 17:55   #4  |  Link
CoRoNe
Registered User
 
CoRoNe's Avatar
 
Join Date: Nov 2005
Posts: 648
Undocumentend commands... great! Thanks though, Kurtnoise. It works.
__________________
My hobby website
CoRoNe is offline   Reply With Quote
Old 23rd March 2015, 18:11   #5  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,736
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 18: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 00:25.


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