axis mpeg4 stream w/ aac audio

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

axis mpeg4 stream w/ aac audio

Daniel PATH
Hello,

        i've an Axis 247s video server which provides mpeg4 stream w/ aac  
audio, and i would like to get an flv stream from this.

        i've compiled ffmpeg/ffserver with --enable-libmp3lame --enable-
shared --enable-libamr-nb --enable-nonfree --enable-gpl --enable-
libfaad --enable-libfaac

        i can get the stream work with ffserver without audio, but not with  
audio.

        my ffserver.conf:

Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemon

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1G
ACL allow 127.0.0.1
</Feed>

<Stream test.flv>
         # the source feed
        Feed feed1.ffm
         # the output stream format - FLV = FLash Video
        Format flv
        VideoCodec flv
         # this must match the ffmpeg -r argument
        VideoFrameRate 25
         # generally leave this is a large number
        VideoBufferSize 80000
         # another quality tweak
        VideoBitRate 500
         # quality ranges - 1-31 (1 = best, 31 = worst)
        VideoQMin 1
        VideoQMax 5
        VideoSize 640x480
         # this sets how many seconds in past to start
        PreRoll 0
        AudioBitRate 64
        AudioChannels 1
        AudioSampleRate 44100
        AudioCodec mp3
</Stream>

i've tried several things like:

openRTSP -b 80000 -y -c -4 -f 25 -w 640 -h 480 -t rtsp://xxx.hu:554/mpeg4/1/media.amp
  | \
ffmpeg -v 9 -vcodec mpeg4 -acodec mpeg4aac -ab 32k -i - -acodec  
libmp3lame -ar 44100 -ab 64k -ac 1 -vcodec mpeg4 http://localhost:8090/

or:

mencoder \
         -rtsp-stream-over-tcp rtsp://xxx.hu:554/mpeg4/1/media.amp \
         -ovc lavc -lavcopts  
vcodec=mpeg4:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
         -oac mp3lame -lameopts abr:br=64:q=1:mode=3 \
         -o - | \
ffmpeg \
        -ab 32 -acodec mp3 -ar 44100 -ac 1 -f mpeg -r 25 -i - \
        -r 25 -ab 32 -acodec mp3 -ar 44100 -ac 1 http://localhost:8090/

and tons of switches, but nothing worked.

can you please help me somehow?

thx,
--
dp


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: axis mpeg4 stream w/ aac audio

defunct
DP,

Just wondering if you ever found a solution to your flash/audio streaming problems?  I'm having the same issue.  If not did you use a work around?

Thanks,
Andy