I have Hauppauge 1212 HD PVR device to realtime encoding HD-stream from HD camera (I use Canon Legria HF-S21).
I have a problem to stream (with VLC) without transcoding from Ubuntu 11.04.
On remote machine I get audio stream, and video size, but screen is blank (black).
With recorded (via cat /dev/video0 > test.ts) file the same situation, it playes perfectly, but doesn't stream.
Help me, please. Maybe, somebody have another solution?
Test file recorded from HD PVR, can be downloaded here : test.ts (71Mb)
Command:
Code: Select all
#!/bin/sh
mux="ffmpeg{mux=flv}"
dst=":8080/video.flv"
input="pvr:// :pvr-device=/dev/video1 :pvr-norm=2 :pvr-caching=1500 :file-caching=1500 :pvr-framerate=50"
output=":sout=#standard{access=http,mux=$mux,dst=:8080/video.flv} :no-sout-rtp-sap :no-sout-standard-sap :ttl=128 :sout-keep"
cvlc -vvvvv -I dummy $input $output
VLC log (sorry, but in CODE tag i can't highlight warnings):
[0x820352c] main access debug: looking for access module: 1 candidate
[0x820352c] pvr access debug: Using video device: /dev/video1.
[0x820352c] pvr access debug: hdpvr driver (Hauppauge HD PVR on usb-0000:00:1d.7-3) version 00.02.00
[0x820352c] pvr access debug: this driver uses the v4l2 API
[0x820352c] pvr access warning: Failed to set the requested video standard.
[0x820352c] main access debug: using access module "pvr"
[0x820352c] main access debug: TIMER module_need() : 0.330 ms - Total 0.330 ms / 1 intvls (Avg 0.330 ms)
[0x821314c] main stream debug: Using AStream*Stream
[0x821314c] main stream debug: pre buffering
[0x821314c] main stream debug: received first data after 486 ms
[0x821314c] main stream debug: pre-buffering done 1024 bytes in 0s - 2 KiB/s
[0x8212ee4] main stream debug: looking for stream_filter module: 5 candidates
[0x8212ee4] main stream debug: no stream_filter module matching "any" could be loaded
[0x8212ee4] main stream debug: TIMER module_need() : 0.114 ms - Total 0.114 ms / 1 intvls (Avg 0.114 ms)
[0x8212ee4] main stream debug: looking for stream_filter module: 1 candidate
[0x8212ee4] main stream debug: using stream_filter module "stream_filter_record"
[0x8212ee4] main stream debug: TIMER module_need() : 0.082 ms - Total 0.082 ms / 1 intvls (Avg 0.082 ms)
[0x82005e4] main input debug: creating demux: access='pvr' demux='' path=''
[0x8203b0c] main demux debug: looking for demux module: 52 candidates
[0x8203b0c] ts demux debug: PATCallBack called
[0x8203b0c] ts demux debug: new PAT ts_id=0 version=1 current_next=1
[0x8203b0c] ts demux debug: * number=0 pid=31
[0x8203b0c] ts demux debug: * number=1 pid=256
[0x8203b0c] ts demux debug: PMTCallBack called
[0x8203b0c] ts demux debug: new PMT program number=1 version=0 pid_pcr=4097
[0x8203b0c] ts demux debug: * descriptor : registration HDMV
[0x8203b0c] ts demux debug: * descriptor : unknown (0x88)
[0x8203b0c] ts demux debug: * es pid=4113 type=27 dr->i_tag=0x5
[0x8203b0c] ts demux debug: * es pid=4113 type=27 fcc=h264
[0x82005e4] main input debug: selecting program id=1
[0x8203b0c] ts demux error: MPEG-4 descriptor not found
[0x8203b0c] ts demux debug: * es pid=4352 type=15 fcc=mp4a
[0x820352c] pvr access warning: Unimplemented query in control.
[0x8203b0c] main demux debug: using demux module "ts"
[0x8203b0c] main demux debug: TIMER module_need() : 14.803 ms - Total 14.803 ms / 1 intvls (Avg 14.803 ms)
[0x82132f4] main decoder debug: looking for packetizer module: 21 candidates
[0x82132f4] main decoder debug: using packetizer module "packetizer_h264"
[0x82132f4] main decoder debug: TIMER module_need() : 1.429 ms - Total 1.429 ms / 1 intvls (Avg 1.429 ms)
[0x82132f4] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301)
[0x82132f4] main decoder debug: thread started
[0x82539ec] main decoder debug: looking for packetizer module: 21 candidates
[0x82539ec] packetizer_mpeg4audio decoder debug: running MPEG4 audio packetizer
[0x82539ec] packetizer_mpeg4audio decoder debug: no decoder specific info, must be an ADTS or LOAS stream
[0x82539ec] main decoder debug: using packetizer module "packetizer_mpeg4audio"
[0x82539ec] main decoder debug: TIMER module_need() : 0.210 ms - Total 0.210 ms / 1 intvls (Avg 0.210 ms)
[0x82539ec] main decoder debug: thread (decoder) created at priority 5 (input/decoder.c:301)
[0x82539ec] main decoder debug: thread started
[0x8203b0c] ts demux debug: DEMUX_SET_GROUP 0 (nil)
[0x82005e4] main input debug: starting in async mode
[0x820352c] pvr access warning: Unimplemented query in control.
[0x82594dc] main demux meta debug: looking for meta reader module: 2 candidates
[0x82594dc] lua demux meta debug: Trying Lua scripts in /home/test/.local/share/vlc/lua/meta/reader
[0x82594dc] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x82594dc] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x82594dc] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x82594dc] main demux meta debug: no meta reader module matching "any" could be loaded
[0x82594dc] main demux meta debug: TIMER module_need() : 0.599 ms - Total 0.599 ms / 1 intvls (Avg 0.599 ms)
[0x82005e4] main input debug: `pvr://' successfully opened
[0x8203b0c] ts demux debug: pid[31] unknown
[0x8203b0c] ts demux debug: pid[4097] unknown
[0x82005e4] main input debug: Buffering 0%
[0x82005e4] main input debug: switching to sync mode
[0x82539ec] packetizer_mpeg4audio decoder debug: detected ADTS format
[0x82132f4] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0)
[0x82132f4] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0)
[0x82029fc] main stream output debug: adding a new sout input (sout_input:0x82538c8)
[0x82055a4] main mux debug: adding a new input
[0x82055a4] avformat mux debug: adding input
[0x82055a4] avformat mux warning: Missing frame rate, assuming 25fps
[0x82539ec] packetizer_mpeg4audio decoder: AAC channels: 2 samplerate: 48000
[0x82029fc] main stream output debug: adding a new sout input (sout_input:0x8253180)
[0x82055a4] main mux debug: adding a new input
[0x82055a4] avformat mux debug: adding input
[0x82005e4] main input debug: Buffering 6%
[0x82005e4] main input debug: Buffering 13%
[0x82005e4] main input debug: Buffering 19%
[0x82005e4] main input debug: Buffering 26%
[0x82005e4] main input debug: Buffering 33%
[0x82005e4] main input debug: Buffering 39%
[0x82005e4] main input debug: Buffering 46%
[0x82005e4] main input debug: Buffering 53%
[0x82005e4] main input debug: Buffering 59%
[0x82005e4] main input debug: Buffering 66%
[0x82005e4] main input debug: Buffering 73%
[0x82005e4] main input debug: Buffering 79%
[0x82005e4] main input debug: Buffering 86%
[0x82005e4] main input debug: Buffering 93%
[0x82005e4] main input debug: Buffering 99%
[0x82005e4] main input debug: Stream buffering done (1599 ms in 1555 ms)
[0x82005e4] main input debug: Decoder buffering done in 0 ms
[0x82029fc] main stream output warning: trying to send non-dated packet to stream output!
....
[0x82029fc] main stream output warning: trying to send non-dated packet to stream output!
[0x82029fc] main stream output warning: trying to send non-dated packet to stream output!
[0x82055a4] avformat mux debug: writing header
[0x82029fc] main stream output warning: trying to send non-dated packet to stream output!
[0x82029fc] main stream output warning: trying to send non-dated packet to stream output!
....
^C[0x81e9904] signals interface error: Caught Interrupt signal, exiting...
[0x814d914] main libvlc debug: deactivating the playlist
[0x815c13c] main playlist debug: Deactivate
[0x815c13c] main playlist debug: incoming request - stopping current input
[0x820352c] main access debug: waitpipe: object killed
[0x815c13c] main playlist debug: dying input
[0x82005e4] main input debug: control type=0
[0x82005e4] main input debug: control: stopping input
[0x815c13c] main playlist debug: dying input
[0x82132f4] main decoder debug: removing module "packetizer_h264"
[0x82132f4] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO
[0x82029fc] main stream output debug: removing a sout input (sout_input:0x82538c8)
[0x82055a4] avformat mux debug: removing input
[0x82539ec] main decoder debug: removing module "packetizer_mpeg4audio"
[0x82539ec] main decoder debug: killing decoder fourcc `mp4a', 0 PES in FIFO
[0x82029fc] main stream output debug: removing a sout input (sout_input:0x8253180)
[0x82055a4] avformat mux debug: removing input
[0x82055a4] main mux warning: no more input streams for this mux
...