[streaming] transcode and size problem
Vanhaute Nicolas
nicolas.vanhaute at ac-clermont.fr
Wed Apr 16 16:06:15 CEST 2008
I found problem, if you are interested I give what was the problem :
from capture card, video was interlaced
and transcode default is deinterlaced
so now it's ok
Nicolas
Quoting Vanhaute Nicolas <nicolas.vanhaute at ac-clermont.fr>:
> hello,
>
> to resume my problem in details :
>
> - First computer (win with vlc 0.8.6f) with capture card which streams
> (stream in 720x576) in h264 to an other computer in udp
>
> - second computer (linux with vlc 0.8.6f) that catches udp stream then
> transcodes it again in h264 then streams it for http access
> (vlc -vvv udp: --udp-caching 5000 --sout
> '#transcode{vcodec=h264,vb=512,scale=1,acodec=mp4a,ab=16,channels=1}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.1:8080}}')
>
> - third computer = one client (win with vlc 0.8.6f), that opens stream
> in http from second computer
>
>
> => results :
>
> - on third computer I get stream with width = 1280 (see my last "logs"
> in my last mail)
> - now if on the first computer I also stream for http access, then from
> third computer I connect to it, I get the right size (720x576)
>
> => problem is on the second computer ?
>
> I provide you below "logs" from second computer, he seems to me that
> problem is ratio (in end of logs : "2.133333:1") that is not correct
> but why ? no idea
>
> -----------------------------------------------------
> [00000001] main private debug: checking builtin modules
> [00000001] main private debug: checking plugin modules
> [00000001] main private debug: loading plugins cache file
> /home/clermont/.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 204 modules
> [00000001] main private debug: opening config file /home/clermont/.vlc/vlcrc
> [00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT
> SSE SSE2 FPU
> [00000001] main private debug: looking for memcpy module: 1 candidate
> [00000001] main private debug: using memcpy module "memcpy"
> [00000267] main playlist debug: waiting for thread completion
> [00000267] main playlist debug: thread 3079764880 (playlist) created at
> priority 0 (playlist/playlist.c:184)
> [00000268] main private debug: waiting for thread completion
> [00000268] main private debug: thread 3071372176 (preparser) created at
> priority 0 (playlist/playlist.c:210)
> [00000269] main interface debug: looking for interface module: 1 candidate
> [00000269] main interface debug: using interface module "hotkeys"
> [00000269] main interface debug: thread 3062979472 (interface) created
> at priority 0 (interface/interface.c:231)
> [00000271] main interface debug: looking for interface module: 1 candidate
> [00000271] main interface debug: using interface module "screensaver"
> [00000271] main interface debug: thread 3054586768 (interface) created
> at priority 0 (interface/interface.c:231)
> [00000267] main playlist debug: adding playlist item `udp:' ( udp: )
> [00000273] main interface debug: looking for interface module: 2 candidates
> Interface de commande à distance initialisée, « h » pour obtenir
> de lâaide.
> [00000273] main interface debug: using interface module "rc"
> [00000273] main interface debug: thread 3046140816 (manager) created at
> priority 0 (interface/interface.c:216)
> [00000267] main playlist debug: creating new input thread
> [00000275] main input debug: waiting for thread completion
> [00000275] main input debug: creating statistics handler
> [00000277] main stream output debug: stream=`transcode'
> [00000278] main private debug: looking for sout stream module: 1 candidate
> [00000275] main input debug: thread 3037748112 (input) created at
> priority 0 (input/input.c:265)
> [00000277] main stream output debug: stream=`duplicate'
> [00000281] main private debug: looking for sout stream module: 1 candidate
> [00000281] stream_out_duplicate private debug: creating 'duplicate'
> [00000281] stream_out_duplicate private debug: * adding
> `std{access=http,mux=ts,dst=192.168.0.1:8080}'
> [00000277] main stream output debug: stream=`std'
> [00000283] main private debug: looking for sout stream module: 1 candidate
> [00000283] main private debug: set sout option: sout-standard-access to http
> [00000283] main private debug: set sout option: sout-standard-mux to ts
> [00000283] main private debug: set sout option: sout-standard-dst to
> 192.168.0.1:8080
> [00000283] stream_out_standard private debug: creating
> `http/ts://192.168.0.1:8080'
> [00000283] stream_out_standard private debug: extension is 46:8080
> [00000283] stream_out_standard private debug: extension -> mux=(null)
> [00000283] stream_out_standard private debug: using
> `http/ts://192.168.0.1:8080'
> [00000285] main private debug: looking for sout access module: 1 candidate
> [00000285] main private: creating httpd
> [00000285] main private debug: net: listening to 192.168.0.1 port 8080
> [00000288] main http server debug: thread 3029121936 (httpd host
> thread) created at priority 0 (network/httpd.c:1078)
> [00000285] main private debug: using sout access module "access_output_http"
> [00000283] stream_out_standard private debug: access opened
> [00000289] main private debug: looking for sout mux module: 1 candidate
> [00000289] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000
> [00000289] main private debug: using sout mux module "mux_ts"
> [00000277] main stream output debug: muxer support adding stream at any time
> [00000283] stream_out_standard private debug: mux opened
> [00000283] main private debug: using sout stream module "stream_out_standard"
> [00000281] main private debug: using sout stream module
> "stream_out_duplicate"
> [00000278] main private debug: set sout option: sout-transcode-vcodec to h264
> [00000278] main private debug: set sout option: sout-transcode-vb to 512
> [00000278] main private debug: set sout option: sout-transcode-scale to 1
> [00000278] main private debug: set sout option: sout-transcode-acodec to mp4a
> [00000278] main private debug: set sout option: sout-transcode-ab to 16
> [00000278] main private debug: set sout option: sout-transcode-channels to 1
> [00000278] stream_out_transcode private debug: codec audio=mp4a 0Hz 1
> channels 16Kb/s
> [00000278] stream_out_transcode private debug: codec video=h264 0x0
> scaling: 1.000000 512kb/s
> [00000278] main private debug: using sout stream module
> "stream_out_transcode"
> [00000275] main input debug: `udp:' gives access `udp' demux `' path `'
> [00000275] main input debug: creating demux: access='udp' demux='' path=''
> [00000290] main demuxer debug: looking for access_demux module: 0 candidates
> [00000290] main demuxer warning: no access_demux module matched "udp"
> [00000275] main input debug: creating access 'udp' path=''
> [00000291] main access debug: looking for access2 module: 6 candidates
> [00000291] access_udp access debug: opening server=:0 local=:1234
> [00000291] main access debug: net: connecting to '[]:0@[]:1234'
> [00000291] main access debug: looking for network module: 1 candidate
> [00000291] main access debug: using network module "ipv6"
> [00000291] main access debug: removing module "ipv6"
> [00000291] main access debug: using access2 module "access_udp"
> [00000294] main private debug: pre buffering
> [00000291] access_udp access debug: detected TS over raw UDP
> [00000275] main input debug: creating demux: access='udp' demux='' path=''
> [00000295] main demuxer debug: looking for demux2 module: 44 candidates
> status change: ( new input: udp: )
> status change: ( audio volume: 256 )
> status change: ( play state: 1 )
> [00000295] main demuxer debug: using demux2 module "ts"
> [00000275] main input debug: looking for a subtitle file in /home/clermont/
> [00000295] ts demuxer debug: DEMUX_SET_GROUP 0 (nil)
> [00000275] main input debug: starting in sync mode
> [00000291] access_udp access warning: unimplemented query in control
> [00000275] main input debug: `udp:' successfully opened
> [00000295] ts demuxer debug: pid[69] unknown
> [00000295] ts demuxer debug: pid[68] unknown
> libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected
> 0) for PID 0
> [00000295] ts demuxer debug: PATCallBack called
> [00000295] ts demuxer debug: new PAT ts_id=26327 version=16 current_next=1
> [00000295] ts demuxer debug: * number=1 pid=66
> libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected
> 0) for PID 66
> [00000295] ts demuxer debug: PMTCallBack called
> [00000295] ts demuxer debug: new PMT program number=1 version=22 pid_pcr=68
> [00000295] ts demuxer debug: * descriptor : IOD (0x1d)
> [00000295] ts demuxer debug: * es pid=68 type=27 fcc=h264
> [00000275] main input debug: selecting program id=1
> [00000322] main packetizer debug: looking for packetizer module: 17
> candidates
> [00000322] main packetizer debug: using packetizer module "packetizer_h264"
> [00000322] main packetizer debug: thread 3010870160 (decoder) created
> at priority 0 (input/decoder.c:159)
> [00000295] ts demuxer debug: * es pid=69 type=15 fcc=mp4a
> [00000337] main packetizer debug: looking for packetizer module: 17
> candidates
> [00000337] packetizer_mpeg4audio packetizer debug: running MPEG4 audio
> packetizer
> [00000337] packetizer_mpeg4audio packetizer debug: no decoder specific
> info, must be an ADTS stream
> [00000337] main packetizer debug: using packetizer module
> "packetizer_mpeg4audio"
> [00000337] main packetizer debug: thread 3002465168 (decoder) created
> at priority 0 (input/decoder.c:159)
> [00000295] ts demuxer warning: first packet for pid=68 cc=0x9
> [00000295] ts demuxer warning: first packet for pid=69 cc=0xb
> [00000337] packetizer_mpeg4audio packetizer: AAC channels: 2
> samplerate: 44100
> [00000277] main stream output debug: adding a new input
> [00000278] stream_out_transcode private debug: creating audio
> transcoding from fcc=`mp4a' to fcc=`mp4a'
> [00000341] main decoder debug: looking for decoder module: 24 candidates
> [00000341] main decoder debug: using decoder module "faad"
> [00000342] main encoder debug: looking for encoder module: 8 candidates
> [00000342] ffmpeg encoder debug: libavcodec initialized (interface 3352064 )
> [00000342] ffmpeg encoder error: cannot find encoder MPEG AAC Audio
> [00000278] stream_out_transcode private error: cannot find encoder ((null))
> [00000341] main decoder debug: removing module "faad"
> [00000278] stream_out_transcode private error: cannot create audio chain
> [00000337] main packetizer error: cannot create packetizer output (mp4a)
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer warning: waiting for SPS/PPS
> [00000322] packetizer_h264 packetizer debug: found NAL_SPS
> [00000322] packetizer_h264 packetizer debug: found NAL_PPS
> [00000288] main http server debug: Connection from 192.168.0.10
> [00000277] main stream output debug: adding a new input
> [00000278] stream_out_transcode private debug: creating video
> transcoding from fcc=`h264' to fcc=`h264'
> [00000358] main decoder debug: looking for decoder module: 24 candidates
> [00000358] ffmpeg decoder debug: libavcodec already initialized
> [00000358] ffmpeg decoder debug: postprocessing disabled
> [00000358] ffmpeg decoder debug: ffmpeg codec (h264) started
> [00000358] main decoder debug: using decoder module "ffmpeg"
> [00000359] main encoder debug: looking for encoder module: 8 candidates
> x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
> [00000359] main encoder debug: using encoder module "x264"
> [00000359] main encoder debug: removing module "x264"
> [00000358] ffmpeg decoder debug: concealing 0 DC, 0 AC, 0 MV errors
> (h264 at 0x85d2e80)
> [00000278] stream_out_transcode private debug: late picture skipped (5450279)
> [00000278] stream_out_transcode private debug: decoder aspect is
> 1152000:432000
> [00000278] stream_out_transcode private debug: source pixel aspect is
> 2.133333:1
> [00000278] stream_out_transcode private debug: scaled pixel aspect is
> 2.133333:1
> [00000278] stream_out_transcode private debug: source 720x576, crop
> 720x576, destination 720x576, padding 720x576
> [00000278] stream_out_transcode private debug: encoder aspect is
> 1152000:432000
> [00000359] main encoder debug: looking for encoder module: 8 candidates
> x264 [info]: using SAR=32/15
> x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
> [00000359] main encoder debug: using encoder module "x264"
> [00000281] stream_out_duplicate private debug: duplicated a new stream
> codec=h264 (es=68 group=1)
> [00000289] main private debug: adding a new input
> [00000289] mux_ts private debug: adding input codec=h264 pid=68
> [00000289] mux_ts private debug: new PCR PID is 68
> [00000281] stream_out_duplicate private debug: - added for output 0
>
> -----------------------------------------------------
>
> Thanks for your help
>
> Nicolas
More information about the streaming
mailing list