hello!vlc experts:
I am a new user to use vlc,i am trying to use vlc for multicasting xx.mp4 file,but i don't achieve it because of some questions.i want to known if xx.mp4 file can transcode to mpg format ,if it is likely to transcode,its commands fomcat ia:
./vlc /home/xx.mp4 --sout '#transcode{vcodec="mpgv",vb="1024",scale="1",acodec="mpga",ab="192",channels="2",deinterlace}:standard{access=udp,mux=ts,dst=239.0.0.1:2500}' ?
if it isn't possible to transcode mp4 fomcat to mpg fomcat,how to multicast mp4 fomcat file?
thanks for your response!
i test ./vlc /home/xx.mp4 --sout '#transcode{vcodec="mpgv",vb="1024",scale="1",acodec="mpga",ab="192",channels="2",deinterlace}:standard{access=udp,mux=ts,dst=239.0.0.1:2500}' or ./vlc -vvv "/ONSRA/movies/xx.mp4" --sout '#transcode{vcodec="mp4v",vb="1024",scale="1",acodec="mp4a",ab="192",channels="2",deinterlace}:standard{access=udp,mux=mp4,dst=239.0.0.1:2500}' ,both of them aren't working normally?why???
[root@localhost vlc-0.8.6c]# ./vlc -vvv "/ONSRA/movies/xx.mp4" --sout '#transcode{vcodec="mp4v",vb="1024",scale="1",acodec="mp4a",ab="192",channels="2",deinterlace}:standard{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 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 386 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"
!!!libvlc.c 703:start of playlist_creat()
###playlist_Create in playlist.c 98:start of playlist_Create
[00000703] main playlist debug: waiting for thread completion
@@@@@@@@@@@@@@@@@@@@@@@@playlist.c 596:=0
[00000703] main playlist debug: thread 3082304400 (playlist) created at priority 0 (playlist/playlist.c:185)
[00000704] main private debug: waiting for thread completion
[00000704] main private debug: thread 3071814544 (preparser) created at priority 0 (playlist/playlist.c:211)
!!!libvlc.c 705:end of playlist_creat()
[00000001] main private: creating VLM
[00000705] main vlm debug: thread 3061324688 (vlm thread) created at priority 0 (misc/vlm.c:105)
[00000001] main private: using the VLM interface plugin......
[00000706] main private debug: looking for vod server module: 2 candidates
#############vod server modules of open rtsp.c 212######
[00000706] vod_rtsp private debug: allowing up to 0 connections
[00000706] main private: creating httpd
[00000706] main private debug: net: listening to port 554
[00000709] main http server debug: creating statistics handler
[00000709] main http server debug: thread 3050834832 (httpd host thread) created at priority 0 (network/httpd.c:1081)
[00000706] main private debug: using vod server module "vod_rtsp"
##########before of hotkeys interface in libvlc 792
[00000711] main interface debug: looking for interface module: 2 candidates
[00000711] main interface debug: using interface module "hotkeys"
[00000711] main interface debug: thread 3040344976 (interface) created at priority 0 (interface/interface.c:231)
[00000713] main interface debug: looking for interface module: 2 candidates
[00000713] main interface debug: using interface module "screensaver"
[00000713] main interface debug: thread 3029855120 (interface) created at priority 0 (interface/interface.c:231)
##########end of screensaver interface in libvlc 830
before of adding playlist item in item-ext.c:153
[00000703] main playlist debug: adding playlist item `/ONSRA/movies/xx.mp4' ( /ONSRA/movies/xx.mp4 )
#####end of VLC_Init in libvlc.c 865
[00000715] main interface debug: looking for interface module: 4 candidates
[00000715] main interface debug: using interface module "wxwidgets"
[00000715] main interface debug: thread 3019365264 (manager) created at priority 0 (interface/interface.c:216)
[00000715] wxwidgets interface debug: Using last windows config '(-1,0,0,800,600)(0,176,273,501,82)(6,0,0,-1,150)'
[00000715] wxwidgets interface debug: id=0 p=(176,273) s=(501,82)
[00000715] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150)
[00000703] main playlist debug: nothing requested, starting
[00000703] main playlist debug: creating new input thread
[00000718] main input debug: waiting for thread completion
[00000718] main input debug: thread 2992761744 (input) created at priority 0 (input/input.c:265)
####playlist.c:1237 end of input_CreateThread
[00000719] main stream output debug: stream=`transcode'
[00000720] main private debug: looking for sout stream module: 2 candidates
[00000719] main stream output debug: stream=`standard'
[00000723] main private debug: looking for sout stream module: 2 candidates
[00000723] main private debug: set sout option: sout-standard-access to udp
[00000723] main private debug: set sout option: sout-standard-mux to mp4
[00000723] main private debug: set sout option: sout-standard-dst to 239.0.0.1:2500
[00000723] stream_out_standard private debug: creating `udp/mp4://239.0.0.1:2500'
[00000723] stream_out_standard private debug: extension is 1:2500
[00000723] stream_out_standard private debug: extension -> mux=(null)
[00000723] stream_out_standard private error: for now udp and rtp are only valid with TS
[00000723] stream_out_standard private debug: using `udp/mp4://239.0.0.1:2500'
[00000725] main private debug: looking for sout access module: 2 candidates
[00000725] main private debug: net: connecting to 239.0.0.1 port 2500
[00000727] main private debug: thread 2982271888 (sout write thread) created at priority 0 (udp.c:268)
[00000725] access_output_udp private debug: udp access output opened(239.0.0.1:2500)
[00000725] main private debug: using sout access module "access_output_udp"
[00000723] stream_out_standard private debug: access opened
[00000728] main private debug: looking for sout mux module: 2 candidates
[00000728] mux_mp4 private debug: Mp4 muxer opend
[00000728] main private debug: using sout mux module "mux_mp4"
[00000723] stream_out_standard private debug: mux opened
#######################end of open standard.c 373 in modules/stream_out
[00000723] main private debug: using sout stream module "stream_out_standard"
[00000720] main private debug: set sout option: sout-transcode-vcodec to mp4v
[00000720] main private debug: set sout option: sout-transcode-vb to 1024
[00000720] main private debug: set sout option: sout-transcode-scale to 1
[00000720] main private debug: set sout option: sout-transcode-acodec to mp4a
[00000720] main private debug: set sout option: sout-transcode-ab to 192
[00000720] main private debug: set sout option: sout-transcode-channels to 2
[00000720] main private debug: set sout option: sout-transcode-deinterlace to (null)
[00000720] stream_out_transcode private debug: codec audio=mp4a 0Hz 2 channels 192Kb/s
[00000720] stream_out_transcode private debug: codec video=mp4v 0x0 scaling: 1.000000 1024kb/s
[00000720] main private debug: using sout stream module "stream_out_transcode"
[00000718] main input debug: `/ONSRA/movies/xx.mp4' gives access `' demux `' path `/ONSRA/movies/xx.mp4'
[00000718] main input debug: creating demux: access='' demux='' path='/ONSRA/movies/xx.mp4'
[00000730] main demuxer debug: looking for access_demux module: 0 candidates
[00000730] main demuxer warning: no access_demux module matched "any"
[00000718] main input debug: creating access '' path='/ONSRA/movies/xx.mp4'
[00000731] main access debug: looking for access2 module: 10 candidates
this is open() of modules/access/vcd vcd.c 99
[00000731] vcd access debug: trying .cue file: /ONSRA/movies/xx.cue
[00000731] vcd access debug: could not find .cue file
this is open() of modules/access/vcd vcd.c 99
[00000731] vcd access debug: trying .cue file: /ONSRA/movies/xx.cue
[00000731] vcd access debug: could not find .cue file
this is open() of modules/access file.c 152
[00000731] access_file access debug: opening file `/ONSRA/movies/xx.mp4'
[00000731] main access debug: using access2 module "access_file"
[00000736] main private debug: pre-buffering...
[00000736] main private debug: received first data for our buffer
[00000718] main input debug: creating demux: access='' demux='' path='/ONSRA/movies/xx.mp4'
[00000737] main demuxer debug: looking for demux2 module: 79 candidates
[00000736] mp4 private debug: found Box: ftyp size 20
[00000736] mp4 private debug: found Box: moov size 160
[00000736] mp4 private debug: found Box: mvhd size 108
[00000736] mp4 private debug: read box: "mvhd" creation 733113d-18h:57m:23s modification 733113d-18h:57m:23s time scale 90000 duration 694977d-48h:00m:00s rate 1.000000 volume 1.000000 next track id 1
[00000736] mp4 private debug: found Box: udta size 44
main warning: can't store message (无效或不完整的多字节字符或宽字符): found Box:
main warning: can't store message (无效或不完整的多字节字符或宽字符): read box: "
[00000736] mp4 private debug: out of bound child
[00000736] mp4 private debug: out of bound child
[00000736] mp4 private debug: found Box: wide size 8
[00000736] mp4 private debug: skip box: "wide"
[00000736] mp4 private debug: found Box: mdat size 8
[00000736] mp4 private debug: skip box: "mdat"
[00000736] mp4 private debug: out of bound child
[00000736] mp4 private debug: dumping root Box "root"
[00000736] mp4 private debug: | + ftyp size 20
[00000736] mp4 private debug: | + moov size 160
[00000736] mp4 private debug: | | + mvhd size 108
[00000736] mp4 private debug: | | + udta size 44
[00000736] mp4 private debug: | | | +
[00000736] mp4 private debug: | + wide size 8
[00000736] mp4 private debug: | + mdat size 8
[00000737] mp4 demuxer debug: ISO Media file (isom) version 0.
[00000737] mp4 demuxer error: cannot find any /moov/trak
[00000736] mp4 private debug: found Box: mdat size 8
[00000736] mp4 private debug: skip box: "mdat"
[00000736] mp4 private debug: out of bound child
[00000736] mp4 private debug: dumping root Box "root"
[00000736] mp4 private debug: | + mdat size 8
[00000737] mp4 demuxer debug: file type box missing (assuming ISO Media file)
[00000737] mp4 demuxer error: MP4 plugin discarded (no moov box)
[00000737] dtssys demuxer warning: cannot peek()
[00000737] dtssys demuxer warning: cannot peek()
[00000737] a52sys demuxer warning: cannot peek()
[00000737] a52sys demuxer warning: cannot peek()
[00000737] ffmpeg demuxer debug: couldn't guess format
[00000737] vobsub demuxer debug: this doesn't seem to be a vobsub file
[00000737] ps demuxer warning: this does not look like an MPEG PS stream, continuing anyway
[00000737] main demuxer debug: using demux2 module "ps"
[00000718] main input debug: looking for a subtitle file in /ONSRA/movies/
[00000718] main input debug: starting in sync mode
[00000718] main input debug: `/ONSRA/movies/xx.mp4' successfully opened
[00000737] ps demuxer warning: garbage at input, trying to resync...
[00000718] main input debug: EOF reached
[00000718] main input debug: closing input
[00000737] main demuxer debug: removing module "ps"
[00000731] main access debug: removing module "access_file"
[00000718] main input debug: destroying sout
[00000720] main private debug: destroying chain... (name=transcode)
[00000723] main private debug: destroying chain... (name=standard)
[00000728] mux_mp4 private debug: Close
[00000725] access_output_udp private error: UDP sout access cannot seek
[00000728] mux_mp4 private debug: movie duration 0s
[00000725] access_output_udp private error: UDP sout access cannot seek
[00000728] mux_mp4 private warning: read() not supported by access output, won't create a fast start file
[00000725] access_output_udp private error: UDP sout access cannot seek
[00000728] main private debug: removing module "mux_mp4"
[00000727] main private debug: thread 2982271888 joined (udp.c:316)
[00000725] access_output_udp private debug: udp access output closed
[00000725] main private debug: removing module "access_output_udp"
[00000723] main private debug: removing module "stream_out_standard"
[00000723] main private debug: destroying chain done
[00000720] main private debug: removing module "stream_out_transcode"
[00000720] main private debug: destroying chain done
[00000718] main input debug: thread 2992761744 joined (input/input.c:412)
[00000703] main playlist: nothing to play
[00000001] main private debug: removing all interfaces
[00000715] main interface debug: thread 3019365264 joined (interface/interface.c:258)
[00000715] main interface debug: removing module "wxwidgets"
[00000713] main interface debug: thread 3029855120 joined (interface/interface.c:258)
[00000713] main interface debug: removing module "screensaver"
[00000711] main interface debug: thread 3040344976 joined (interface/interface.c:258)
[00000711] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
@@@@@@@@@@@@@@@@@@@@@@@@playlist.c 852
[00000704] main private debug: thread 3071814544 joined (playlist/playlist.c:248)
[00000703] main playlist debug: thread 3082304400 joined (playlist/playlist.c:249)
[00000703] main playlist: stopping playback
[00000703] main playlist debug: deleting playlist item `/ONSRA/movies/xx.mp4'
[00000001] main private debug: removing all video outputs
[00000001] main private debug: removing all audio outputs
[00000001] main private debug: removing module "memcpymmxext"
[00000706] main private debug: removing module "vod_rtsp"
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat
[root@localhost vlc-0.8.6c]#