Page 1 of 1

won't downmix to stereo??

PostPosted: Tue Dec 06, 2011 3:08 am
by gord
I have a video that, I guess, was encoded at something other than stereo. I don't have anything to play anything but stereo so I set the "transcoding" to "Downmix to stereo" but the video still won't play. When I look at the ffmpeg command in the log, it see it includes "-ac 6" if I run the command manually I get an error. If I change the "-ac 6" to "-ac 2" in the command and run it manually, it works just fine.

Why is the ffmpeg command run by serviio got "-ac 6" even though I told it to downmix to stereo?

I don't know where these options are stored, so I can't confirm that the option is really getting changed... but it says so in the GUI.

Or am I completely off track on this? :?:

Any help appreciated.

Re: won't downmix to stereo??

PostPosted: Tue Dec 06, 2011 8:27 am
by Cerberus
what is the rest of the FFmpeg command, as file maybe sent to tv in native format ( no transcoding ).

Re: won't downmix to stereo??

PostPosted: Tue Dec 06, 2011 10:03 am
by zip
also post ffmpeg -i of the original file

Re: won't downmix to stereo??

PostPosted: Wed Dec 07, 2011 12:58 am
by gord
My apologies... kind of hard to troubleshoot with the small amount of information I gave in my previous post... I hope this will help!!
As you can see, in the first example I have "-ac 6" and it fails. The second time all I changed was "-ac 2" and it seems to work.

  Code:
gord@server:~/serviio-0.6.0.1/bin$ ffmpeg -i /media/FreeAgent\ Drive/Videos/Movies/Star\ Trek/Star\ Trek\ 1\ to\ 11\ Collection\ BlurayRip\ 720p\ H264\ ACC/Star\ Trek\ 11\ 2009\ 1280x528\ The\ Beginning\ aka\ Future\ begins.mp4 -y -threads 2 -vcodec mpeg2video -b 15360k -maxrate 15360k -bufsize 5097k -r 24000/1001 -g 15 -copyts -acodec libmp3lame -ab 160k -ac 6 -map 0:0 -map 0:1 -sn -f vob /tmp/Serviio/transcoding-temp-77070-MPEG2PS.stf
ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  5 2011 17:16:34 with gcc 4.6.2
  configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libopencv --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/FreeAgent Drive/Videos/Movies/Star Trek/Star Trek 1 to 11 Collection BlurayRip 720p H264 ACC/Star Trek 11 2009 1280x528 The Beginning aka Future begins.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2010-06-10 03:20:40
    encoder         : HandBrake 0.9.4 2009112300
  Duration: 02:06:50.24, start: 0.000000, bitrate: 2234 kb/s
    Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x528, 1974 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2010-06-10 03:20:40
    Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 255 kb/s
    Metadata:
      creation_time   : 2010-06-10 03:20:40
[buffer @ 0x194d500] w:1280 h:528 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[mpeg2video @ 0x193f3c0] impossible bitrate constraints, this will fail
Output #0, vob, to '/tmp/Serviio/transcoding-temp-77070-MPEG2PS.stf':
    Stream #0.0(und): Video: mpeg2video, yuv420p, 1280x528, q=2-31, 15360 kb/s, 90k tbn, 23.98 tbc
    Metadata:
      creation_time   : 2010-06-10 03:20:40
    Stream #0.1(und): Audio: libmp3lame, 48000 Hz, 5.1, s16, 160 kb/s
    Metadata:
      creation_time   : 2010-06-10 03:20:40
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height



gord@server:~/serviio-0.6.0.1/bin$ ffmpeg -i /media/FreeAgent\ Drive/Videos/Movies/Star\ Trek/Star\ Trek\ 1\ to\ 11\ Collection\ BlurayRip\ 720p\ H264\ ACC/Star\ Trek\ 11\ 2009\ 1280x528\ The\ Beginning\ aka\ Future\ begins.mp4 -y -threads 2 -vcodec mpeg2video -b 15360k -maxrate 15360k -bufsize 5097k -r 24000/1001 -g 15 -copyts -acodec libmp3lame -ab 160k -ac 2 -map 0:0 -map 0:1 -sn -f vob /tmp/Serviio/transcoding-temp-77070-MPEG2PS.stf
ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  5 2011 17:16:34 with gcc 4.6.2
  configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libopencv --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/FreeAgent Drive/Videos/Movies/Star Trek/Star Trek 1 to 11 Collection BlurayRip 720p H264 ACC/Star Trek 11 2009 1280x528 The Beginning aka Future begins.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2010-06-10 03:20:40
    encoder         : HandBrake 0.9.4 2009112300
  Duration: 02:06:50.24, start: 0.000000, bitrate: 2234 kb/s
    Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x528, 1974 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2010-06-10 03:20:40
    Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 255 kb/s
    Metadata:
      creation_time   : 2010-06-10 03:20:40
[buffer @ 0x2580500] w:1280 h:528 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[mpeg2video @ 0x25723c0] impossible bitrate constraints, this will fail
Output #0, vob, to '/tmp/Serviio/transcoding-temp-77070-MPEG2PS.stf':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2010-06-10 03:20:40
    encoder         : Lavf53.4.0
    Stream #0.0(und): Video: mpeg2video, yuv420p, 1280x528, q=2-31, 15360 kb/s, 90k tbn, 23.98 tbc
    Metadata:
      creation_time   : 2010-06-10 03:20:40
    Stream #0.1(und): Audio: libmp3lame, 48000 Hz, 2 channels, s16, 160 kb/s
    Metadata:
      creation_time   : 2010-06-10 03:20:40
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
frame=   95 fps=  0 q=2.0 size=     592kB time=00:00:03.92 bitrate=1237.0kbits/sframe=  153 fps=151 q=2.0 size=    1220kB time=00:00:06.24 bitrate=1601.6kbits/sframe=  197 fps=130 q=2.0 size=    1790kB time=00:00:08.13 bitrate=1802.3kbits/sframe=  236 fps=117 q=2.0 size=    2668kB time=00:00:09.64 bitrate=2265.4kbits/sframe=  276 fps=109 q=2.0 size=    5004kB time=00:00:11.35 bitrate=3611.1kbits/sframe=  317 fps=105 q=2.0 size=    8018kB time=00:00:13.10 bitrate=5012.5kbits/sframe=  358 fps=104 q=2.0 Lsize=    9892kB time=00:00:14.88 bitrate=5442.3kbits/s   
video:9477kB audio:292kB global headers:0kB muxing overhead 1.259399%
Received signal 2: terminating.


Re: won't downmix to stereo??

PostPosted: Wed Dec 07, 2011 12:12 pm
by zip
Serviio doesn't downmix AAC audio to stereo, as it didn't work with previous FFmpeg versions. I'll try again with the current version, but it might also be caused by your FFmpag having libaac linked to it (as that one might be used in a place of the built-in aac decoding and support downmixing).