Right parameters for encoding sound for x264 stream?

About encoding, codec settings, muxers and filter usage
deemytch
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Sep 2013 16:19

Right parameters for encoding sound for x264 stream?

Postby deemytch » 08 Oct 2013 22:06

Can`t find subject (
VLC media player 2.1.0 Rincewind (revision 2.1.0-0-gedd8835), archlinux, 3.11.2-1-ARCH x86_64

when I use

Code: Select all

vcodec=mp3 OR acodec=mp4a,aenc=ffmpeg{strict=-2}
it says nothing but refuses to stream

when I use

Code: Select all

acodec=mp4a,aenc=faad2
it says

Code: Select all

cannot find audio encoder (module:faad2 fourcc:mp4a). Take a look few lines earlier to see possible reason. cannot create audio chain
etc

Please help

full line is like

Code: Select all

cvlc --sout='#transcode{acodec=mp3,ab=96,channels=1,vcodec=x264,vb=800,height=288,width=384,fps=25,venc=x264{profile=baseline,preset=ultrafast,vbv-bufsize=500,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2,direct=auto,qcomp=0.0,qpmax=51}}:standard{access=http,mux=ts,dst=:5010/test.mp4,http-host=machine.local}' mms://webtv/link
what going on, if I make mplayer to play those bytes

Code: Select all

$ mplayer http://mybox.local:5010/test.mp4 MPlayer SVN-r36285-4.8.1 (C) 2000-2013 MPlayer Team (..skip..) Connecting to server [mybox.local]: 5010... Cache size set to 320 KBytes Cache fill: 0.00% (0 bytes) nop_streaming_read error : Resource temporarily unavailable Stream not seekable! Cache fill: 0.00% (0 bytes) Stream not seekable! Cache fill: 0.00% (0 bytes) Stream not seekable! Cache fill: 0.00% (0 bytes) Stream not seekable! Cache fill: 0.00% (0 bytes) Stream not seekable! Cache fill: 0.00% (0 bytes) libavformat version 55.7.100 (internal) Exiting... (End of file)
But if I remove any audio conversion parameters - the stream get started and I can watch it everywhere in my network with sound, even the server complaints:

Code: Select all

[0x7fe6084c8e58] main mux error: cannot add this stream [0x7fe60850f138] main decoder error: cannot create packetizer output (WMA2)

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests