VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Can we Use Different Titles when batch encoding MKVs....
    Either using Wildcards, Variables or Filenames....

    I use Staxrip to convert batch MKVs and I can create a template by giving a specific Title for MKV file... But then the same title applied to all files that uses the template....

    Can we set it to use the file name in each file.... or similar solution?
    Are there any MKVMerge switches to set titles from file names or ....
    .
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Maybe with a windows bat file.

    What is the command to add the title in the mkvmerge?

    Then you run a for loop for all files and add the filename as title.
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Example batch

    Make a title.bat text file in same folder as your mkvs. Make a folder newfiles in same folder.

    Put this in title.bat
    Code:
    for %%a in ("*.mkv") do "c:\mkvtoolnix\mkvmerge.exe" -o "newfiles\%%a" --title '%%~na' "%%a"
    pause
    Change the mkvtoolnix folder to your mkvmerge.exe location.

    Then double click on the bat file. It should then set the title to the filename without the extension(mkv).


    See also https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-with-ffmpeg for more batch examples.
    Last edited by Baldrick; 14th Jun 2014 at 05:37.
    Quote Quote  
  4. Originally Posted by Baldrick View Post
    Example batch

    Make a title.bat text file in same folder as your mkvs. Make a folder newfiles in same folder.

    Put this in title.bat
    Code:
    for %%a in ("*.mkv") do "c:\mkvtoolnix\mkvmerge.exe" -o "newfiles\%%a" --title '%%~na' "%%a"
    pause
    See also https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-with-ffmpeg for more batch examples.
    does this work with unicode file names? (with cyrillic, greek, japanese, chinese characters etc.)
    Quote Quote  
  5. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I have no idea. Try with one mkv and see if it works.
    Quote Quote  
  6. well hello hello, it works.

    tried it on "Yngwie Malmsteen and Björk - One Night Only.mkv"

    Code:
    for %%a in ("*.mkv") do %ffmpeg% -threads 0 -y  -i "%%a" -c:v copy -c:a copy -metadata title="%%~na" "%%~na_WithTitle.mp4"
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!