Audio no Video

About encoding, codec settings, muxers and filter usage
ibizamale
New Cone
New Cone
Posts: 4
Joined: 24 Nov 2010 11:26

Audio no Video

Postby ibizamale » 24 Nov 2010 12:04

Hiya All,

We are outputting a video and audio stream to rtp/rtsp here is the code we are using

vlc -vvv udp://@234.5.90.131:4900 --sout '#transcode:rtp{dst=234.5.90.221,sdp=rtsp://10.10.10.101:8080/test.sdp}' --ttl 120

we know that udp://@234.5.90.131:4900 streams fine with audio and video.

When we run the command we get the following which is shown at the bottom

When we open the following address in vlc player

rtsp://10.10.10.101:8080/test.sdp

we get audio but no video.

any help would be greatly appreciated

regards





root@management:~# vlc -vvv udp://@234.5.90.131:4900 --sout '#transcode:rtp{dst=234.5.90.221,sdp=rtsp://10.10.10.101:8080/test.sdp}' --ttl 120
VLC media player 0.8.6e 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-04081e.dat
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: module bank initialized, found 225 modules
[00000001] main private warning: Unable to get HAL device properties
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 3 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000289] main playlist debug: waiting for thread completion
[00000289] main playlist debug: thread 1084959056 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000290] main private debug: waiting for thread completion
[00000290] main private debug: thread 1093351760 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000291] main interface debug: looking for interface module: 1 candidate
[00000291] main interface debug: using interface module "hotkeys"
[00000291] main interface debug: thread 1101744464 (interface) created at priority 0 (interface/interface.c:231)
[00000293] main interface debug: looking for interface module: 1 candidate
[00000293] main interface debug: using interface module "screensaver"
[00000293] main interface debug: thread 1110137168 (interface) created at priority 0 (interface/interface.c:231)
[00000289] main playlist debug: adding playlist item `udp://@234.5.90.131:4900' ( udp://@234.5.90.131:4900 )
[00000295] main interface debug: looking for interface module: 5 candidates
[00000295] skins2 interface error: Cannot open display
[00000295] skins2 interface error: cannot initialize OSFactory
Remote control interface initialized. Type `help' for help.
[00000295] main interface debug: using interface module "rc"
[00000295] main interface debug: thread 1118529872 (manager) created at priority 0 (interface/interface.c:216)
[00000289] main playlist debug: creating new input thread
[00000299] main input debug: waiting for thread completion
[00000299] main input debug: creating statistics handler
[00000301] main stream output debug: stream=`transcode'
[00000302] main private debug: looking for sout stream module: 1 candidate
[00000301] main stream output debug: stream=`rtp'
[00000305] main private debug: looking for sout stream module: 1 candidate
[00000305] main private debug: set sout option: sout-rtp-dst to 234.5.90.221
[00000299] main input debug: thread 1126922576 (input) created at priority 0 (input/input.c:265)
[00000305] main private debug: set sout option: sout-rtp-sdp to rtsp://10.10.10.101:8080/test.sdp
[00000305] stream_out_rtp private debug: rtsp setup: 10.10.10.101 : 8080 / /test.sdp

[00000305] main private: creating httpd
[00000305] main private debug: net: listening to 10.10.10.101 port 8080
[00000308] main http server debug: thread 1135315280 (httpd host thread) created at priority 0 (network/httpd.c:1078)
[00000305] main private debug: using sout stream module "stream_out_rtp"
[00000302] main private debug: using sout stream module "stream_out_transcode"
[00000299] main input debug: `udp://@234.5.90.131:4900' gives access `udp' demux `' path `@234.5.90.131:4900'
[00000299] main input debug: creating demux: access='udp' demux='' path='@234.5.90.131:4900'
[00000309] main demuxer debug: looking for access_demux module: 0 candidates
[00000309] main demuxer warning: no access_demux module matched "udp"
[00000299] main input debug: creating access 'udp' path='@234.5.90.131:4900'
[00000310] main access debug: looking for access2 module: 6 candidates
[00000310] access_udp access debug: opening server=:0 local=234.5.90.131:4900
[00000310] main access debug: net: connecting to '[]:0@[234.5.90.131]:4900'
[00000310] main access debug: looking for network module: 1 candidate
[00000310] ipv6 access debug: 234.5.90.131: Address family for hostname not supported
[00000310] main access debug: using network module "ipv6"
[00000310] main access debug: removing module "ipv6"
[00000310] main access debug: looking for network module: 1 candidate
[00000310] ipv4 access debug: resolving 234.5.90.131:4900...
[00000310] ipv4 access debug: resolving :0...
[00000310] ipv4 access debug: IP_ADD_MEMBERSHIP multicast request
[00000310] main access debug: using network module "ipv4"
[00000310] main access debug: removing module "ipv4"
[00000310] main access debug: using access2 module "access_udp"
[00000314] main private debug: pre buffering
[00000310] access_udp access debug: detected TS over raw UDP
[00000299] main input debug: creating demux: access='udp' demux='' path='@234.5.90.131:4900'
[00000315] main demuxer debug: looking for demux2 module: 45 candidates
[00000315] main demuxer debug: using demux2 module "ts"
[00000315] ts demuxer debug: DEMUX_SET_GROUP 0 (nil)
[00000299] main input debug: starting in sync mode
[00000310] access_udp access warning: unimplemented query in control
[00000299] main input debug: `udp://@234.5.90.131:4900' successfully opened
[00000315] ts demuxer debug: pid[36] unknown
libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 0) for PID 0
[00000315] ts demuxer debug: PATCallBack called
[00000315] ts demuxer debug: new PAT ts_id=0 version=5 current_next=1
[00000315] ts demuxer debug: * number=1 pid=32
libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 0) for PID 32
[00000315] ts demuxer debug: PMTCallBack called
[00000315] ts demuxer debug: new PMT program number=1 version=6 pid_pcr=34
[00000315] ts demuxer debug: * es pid=33 type=27 fcc=h264
[00000299] main input debug: selecting program id=1
[00000339] main packetizer debug: looking for packetizer module: 17 candidates
[00000339] main packetizer debug: using packetizer module "packetizer_h264"
[00000339] main packetizer debug: thread 1143707984 (decoder) created at priority 0 (input/decoder.c:159)
[00000315] ts demuxer debug: * es pid=36 type=15 fcc=mp4a
[00000355] main packetizer debug: looking for packetizer module: 17 candidates
[00000355] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetizer
[00000355] packetizer_mpeg4audio packetizer debug: no decoder specific info, must be an ADTS stream
[00000355] main packetizer debug: using packetizer module "packetizer_mpeg4audio"
[00000355] main packetizer debug: thread 1152100688 (decoder) created at priority 0 (input/decoder.c:159)
[00000315] ts demuxer debug: pid[34] unknown
[00000315] ts demuxer warning: first packet for pid=33 cc=0x9
status change: ( new input: udp://@234.5.90.131:4900 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000315] ts demuxer warning: first packet for pid=36 cc=0x7
[00000355] packetizer_mpeg4audio packetizer: AAC channels: 1 samplerate: 48000
[00000301] main stream output debug: adding a new input
[00000302] stream_out_transcode private debug: not transcoding a stream (fcc=`mp4a')
[00000359] main private debug: looking for sout access module: 1 candidate
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000359] main private debug: set sout option: sout-udp-raw to (null)
[00000359] main private debug: set sout option: sout-udp-ttl to 120
[00000359] main private debug: net: connecting to 234.5.90.221 port 1230
[00000361] main private debug: thread 1160493392 (sout write thread) created at priority 0 (udp.c:268)
[00000359] access_output_udp private debug: udp access output opened(234.5.90.221:1230)
[00000359] main private debug: using sout access module "access_output_udp"
[00000305] stream_out_rtp private debug: access out udp{raw,ttl=120}:234.5.90.221:1230
[00000305] stream_out_rtp private debug: maximum RTP packet size: 1450 bytes
[00000305] stream_out_rtp private debug: rtsp: adding /test.sdp/trackID=0

[00000305] stream_out_rtp private debug: sdp=v=0
o=- 1290596363198291 1 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.6e
c=IN IP4 234.5.90.221
m=audio 1230 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/48000
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13;IndexLength=3; IndexDeltaLength=3; Profile=1;

[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS

********Removed about 50 lines of the same code********

[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000339] packetizer_h264 packetizer debug: found NAL_SPS
[00000339] packetizer_h264 packetizer debug: found NAL_PPS
[00000301] main stream output debug: adding a new input
[00000302] stream_out_transcode private debug: not transcoding a stream (fcc=`h264')
[00000364] main private debug: looking for sout access module: 1 candidate
[00000364] main private debug: set sout option: sout-udp-raw to (null)
[00000364] main private debug: set sout option: sout-udp-ttl to 120
[00000364] main private debug: net: connecting to 234.5.90.221 port 1232
[00000365] main private debug: thread 1168886096 (sout write thread) created at priority 0 (udp.c:268)
[00000364] access_output_udp private debug: udp access output opened(234.5.90.221:1232)
[00000364] main private debug: using sout access module "access_output_udp"
[00000305] stream_out_rtp private debug: access out udp{raw,ttl=120}:234.5.90.221:1232
[00000305] stream_out_rtp private debug: maximum RTP packet size: 1450 bytes
[00000305] stream_out_rtp private debug: rtsp: adding /test.sdp/trackID=1

[00000305] stream_out_rtp private debug: sdp=v=0
o=- 1290596363198291 2 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.6e
c=IN IP4 234.5.90.221
m=audio 1230 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/48000
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13;IndexLength=3; IndexDeltaLength=3; Profile=1;
m=video 1232 RTP/AVP 97
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 16 guests