I saw somebody use "-metadata:s:v:0" in their commandline for FFMPEG, rather than the much simpler "-metadata" commandline switch. In this context, what does :s, :v, and :0 mean? I was under the impression that the only valid selectors for commands were :a (for audio), :v (for video), and :d (for data, usually subtitles). I'm not familiar with how the selectors are being used in this metadata command.
+ Reply to Thread
Results 1 to 8 of 8
-
-
It is telling FFMPEG which metadata to use, in this case track 0 of the video. Bear in mind each file type has different allowable metadata designator:
Generally to add NEW metadata:
location : Rome, Italy
camera type : SONY
camera mode : movie
weather : rainy
In it's simplest form, we can use the command:
ffmpeg -i videoname.avi -metadata location="Rome, Italy" -metadata "camera type"="SONY" -metadata "camera mode"=movie -metadata weather="rainy" videoname.wmv
UPDATE: This page has tons of information on Metadata:
http://ffmpeg.org/ffmpeg.htmlLast edited by Budman1; 15th May 2015 at 01:54.
-
Ok, so I guess that :0 after the :v means the first video stream (if the MP4 file had multiple streams). My MP4 file has only one video stream, so :0 would be unnecessary for me. But what does the :s mean BEFORE the :v ? I don't need :s before the :v after -c (for codec selection), so what is the purpose of having :s before the :v after -metadata (for metadata selection. Please explain. -
Everything is fine gentlemen. You can waste time on trifles, which the player video then displays the information about the movie?
http://filmowiec.pl/forum/viewtopic.php?f=12&t=28371&hilit=pendrive&start=30 -
The :s part indicates which stream to use for or apply the metadata. Seems redundant since you also have the stream type selectors available. It probably just exists to make it easier for the code to handle complex -map_metadata options.
Last edited by zing269; 15th May 2015 at 07:59. Reason: fix emoticon
-
So :s must stand for stream then. So that must refer to metadata associated with streams. Are there also metadata that can be associated with something other than streams, such as the container file itself? If so, would you specify such metadata with with :c instead of :s? Is there some official FFMPEG manual that covers stuff like this?
-
As I mentioned earlier, many answers are at the site http://ffmpeg.org/ffmpeg.html
Read all the Metadata sections. Good Information -
As I mentioned earlier, many answers are at the site http://ffmpeg.org/ffmpeg.html
Read all the Metadata sections. Good Information
Similar Threads
-
ffmpeg CPU usage
By diprotic in forum Video ConversionReplies: 13Last Post: 19th Apr 2015, 14:40 -
ffmpeg/ffmbc metadata
By marcorocchini in forum Newbie / General discussionsReplies: 21Last Post: 16th May 2014, 18:54 -
FFMPEG writing metadata from another source
By marcorocchini in forum Newbie / General discussionsReplies: 24Last Post: 20th Apr 2014, 12:41 -
ffmpeg - Override/Set ISFT Metadata?
By Ruler2112 in forum Video ConversionReplies: 11Last Post: 27th Oct 2013, 03:01 -
Customized Version of FFMPEG for Professional Usage
By Soopafresh in forum EditingReplies: 28Last Post: 28th May 2011, 10:07