|
|
| gvp |
| Posted: Feb 22 2014, 02:19 PM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 37732
Joined: 21-February 14

|
Is there any vbprof script to export a video file to x264 video. AC3 audio. MKV container ?
Thank you ... |
 |
| raffriff42 |
| Posted: Feb 22 2014, 04:17 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12

|
Here is a .vdprof, adapted from https://frapsforum.com/threads/virtualdub-s...ge-2#post-13731 | QUOTE | Note: tested with ffmpeg version N-54036-g6c4516d (Jun 15 2013) Windows build from zeranoe.com |
Assumes ffpmeg.exe is in C:\ffmpeg\bin; if this is not correct, you will have to edit the encoders to the correct path.
Not tested (never muxed to mkv before), but I'm pretty sure it will work...
ffmpeg-mkv.vdprof EDIT: deleted, did not work; scroll down for new version
This post has been edited by raffriff42 on Feb 22 2014, 10:06 PM |
 |
| gvp |
| Posted: Feb 22 2014, 06:57 PM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 37732
Joined: 21-February 14

|
tried it but -> Error: CLI: The multiplexing process failed with error code 1 (00000001) any idea why "Requested output format 'mkv' is not a suitable output format" ?
mkvmerge maybe ?
| CODE | [*] Beginning dub operation.
... ... ...
[i] Mux: Stream #1:0: Audio: ac3, 22050 Hz, stereo, fltp, 192 kb/s
[i] Mux: [NULL @ 04d74600] Requested output format 'mkv' is not a suitable output format
[i] Mux: aaaaa.mkv: Invalid argument
[E] Error: CLI: The multiplexing process failed with error code 1 (00000001). Check the log for possible error messages.
[*] Ending operation.
| |
 |
| -vdub- |
| Posted: Feb 22 2014, 09:53 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
. |
 |
| raffriff42 |
| Posted: Feb 22 2014, 09:55 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12

|
Should have tested it I guess! Short answer, ffmpeg does not seem to be compiled with MKV muxing enabled AKAICT. So yes, the answer is mkvmerge, which turns out to be quite easy to use. Here's the command line for VirtualDub's config dialog: | CODE | | -v -o "%(outputname)" "%(tempvideofile)" "%(tempaudiofile)" | (Note, search your hard drive for mkvmerge.exe; no need to download it if you have MeGUI or FFCoder or StaxRip or RipBot264 etc)
Here's my new set. Hope this one works for you (yes I tested it this time). | CODE | { "description": "VirtualDub external encoder profile collection", "externalEncoders": { "sets": { "mkv ff x264+ac3": { "videoEncoder": "V ff 264 r18", "audioEncoder": "A ff ac3 192k", "multiplexer": "M mkvmerge", "description": "mkv", "extension": "mkv", "processPartial": true, "useOutputAsTemp": false } }, "profiles": { "V ff 264 r18": { "name": "V ff 264 r18", "program": "C:\\ffmpeg\\bin\\ffmpeg.exe", "commandArguments": "-f rawvideo -s %(width)x%(height) -r %(fps) -i - -vcodec libx264 -crf 18 -preset veryfast -x264opts colormatrix=bt709 \"%(tempvideofile)\"", "outputFilename": "video.mkv", "type": 0, "inputFormat": 0, "checkReturnCode": true, "logStdout": true, "logStderr": true, "bypassCompression": false, "predeleteOutputFile": true }, "A ff ac3 192k": { "name": "A ff ac3 192k", "program": "C:\\ffmpeg\\bin\\ffmpeg.exe", "commandArguments": "-i - -vn -f ac3 -acodec ac3 -b:a 192k -ac 2 \"%(tempaudiofile)\"", "outputFilename": "%(outputname).ac3", "type": 1, "inputFormat": 1, "checkReturnCode": true, "logStdout": true, "logStderr": true, "bypassCompression": true, "predeleteOutputFile": true }, "M mkvmerge": { "name": "M mkvmerge", "program": "C:\\mkvmerge\\mkvmerge.exe", "commandArguments": "-v -o \"%(outputname)\" \"%(tempvideofile)\" \"%(tempaudiofile)\"", "outputFilename": "%(outputname).audio", "type": 2, "inputFormat": 0, "checkReturnCode": true, "logStdout": true, "logStderr": true, "bypassCompression": false, "predeleteOutputFile": false } } } }
|
This post has been edited by raffriff42 on Feb 22 2014, 10:13 PM |
 |
| -vdub- |
| Posted: Feb 22 2014, 10:47 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
| QUOTE (raffriff42 @ Feb 22 2014, 09:55 PM) | | Should have tested it I guess! Short answer, ffmpeg does not seem to be compiled with MKV muxing enabled AKAICT. So yes, the answer is mkvmerge, which turns out to be quite easy to use |
FFMpeg becomes less all singing dancing seems with each milestone and other releases. Would like to think this is all about fixing the background bugs. Then later bring back what was previously removed. FFMPeg is becoming less for reasons unknown, does anyone know !
Or maybe it is undergoing a major re-write now seeing many replacement commands for older commands. With those giving more control the -map command is not so well thought of though maybe with time will be easier to use |
 |
| dloneranger |
| Posted: Feb 22 2014, 10:56 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
Strange, I use ffmpeg all the time with ffmpeg stable and latest (dlls and cmdline) muxing to mkv's is fine here
I'd recommend that only the stable version's are used though eg ffmpeg-2.1.3-win32-static.7z If you look at the changelog you'll see that the rest are in a very unfinished state, with commits and reverts all over the place (I guess that's the downside of anyone and everyone contributing) http://git.videolan.org/?p=ffmpeg.git;a=shortlog
[edit] your script has vanished so I'll have to guess at the error -f mkv ?? it's -f matroska
that said I normally use mkvmerge as it doesn't complain if streams don't have timestamp info in them
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| raffriff42 |
| Posted: Feb 23 2014, 01:44 AM |
 |
|

Advanced Member
  
Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12

|
| QUOTE (dloneranger @ Feb 22 2014, 10:56 PM) | your script has vanished so I'll have to guess at the error -f mkv ?? it's -f matroska
| That was the error. You're a mind reader, dloneranger. Here's the corrected ffmpeg muxer: | CODE | { "description": "VirtualDub external encoder profile collection", "externalEncoders": { "profiles": { "M ff mkv": { "name": "M ff mkv", "program": "C:\\ffmpeg\\bin\\ffmpeg.exe", "commandArguments": "-i \"%(tempvideofile)\" -i \"%(tempaudiofile)\" -vcodec copy -acodec copy -f matroska \"%(outputname)\"", "outputFilename": "", "type": 2, "inputFormat": 0, "checkReturnCode": true, "logStdout": true, "logStderr": true, "bypassCompression": false, "predeleteOutputFile": true } } } }
| |
 |
| gvp |
| Posted: Feb 23 2014, 07:55 AM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 37732
Joined: 21-February 14

|
thank you all,
ffmpeg muxer works ... mkvmerge muxer works ... |
 |
| -vdub- |
| Posted: Feb 23 2014, 11:49 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
FFMpeg -f matroska automatically knows which container to place media streams into MKV, MK3D, MKA, MKS
We all know MKV more than Matroska maybe it makes sense for FFMpeg to automate streams to a correct Matroska container. What if we need to place a media stream in another Matroska container with FFMPeg we would need to force FFMpeg to do so.
Which one usually updates faster (stable release updates) for Matroska bugs fixing FFMpeg or MKVToolnix ? |
 |
|