braddyo wrote:Oh, HAH! Silly me. In the player settings I have to activate the new transcoders, it's not enough to enable them in the transcoding section.
So, now that THAT's squared away, I'm trying to transcode a h264 film in a avi container.
Nothing happens. The log says:2/4/09 10:40:31 PM MST] INFO PlaylistInputStream Opening new song d:\documents\Videos\movies\Action Adventure\300.avi
[2/4/09 10:40:31 PM MST] DEBUG TranscodeInputStream Starting transcoder: [d:\inetpub\wwwroot\subsonic\transcode\ffmpeg] [-re] [-y] [-i] [d:\documents\Videos\movies\Action Adventure\300.avi] [-ar] [44100] [-f] [flv] [-]
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) FFmpeg version SVN-r15815, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) configuration: --enable-memalign-hack --enable-postproc --enable-swscale --enable-gpl --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --disable-vhook --enable-avisynth --enable-pthreads
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavutil 49.12. 0 / 49.12. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavcodec 52. 3. 0 / 52. 3. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavformat 52.23. 1 / 52.23. 1
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavdevice 52. 1. 0 / 52. 1. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libswscale 0. 6. 1 / 0. 6. 1
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) built on Nov 13 2008 10:28:29, gcc: 4.2.4 (TDM-1 for MinGW)
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) [NULL @ 0x141b700]Invalid and inefficient vfw-avi packed B frames detected
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Input #0, avi, from 'd:\documents\Videos\movies\Action Adventure\300 [Edited...kinda].avi':
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Duration: 01:51:41.06, start: 0.000000, bitrate: 1434 kb/s
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.0: Video: mpeg4, yuv420p, 656x272 [PAR 1:1 DAR 41:17], 23.98 tb(r)
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Output #0, flv, to 'pipe:':
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.0: Video: flv, yuv420p, 656x272 [PAR 1:1 DAR 41:17], q=2-31, 200 kb/s, 23.98 tb(c)
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.1: Audio: libmp3lame, 44100 Hz, 5.1, s16, 64 kb/s
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream mapping:
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.1 -> #0.1
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
[2/4/09 10:40:33 PM MST] INFO StreamController Stopping stream bradford@69.169.136.242:54858 (VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team)
The two lines that are fishy I've bolded. I'm not sure about the last one, which looks like is what kills.
When I try to transcode a h264 packed in mp4 container, all I get is the following:[2/4/09 10:43:46 PM MST] INFO PlaylistInputStream Opening new song d:\documents\Videos\movies\Action Adventure\Chain Reaction.mp4
[2/4/09 10:43:46 PM MST] DEBUG TranscodeInputStream Starting transcoder: [d:\inetpub\wwwroot\subsonic\transcode\ffmpeg] [-re] [-y] [-i] [d:\documents\Videos\movies\Action Adventure\Chain Reaction.mp4] [-ar] [44100] [-f] [flv] [-]
[2/4/09 10:43:51 PM MST] INFO StreamController Stopping stream bradford@69.169.136.242:54867 (VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team)
and windows reports ffmpeg.exe crashed. The first time it took a while for ffmpeg to crash, while subsequent crashes happened sooner and sooner after starting the transcode.
I'm going to try a different build of ffmpeg and also trying a full conversion (not streaming) to another file to see if that works.
Are you doing this on Windows of Linux?
That first error message you were getting from ffmpeg was probably due to the 5.1 sound try adding -ac 2 to you ffmpeg conversion command it will force it to 2 channel audio.
The command I use is:
/usr/bin/ffmpeg -re -y -i %s -ar 44100 -ac 2 -sameq -f flv -
That command works for the avi's and mkv's I have on my system.
liveman wrote:Yh, I have tried streaming .flv files and the sound will play but the cideo won't. Even in fullscreen mode? Do I have to set up transcoding for this?
How do I go about enabling the video of an .flv file?
PS- Thanks for your previous fast response.
Have you followed the instructions to change the player height? When I leave my height at 20 it wont play the video but sound is fine. Just set your height above 20 and it should work.