Question ?
avi acode:mpga vcode:h264
mp4 acode:mp4a vcode:mp4v
can both of fomcats mux ts stream to multicast send?
i test this:
[root@localhost vlc-0.8.6c]# ./vlc -vvv "/ONSRA/movies/xx.mp4" --sout '#transcode{vcodec=mp4v,vb=256,fps=25,acodec=mpga,ab=128,channels=2}:std{access=udp,mux=mp4,dst=239.0.0.1:2500}'
VLC media player 0.8.6c Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************
It is potentially dangerous, and might not even work properly.
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main private warning: This doesn't look like a valid plugins cache (language changed)
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr//lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 387 modules
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 4 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000480] main playlist debug: waiting for thread completion
[00000480] main playlist debug: thread 3082976144 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000481] main private debug: waiting for thread completion
[00000481] main private debug: thread 3072486288 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000482] main interface debug: looking for interface module: 2 candidates
[00000482] main interface debug: using interface module "hotkeys"
[00000482] main interface debug: thread 3061996432 (interface) created at priority 0 (interface/interface.c:231)
[00000483] main interface debug: looking for interface module: 2 candidates
[00000483] main interface debug: using interface module "screensaver"
[00000483] main interface debug: thread 3051506576 (interface) created at priority 0 (interface/interface.c:231)
[00000480] main playlist debug: adding playlist item `/ONSRA/movies/xx.mp4' ( /ONSRA/movies/xx.mp4 )
[00000484] main interface debug: looking for interface module: 3 candidates
[00000484] main interface debug: using interface module "wxwidgets"
[00000484] main interface debug: thread 3041016720 (manager) created at priority 0 (interface/interface.c:216)
[00000484] wxwidgets interface debug: Using last windows config '(-1,0,0,800,600)(0,83,0,462,82)(6,0,0,-1,150)'
[00000484] wxwidgets interface debug: id=0 p=(83,0) s=(462,82)
[00000484] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150)
[00000480] main playlist debug: nothing requested, starting
[00000480] main playlist debug: creating new input thread
[00000485] main input debug: waiting for thread completion
[00000485] main input debug: thread 3015543696 (input) created at priority 0 (input/input.c:265)
[00000485] main input debug: creating statistics handler
[00000487] main stream output debug: stream=`transcode'
[00000488] main private debug: looking for sout stream module: 2 candidates
[00000487] main stream output debug: stream=`std'
[00000490] main private debug: looking for sout stream module: 2 candidates
[00000490] main private debug: set sout option: sout-standard-access to udp
[00000490] main private debug: set sout option: sout-standard-mux to mp4
[00000490] main private debug: set sout option: sout-standard-dst to 239.0.0.1:2500
[00000490] stream_out_standard private debug: creating `udp/mp4://239.0.0.1:2500'
[00000490] stream_out_standard private debug: extension is 1:2500
[00000490] stream_out_standard private debug: extension -> mux=(null)
[00000490] stream_out_standard private error: for now udp and rtp are only valid with TS
[00000490] stream_out_standard private debug: using `udp/mp4://239.0.0.1:2500'
[00000491] main private debug: looking for sout access module: 2 candidates
[00000491] main private debug: net: connecting to 239.0.0.1 port 2500
[00000492] main private debug: thread 3005053840 (sout write thread) created at priority 0 (udp.c:268)
[00000491] access_output_udp private debug: udp access output opened(239.0.0.1:2500)
[00000491] main private debug: using sout access module "access_output_udp"
[00000490] stream_out_standard private debug: access opened
[00000493] main private debug: looking for sout mux module: 2 candidates
[00000493] mux_mp4 private debug: Mp4 muxer opend
[00000493] main private debug: using sout mux module "mux_mp4"
[00000490] stream_out_standard private debug: mux opened
[00000490] main private debug: using sout stream module "stream_out_standard"
[00000488] main private debug: set sout option: sout-transcode-vcodec to mp4v
[00000488] main private debug: set sout option: sout-transcode-vb to 256
[00000488] main private debug: set sout option: sout-transcode-fps to 25
[00000488] main private debug: set sout option: sout-transcode-acodec to mpga
[00000488] main private debug: set sout option: sout-transcode-ab to 128
[00000488] main private debug: set sout option: sout-transcode-channels to 2
[00000488] stream_out_transcode private debug: codec audio=mpga 0Hz 2 channels 128Kb/s
[00000488] stream_out_transcode private debug: codec video=mp4v 0x0 scaling: 1.000000 256kb/s
[00000488] main private debug: using sout stream module "stream_out_transcode"
[00000485] main input debug: `/ONSRA/movies/xx.mp4' gives access `' demux `' path `/ONSRA/movies/xx.mp4'
[00000485] main input debug: creating demux: access='' demux='' path='/ONSRA/movies/xx.mp4'
[00000494] main demuxer debug: looking for access_demux module: 0 candidates
[00000494] main demuxer warning: no access_demux module matched "any"
[00000485] main input debug: creating access '' path='/ONSRA/movies/xx.mp4'
[00000495] main access debug: looking for access2 module: 10 candidates
[00000495] vcd access debug: trying .cue file: /ONSRA/movies/xx.cue
[00000495] vcd access debug: could not find .cue file
[00000495] vcd access debug: trying .cue file: /ONSRA/movies/xx.cue
[00000495] vcd access debug: could not find .cue file
[00000495] access_file access debug: opening file `/ONSRA/movies/xx.mp4'
[00000495] main access debug: using access2 module "access_file"
[00000496] main private debug: pre-buffering...
[00000496] main private debug: received first data for our buffer
[00000496] main private debug: pre-buffering done 1408981 bytes in 0s - 38088 kbytes/s
[00000485] main input debug: creating demux: access='' demux='' path='/ONSRA/movies/xx.mp4'
[00000497] main demuxer debug: looking for demux2 module: 79 candidates
[00000496] mp4 private debug: found Box: ftyp size 20
[00000496] mp4 private debug: found Box: mdat size 12468009
[00000496] mp4 private debug: skip box: "mdat"
[00000496] mp4 private debug: found Box: moov size 95966
[00000496] mp4 private debug: found Box: mvhd size 108
[00000496] mp4 private debug: read box: "mvhd" creation 719084d-44h:00m:00s modification 719084d-44h:00m:00s time scale 90000 duration 694977d-48h:04m:20s rate 1.000000 volume 1.000000 next track id 3
[00000496] mp4 private debug: found Box: trak size 24340
[00000496] mp4 private debug: found Box: tkhd size 92
[00000496] mp4 private debug: read box: "tkhd" creation 719084d-44h:00m:00s modification 719084d-44h:00m:00s duration -1550265436d-01h:20m:00s track ID 1 layer 0 volume 0.000000 width 320.000000 height 240.000000
[00000496] mp4 private debug: found Box: mdia size 24240
[00000496] mp4 private debug: found Box: mdhd size 32
[00000496] mp4 private debug: read box: "mdhd" creation 719084d-44h:00m:00s modification 719084d-44h:00m:00s time scale 90000 duration 695174d-51h:20m:00s language ```
[00000496] mp4 private debug: found Box: hdlr size 45
[00000496] mp4 private debug: read box: "hdlr" handler type vide name
VideoHandler
[00000496] mp4 private debug: found Box: minf size 24155
[00000496] mp4 private debug: found Box: vmhd size 20
[00000496] mp4 private debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
[00000496] mp4 private debug: found Box: dinf size 36
[00000496] mp4 private debug: found Box: dref size 28
[00000496] mp4 private debug: found Box: url size 12
[00000496] mp4 private debug: read box: "url" url: (null)
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: read box: "dref" entry-count 1
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: found Box: stbl size 24091
[00000496] mp4 private debug: found Box: stsd size 187
[00000496] mp4 private debug: found Box: mp4v size 171
[00000496] mp4 private debug: found Box: esds size 85
[00000496] mp4 private debug: found esds MPEG4ESDescr (71Bytes)
[00000496] mp4 private debug: found esds MP4DecConfigDescr (63Bytes)
[00000496] mp4 private debug: found esds MP4DecSpecificDescr (48Bytes)
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: read box: "vide" in stsd 320x240 depth 24
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: read box: "stsd" entry-count 1
[00000496] mp4 private debug: found Box: stts size 24
[00000496] mp4 private debug: read box: "stts" entry-count 1
[00000496] mp4 private debug: found Box: stss size 1040
[00000496] mp4 private debug: read box: "stss" entry-count 256
[00000496] mp4 private debug: found Box: stsc size 28
[00000496] mp4 private debug: read box: "stsc" entry-count 1
[00000496] mp4 private debug: found Box: stsz size 11404
[00000496] mp4 private debug: read box: "stsz" sample-size 0 sample-count 2846
[00000496] mp4 private debug: found Box: stco size 11400
[00000496] mp4 private debug: read box: "co64" entry-count 2846
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: found Box: trak size 71440
[00000496] mp4 private debug: found Box: tkhd size 92
[00000496] mp4 private debug: read box: "tkhd" creation 719084d-44h:00m:00s modification 719084d-44h:00m:00s duration 1050575871d-25h:52m:00s track ID 2 layer 0 volume 1.000000 width 0.000000 height 0.000000
[00000496] mp4 private debug: found Box: mdia size 71340
[00000496] mp4 private debug: found Box: mdhd size 32
[00000496] mp4 private debug: read box: "mdhd" creation 719084d-44h:00m:00s modification 719084d-44h:00m:00s time scale 48000 duration 695082d-52h:43m:44s language ```
[00000496] mp4 private debug: found Box: hdlr size 45
[00000496] mp4 private debug: read box: "hdlr" handler type soun name
SoundHandler
[00000496] mp4 private debug: found Box: minf size 71255
[00000496] mp4 private debug: found Box: smhd size 16
[00000496] mp4 private debug: read box: "smhd" balance 0.000000
[00000496] mp4 private debug: found Box: dinf size 36
[00000496] mp4 private debug: found Box: dref size 28
[00000496] mp4 private debug: found Box: url size 12
[00000496] mp4 private debug: read box: "url" url: (null)
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: read box: "dref" entry-count 1
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: found Box: stbl size 71195
[00000496] mp4 private debug: found Box: stsd size 91
[00000496] mp4 private debug: found Box: mp4a size 75
[00000496] mp4 private debug: read box: "soun" mp4 or qt1/2 (rest=39)
[00000496] mp4 private debug: found Box: esds size 39
[00000496] mp4 private debug: found esds MPEG4ESDescr (25Bytes)
[00000496] mp4 private debug: found esds MP4DecConfigDescr (17Bytes)
[00000496] mp4 private debug: found esds MP4DecSpecificDescr (2Bytes)
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: read box: "soun" in stsd channel 2 sample size 16 sample rate 48000.000000
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: read box: "stsd" entry-count 1
[00000496] mp4 private debug: found Box: stts size 24
[00000496] mp4 private debug: read box: "stts" entry-count 1
[00000496] mp4 private debug: found Box: stsc size 28
[00000496] mp4 private debug: read box: "stsc" entry-count 1
[00000496] mp4 private debug: found Box: stsz size 35524
[00000496] mp4 private debug: read box: "stsz" sample-size 0 sample-count 8876
[00000496] mp4 private debug: found Box: stco size 35520
[00000496] mp4 private debug: read box: "co64" entry-count 8876
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: found Box: udta size 70
main warning: can't store message (无效或不完整的多字节字符或宽字符): found Box:
main warning: can't store message (无效或不完整的多字节字符或宽字符): read box: "
main warning: can't store message (无效或不完整的多字节字符或宽字符): found Box:
main warning: can't store message (无效或不完整的多字节字符或宽字符): read box: "
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: out of bound child
[00000496] mp4 private debug: dumping root Box "root"
[00000496] mp4 private debug: | + ftyp size 20
[00000496] mp4 private debug: | + mdat size 12468009
[00000496] mp4 private debug: | + moov size 95966
[00000496] mp4 private debug: | | + mvhd size 108
[00000496] mp4 private debug: | | + trak size 24340
[00000496] mp4 private debug: | | | + tkhd size 92
[00000496] mp4 private debug: | | | + mdia size 24240
[00000496] mp4 private debug: | | | | + mdhd size 32
[00000496] mp4 private debug: | | | | + hdlr size 45
[00000496] mp4 private debug: | | | | + minf size 24155
[00000496] mp4 private debug: | | | | | + vmhd size 20
[00000496] mp4 private debug: | | | | | + dinf size 36
[00000496] mp4 private debug: | | | | | | + dref size 28
[00000496] mp4 private debug: | | | | | | | + url size 12
[00000496] mp4 private debug: | | | | | + stbl size 24091
[00000496] mp4 private debug: | | | | | | + stsd size 187
[00000496] mp4 private debug: | | | | | | | + mp4v size 171
[00000496] mp4 private debug: | | | | | | | | + esds size 85
[00000496] mp4 private debug: | | | | | | + stts size 24
[00000496] mp4 private debug: | | | | | | + stss size 1040
[00000496] mp4 private debug: | | | | | | + stsc size 28
[00000496] mp4 private debug: | | | | | | + stsz size 11404
[00000496] mp4 private debug: | | | | | | + stco size 11400
[00000496] mp4 private debug: | | + trak size 71440
[00000496] mp4 private debug: | | | + tkhd size 92
[00000496] mp4 private debug: | | | + mdia size 71340
[00000496] mp4 private debug: | | | | + mdhd size 32
[00000496] mp4 private debug: | | | | + hdlr size 45
[00000496] mp4 private debug: | | | | + minf size 71255
[00000496] mp4 private debug: | | | | | + smhd size 16
[00000496] mp4 private debug: | | | | | + dinf size 36
[00000496] mp4 private debug: | | | | | | + dref size 28
[00000496] mp4 private debug: | | | | | | | + url size 12
[00000496] mp4 private debug: | | | | | + stbl size 71195
[00000496] mp4 private debug: | | | | | | + stsd size 91
[00000496] mp4 private debug: | | | | | | | + mp4a size 75
[00000496] mp4 private debug: | | | | | | | | + esds size 39
[00000496] mp4 private debug: | | | | | | + stts size 24
[00000496] mp4 private debug: | | | | | | + stsc size 28
[00000496] mp4 private debug: | | | | | | + stsz size 35524
[00000496] mp4 private debug: | | | | | | + stco size 35520
[00000496] mp4 private debug: | | + udta size 70
[00000496] mp4 private debug: | | | +
[00000496] mp4 private debug: | | | +
[00000497] mp4 demuxer debug: ISO Media file (isom) version 512.
[00000497] mp4 demuxer debug: find 2 tracks
[00000497] mp4 demuxer debug: track[Id 0x1] read 2846 chunk
[00000497] mp4 demuxer debug: track[Id 0x1] read 2846 samples length:189s
[00000485] main input debug: selecting program id=0
[00000497] mp4 demuxer debug: adding track[Id 0x1] video (enable) language undef
[00000497] mp4 demuxer debug: track[Id 0x2] read 8876 chunk
[00000497] mp4 demuxer debug: track[Id 0x2] read 8876 samples length:189s
[00000497] mp4 demuxer debug: adding track[Id 0x2] audio (enable) language undef
[00000497] main demuxer debug: using demux2 module "mp4"
[00000497] mp4 demuxer warning: DEMUX_GET_FPS unimplemented !!
[00000485] main input debug: looking for a subtitle file in /ONSRA/movies/
[00000498] main packetizer debug: looking for packetizer module: 30 candidates
[00000498] packetizer_mpeg4video packetizer debug: opening with vol size: 48
[00000498] main packetizer debug: using packetizer module "packetizer_mpeg4video"
[00000485] main input debug: stream out mode -> no decoder thread
[00000499] main packetizer debug: looking for packetizer module: 30 candidates
[00000499] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetizer
[00000499] packetizer_mpeg4audio packetizer debug: AAC 48000Hz 1024 samples/frame
[00000499] main packetizer debug: using packetizer module "packetizer_mpeg4audio"
[00000485] main input debug: stream out mode -> no decoder thread
[00000485] main input debug: starting in sync mode
[00000485] main input debug: `/ONSRA/movies/xx.mp4' successfully opened
[00000497] mp4 demuxer debug: track[Id 0x1] using Sync Sample Box (stss)
[00000497] mp4 demuxer debug: stts gives 0 --> 0 (sample number)
[00000497] mp4 demuxer debug: track[Id 0x2] does not provide Sync Sample Box (stss)
[00000487] main stream output debug: adding a new input
[00000488] stream_out_transcode private debug: creating video transcoding from fcc=`mp4v' to fcc=`mp4v'
[00000500] main decoder debug: looking for decoder module: 39 candidates
[00000500] ffmpeg decoder debug: libavcodec initialized (interface 3277056 )
[00000500] ffmpeg decoder debug: postprocessing disabled
[00000500] ffmpeg decoder debug: using direct rendering
[00000500] ffmpeg decoder debug: ffmpeg codec (MPEG-4 Video) started
[00000500] main decoder debug: using decoder module "ffmpeg"
[00000501] main encoder debug: looking for encoder module: 8 candidates
[00000501] ffmpeg encoder debug: libavcodec already initialized
[00000501] ffmpeg encoder debug: found encoder MPEG-4 Video
[00000501] main encoder debug: using encoder module "ffmpeg"
[00000501] main encoder debug: removing module "ffmpeg"
[00000488] stream_out_transcode private debug: drift is too high, resetting master sync
[00000488] stream_out_transcode private debug: decoder aspect is 576000:432000
[00000488] stream_out_transcode private debug: source pixel aspect is 1.000000:1
[00000488] stream_out_transcode private debug: scaled pixel aspect is 1.000000:1
[00000488] stream_out_transcode private debug: source 320x240, crop 320x240, destination 320x240, padding 320x240
[00000488] stream_out_transcode private debug: encoder aspect is 576000:432000
[00000501] main encoder debug: looking for encoder module: 8 candidates
[00000501] ffmpeg encoder debug: libavcodec already initialized
[00000501] ffmpeg encoder debug: removing common factors from framerate
(mpeg4@0x8ef2ef0)
[00000501] ffmpeg encoder debug: found encoder MPEG-4 Video
[00000501] main encoder debug: using encoder module "ffmpeg"
[00000493] main private debug: adding a new input
[00000493] mux_mp4 private debug: adding input
[00000488] stream_out_transcode private debug: drift is too high, resetting master sync
[00000487] main stream output debug: adding a new input
[00000488] stream_out_transcode private debug: creating audio transcoding from fcc=`mp4a' to fcc=`mpga'
[00000502] main decoder debug: looking for decoder module: 39 candidates
[00000502] main decoder debug: using decoder module "faad"
[00000503] main encoder debug: looking for encoder module: 8 candidates
[00000503] ffmpeg encoder debug: libavcodec already initialized
[00000503] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2
[00000503] main encoder debug: using encoder module "ffmpeg"
[00000504] main private debug: looking for audio filter2 module: 6 candidates
[00000504] audio_format private debug: fl32->s16l, bits per sample: 32
[00000504] main private debug: using audio filter2 module "audio_format"
[00000493] main private debug: adding a new input
[00000493] mux_mp4 private debug: adding input
[00000502] faad decoder warning: decoded zero sample
[00000488] stream_out_transcode private debug: drift is too high, resetting master sync
[00000491] access_output_udp private debug: late packet for udp input (1212565184453892)
[00000492] access_output_udp private debug: packet has been sent too late (1212565184454407)
[00000491] access_output_udp private debug: late packet for udp input (757779)
[00000492] access_output_udp private debug: mmh, hole (1212565183696863 > 2s) -> drop
[00000491] access_output_udp private debug: late packet for udp input (703802)
[00000492] access_output_udp private debug: dropped 1 packets
[00000492] access_output_udp private debug: packet has been sent too late (704265)
[00000491] access_output_udp private debug: late packet for udp input (638575)
[00000492] access_output_udp private debug: packet has been sent too late (638839)
[00000491] access_output_udp private debug: late packet for udp input (584837)
[00000492] access_output_udp private debug: packet has been sent too late (585056)
[00000491] access_output_udp private debug: late packet for udp input (519275)
[00000492] access_output_udp private debug: packet has been sent too late (519521)
[00000491] access_output_udp private debug: late packet for udp input (465643)
[00000492] access_output_udp private debug: packet has been sent too late (465863)
[00000491] access_output_udp private debug: late packet for udp input (418100)
[00000492] access_output_udp private debug: packet has been sent too late (418326)
[00000491] access_output_udp private debug: late packet for udp input (360425)
[00000492] access_output_udp private debug: packet has been sent too late (360649)
[00000491] access_output_udp private debug: late packet for udp input (298920)
[00000492] access_output_udp private debug: packet has been sent too late (299138)
[00000491] access_output_udp private debug: late packet for udp input (241077)
[00000492] access_output_udp private debug: packet has been sent too late (241333)
[00000491] access_output_udp private debug: late packet for udp input (179724)
[00000492] access_output_udp private debug: packet has been sent too late (179942)
[00000491] access_output_udp private debug: late packet for udp input (121824)
[00000492] access_output_udp private debug: packet has been sent too late (122044)
[00000491] access_output_udp private debug: late packet for udp input (60593)
[00000492] access_output_udp private debug: packet has been sent too late (60814)
[00000491] access_output_udp private debug: late packet for udp input (12981)
[00000491] access_output_udp private warning: packet size > MTU, you should probably increase the MTU
but i already add ffmpeg package configure as this:
./configure --prefix=/usr/ --disable-skins2 --disable-wxwidgets --enable-dvbpsi --with-dvbpsi-tree=/ONSRA/libdvbpsi4-0.1.5 --enable-a52 --with-a52-tree=/ONSRA/a52dec-0.7.4 --enable-ffmpeg --with-ffmpeg-tree=/ONSRA/ffmpeg-20051126 --enable-faad --with-faad-tree=/ONSRA/faad2-20040923 --enable-mad --with-mad-tree=/ONSRA/libmad-0.15.1b --enable-libmpeg2 --with-libmpeg2-tree=/ONSRA/mpeg2dec-0.4.1 --enable-live555 --with-live555-tree=/ONSRA/live --enable-x264 --with-x264-tree=/ONSRA/x264
who can tell me where i do wrongly?thanks!