Tagging is with mid3v2 as neither FFmpeg or avconv tag mp2 files.
;;
mp2)
# Using Mutagen's mid3v2 for tagging with id3v2.4.0. Interesting enough vlc, MPlayer and XMMS ignore
- # these tags but they are read by Audacious, Xine, Aqualung, mediainfo, ffplay, ffprobe. Curious...
- run_command tagtrack-$OUTPUT-$1 nice $ENCNICE "$MID3V2" -A "$DALBUM" -a "$TRACKARTIST" -t "$TRACKNAME" \
+ # these tags but they are read by Audacious, Xine, Aqualung, mediainfo, ffplay, ffprobe. FFmpeg does
+ # not currently tag mp2 audio so twolame and FFmpeg will both use mid3v2...
+ run_command tagtrack-$OUTPUT-$1 nice $ENCNICE "$MID3V2" --verbose -A "$DALBUM" -a "$TRACKARTIST" -t "$TRACKNAME" \
-y "$CDYEAR" -g "$CDGENRE" -T "${TRACKNUM:-$1}/$TRACKS" ${TPE2:+--TPE2 "$TPE2"} ${COMMENTOUTPUT:+--comment="$COMMENTOUTPUT"} \
"$ABCDETEMPDIR/track$1.mp2"
;;
$RUN_COMMAND nice $EFFECTIVE_NICE $APENCODER "$IN" "$OUT" $APENCODEROPTS
;;
mp2)
- $RUN_COMMAND nice $EFFECTIVE_NICE $MP2ENCODER $MP2ENCODEROPTS "$IN" "$OUT"
+ case "$MP2ENCODERSYNTAX" in
+ twolame)
+ $RUN_COMMAND nice $EFFECTIVE_NICE $MP2ENCODER $MP2ENCODEROPTS "$IN" "$OUT"
+ ;;
+ ffmpeg)
+ $RUN_COMMAND nice $EFFECTIVE_NICE $MP2ENCODER -i "$IN" $MP2ENCODEROPTS "$OUT"
+ ;;
+ esac
;;
aac)
# aac container is only used to catch faac encoded files where faac
mp2)
[ "$MP2ENCODERSYNTAX" = "default" ] && MP2ENCODERSYNTAX=twolame
[ "$DOTAG" = "y" ] && NEEDMID3V2=y
+ [ "$MP2ENCODERSYNTAX" = "ffmpeg" ] && [ "$DOTAG" = "y" ] && NEEDMID3V2=y
;;
aac)
[ "$AACENCODERSYNTAX" = "default" ] && AACENCODERSYNTAX=faac
[ "$AACENCODERSYNTAX" = "neroAacEnc" ] && NEEDNEROAACTAG=y
[ "$AACENCODERSYNTAX" = "qaac" ] && NEEDWINE=y
[ "$AACENCODERSYNTAX" = "fhgaacenc" ] && NEEDWINE=y && NEEDATOMICPARSLEY=y
- [ "$AACENCODERSYNTAX" = "ffmpeg" ] && [ "$DOTAG" = "y" ]
+ [ "$AACENCODERSYNTAX" = "ffmpeg" ] && [ "$DOTAG" = "y" ]
;;
wav)
if [ "$KEEPWAVS" = "y" ]; then
MP2ENCODEROPTS="${MP2ENCODEROPTSCLI:-$TWOLAMENCOPTS}"
MP2ENCODER="$TWOLAME"
;;
+ ffmpeg)
+ MP2ENCODEROPTS="${MP2ENCODEROPTSCLI:-$FFMPEGENCOPTS}"
+ MP2ENCODER="$FFMPEG"
+ ;;
esac
case "$AACENCODERSYNTAX" in
# Some elaborate 'if' work to keep backward compatibility for those
.TP
.B MP2ENCODERSYNTAX
Specifies the style of encoder to use for the MPEG-1 Audio Layer II (MP2) encoder.
-At this point only \'twolame\' is available for MP2 encoding.
+At this point both \'twolame\' and \'ffmpeg\' are available for MP2 encoding.
.TP
.B SPEEXENCODERSYNTAX
Specifies the style of encoder to use for Speex encoder. At this point only
# mac - for APENCODERSYNTAX
# faac, neroAacEnc, fdkaac, qaac, fhgaacenc, ffmpeg - for AACENCODERSYNTAX
# opusenc - for OPUSENCODERSYNTAX
-# twolame - for MP2ENCODERSYNTAX
+# twolame, ffmpeg - for MP2ENCODERSYNTAX
# default is a valid option for oggenc, lame, flac, speexenc, mpcenc, wavpack,
# faac, opus and twolame. Currently this affects the default location of the
# binary, the variable to pick encoder command-line options from, and where
#OPUSENCOPTS=
# MP2
-# Currently uses only twolame, for options look at: 'twolame --help',
-# a highly recommended setting is "--bitrate 320".
+# Currently uses either twolame or ffmpeg, for twolame options look at:
+# 'twolame --help',a highly recommended setting is "--bitrate 320".
#TWOLAMENCOPTS=
# FFmpeg or avconv can be used for several audio codecs:
# Consider setting the following with a compression_level between 0-8:
# FFMPEGENCOPTS="-c:a wavpack -compression_level 6"
# 2. Encoding to ALAC (both FFmpeg and avconv have a native encoder).
-# Consider using the following for both FFmpeg and avconv:
-# FFMPEGENCOPTS="-c:a alac"
+# Consider using the following for either FFmpeg and avconv:
+# FFMPEGENCOPTS="-c:a alac"
+# 3. Encoding to mp2
+# Consider using the following for either FFmpeg and avconv:
+# FFMPEGENCOPTS="-c:a mp2 -b:a 320k"
#FFMPEGENCOPTS=
# mp3 tagging:
abcde 2.7.1
* Support added for encoding to MPEG-1 Audio Layer II (mp2)
- with twolame. Tagging with mid3v2.
+ with either twolame or FFmpeg / avconv. Tagging with mid3v2.
* Encoding to WavPack with FFmpeg. Some slight changes to WavPack
syntax with backward compatibility built in for abcde 2.7.
* Encoding to m4a container with FFmpeg or avconv. This allows