IPB

Welcome Guest ( Log In | Register )

30 Pages V   1 2 3 > »   
Reply to this topicStart new topic
Batch transcoding to HE-AAC-PS with this tool
optimus
post Sep 5 2005, 09:10
Post #1





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



Introduction
MediaCoder is a free universal audio/video batch transcoder, putting together lots of excellent audio/video codecs and tools from the open source community into an all-in-one solution, capable of transcoding among different audio/video formats with many extra features.


Links
Official website:
http://mediacoder.sourceforge.net/

Official forum:
http://forum.mediacoderhq.com

Project site:
http://sourceforge.net/projects/mediacoder

Update on Sept. 19, 2007:
MediaCoder Audio Edition is updated and can be freely downloaded from here. This edition is specially recommended for all the HA friends.



This post has been edited by optimus: Dec 19 2007, 08:03


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
Oki
post Sep 5 2005, 10:41
Post #2





Group: Members
Posts: 98
Joined: 20-July 05
From: Barcelona (Spain)
Member No.: 23436



Nice work, very friendly for transcoding.

Does it support HE-AAC (not HE-AAC v2) with a multichannel source?

Regards,
Oki
Go to the top of the page
+Quote Post
optimus
post Sep 5 2005, 10:43
Post #3





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



Sorry multichannel isn't supported yet.


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
Digisurfer
post Sep 6 2005, 04:22
Post #4





Group: Members
Posts: 371
Joined: 10-August 04
From: Canada
Member No.: 16174



Thanks, looks very promising. So it can transcode video as well? How about audio contained in video (I'm new to video btw). Anyways will play around with it when I get a chance. Have to format and reinstall Windows first (sigh). smile.gif

This post has been edited by Digisurfer: Sep 6 2005, 04:22
Go to the top of the page
+Quote Post
optimus
post Sep 6 2005, 04:43
Post #5





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



It can transcode video. Video transcoding is done by calling to mencoder, so u need mencoder binary placed in the executable directory.
It surely can transcode audio contained in video. As mplayer is used as the decoder, any formats mplayer supports (so many) can be transcoded.

btw: There is a silly bug in last version, that causes channel mode selection to be no effect. I've just corrected it and please download again.

QUOTE (Digisurfer @ Sep 6 2005, 11:22 AM)
Thanks, looks very promising. So it can transcode video as well? How about audio contained in video (I'm new to video btw). Anyways will play around with it when I get a chance. Have to format and reinstall Windows first (sigh). smile.gif
*


This post has been edited by optimus: Sep 6 2005, 04:46


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
kindofblue
post Sep 6 2005, 09:12
Post #6





Group: Members
Posts: 175
Joined: 16-January 03
Member No.: 4600



Hi Optimus. I have a question: Is it possible to an option to wrap the HE-AAC file into an MP4/M4A container via either MP4Box or MP4creator? So you can transcode to mp4 in one step? Might be worth a try.

cheers,
kindofblue


--------------------
WavPack 4.31 / LAME 3.98 alpha 3 -V9 -vbr-new
Go to the top of the page
+Quote Post
yourtallness
post Sep 6 2005, 17:05
Post #7





Group: Members
Posts: 488
Joined: 8-October 02
From: Vrilissia, Athens
Member No.: 3503



Any chance of including support for the LC AAC Winamp encoder?


--------------------
Wanna buy a monkey?
Go to the top of the page
+Quote Post
optimus
post Sep 7 2005, 04:18
Post #8





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



MP4Box is a console program isn't it? If so, it will not be difficult to integrate it. Could u provide me with some info on MP4Box (mainly about its command line usage)?

QUOTE (kindofblue @ Sep 6 2005, 04:12 PM)
Hi Optimus. I have a question: Is it possible to an option to wrap the HE-AAC file into an MP4/M4A container via either MP4Box or MP4creator? So you can transcode to mp4 in one step? Might be worth a try.


This post has been edited by optimus: Sep 7 2005, 04:27


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
optimus
post Sep 7 2005, 04:24
Post #9





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



It's very easy to support another winamp encoder, as they have the same interface. I will do it later.

p.s: you can already use MEnc do transcoding into LC AAC, by putting faac.exe in the executable directory, and choosing FAAC as encoder. FAAC can be downloaded here.

QUOTE (yourtallness @ Sep 7 2005, 12:05 AM)
Any chance of including support for the LC AAC Winamp encoder?
*


This post has been edited by optimus: Sep 7 2005, 04:25


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
guest0101
post Sep 7 2005, 06:47
Post #10





Group: Banned
Posts: 446
Joined: 15-July 03
Member No.: 7789



Does this utility support FLAC to AACPlus v2 encoding? I didn't see FLAC as a source file format for audio?
Go to the top of the page
+Quote Post
kindofblue
post Sep 7 2005, 07:00
Post #11





Group: Members
Posts: 175
Joined: 16-January 03
Member No.: 4600



QUOTE (optimus @ Sep 7 2005, 11:18 AM)
MP4Box is a console program isn't it? If so, it will not be difficult to integrate it. Could u provide me with some info on MP4Box (mainly about its command line usage)?


The general cmdline is:
CODE
MP4Box [option] input [option]


In Batchenc, I use:
CODE
mp4box -add <infile> -sbr <outfile.m4a>


From the DOS helpscreens:
CODE

MP4Box [option] input [option]

-h general: general options help
-h hint: hinting options help
-h import: import options help
-h encode: encode options help
-h meta: meta handling options help
-h extract: extraction options help
-h dump: dump options help
-h swf: Flash (SWF) options help
-h crypt: ISMA E&A options help
-h format: supported formats help

-nodes: lists supported MPEG4 nodes
-node NodeName: gets MPEG4 node syntax and QP info
-xnodes: lists supported X3D nodes
-xnode NodeName: gets X3D node syntax

-version: gets build version

General Options:
-inter time_in_ms interleaves file data (track chunks of time_in_ms)
* Note 1: Interleaving is 0.5s by default
* Note 2: a value of 0 disables interleaving
-flat stores file with all media data first, non-interleaved
-frag time_in_ms fragments file (track fragments of time_in_ms)
* Note: Always disables interleaving
-out filename specifies output file name
* Note: By default input (MP4,3GP) file is overwritten
-tmp dirname specifies directory for temporary file creation
* Note: Default temp dir is OS-dependent
-nosys removes all MPEG-4 Systems info except IOD (profiles)
* Note: Set by default whith '-add' and '-cat'
-isma rewrites the file as an ISMA 1.0 AV file
-ismax same as '-isma' and removes all clock references
-3gp rewrites as 3GPP(2) file (no more MPEG-4 Systems Info)
* Note 1: some tracks may be removed in the process
* Note 2: always on for *.3gp *.3g2 *.3gpp
-brand ABCD sets major brand of file
-ab ABCD adds given brand to file's alternate brand list
-rb ABCD removes given brand from file's alternate brand list
-cprt string adds copyright string to movie
-chap file adds chapter information contained in file
-rem trackID: removes track from file
-new: forces creation of a new destination file
-rem trackID: removes track from file
-lang [tkID=]LAN: sets track language. LAN is the ISO 639-2 code (eng, und)
-delay tkID=TIME: sets track start delay in ms.
-split time_sec splits in files of time_sec max duration
* Note: this removes all MPEG-4 Systems media
-splits filesize splits in files of max filesize kB.
* Note: this removes all MPEG-4 Systems media
-splitx start:end extracts a new file from start to end (in seconds)
* Note: this removes all MPEG-4 Systems media


Hinting Options
-hint: hints the file for RTP/RTSP
-mtu size: specifies MTU size in bytes. Default size is 1500
-copy: copies media data to hint track rather than reference
* Note: speeds up server but takes much more space
-tight: performs tight interleaving (sample based) of hinted file
* Note: reduces server disk seek but increases file size
-multi [maxptime]: enables frame concatenation in RTP packets if possible
maxptime: max packet duration in ms (optional, default 100ms)
-rate ck_rate: specifies rtp rate in Hz when no default for payload
* Note: default value is 90000 (MPEG rtp rates)
-mpeg4: forces MPEG-4 generic payload whenever possible
-latm: forces MPG4-LATM transport for AAC streams
-static: enables static RTP payload IDs whenever possible
* By default, dynamic payloads are always used

MPEG-4 Generic Payload Options
-ocr: forces all streams to be synchronized
* Most RTSP servers only support synchronized streams
-rap: signals random access points in RTP packets
-ts: signals AU Time Stamps in RTP packets
-size: signals AU size in RTP packets
-idx: signals AU sequence numbers in RTP packets
-iod: prevents systems tracks embedding in IOD
* Note: shouldn't be used with -isma option

-sdp_ex string: adds sdp string to (hint) track ("-sdp_ex tkID:string")
or movie. This will take care of SDP lines ordering
* WARNING: You cannot add anything to SDP, cf rfc2327.
-unhint: removes all hinting information.

Suppported raw formats and file extensions:
NHNT .media .nhnt .info
MPEG Audio .mp3
ADTS-AAC .aac
MPEG-4 Visual .cmp .m4v
H263 Video .263 .h263
AVC/H264 Video .h264 .h26L .264 .26L
JPEG Images .jpg .jpeg
PNG Images .png
AMR(WB) Audio .amr .awb
EVRC Audio .evc
SMV Audio .smv

Supported containers and file extensions:
AVI .avi
MPEG-PS .mpg .mpeg .vob .vcd .svcd
QCP .qcp
OGG .ogg
ISO-Media files no extension checking

Supported text formats:
SRT Subtitles .srt
SUB Subtitles .sub
GPAC Timed Text .ttxt
QuickTime TeXML Text .xml (cf QT documentation)

Supported Scene formats:
MPEG-4 XMT-A .xmt .xmta .xmt.gz .xmta.gz
MPEG-4 BT .bt .bt.gz
VRML .wrl .wrl.gz
X3D-XML .x3d .x3d.gz
X3D-VRML .x3dv .x3dv.gz
MacroMedia Flash .swf (very limitted import support only)


MPEG-4 Scene Encoding Options
-mp4: specify input file is for encoding.
-def: encode DEF names
-sync time_in_ms: forces BIFS sync sample generation every time_in_ms
* Note: cannot be used with -shadow
-shadow time_ms: forces BIFS sync shadow sample generation every time_ms.
* Note: cannot be used with -sync
-log: generates BIFS encoder log file
-ms file: specifies file for track importing

Chunk Processing
-inctx file: specifies initial context (MP4/BT/XMT)
* Note: input file must be a commands-only file
-outctx: specifies storage of updated context (MP4/BT/XMT)


Meta handling Options
-set-meta args: sets given meta type - syntax: "ABCD[:tk=ID]"
* ABCD: four char meta type (NULL or 0 to remove meta)
* [:tk=ID]: if not set use root (file) meta
if ID is 0 use moov meta
if ID is not 0 use track meta
-add-item args: adds resource to meta
* syntax: file_path + options (':' separated):
tk=ID: meta adressing (file, moov, track)
name=str: item name
mime=mtype: item mime type
encoding=enctype: item content-encoding type
* file_path "this" or "self": item is the file itself
-rem-item args: removes resource from meta - syntax: item_ID[:tk=ID]
-set-primary args: sets item as primary for meta - syntax: item_ID[:tk=ID]
-set-xml args: sets meta XML data
* syntax: xml_file_path[:tk=ID][:binary]
-rem-xml [tk=ID]: removes meta XML data
-dump-xml args: dumps meta XML to file - syntax file_path[:tk=ID]
-dump-item args: dumps item to file - syntax item_ID[:tk=ID][:path=fileName]


Extracting Options
-raw TrackID: extracts track in raw format when supported
-raws TrackID: extract each track sample to a file
* Note: "TrackID:N" extracts Nth sample
-nhnt TrackID: extracts track in nhnt format
-single TrackID: extracts track to a new mp4 file
-avi TrackID: extracts visual track to an avi file
-qcp TrackID: same as '-raw' but defaults to QCP file for EVRC/SMV
-aviraw TK: extracts AVI track in raw format
$TK can be one of "video" "audio" "audioN"


Importing Options

File importing syntax:
"#video" "#audio": base import for most AV files
"#trackID=ID": track import for IsoMedia and other files
":dur=D": imports only the first D seconds
":lang=LAN": sets imported media language code
":delay=delay_ms": sets imported media initial delay in ms

-add file: add file tracks to (new) output file
-cat file: concatenates file samples to (new) output file
* Note: creates tracks if needed
-keepsys: keeps all MPEG-4 Systems info when using '-add' / 'cat'

All the following options can be specified as default or for each track.
When specified by track the syntax is ":opt" or ":opt=val".

-dref: keeps media data in original file
-nodrop: forces constant FPS when importing AVI video
-packed: forces packed bitstream when importing raw ASP
-sbr: backward compatible signaling of AAC-SBR
-sbrx: non-backward compatible signaling of AAC-SBR
* Note: SBR AAC cannot be detected at import time
-fps FPS: forces frame rate for video and SUB subtitles import
* For raw H263 import, default FPS is 15
* For all other imports, default FPS is 25
-mpeg4: forces MPEG-4 sample descriptions when possible (3GPP2)
-agg N: aggregates N audio frames in 1 sample (3GP media only)
* Note: Maximum value is 15 - Disabled by default


--------------------
WavPack 4.31 / LAME 3.98 alpha 3 -V9 -vbr-new
Go to the top of the page
+Quote Post
optimus
post Sep 7 2005, 15:20
Post #12





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



Just integrated Helix Producer support in MEnc. The screenshot:

Download it here.
This includes:
MEnc executable
MPlayer (latest CVS version)
Helix Producer (stripped for audio encoding only and added aacplus audience files)
Winamp AAC+V2 encoder
Lame MP3 encoder (latest CVS version)

This post has been edited by optimus: Apr 2 2007, 14:20


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
optimus
post Sep 7 2005, 15:30
Post #13





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



FLAC is supported by the CVS version of MPlayer. I've just re-compiled a latest and full MPlayer binary and included in the package. You may download it and try it out.

QUOTE (guest0101 @ Sep 7 2005, 01:47 PM)
Does this utility support FLAC to AACPlus v2 encoding? I didn't see FLAC as a source file format for audio?
*


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
optimus
post Sep 8 2005, 03:17
Post #14





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



I just found that MP4Box will remove PS part from AAC. The resulting MP4 will be detected as HE-AAC without PS (by foobar2000).

QUOTE (kindofblue @ Sep 7 2005, 02:00 PM)
The general cmdline is:
CODE
MP4Box [option] input [option]


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
M
post Sep 8 2005, 03:56
Post #15





Group: Members
Posts: 964
Joined: 29-December 01
Member No.: 830



optimus, you've put together a nice GUI. I've assembled a small wish-list of things that would make my own encodes easier, and I thought I would mention them here on the off chance some of them might sound good to you, too.

1) Is there any chance you could implement drag-and-drop? It would be nice to be able to select a group of files/directories in the explorer, and simply add them to Menc.

2) What about an option to encode a group of files as a single track, with chapters? (Or even a way to encode a WAV/Cue sheet pair, so that the CD-Text was transferred to appropriate indices?) Might be wishful thinking, but it would be nice. smile.gif

3) Currently when transcoding from a FLAC file, if there is silence at the end of the file, it will be truncated in the resultant AAC. When transcoding from WAV the actual length of the original audio is preserved. Would it be possible to optionally include the appropriate amount of silence when transcoding from FLAC?

4) The method used by the AudioCoding.com "in_mp4" Winamp plugin - hosted at RareWares - for converting AAC to MP4/M4A seems to preserve PS data. (At least, TCPMP on my cell phone still recognizes and plays the PS content!) Perhaps, since you are using a Winamp plugin for the actual encode, you could pair that with the AudioCoding plugin to accomplish conversion/tagging?

Just thoughts....

- M.
Go to the top of the page
+Quote Post
kindofblue
post Sep 8 2005, 04:02
Post #16





Group: Members
Posts: 175
Joined: 16-January 03
Member No.: 4600



QUOTE (optimus @ Sep 8 2005, 10:17 AM)
I just found that MP4Box will remove PS part from AAC. The resulting MP4 will be detected as HE-AAC without PS (by foobar2000).

QUOTE (kindofblue @ Sep 7 2005, 02:00 PM)
The general cmdline is:
CODE
MP4Box [option] input [option]

*



Hmm. Didn't notice that. I guess Helix is a better way to go with aacplus then. I assume the included Helix producer has the modified racp.dll for 32-48kbps encoding? (The screenshot shows a 128kbps encode.)

EDIT: Defsac's post in here describes how you can use foo_mpeg4u to wrap the aac stream in mp4. It shows up correctly as HE-AAC PS in foobar2000 0.9b8 but not in 0.8.3 (which reports the file as LC-AAC. The problem is the file doesn't play in iTunes, if that's a consideration. (it is for me.) I can play Helix AACplus files in iTunes.

This post has been edited by kindofblue: Sep 8 2005, 04:23


--------------------
WavPack 4.31 / LAME 3.98 alpha 3 -V9 -vbr-new
Go to the top of the page
+Quote Post
Duble0Syx
post Sep 8 2005, 05:08
Post #17





Group: Members
Posts: 465
Joined: 2-May 04
Member No.: 13847



I'd like to add a vote for drap & drop as well. Would make things a lot easier. So far this tool is becoming quite useful, especially now that transcoding from FLAC works. smile.gif
Go to the top of the page
+Quote Post
M
post Sep 8 2005, 12:34
Post #18





Group: Members
Posts: 964
Joined: 29-December 01
Member No.: 830



QUOTE (kindofblue @ Sep 7 2005, 10:02 PM)
I can play Helix AACplus files in iTunes.
*

When you do, does iTunes play the HE portion of the file, or only the LC portion? And are you using PS at all?

- M.
Go to the top of the page
+Quote Post
aguacaliente
post Sep 8 2005, 14:30
Post #19





Group: Members
Posts: 25
Joined: 3-November 03
Member No.: 9629



Thanks for the tool. Another request here for drag & drop. Also, any chance of adding wavpack support?
Go to the top of the page
+Quote Post
optimus
post Sep 9 2005, 02:55
Post #20





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



QUOTE (M @ Sep 8 2005, 10:56 AM)
  1) Is there any chance you could implement drag-and-drop? It would be nice to be able to select a group of files/directories in the explorer, and simply add them to Menc.


I would like to implement drag-and-drop. But I wrote this program totally with SDK and up to now I still don't know how to do drag-and-drop with SDK. Anyway, I have enabled multi-file selection with "Add File", this may help a bit.

QUOTE
  2) What about an option to encode a group of files as a single track, with chapters? (Or even a way to encode a WAV/Cue sheet pair, so that the CD-Text was transferred to appropriate indices?) Might be wishful thinking, but it would be nice. smile.gif


Encoding into a single track should be easy to implement. I will do it later.

QUOTE
  3) Currently when transcoding from a FLAC file, if there is silence at the end of the file, it will be truncated in the resultant AAC. When transcoding from WAV the actual length of the original audio is preserved. Would it be possible to optionally include the appropriate amount of silence when transcoding from FLAC?


This issue should refer to MPlayer's document on FLAC.

QUOTE
  4) The method used by the AudioCoding.com "in_mp4" Winamp plugin - hosted at RareWares - for converting AAC to MP4/M4A seems to preserve PS data. (At least, TCPMP on my cell phone still recognizes and plays the PS content!) Perhaps, since you are using a Winamp plugin for the actual encode, you could pair that with the AudioCoding plugin to accomplish conversion/tagging?


in_mp4 is a input plugin isn't it? It can do conversion?

This post has been edited by optimus: Sep 9 2005, 02:58


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
M
post Sep 9 2005, 03:10
Post #21





Group: Members
Posts: 964
Joined: 29-December 01
Member No.: 830



QUOTE (optimus @ Sep 8 2005, 08:55 PM)
in_mp4 is a input plugin isn't it? It can do conversion?
*

Yes, it can. When playing an AAC file in Winamp, using the AudioCoding.com in_mp4 plugin, calling the "File Info" dialog will show the following:
QUOTE
Convert to MP4

You can convert this file to MP4 if you like. This does not involve
re-encoding, only the container format is changed. Advantages of
MP4 files are that they are playable by a lot more players and they
will have a lot of support in the future.

Under that is a button that says "Convert Now!" When pressed, a copy of the AAC file is inserted into an MP4 container of the same name.

Note that the version of this plugin available at RareWares does not (for whatever reason) currently display any notification of HE or PS content, but it does still appear to properly reproduce that content when playing HE/PS encoded files.

Great news about the other possibilities - especially single-file output! Is there any chance of also being able to implement chapters at the appropriate index points when that revision appears?

- M.

Edit: Spelling.

This post has been edited by M: Sep 9 2005, 03:11
Go to the top of the page
+Quote Post
optimus
post Sep 9 2005, 08:14
Post #22





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



Just added single file mode to MEnc. Please download the update from the top. To enable this mode, set File -> Preference -> Audio Options -> Single File Mode to "Yes". The resulting file is named with the first file in the list.

And, in this release, multiple file selection is enabled with "Add File".

This post has been edited by optimus: Apr 2 2007, 14:26


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
optimus
post Sep 9 2005, 08:25
Post #23





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



Just a remind, you can use audio filters provided by MPlayer to filter the audio data. Audio filter settings is also in the "Preference" dialog.


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
optimus
post Sep 9 2005, 08:28
Post #24





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



I will add wavpack support in next release.

QUOTE (aguacaliente @ Sep 8 2005, 09:30 PM)
Thanks for the tool. Another request here for drag & drop. Also, any chance of adding wavpack support?
*


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
optimus
post Sep 14 2005, 13:35
Post #25





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



Added support for x264, matroska container, generic CLI program as audio encoder. Download the update at top.

This post has been edited by optimus: Sep 14 2005, 15:50


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post

30 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st September 2014 - 06:28