Page 1 of 1

Video works fine but no audio

PostPosted: Mon Jan 10, 2011 4:35 am
by gallyjh
Hi,

I'm curious if anyone may know right off the bat what may be my issue with my videos not giving any sound. My music works fine. I've gone to another subsonic server listed by GJ51 and tested out the video there and it worked fine in my browser so I know its not my browser. I know for a fact the video's do have sound as I've played them before. I'm guessing it has to do with the trans-coding on my server may be? I have subsonic running on Ubuntu 8. Any advice and I would be grateful!

Thanks,

Gally

PostPosted: Mon Jan 10, 2011 4:56 am
by GJ51
Nobody's gonna know right off the bat, there's just too many variables to give a meaningful answer without knowing more information. If your videos play in a local video player ok then the problem is most likely in the transcoding settings.

Here are the settings I'm currently using:

ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -

If you have something different, just cut and paste the above string into the Step 1 box under Settings/Transcoding.

PostPosted: Mon Jan 10, 2011 1:09 pm
by stozher
ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -s %wx%h -ar 44100 -ac 2 -

ffmpeg -v 0 -ss %o -async 30 -i %s -f flv -b %bk -r 30 -s %wx%h -ar 44100 -ac 2 -

http://forum.subsonic.org/forum/viewtopic.php?p=19425#19425

PostPosted: Mon Jan 10, 2011 2:52 pm
by gallyjh
Nobody's gonna know right off the bat, there's just too many variables to give a meaningful answer without knowing more information.


One could hope right? :)

Anyway I saw that GJ51 command is just the default setting and that one didn't work. I attempted to use stozher's and still same result. No sound but video is fine. Have any other suggestions?

Thanks for replying!

Jeremy

PostPosted: Mon Jan 10, 2011 4:42 pm
by stozher
Post log messages after start this file...

PostPosted: Mon Jan 10, 2011 5:06 pm
by gallyjh
Thanks for the reply Stozher.

Here is the log for ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -:

Code: Select all
[1/10/11 11:00:23 AM CST]   INFO   PlaylistInputStream   user1 listening to "MyVideo/tv.avi"
[1/10/11 11:00:23 AM CST]   DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/mnt/pch/Video/MyVideo/tv.avi] [-async] [1] [-b] [1000k] [-s] [644x360] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
[1/10/11 11:00:23 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
[1/10/11 11:00:23 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
[1/10/11 11:00:23 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavutil version: 1d.49.3.0
[1/10/11 11:00:23 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavcodec version: 1d.51.38.0
[1/10/11 11:00:23 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavformat version: 1d.51.10.0
[1/10/11 11:00:23 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) built on Apr 23 2010 15:11:13, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg)
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Input #0, avi, from '/mnt/pch/Video/MyVideo/tv.avi':
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Duration: 01:01:36.9, start: 0.000000, bitrate: 800 kb/s
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0: Video: mpeg4, yuv420p, 672x376, 23.98 fps(r)
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.1: Audio: mp3, 44100 Hz, stereo, 112 kb/s
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream mapping:
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[1/10/11 11:00:26 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Press [q] to stop encoding


Here is the log for ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -s %wx%h -ar 44100 -ac 2 -:

Code: Select all
[1/10/11 11:03:38 AM CST]   INFO   PlaylistInputStream   user1 listening to "MyVideo/tv.avi"
[1/10/11 11:03:38 AM CST]   DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-v] [0] [-ss] [0] [-async] [1] [-i] [/mnt/pch/Video/MyVideo/tv.avi] [-f] [flv] [-b] [1000k] [-s] [624x256] [-ar] [44100] [-ac] [2] [-]
[1/10/11 11:03:38 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
[1/10/11 11:03:38 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
[1/10/11 11:03:38 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavutil version: 1d.49.3.0
[1/10/11 11:03:38 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavcodec version: 1d.51.38.0
[1/10/11 11:03:38 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavformat version: 1d.51.10.0
[1/10/11 11:03:38 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) built on Apr 23 2010 15:11:13, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
[1/10/11 11:03:43 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg)
[1/10/11 11:03:43 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (24000/1001)
[1/10/11 11:03:43 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream mapping:
[1/10/11 11:03:43 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[1/10/11 11:03:43 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Press [q] to stop encoding

Here is the log for ffmpeg -v 0 -ss %o -async 30 -i %s -f flv -b %bk -r 30 -s %wx%h -ar 44100 -ac 2 -:

Code: Select all
[1/10/11 8:49:39 AM CST]   INFO   PlaylistInputStream   user1 listening to "MyVideo/tv.avi"
[1/10/11 8:49:39 AM CST]   DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-v] [0] [-ss] [0] [-async] [30] [-i] [/mnt/pch/Video/MyVideo/tv.avi] [-f] [flv] [-b] [1000k] [-r] [30] [-s] [624x352] [-ar] [44100] [-ac] [2] [-]
[1/10/11 8:49:39 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
[1/10/11 8:49:39 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
[1/10/11 8:49:39 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavutil version: 1d.49.3.0
[1/10/11 8:49:39 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavcodec version: 1d.51.38.0
[1/10/11 8:49:39 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) libavformat version: 1d.51.10.0
[1/10/11 8:49:39 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) built on Apr 23 2010 15:11:13, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
[1/10/11 8:49:40 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg)
[1/10/11 8:49:40 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (24000/1001)
[1/10/11 8:49:40 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream mapping:
[1/10/11 8:49:40 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[1/10/11 8:49:40 AM CST]   DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Press [q] to stop encoding

PostPosted: Mon Jan 10, 2011 7:31 pm
by stozher
"FFmpeg version SVN-rUNKNOWN"... upgrade FFmpeg!!!

Compare your FFmpeg build options:

"configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr"

and my (package downloaded from http://debian-multimedia.org/ via Synaptic)

"configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --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-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis"

--enable-libmp3lame not found in your FFmpeg. Yor FFmpeg isn't allowed to transcode sound in MP3!!!

PostPosted: Mon Jan 10, 2011 7:43 pm
by stozher
Test with: :D

ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -s %wx%h -acodec copy -

This is a workaround for some files... After you upgrade FFmpeg all be work fine...

PostPosted: Mon Jan 10, 2011 10:50 pm
by gallyjh
You nailed it Stozher. Thanks. After a fun attempt on recompiling ffmpeg with the settings from:

http://ubuntuforums.org/showpost.php?p= ... tcount=360

I finally got it to compile. I then had to update the symbolic link in /var/subsonic/transcode, and viola!

Thanks for your guys help!