Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
21st March 2010, 19:51 | #1081 | Link | ||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
With spdifer.exe (ac3filter_tools_0_31b) I obtain the same filesize, framesizes and headers when convert to ddwav a 5.1 wav encoded to ac3 with Aften or Soft Encoder. Quote:
__________________
BeHappy, AviSynth audio transcoder. |
||
21st March 2010, 20:11 | #1082 | Link | |||
Unavailable
Join Date: Mar 2009
Location: offline
Posts: 1,480
|
Quote:
Quote:
Quote:
What are you trying to say, man? P.S.: Another test --- stereo WAV @ 44.1kHz, encoded with AC3 ACM via VirtualDub; resulting file was "RIFF-stripped", and then given to spdifer.exe; DDWAV file size = 36.3MB, as it should be. ---------------------------------------------- UPDATE: Just downloaded and tested the latest version of spdifer, and this time, it did produce a DDWAV with correct-length from an Aften 44.1kHz file So, 1) the real problem was in the old version of spdifer.exe, OK ; 2) BIG QUESTION: what would be the "magic" differences between the 44.1kHz outputs from Aften and the ones from the other encoders ??? Last edited by Midzuki; 21st March 2010 at 20:28. |
|||
22nd March 2010, 21:42 | #1083 | Link | |
Registered User
Join Date: Jul 2006
Posts: 276
|
Quote:
If you want a reference, see document ATSC A/52B Table 5.18. |
|
22nd March 2010, 22:03 | #1084 | Link | |
Unavailable
Join Date: Mar 2009
Location: offline
Posts: 1,480
|
Quote:
Yes, I had already looked at the "top-secret" .PDF. But, as you can see, it appears it was NOT ONLY spdifer.exe that didn't consider the «better» possibility. I mean, it seems Aften was/is the first/only "well-known" AC3 encoder to use two different frame sizes for the 44.1kHz sampling rate. Again, |
|
23rd March 2010, 00:54 | #1085 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
Aften: 3161 frames (2536 "short" + 625 "long"), precise bitrate Soft Encode: 3161 frames (1585 "short" + 1576 "long"), imprecise bitrate
__________________
BeHappy, AviSynth audio transcoder. |
|
13th May 2010, 20:22 | #1087 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
I wanted to add support for aften inside Hybrid but ran into the problem that aften doesn't show progress when I pipe into it from ffmpeg.
Here are the command lines I use: Code:
ffmpeg -v -10 -threads 4 -i "input.ac3" -acodec pcm_s16le -ac 6 -ar 48000 -f wav - | aften -b 256 -readtoeof 1 - "output.ac3" Code:
ffmpeg -threads 4 -v -10 -y -i "input.ac3" -f u16le -acodec pcm_s16le - | sox --temp "D:\Encoding Temp" -t raw -e signed-integer -2 -c6 -r48000 - -t wav - remix -m 1v0.2646,3v0.1870,4v0.1870,5v0.2291,6v0.1323 2v0.2646,3v0.1870,4v0.1870,5v-0.1323,6v-0.2291 norm | aften -b 128 -readtoeof 1 - "output.ac3" I know that '-v' shows me the current frame processed, but I don't know if I can somehow judge from the frame number to the current position processed. So if someone knows how to get aften to show progress (e.g. through altering my command line) or knows how to conclude from the current frame to the current position any help is welcome. Cu Selur Ps.: Only way to get current position atm I can think of it to get it from ffmpeg output. Last edited by Selur; 13th May 2010 at 20:26. |
13th May 2010, 22:21 | #1088 | Link | |
Registered User
Join Date: Jul 2006
Posts: 276
|
Quote:
It appears that sox actually writes a valid data size in the header even when streaming to a pipe, if it knows it. Obviously if you're streaming from ffmpeg to sox to aften then sox cannot know the duration either so it cannot pass it to aften. One workaround might be to add an option to aften so the user can specify the total number of input samples, overriding information from the file size or header if present. Then your program or script could get the duration from ffmpeg (or ffprobe) and multiply by the sample rate. If that option would be useful, I would consider adding it. |
|
14th May 2010, 07:53 | #1089 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
So sample rate * time in seconds = frame count ? If so you don't need to add such an option since I already got the duration in seconds and calculating the progress from the output I get when calling with '-v' as parameter isn't a problem.
Cu Selur |
14th May 2010, 10:05 | #1091 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
sample rate * time in seconds = sample count Frames, in compressed audio, can have many samples, for instance a frame in standard ac3 have 1536 samples.
__________________
BeHappy, AviSynth audio transcoder. |
|
14th May 2010, 10:13 | #1092 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
Quote:
(sample rate * time in seconds)/1536 would provide me the number of frames aften will show for piped input, right? Cu Selur Last edited by Selur; 14th May 2010 at 11:28. |
|
18th June 2010, 18:05 | #1096 | Link | |
Registered User
Join Date: Feb 2004
Location: the tiny bubble of Creation
Posts: 189
|
output from encoder
can't find an explanation for encoder output log, like these lines i get in megui:
Quote:
|
|
25th June 2010, 14:06 | #1099 | Link | |
Registered User
Join Date: Jan 2005
Posts: 368
|
Quote:
http://win32builds.sourceforge.net/ That seems current, thanks.
__________________
Thankyou!, I am grateful for any help |
|
25th June 2010, 14:25 | #1100 | Link | |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
Please note:
http://sourceforge.net/projects/win32builds/files/ Quote:
So - where is a really "current" alternative? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|