Hello ffmpeg experts...

I'm trying to convert alac (Apple Lossless Audio Codec) to mp3 on macOS.

I found that the result mp3 shows twice long duration in macOS Finder and 
iTunes.  I googled and found that adding "-write_xing 0" fixes this wrong 
duration.

But if I try to use "-write_xing 0" with "-qscale:a 2" at same time, the 
resulting mp3 shows very wrong duration on macOS Finder and iTunes.

Is -qscale:a and -write_xing 0 can't used at same time?

my command line is as follows:

1. good duration:

for i in *.m4a; do name=`echo $i | cut -d'.' -f1`; ffmpeg -i "$i" -c:a 
libmp3lame -write_xing 0 "/Volumes/SA25-TR1-U3SV-2/Music_Temp/mp3/$name.mp3"; 
done

2. bad duration 

if I add "-qscale:a 2" to above the duration goes wrong:

for i in *.m4a; do name=`echo $i | cut -d'.' -f1`; ffmpeg -i "$i" -c:a 
libmp3lame -write_xing 0 -qscale:a 2 
"/Volumes/SA25-TR1-U3SV-2/Music_Temp/mp3/$name.mp3"; done



Best Regards,

// Miya aka. TougenRoushi

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to