[FFmpeg-user] -qscale:a and -write_xing 0 can't be used at same time?

桃源老師 xanadu6291 at dream.jp
Thu Jan 26 17:53:43 EET 2017


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2370 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170127/874fb60d/attachment.bin>


More information about the ffmpeg-user mailing list