Skip to main content

Topic: QAAC: discussion, questions, feature requests, etc. (Read 353813 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
QAAC: discussion, questions, feature requests, etc.
Reply #350
I don't know why MediaInfo shows something like that as "Sample Count", but I think it's not problem of qaac.
You can dump mp4 file structure by tools like mp4box or boxdumper (of L-SMASH), which is FAR more reliable than MediaInfo when you want to inspect MP4.

Thanks so much for the explanation. "mp4box -diso" does shows the correct value of 127772672 whereas MediaInfo shows 127772688 for the same file.
Seems that MediaInfo is reporting the wrong values and I have reported this bug on the MediaInfo forum.

"mp4box.exe -diso" shows millisecond duration under "SampleCount" and Sample Count under "Duration" in its XML output. The XML tag names are switched in mp4box but the values are right.
  • Last Edit: 17 January, 2013, 06:56:29 AM by robertcollier4

  • sluggy
  • [*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #351
[qaac] release 2.13 (refalac 2.13)
posted 4 hours ago by nu 774
Gracefully shutdown on console interrupt event (such as Ctrl+C, Ctrl+Break or closing console window).

Gracefully means that it stops encoding immediately as if it were the end of input, and properly finalize the container, therefore resulting file will be playable (until that point).

Of course, it is not that qaac can terminate gracefully in every possible situations. You can always forcefully kill qaac using task manager or something.

https://sites.google.com/site/qaacpage/cabinet

  • qupfer
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #352
Can somebody give me a quick help?

I want to convert 5.1 AC3 to 5.1 AAC. But i don't know how to "convert" the ac3-file to a supportet inputfile for qaac.
Can somebody tell me a working commandline? (like ffmpeg ----many options---- | qaac ---some more options---)?

thanks

  • LigH
  • [*][*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #353
More graphical with MeGUI:
  • External Program Configuration: Enable QAAC
  • Restart MeGUI, update
  • (Input, Audio) Audio Input [...] *.ac3
  • (Input, Audio) Encoder settings: QAAC - [Config] ...
  • (Input, Audio) [Queue]
  • (Queue) Start
http://forum.gleitz.info - das deutsche doom9/Gleitz-Forum

  • sneaker
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #354
Either that or:

ffmpeg -i input.ac3 -f wav - | qaac -i --adts --no-delay - -o output.aac

The "--adts --no-delay" part is kinda optional, but works good for movies.

  • LigH
  • [*][*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #355
You can also have QAAC output *.m4a by omitting "--adts"; I would prefer it in an MP4 container if it will be multiplexed later.
http://forum.gleitz.info - das deutsche doom9/Gleitz-Forum

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #356
@sneaker
You might want to specify -acodec pcm_f32le to avoid unnecessary quantization to pcm_s16le by ffmpeg. qaac can read float WAV just fine.

  • qupfer
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #357
More graphical with MeGUI:
[...]


Thanks, but this create a corrupt audio file (MediaInfo Bitrate 2kbit/s) and i think the reason could be, that I have some 2.0 parts in the 5.1 audio source.

Can I "force" 5.1 in megui like  -ac 6 in ffmpeg? Or can I convert the ac3-source lossles to a compleate 5.1 ac3-file?

QAAC: discussion, questions, feature requests, etc.
Reply #358
More graphical with MeGUI:
[...]


Thanks, but this create a corrupt audio file (MediaInfo Bitrate 2kbit/s) and i think the reason could be, that I have some 2.0 parts in the 5.1 audio source.

Can I "force" 5.1 in megui like  -ac 6 in ffmpeg? Or can I convert the ac3-source lossles to a compleate 5.1 ac3-file?


You could also get eac3to (recently updated) and do this:

Code: [Select]
eac3to input.ac3 stdout.wav | qaac - -o "output.mp4" -i --verbose --threading


The last two options on the qaac side are of course optional.  I would recommend --verbose at least as qaac then displays the amt of channels you're dealing with. "-i" tells it to ignore wav headers (which will give you the wrong length and muck things up).

On the eac3to side I didn't specify any flags, but you might want to use -down16 when using TrueHD input (let eac3to handle the dithering). If you're converting from 6.1 or 7.1 and want 5.1 output, you should also use -down6.

Quote
and i think the reason could be, that I have some 2.0 parts in the 5.1 audio source.


I'm not sure if that's technically possible or makes any sense? Having silence in every channel except for front L/R does not a 2.0 source make.

Note that eac3to uses ffmpeg to decode ac3 by default. I'm not sure if using it will help you at all.

Alternatively, I have also had success with this tool: http://forum.doom9.org/showthread.php?t=165577
  • Last Edit: 28 January, 2013, 12:26:36 PM by LastSilmaril

  • sneaker
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #359
You can also have QAAC output *.m4a by omitting "--adts"; I would prefer it in an MP4 container if it will be multiplexed later.


Yeah, it really depends on the muxer. I sometimes use l-smash and it only supports adts, while mkvmerge supports both. And because of the "--no-delay" switch no gapless info is needed. I prefer that as it does not rely on the player using the proper delay, because some players just don't.

@sneaker
You might want to specify -acodec pcm_f32le to avoid unnecessary quantization to pcm_s16le by ffmpeg. qaac can read float WAV just fine.


Thanks for the tip, though it does not seem to make a difference for ffmpeg's ac3 decoder. Usually I use eac3to as suggested by LastSilmaril because the author does keep proper bit depth conversions in mind, though it "only" uses 24 bit by default for the output.
  • Last Edit: 28 January, 2013, 11:58:59 PM by sneaker

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #360
Thanks for the tip, though it does not seem to make a difference for ffmpeg's ac3 decoder. Usually I use eac3to as suggested by LastSilmaril because the author does keep proper bit depth conversions in mind, though it "only" uses 24 bit by default for the output.

Hmm, I tried with ffmpeg just now, and seems you are correct.
Actually I was using avconv instead of ffmpeg, and it gives you different result.

Tested with the attached AC3 (encoded with intentionally high gain, and it clips when quantized to int, giving you audibly different result)
[ Specified attachment is not available ]
  • Last Edit: 29 January, 2013, 12:42:15 AM by nu774

  • sluggy
  • [*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #361
[qaac] release 2.14 (refalac 1.14)
posted an hour ago by nu 774
Add --cue-track option to limit tracks to extract from cuesheet, and fixed several minor bugs.

https://sites.google.com/site/qaacpage/cabinet

  • sluggy
  • [*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #362
[qaac] release 2.15 (refalac 2.15)
posted 23 minutes ago by nu 774  [ updated a minute ago ]
Fixed an awful bug of refalac of 2.xx branch. It wasn't encoding in correct frame length (4096 samples) on some cases.
I noticed it when I encoded directly from lossyFLAC (not piped input), which resulted 512 samples-per-frame ALAC file. It seemed playable, but apparently is not a normal/sane ALAC file;
WAV input will be fine (including piped input). Direct input from FLAC or other formats might be affected, and Re-encoding is recommended. Only refalac of 2.xx branch is affected. qaac is fine.
Use more strict sharing mode when opening files. Now qaac/refalac doesn't allow other processes to open the output file when qaac/refalac is writing to it. Reading can be shared, but now qaac/refalac cannot open a file for reading when another process is writing to it.

https://sites.google.com/site/qaacpage/cabinet

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #363
Thanks for the tip, though it does not seem to make a difference for ffmpeg's ac3 decoder. Usually I use eac3to as suggested by LastSilmaril because the author does keep proper bit depth conversions in mind, though it "only" uses 24 bit by default for the output.

Hmm, I tried with ffmpeg just now, and seems you are correct.
Actually I was using avconv instead of ffmpeg, and it gives you different result.

Tried this with latest ffmpeg binary from http://ffmpeg.zeranoe.com/builds/, and now ffmpeg can correctly output without integer clipping with -acodec pcm_f32le. The version I tried seems just too old (it was built on Nov 2012 or so, therefore it was not VERY old, but ffmpeg is really a moving target).

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #364
The refalac bug I fixed on 2.15 was because I changed source or filter layer not to repeatedly pull or generate samples until it reaches requested amount, but at the same time I didn't modified ALAC encoder to compensate the source/filter layer modification.

As a result, nobody assured ALAC encoder to process each frame per 4096 samples. Silly me!
For usual cases (WAV input, with or without pipe, without DSP), source filter would read up until  requested samples (=4096) anyway, so did no harm.

  • sneaker
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #365
Tried this with latest ffmpeg binary from http://ffmpeg.zeranoe.com/builds/, and now ffmpeg can correctly output without integer clipping with -acodec pcm_f32le. The version I tried seems just too old (it was built on Nov 2012 or so, therefore it was not VERY old, but ffmpeg is really a moving target).


ffmpeg also supports pcm_f64le. Would it make any sense to use it with qaac?

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #366
ffmpeg also supports pcm_f64le. Would it make any sense to use it with qaac?

qaac can read f64, but I don't think it will make any sense.

  • sneaker
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #367
ffmpeg also supports pcm_f64le. Would it make any sense to use it with qaac?

qaac can read f64, but I don't think it will make any sense.


But it won't break anything even if there's zero practical advantage?

  • LigH
  • [*][*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #368
If the pipe output is stored as temporary file somewhere with low diskspace, it may break... Somehow I remember that pipes under Windows can be inefficient. But I won't swear it. It may have been in times of Windows 9x.
http://forum.gleitz.info - das deutsche doom9/Gleitz-Forum

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #369
But it won't break anything even if there's zero practical advantage?

It won't break anything or lose quality. However, native decoding format of ffmpeg (for MDCT codec) will be f32, and same for CoreAudio AAC codec. Therefore, it will simply waste time for unnecessary float<->double conversion + increased I/O size.

  • sneaker
  • [*]
QAAC: discussion, questions, feature requests, etc.
Reply #370
I see.

  • Boulder
  • [*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #371
Will I get proper channel order for my 5.1-channel AAC file if I first decode the DTS-HD MA track to a multichannel wav file with eac3to and then encode that one with qaac? I need to decode to wav as there's sometimes clipping in the decoded output and eac3to needs a second pass to handle it.

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #372
Will I get proper channel order for my 5.1-channel AAC file if I first decode the DTS-HD MA track to a multichannel wav file with eac3to and then encode that one with qaac? I need to decode to wav as there's sometimes clipping in the decoded output and eac3to needs a second pass to handle it.

Read https://github.com/nu774/qaac/wiki/Multichannel--handling.
IIRC DTS-HD MA is a 24bit lossless format, and I don't understand why you worry about clipping. If , for some reason, eac3to detects DTS-HD MA input as clipped and lower the gain, the process is not lossless, by definition.

  • Boulder
  • [*][*]
QAAC: discussion, questions, feature requests, etc.
Reply #373
Sorry, should have been a bit more clear. Clipping is sometimes detected when downmixing 7.1ch or 6.1ch to 5.1ch. I do that for movies that I put on my media player and put the movie with the original audio track in my archive.

  • nu774
  • [*][*][*][*][*]
  • Developer
QAAC: discussion, questions, feature requests, etc.
Reply #374
Sorry, should have been a bit more clear. Clipping is sometimes detected when downmixing 7.1ch or 6.1ch to 5.1ch.

Oh, I see. Makes sense.