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 > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th August 2014, 19:50   #1  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
mp4v2 r504 win32 build with patch for more itags

Figured I'd share this since I had a hard time finding Windows binaries of mp4v2. I built the latest repository revision (504) and added a patch (more info) that includes a greater number of tags that can be added with the mp4tags binary (e.g. actors, directors, rating, etc.).

Code:
usage d:\apps\mp4v2\mp4tags.exe OPTION... FILE...
Adds or modifies iTunes-compatible tags on MP4 files.

      -help            Display this help text and exit
      -version         Display version information and exit
  -A, -album       STR  Set the album title
  -a, -artist      STR  Set the artist information
  -b, -tempo       NUM  Set the tempo (beats per minute)
  -c, -comment     STR  Set a general comment
  -C, -copyright   STR  Set the copyright information
  -d, -disk        NUM  Set the disk number
  -D, -disks       NUM  Set the number of disks
  -e, -encodedby   STR  Set the name of the person or company who encoded the file
  -E, -tool        STR  Set the software used for encoding
  -g, -genre       STR  Set the genre name
  -G, -grouping    STR  Set the grouping name
  -H, -hdvideo     NUM  Set the HD flag (1\0)
  -i, -type        STR  Set the Media Type("Movie", "TV Show", "Music Video", ...)
  -I, -contentid   NUM  Set the content ID
  -j, -genreid     NUM  Set the genre ID
  -l, -longdesc    NUM  Set the long description
  -L, -lyrics      NUM  Set the lyrics
  -m, -description STR  Set the short description
  -M, -episode     NUM  Set the episode number
  -n, -season      NUM  Set the season number
  -N, -network     STR  Set the TV network
  -o, -episodeid   STR  Set the TV episode ID
  -p, -playlistid  NUM  Set the playlist ID
  -P, -picture     PTH  Set the picture as a .png
  -B, -podcast     NUM  Set the podcast flag.
  -R, -albumartist STR  Set the album artist
  -s, -song        STR  Set the title of the song, movie, tv show,...
  -S  -show        STR  Set the TV show
  -t, -track       NUM  Set the track number
  -T, -tracks      NUM  Set the number of tracks
  -x, -xid         STR  Set the globally-unique xid (vendor:scheme:id)
  -w, -writer      STR  Set the composer information
  -y, -year        NUM  Set the release date
  -z, -artistid    NUM  Set the artist ID
  -Z, -composerid  NUM  Set the composer ID
  -W, -cast        STR  Set the cast|actors tag (AppleTV)
  -F, -director    STR  Set the director tag (AppleTV)
  -J, -codirector  STR  Set the codirector tag (AppleTV)
  -K, -producers   STR  Set the producers tag (AppleTV)
  -O, -swriters    STR  Set the screen writers tag (AppleTV)
  -Q, -copywarning STR  Add copy warning (AppleTV)
  -U, -studio      STR  Add film studio (AppleTV)
  -Y, -rating      STR  Add film ratings (AppleTV)
  -V  -rannotation STR  Add rating annotation to the ratings, ie rated r for violence
  -X  -crating     STR  Add content rating tag. "Inoffensive", "Clean", "Explicit"
  -r, -remove      STR  Remove tags by code (e.g. "-r cs"
                        removes the comment and song tags)

An example that first uses mp4box to mux and then tags and touches up the file for optimal support on Apple devices

Code:
"c:\Program Files\GPAC\mp4box.exe" -add "video.264:fps=23.976:delay=0:lang=en:name=H.264 AVC" \
  -add "audio.m4a:group=1:delay=0:lang=en:name=AAC Dolby Pro Logic II" \
  -add "audio.ac3:group=1:delay=0:lang=en:disable:name=AC3 Dolby Digital 5.1" \
  -add "subtitles.srt:hdlr=sbtl:group=2:layer=-1:delay=0:lang=en:disable:name=English" \
  -add "chapters.txt:chap" -ipod -new "output.m4v"
"d:\apps\mp4v2\mp4chaps.exe" --convert --chapter-qt output.m4v
"d:\apps\mp4v2\mp4tags.exe" -s "Terminator 2: Judgement Day" -hdvideo 2 -type "Movie" \
  -year "1991" -genre "Sci-Fi" -rating "R" -studio "TriStar Pictures" -director "James Cameron" \
  -cast "Arnold Schwarzenegger, Linda Hamilton, Robert Patrick, Edward Furlong" \
  -description "A cyborg, identical to the one who failed to kill Sarah Connor, must now protect \
  her teenage son, John, from a more advanced cyborg, made out of liquid metal." output.m4v
"d:\apps\mp4v2\mp4art.exe" --add cover.jpg output.m4v
"d:\apps\mp4v2\mp4file.exe" --optimize output.m4v
Attached Files
File Type: 7z mp4v2-r504-win32.7z (198.9 KB, 1522 views)

Last edited by bennynihon; 14th August 2014 at 04:10.
bennynihon is offline   Reply With Quote
Old 13th August 2014, 20:12   #2  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 942
fixed, thanks. This should be fun

And thanks for the examples. It's been awhile since I've MP4'ed anything.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)

Last edited by Sparktank; 13th August 2014 at 20:43.
Sparktank is offline   Reply With Quote
Old 13th August 2014, 20:33   #3  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by Sparktank View Post
On Pale Moon (x64) and getting an error:
sorry about that. Was directly linking to the file I had uploaded on the code.google page. Just fixed to a different link now
bennynihon is offline   Reply With Quote
Old 13th August 2014, 20:33   #4  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,481
First of all, thanks for the binaries

Secondly, Google sucks at file-sharing, please stop using it

Last edited by Midzuki; 13th August 2014 at 21:42.
Midzuki is offline   Reply With Quote
Old 13th August 2014, 21:42   #5  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,481
I take my thanks back

Code:
The system cannot execute the specified program
Midzuki is offline   Reply With Quote
Old 13th August 2014, 23:23   #6  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by Midzuki View Post
I take my thanks back

Code:
The system cannot execute the specified program
which one? They all run just fine here. These are command line Windows executables.

I just re-downloaded the files from the link I supplied above and they run just fine. Must be an error on your end. I'd try downloading them again and running them from a Windows command prompt.

Last edited by bennynihon; 13th August 2014 at 23:27.
bennynihon is offline   Reply With Quote
Old 13th August 2014, 23:44   #7  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,481
Quote:
Must be an error on your end


Of course I know they are CLI applications.

And none of them work over here.

According to the hex editor, it seems you have compiled DEBUG BUILDS,
which require non-redistributable runtime DLLs.

EDIT: definitely,

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>
Seriously, people should learn to avoid Visual Studio if the goal is produce command-line programs.

Last edited by Midzuki; 14th August 2014 at 00:05.
Midzuki is offline   Reply With Quote
Old 14th August 2014, 00:07   #8  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by Midzuki View Post


Of course I know they are CLI applications.

And none of them work over here.

According to the hex editor, it seems you have compiled DEBUG BUILDS,
which require non-redistributable runtime DLLs.

EDIT: definitely,

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>
Seriously, people should learn to avoid Visual Studio if the goal is produce command-line programs.
Good catch. I was using the source code and VS project file distributed with the source code. Let me get the dependencies for you
bennynihon is offline   Reply With Quote
Old 14th August 2014, 00:53   #9  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,481
Quote:
Originally Posted by bennynihon View Post
Good catch. I was using the source code and VS project file distributed with the source code. Let me get the dependencies for you
I suggest a better approach:

a) share your patch &&

b) try to make the source-code compilable with a recent edition of GCC (4.7.x or higher) OR

c) build something that DOESN'T require any runtime-file besides the old msvcrt.dll itself.
Midzuki is offline   Reply With Quote
Old 14th August 2014, 02:06   #10  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by Midzuki View Post
I suggest a better approach:

a) share your patch &&

b) try to make the source-code compilable with a recent edition of GCC (4.7.x or higher) OR

c) build something that DOESN'T require any runtime-file besides the old msvcrt.dll itself.
d) none of the above.

Link is updated in first post
bennynihon is offline   Reply With Quote
Old 14th August 2014, 03:08   #11  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,481
Hummm, the new builds work as they should *THUMBS UP*

Quote:
Originally Posted by bennynihon View Post
d) none of the above.
Well, that sucks

Anyway... the new binaries lost a lot of bloat , and now
they fit nicely on a 198kB 7z archive I.O.W., you can attach them to this topic

Last edited by Midzuki; 14th August 2014 at 03:30.
Midzuki is offline   Reply With Quote
Old 14th August 2014, 04:02   #12  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by Midzuki View Post
Hummm, the new builds work as they should *THUMBS UP*



Well, that sucks

Anyway... the new binaries lost a lot of bloat , and now
they fit nicely on a 198kB 7z archive I.O.W., you can attach them to this topic
They sure did! Like you I'm not a fan of Visual Studio, hence the reason for the bad first batch. Haven't used VS in probably more than a decade. I just wanted to build it as quickly as possible, and since the source included the VS project files I figured that's the most straight forward. Thanks for discovering the issue earlier.
bennynihon is offline   Reply With Quote
Reply

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 04:09.


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