FFmpeg reduces AC3 5.1 to stereo

For help and support with PS3 Media Server in general

FFmpeg reduces AC3 5.1 to stereo

Postby rankafan » Thu Jan 22, 2009 2:59 am

A longstanding issue: FFmpeg reduces AC3 5.1 to stereo:

------
[Thread-173] DEBUG 02:39:14.042 Asked stream chunk [0-0] timeseek: 0.0 of BioHazard Degeneration-english.mkv and player AviSynth/FFmpeg
[Thread-173] TRACE 02:39:14.042 Starting transcode of BioHazard Degeneration-english.mkv
[win32/ffmpeg.exe] INFO 02:39:14.042 Starting C:\Program Files\PS3 Media Server\win32\ffmpeg.exe -title dummy -title dummy -i C:\Users\GEBRUI~1\AppData\Local\Temp\javaps3media\pms-avs-BioHazard Degeneration-english.mkv.avs -title dummy -title dummy -vcodec mpeg2video -f vob -acodec ac3 -threads 2 -g 1 -qscale 1 -qmin 1 -ab 640k -threads 4 -muxpreload 0 pipe:
[win32/ffmpeg.exe] INFO 02:39:14.120 Attaching thread: win32/ffmpeg.exe
[Timer-16] DEBUG 02:39:14.120 Buffered Space: 0 bytes
[Thread-172] INFO 02:39:14.744 Destroying buffer
[Thread-171] INFO 02:39:14.744 Destroying buffer
[Timer-16] DEBUG 02:39:15.134 Buffered Space: 0 bytes
[Thread-174] DEBUG 02:39:15.290 FFmpeg version SVN-r16043-Sherpya, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[Thread-174] DEBUG 02:39:15.290 libavutil 49.12. 0 / 49.12. 0
[Thread-174] DEBUG 02:39:15.290 libavcodec 52. 6. 1 / 52. 6. 1
[Thread-174] DEBUG 02:39:15.290 libavformat 52.23. 1 / 52.23. 1
[Thread-174] DEBUG 02:39:15.290 libavdevice 52. 1. 0 / 52. 1. 0
[Thread-174] DEBUG 02:39:15.290 libavfilter 0. 1. 0 / 0. 1. 0
[Thread-174] DEBUG 02:39:15.290 libswscale 0. 6. 1 / 0. 6. 1
[Thread-174] DEBUG 02:39:15.290 libpostproc 51. 2. 0 / 51. 2. 0
[Thread-174] DEBUG 02:39:15.290 built on Dec 10 2008 18:25:26, gcc: 4.2.5 20080919 (prerelease) [Sherpya]
[Timer-16] DEBUG 02:39:16.148 Buffered Space: 0 bytes
[Timer-16] DEBUG 02:39:17.152 Buffered Space: 0 bytes
[Timer-16] DEBUG 02:39:18.166 Buffered Space: 0 bytes
[Timer-16] DEBUG 02:39:19.180 Buffered Space: 0 bytes
[Thread-174] DEBUG 02:39:19.242 Input #0, avs, from 'C:\Users\GEBRUI~1\AppData\Local\Temp\javaps3media\pms-avs-BioHazard Degeneration-english.mkv.avs':
[Thread-174] DEBUG 02:39:19.242 Duration: 01:36:05.79, start: 0.000000, bitrate: N/A
[Thread-174] DEBUG 02:39:19.242 Stream #0.0: Video: rawvideo, yuv420p, 1920x1080, 596600 kb/s, 23.98 tb(r)
[Thread-174] DEBUG 02:39:19.242 Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[Thread-174] DEBUG 02:39:19.242 Output #0, vob, to 'pipe:':
[Thread-174] DEBUG 02:39:19.242 Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080, q=1-31, 200 kb/s, 23.98 tb(c)
[Thread-174] DEBUG 02:39:19.242 Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 640 kb/s
------

It's a true 6 channel AC3 track, which plays fine in Mencoder. But PMS, using FFmpeg, always reduces my audio to stereo! Is there a way to fix this? Needless to say, i want just 5.1 audio.

Thanks
Gorgeous, delicious, deculture!
User avatar
rankafan
 
Posts: 35
Joined: Thu Jan 22, 2009 12:19 am

Re: FFmpeg reduces AC3 5.1 to stereo

Postby rankafan » Fri Jan 23, 2009 11:33 pm

Anyone? Anyone? Bueller? Bueller? :)
Gorgeous, delicious, deculture!
User avatar
rankafan
 
Posts: 35
Joined: Thu Jan 22, 2009 12:19 am

Re: FFmpeg reduces AC3 5.1 to stereo

Postby shagrath » Fri Jan 23, 2009 11:57 pm

rankafan wrote:Anyone? Anyone? Bueller? Bueller? :)


try to add "-ac 6" in ffmpeg options
shagrath
Project Lead
 
Posts: 2634
Joined: Wed Jan 14, 2009 1:39 pm

Re: FFmpeg reduces AC3 5.1 to stereo (SOLVED!)

Postby rankafan » Sat Jan 24, 2009 1:03 am

shagrath wrote:
rankafan wrote:Anyone? Anyone? Bueller? Bueller? :)


try to add "-ac 6" in ffmpeg options

You're the man!! :) That solved it!

P.S. Didn't realize you could add audio options to the video settings of ffmpeg, but it works flawlessly. So, for now at least, I having an acceptable, working alternative to my crashing Mencoder MT.
Gorgeous, delicious, deculture!
User avatar
rankafan
 
Posts: 35
Joined: Thu Jan 22, 2009 12:19 am

Re: FFmpeg reduces AC3 5.1 to stereo (UNSOLVED!)

Postby solidsnake » Sat Jan 24, 2009 2:44 pm

rankafan wrote:
shagrath wrote:
rankafan wrote:Anyone? Anyone? Bueller? Bueller? :)


try to add "-ac 6" in ffmpeg options

You're the man!! :) That solved it!

P.S. Didn't realize you could add audio options to the video settings of ffmpeg, but it works flawlessly. So, for now at least, I having an acceptable, working alternative to my crashing Mencoder MT.



For me it only solved a part of it. My reciever gets a digital signal now but it is only 2.1. Are there more settings wich I can use to solve this problem. Would be nice since FFmpeg is for me the only option were I can play my .mkv's with subtitles without stutering.
solidsnake
 
Posts: 1
Joined: Sat Jan 24, 2009 2:39 pm

Re: FFmpeg reduces AC3 5.1 to stereo (SOLVED!)

Postby ceje » Sat Jan 24, 2009 10:24 pm

rankafan wrote:
shagrath wrote:
rankafan wrote:Anyone? Anyone? Bueller? Bueller? :)


try to add "-ac 6" in ffmpeg options

You're the man!! :) That solved it!

P.S. Didn't realize you could add audio options to the video settings of ffmpeg, but it works flawlessly. So, for now at least, I having an acceptable, working alternative to my crashing Mencoder MT.


Can you tell me where exactly I add this "-ac 6" ?
ceje
 
Posts: 5
Joined: Wed Jan 21, 2009 7:26 am

Re: FFmpeg reduces AC3 5.1 to stereo (SOLVED!)

Postby rankafan » Sat Jan 24, 2009 10:41 pm

ceje wrote:Can you tell me where exactly I add this "-ac 6" ?


I added them in "Video Files Engines", under "AviSynth/FFmpeg" encoder settings; like this:

-threads 4 -g 1 -qscale 1 -qmin 1 -ac 6

It does the trick for me. :)
Gorgeous, delicious, deculture!
User avatar
rankafan
 
Posts: 35
Joined: Thu Jan 22, 2009 12:19 am

Re: FFmpeg reduces AC3 5.1 to stereo (SOLVED!)

Postby ceje » Sat Jan 24, 2009 11:29 pm

rankafan wrote:
ceje wrote:Can you tell me where exactly I add this "-ac 6" ?


I added them in "Video Files Engines", under "AviSynth/FFmpeg" encoder settings; like this:

-threads 4 -g 1 -qscale 1 -qmin 1 -ac 6

It does the trick for me. :)


Thanks......going to try.....
ceje
 
Posts: 5
Joined: Wed Jan 21, 2009 7:26 am


Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 26 guests