VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. 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.
    Quote Quote  
  2. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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:

    Click image for larger version

Name:	ScreenHunter_140 May. 15 01.35.jpg
Views:	6758
Size:	87.0 KB
ID:	31687

    Generally to add NEW metadata:

    location : Rome, Italy
    camera type : SONY
    camera mode : movie
    weather : rain
    y

    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.html
    Last edited by Budman1; 15th May 2015 at 01:54.
    Quote Quote  
  3. Originally Posted by Budman1 View Post
    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:

    Image
    [Attachment 31687 - Click to enlarge]


    Generally to add NEW metadata:

    location : Rome, Italy
    camera type : SONY
    camera mode : movie
    weather : rain
    y

    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.html

    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.
    Quote Quote  
  4. Originally Posted by Budman1 View Post
    Generally to add NEW metadata:
    location : Rome, Italy
    camera type : SONY
    camera mode : movie
    weather : rain
    y
    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.html
    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
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  6. Originally Posted by zing269 View Post
    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.
    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?
    Quote Quote  
  7. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    As I mentioned earlier, many answers are at the site http://ffmpeg.org/ffmpeg.html
    Read all the Metadata sections. Good Information
    Quote Quote  
  8. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    As I mentioned earlier, many answers are at the site http://ffmpeg.org/ffmpeg.html
    Read all the Metadata sections. Good Information
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!