Post Fri Nov 23, 2012 1:34 pm

Transcoding to flv not working | Stream not found

Hello,

when I try to open a stream via mediabrowser, I get "stream not found".
I installed ffmpeg, ffmpeg1 and ffmpeg-devel from ports. All of them I compiled by my self with the required parameters.

So I tried to run transcoding manually to test ffmpeg.
But ffmpeg won't transcode to flv:
  Code:
root@proto:/root # /usr/local/bin/ffmpeg-devel -i /mnt/Mediashare/Videos/Filme/Abraham\ Lincoln\ Vampirjaeger/Abraham\ Lincoln\ Vampirjaeger.avi -y -copyts -c:v flv -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -r 24000/1001 -g 15 -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /usr/local/etc/serviio-1.0.1/tmp/transcoding-temp-43-flv_player-MEDIUM.stf         ffmpeg version 1.0.git-79133fd Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 16 2012 16:11:47 with gcc 4.2.1 (GCC) 20070831 patched [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --incdir=/usr/local/include/ffmpeg-devel --libdir=/usr/local/lib/ffmpeg-devel --shlibdir=/usr/local/lib/ffmpeg-devel --datadir=/usr/local/share/ffmpeg-devel --build-suffix=-devel --progs-suffix=-devel --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-libcdio --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-libbluray --enable-libv4l2 --enable-libmodplug --disable-openal --enable-libopencv --enable-libopenjpeg --  libavutil      51. 76.100 / 51. 76.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 32.100 / 54. 32.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, avi, from '/mnt/Mediashare/Videos/Filme/Abraham Lincoln Vampirjaeger/Abraham Lincoln Vampirjaeger.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.10.2 (build 2540/release)
  Duration: 01:44:59.63, start: 0.000000, bitrate: 1856 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 384 kb/s
[flv @ 0x2acf3c10] impossible bitrate constraints, this will fail
Output #0, flv, to '/usr/local/etc/serviio-1.0.1/tmp/transcoding-temp-43-flv_player-MEDIUM.stf':
  Metadata:
    encoder         : Lavf54.32.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=2-31, 1000 kb/s, 1k tbn, 23.98 tbc
    Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> flv)
  Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
Press [q] to stop, [?] for help
Assertion failed: (q>0.0), function ff_rate_estimate_qscale, file libavcodec/ratecontrol.c, line 781.
Abort


My host system is nas4free and I run serviio in a freeBSD jail.
I asked on nas4free forums, but this problem isn't still resolved.
Referred to this thread on nas4free forums.

Have you any idea?

regards,
himbrr