Gstreamer h264 streaming to vlc

Yocto related software discussions are here

Gstreamer h264 streaming to vlc

Postby Volodymyr » Mon Nov 17, 2014 7:22 pm

Hi all!

I run streaming from usb web camera by follow command:

gst-launch v4l2src device=/dev/video0 ! ffmpegcolorspace ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! vpuenc codec=6 ! h264parse ! mp4mux faststart=true fragment-duration=10 streamable=1 presentation-time=true ! tcpserversink host=192.168.0.2 port=500

VLC run as
vlc tcp://192.168.0.2:500

Connection established but vlc doesn't play video.
But when write to file all ok.
Any ideas?

Thanks.

VLC output:

[0x1b814d8] main playlist debug: adding item `tcp://192.168.0.2:500' ( tcp://192.168.0.2:500 )
[0x1b814d8] main playlist debug: meta ok for (null), need to fetch art
[0x1ba1af8] qt4 interface debug: Adding a new MRL to recent ones: tcp://192.168.0.2:500
[0x7f1118000ba8] main demux meta debug: looking for meta fetcher module matching "any": 1 candidates
[0x1b814d8] main playlist debug: processing request item: tcp://192.168.0.2:500, node: null, skip: 0
[0x1b814d8] main playlist debug: rebuilding array of current - root Playlist
[0x1b814d8] main playlist debug: rebuild done - 1 items, index 0
[0x1b814d8] main playlist debug: starting playback of the new playlist item
[0x1b814d8] main playlist debug: resyncing on tcp://192.168.0.2:500
[0x1b814d8] main playlist debug: tcp://192.168.0.2:500 is at 0
[0x1b814d8] main playlist debug: creating new input thread
[0x7f1114001658] main input debug: Creating an input for 'tcp://192.168.0.2:500'
[0x7f1114001658] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x7f1114001658] main input debug: `tcp://192.168.0.2:500' gives access `tcp' demux `' path `192.168.0.2:500'
[0x7f1114001658] main input debug: creating demux: access='tcp' demux='' location='192.168.0.2:500' file='(null)'
[0x7f110c000e28] main demux debug: looking for access_demux module matching "tcp": 20 candidates
[0x7f110c000e28] main demux debug: no access_demux modules matched
[0x7f1114001658] main input debug: creating access 'tcp' location='192.168.0.2:500', path='(null)'
[0x7f110c000f98] main access debug: looking for access module matching "tcp": 25 candidates
[0x1ba1af8] qt4 interface debug: IM: Setting an input
[0x7f110c000f98] main access debug: net: connecting to 192.168.0.2 port 500
[0x7f110c000f98] main access debug: connection succeeded (socket = 26)
[0x7f110c000f98] main access debug: using access module "access_tcp"
[0x7f110c001888] main stream debug: Using stream method for AStream*
[0x7f110c001888] main stream debug: starting pre-buffering
[0x7f1118000ba8] lua demux meta debug: Trying Lua scripts in /home/x0158990/.local/share/vlc/lua/meta/fetcher
[0x7f1118000ba8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher
[0x7f1118000ba8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
[0x7f1118000ba8] main demux meta debug: using meta fetcher module "lua"
[0x7f1118000ba8] main demux meta debug: removing module "lua"
[0x1b814d8] main playlist debug: searching art for tcp://192.168.0.2:500
[0x7f1118000ba8] main art finder debug: looking for art finder module matching "any": 2 candidates
[0x7f1118000ba8] lua art finder debug: Trying Lua scripts in /home/x0158990/.local/share/vlc/lua/meta/art
[0x7f1118000ba8] lua art finder debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art
[0x7f1118000ba8] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
[0x7f1118000ba8] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac
[0x7f1118000ba8] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
[0x7f1118000ba8] lua art finder debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac
[0x7f1118000ba8] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[0x7f1118000ba8] main art finder debug: no art finder modules matched
[0x1b814d8] main playlist debug: art not found for tcp://192.168.0.2:500
[0x1c44c48] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo)
[0x1c44c48] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo)
Volodymyr
 
Posts: 1
Joined: Mon Nov 17, 2014 5:02 pm

Re: Gstreamer h264 streaming to vlc

Postby Bohatyaor » Fri Apr 29, 2016 6:14 am

[0x7f1114001658] main input debug: Creating an input for 'tcp://192.168.0.2:500'
[0x7f1114001658] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x7f1114001658] main input debug: `tcp://192.168.0.2:500' gives access `tcp' demux `' path `192.168.0.2:500'
[0x7f1114001658] main input debug: creating demux: access='tcp' demux='' location='192.168.0.2:500' file='(null)'
[0x7f110c000e28] main demux debug: looking for access_demux module matching "tcp": 20 candidates
[0x7f110c000e28] main demux debug: no access_demux modules matched???
Bohatyaor
 
Posts: 1
Joined: Fri Apr 29, 2016 6:08 am


Return to Software - Yocto

Who is online

Users browsing this forum: No registered users and 4 guests