VLC ATSC to HTTP Live Stream

About encoding, codec settings, muxers and filter usage
fritz_fritz
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Aug 2012 21:25
VLC version: 2.0.3
Operating System: Ubuntu 12.04

VLC ATSC to HTTP Live Stream

Postby fritz_fritz » 19 Aug 2012 21:43

Hello,

I'm currently working on using VLC to access a digital TV tuner and stream the content so as to be accessible on an iOS device. I have poured over everything I can find via googling and the vlc wiki and forum. I have gotten very close but am running into some errors. I was hoping someone might have an idea of what was wrong so as to help me get this working.

My system: Ubuntu 12.04 running Apache and VLC 2.03.

My Code:

Code: Select all

vlc atsc://frequency=605029000 vlc://quit --intf=dummy --sout-transcode-audio-sync --sout='#transcode{vcodec=264,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,width=320,height=240,ref=1,nocabac},acodec=aac,ab=128,channels=2,deinterlace,audio-sync}:duplicate{dst=std{mux=ts,dst=-,access=livehttp{seglen=10,delsegs=true,numsegs=10,index=/var/www/stream/live.m3u8,index-url=http://localhost/stream/live-######.ts},mux=ts{use-key-frames},dst=/var/www/stream/live-######.ts}}'
Output:

Code: Select all

VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e) [0x987dfc0] dummy interface: using the dummy interface module... libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0) for PID 0 x264 [warning]: frame MB size (80x45) > level limit (1620) x264 [warning]: MB rate (90000) > level limit (40500) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Constrained Baseline, level 3.0 x264 [info]: using SAR=1/1 x264 [warning]: frame MB size (80x45) > level limit (1620) x264 [warning]: MB rate (215784) > level limit (40500) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Constrained Baseline, level 3.0 [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 11) for PID 0 [mpeg2video @ 0xb7308a20] Warning MVs not available [mpeg2video @ 0xb7308a20] concealing 750 DC, 750 AC, 750 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 4) for PID 48 [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 12) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 8) for PID 48 [mpeg2video @ 0xb7308a20] ac-tex damaged at 10 4 [mpeg2video @ 0xb7308a20] Warning MVs not available [mpeg2video @ 0xb7308a20] concealing 3280 DC, 3280 AC, 3280 MV errors [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 13) for PID 48 libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 13) for PID 0 [mpeg2video @ 0xb7308a20] ac-tex damaged at 29 35 [mpeg2video @ 0xb7308a20] ac-tex damaged at 44 2 [mpeg2video @ 0xb7308a20] ac-tex damaged at 6 34 [mpeg2video @ 0xb7308a20] invalid mb type in P Frame at 25 36 [mpeg2video @ 0xb7308a20] mb incr damaged [mpeg2video @ 0xb7308a20] ac-tex damaged at 20 38 [mpeg2video @ 0xb7308a20] invalid mb type in P Frame at 11 39 [mpeg2video @ 0xb7308a20] slice mismatch [mpeg2video @ 0xb7308a20] ac-tex damaged at 65 41 [mpeg2video @ 0xb7308a20] mb incr damaged [mpeg2video @ 0xb7308a20] invalid mb type in P Frame at 13 43 [mpeg2video @ 0xb7308a20] ac-tex damaged at 26 44 [mpeg2video @ 0xb7308a20] concealing 3440 DC, 3440 AC, 3440 MV errors [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 1) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 4, expected 2) for PID 48 [mpeg2video @ 0xb7308a20] invalid mb type in B Frame at 32 0 [mpeg2video @ 0xb7308a20] concealing 3200 DC, 3200 AC, 3200 MV errors [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 4) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 9, expected 6) for PID 48 [mpeg2video @ 0xb7308a20] slice mismatch [mpeg2video @ 0xb7308a20] invalid cbp at 0 37 [mpeg2video @ 0xb7308a20] slice mismatch [mpeg2video @ 0xb7308a20] ac-tex damaged at 5 39 [mpeg2video @ 0xb7308a20] slice mismatch [mpeg2video @ 0xb7308a20] invalid mb type in B Frame at 21 41 [mpeg2video @ 0xb7308a20] mb incr damaged [mpeg2video @ 0xb7308a20] invalid mb type in B Frame at 16 43 [mpeg2video @ 0xb7308a20] invalid mb type in B Frame at 5 44 [mpeg2video @ 0xb7308a20] concealing 3200 DC, 3200 AC, 3200 MV errors [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 8) for PID 0 [0xb7003f80] access_output_livehttp access out: LiveHttpSegmentComplete: /var/www/stream/live-000001.ts (1) [0xb7003f80] access_output_livehttp access out: LiveHttpIndexComplete: /var/www/stream/live.m3u8 libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 11) for PID 48 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 30 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 31 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 32 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 33 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 34 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 35 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 36 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 37 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 38 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 39 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 40 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 41 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 42 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 43 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 44 [mpeg2video @ 0xb7308a20] invalid mb type in B Frame at 30 6 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 1 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 2 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 3 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 4 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 5 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 6 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 7 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 8 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 9 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 10 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 11 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 12 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 13 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 14 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 15 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 16 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 17 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 18 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 19 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 20 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 21 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 22 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 23 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 24 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 25 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 26 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 27 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 28 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 29 [mpeg2video @ 0xb7308a20] Warning MVs not available [mpeg2video @ 0xb7308a20] concealing 3520 DC, 3520 AC, 3520 MV errors [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 11) for PID 0 [mpeg2video @ 0xb7308a20] ac-tex damaged at 27 42 [mpeg2video @ 0xb7308a20] invalid cbp at 62 43 [mpeg2video @ 0xb7308a20] invalid mb type in B Frame at 32 44 [mpeg2video @ 0xb7308a20] ac-tex damaged at 66 4 [mpeg2video @ 0xb7308a20] mb incr damaged [mpeg2video @ 0xb7308a20] concealing 3280 DC, 3280 AC, 3280 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0) for PID 48 [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 14) for PID 0 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 42 [mpeg2video @ 0xb7308a20] slice mismatch [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 43 [mpeg2video @ 0xb7308a20] ac-tex damaged at 0 44 [mpeg2video @ 0xb7308a20] concealing 3600 DC, 3600 AC, 3600 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 5) for PID 48 [0xb7000818] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 1) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 12, expected 10) for PID 48 [mpeg2video @ 0xb7308a20] ac-tex damaged at 27 1 [mpeg2video @ 0xb7308a20] concealing 3360 DC, 3360 AC, 3360 MV errors ^Cx264 [info]: frame I:21 Avg QP:24.31 size: 33843 x264 [info]: frame P:523 Avg QP:25.87 size: 3818 x264 [info]: mb I I16..4: 57.8% 0.0% 42.2% x264 [info]: mb P I16..4: 2.7% 0.0% 1.0% P16..4: 17.1% 3.3% 0.7% 0.0% 0.0% skip:75.3% x264 [info]: coded y,uvDC,uvAC intra: 32.7% 50.7% 6.7% inter: 3.4% 8.4% 0.0% x264 [info]: i16 v,h,dc,p: 49% 26% 13% 12% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 16% 6% 5% 5% 5% 6% 4% x264 [info]: i8c dc,h,v,p: 48% 23% 25% 5% x264 [info]: kb/s:2386.54 [0xb7003f80] access_output_livehttp access out: LiveHttpSegmentComplete: /var/www/stream/live-000002.ts (2) [0xb7003f80] access_output_livehttp access out: LiveHttpIndexComplete: /var/www/stream/live.m3u8
~~~~~~~~~~~~~~
OR
~~~~~~~~~~~~~~
Code:

Code: Select all

vlc atsc://frequency=605029000 vlc://quit --intf=dummy --sout-transcode-audio-sync --sout='#transcode{vcodec=264,venc=x264{aud,profile=baseline,level=30,keyint=30,width=320,height=240,ref=1},acodec=aac,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=-}}' | m3u8-segmenter -i - -d 10 -p /var/www/stream/live -m /var/www/stream/live.m3u8 -u http://localhost/stream
Output:

Code: Select all

VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e) [0x9304020] dummy interface: using the dummy interface module... libdvbpsi error (PSI decoder): TS discontinuity (received 12, expected 0) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 0) for PID 48 x264 [warning]: frame MB size (80x45) > level limit (1620) x264 [warning]: MB rate (90000) > level limit (40500) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Constrained Baseline, level 3.0 x264 [info]: using SAR=1/1 x264 [warning]: frame MB size (80x45) > level limit (1620) x264 [warning]: MB rate (215784) > level limit (40500) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile Constrained Baseline, level 3.0 [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [h264 @ 0x813a500] non-existing PPS referenced [h264 @ 0x813a500] non-existing PPS 0 referenced [h264 @ 0x813a500] decode_slice_header error [h264 @ 0x813a500] no frame! [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 4, expected 10) for PID 0 [mpeg2video @ 0xb71040c0] ac-tex damaged at 66 5 [mpeg2video @ 0xb71040c0] Warning MVs not available [mpeg2video @ 0xb71040c0] concealing 1760 DC, 1760 AC, 1760 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 12) for PID 48 [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 0) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 4, expected 1) for PID 48 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] ac-tex damaged at 43 31 [mpeg2video @ 0xb71040c0] invalid cbp at 0 32 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] invalid cbp at 1 35 [mpeg2video @ 0xb71040c0] invalid mb type in B Frame at 12 36 [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] ac-tex damaged at 20 40 [mpeg2video @ 0xb71040c0] ac-tex damaged at 12 41 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] invalid mb type in B Frame at 44 6 [mpeg2video @ 0xb71040c0] invalid cbp at 46 25 [mpeg2video @ 0xb71040c0] invalid mb type in B Frame at 60 26 [mpeg2video @ 0xb71040c0] ac-tex damaged at 5 27 [mpeg2video @ 0xb71040c0] ac-tex damaged at 17 28 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] Warning MVs not available [mpeg2video @ 0xb71040c0] concealing 3120 DC, 3120 AC, 3120 MV errors [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 9, expected 7) for PID 48 libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 6) for PID 0 [mpeg2video @ 0xb71040c0] skipped MB in I frame at 55 0 [mpeg2video @ 0xb71040c0] concealing 2154 DC, 2154 AC, 2154 MV errors [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 11) for PID 0 [mpeg2video @ 0xb71040c0] ac-tex damaged at 24 21 [mpeg2video @ 0xb71040c0] ac-tex damaged at 5 21 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] ac-tex damaged at 31 23 [mpeg2video @ 0xb71040c0] ac-tex damaged at 31 24 [mpeg2video @ 0xb71040c0] ac-tex damaged at 22 25 [mpeg2video @ 0xb71040c0] invalid cbp at 9 26 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] ac-tex damaged at 18 28 [mpeg2video @ 0xb71040c0] ac-tex damaged at 22 29 [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] ac-tex damaged at 34 32 [mpeg2video @ 0xb71040c0] ac-tex damaged at 13 33 [mpeg2video @ 0xb71040c0] ac-tex damaged at 22 34 [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] invalid cbp at 24 36 [mpeg2video @ 0xb71040c0] ac-tex damaged at 6 37 [mpeg2video @ 0xb71040c0] ac-tex damaged at 4 38 [mpeg2video @ 0xb71040c0] ac-tex damaged at 1 39 [mpeg2video @ 0xb71040c0] ac-tex damaged at 15 40 [mpeg2video @ 0xb71040c0] ac-tex damaged at 1 41 [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] ac-tex damaged at 24 43 [mpeg2video @ 0xb71040c0] ac-tex damaged at 43 44 [mpeg2video @ 0xb71040c0] concealing 3520 DC, 3520 AC, 3520 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 12) for PID 48 [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 9, expected 15) for PID 0 [mpeg2video @ 0xb71040c0] ac-tex damaged at 59 19 [mpeg2video @ 0xb71040c0] concealing 0 DC, 0 AC, 0 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 4, expected 1) for PID 48 [mpegts @ 0x81230a0] max_analyze_duration reached [mpegts @ 0x81230a0] Estimating duration from bitrate, this may be inaccurate Output #0, mpegts, to '/var/www/stream/live': Stream #0.0: Audio: aac, 48000 Hz, stereo, 132 kb/s Stream #0.1: Video: [27][0][0][0] / 0x001B, yuv420p, 1280x720, q=2-31, 90k tbn, 59.94 tbc [mpegts @ 0x81520e0] muxrate VBR, pcr every 11 pkts, sdt every 200, pat/pmt every 40 pkts [mpegts @ 0x81520e0] muxrate VBR, pcr every 11 pkts, sdt every 200, pat/pmt every 40 pkts [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093082431 >= 8093082431 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093083932 >= 8093083932 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093085434 >= 8093085434 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093086935 >= 8093086935 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093106978 >= 8093072916 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093106978 >= 8093074835 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093106978 >= 8093076755 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093088437 >= 8093088437 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093156960 >= 8093112441 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093156960 >= 8093113942 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093156960 >= 8093115444 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093156960 >= 8093116945 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093156960 >= 8093118447 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093300639 >= 8093300639 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093302140 >= 8093302140 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093303642 >= 8093303642 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093305144 >= 8093305144 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093328803 >= 8093324491 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093451312 >= 8093451312 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093452814 >= 8093452814 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093454315 >= 8093454315 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093478288 >= 8093478288 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093479790 >= 8093479790 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093481291 >= 8093481291 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093626860 >= 8093616130 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093626860 >= 8093618050 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093626860 >= 8093619970 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093626860 >= 8093621890 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093626860 >= 8093623810 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8093626860 >= 8093625730 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093642453 >= 8093642453 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093643954 >= 8093643954 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093645455 >= 8093645455 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093646957 >= 8093646957 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093648458 >= 8093648458 Warning: Could not write frame of stream [mpegts @ 0x81520e0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 8093731041 >= 8093731041 Warning: Could not write frame of stream [mpegts @ 0x81520e0] muxrate VBR, pcr every 11 pkts, sdt every 200, pat/pmt every 40 pkts [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 13, expected 3) for PID 0 [mpeg2video @ 0xb71040c0] concealing 1291 DC, 1291 AC, 1291 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 9, expected 6) for PID 48 [0xb6f014d8] dtv access error: cannot demux data fast enough! libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 7) for PID 0 [mpeg2video @ 0xb71040c0] ac-tex damaged at 39 3 [mpeg2video @ 0xb71040c0] invalid cbp at 5 35 [mpeg2video @ 0xb71040c0] ac-tex damaged at 16 36 [mpeg2video @ 0xb71040c0] mb incr damaged [mpeg2video @ 0xb71040c0] ac-tex damaged at 50 38 [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] slice mismatch [mpeg2video @ 0xb71040c0] ac-tex damaged at 23 42 [mpeg2video @ 0xb71040c0] ac-tex damaged at 2 43 [mpeg2video @ 0xb71040c0] end mismatch left=3121 2A0C34 [mpeg2video @ 0xb71040c0] Warning MVs not available [mpeg2video @ 0xb71040c0] concealing 3360 DC, 3360 AC, 3360 MV errors libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 11) for PID 48 ^C[mpegts @ 0x81230a0] PES packet size mismatch x264 [info]: frame I:18 Avg QP:23.48 size: 25233 x264 [info]: frame P:471 Avg QP:25.46 size: 2921 x264 [info]: mb I I16..4: 64.4% 0.0% 35.6% x264 [info]: mb P I16..4: 2.2% 0.0% 0.5% P16..4: 18.3% 2.4% 0.4% 0.0% 0.0% skip:76.2% x264 [info]: coded y,uvDC,uvAC intra: 29.8% 49.9% 3.7% inter: 2.4% 9.1% 0.0% x264 [info]: i16 v,h,dc,p: 52% 26% 12% 10% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 28% 19% 4% 4% 5% 4% 4% 4% x264 [info]: i8c dc,h,v,p: 55% 19% 22% 4% x264 [info]: kb/s:1794.61

fritz_fritz
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Aug 2012 21:25
VLC version: 2.0.3
Operating System: Ubuntu 12.04

Progress

Postby fritz_fritz » 21 Aug 2012 02:49

For anyone interested I have a successful stream using vlc that is viewable when accessed by vlc but have a new error on the iPhone. I call it progress.

Code: Select all

vlc atsc://frequency=605029000 vlc://quit --intf=dummy --sout-transcode-audio-sync --sout='#transcode{vcodec=h264,vb=150,scale=1,width=480,acodec=mp4a,ab=48,channels=2,samplerate=22050}:duplicate{dst=std{mux=ts,dst=-,access=livehttp{seglen=10,delsegs=true,numsegs=10,index=/var/www/stream/live.m3u8,index-url=http://localhost/stream/live-######.ts},mux=ts{use-key-frames},dst=/var/www/stream/live-######.ts}}'
Anyone that has ideas please feel free to share

FRITZ|FRITZ

fritz_fritz
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Aug 2012 21:25
VLC version: 2.0.3
Operating System: Ubuntu 12.04

IT WORKS!

Postby fritz_fritz » 25 Aug 2012 11:24

A quick update... It works!

I successfully have streamed live tv to my iPhone over a 3G connection.

I will update soon with exactly what I have done so anyone else can try to replicate.

Current plan of action:
1) Optimize video playback
2) Implement ability to cleanly switch channel remotely
3) Create a plugin in Plex so as not to leave firewall open on port 80.

FRITZ | FRITZ

kakker
New Cone
New Cone
Posts: 2
Joined: 07 Sep 2012 19:15
Operating System: Mac, WHS11, Ubuntu
Location: Midwest, USA

Re: VLC ATSC to HTTP Live Stream

Postby kakker » 07 Sep 2012 19:38

fritz_fritz,

Thanks for posting your progress and the command line information. Was wondering how this is working for you now and what TV tuner you were working with, as well as what progress you may have made on the plugin? I'm working with a Hauppauge HVR-2250 dual tuner pci card in a WHS 2011 system, and trying to accomplish the same, though my codecs are different. The Hauppuage has (at least) two different types of live streams: one for FM audio, and the other for ATSC TV. I've been trying to develop a plugin in Playon, as Hauppauge's WinTV with Extend software does not work well with UPnP/DLNA devices. I've also played around with Serviio a bit, but while I can get Serviio to handle the TV links, it chokes on the FM audio, which is apparently wrapped in TS without a video stream.

The streams appear as such in VLC, when played on my local network from a URL like http://<serveripaddress>:7799/stream?channel=<####_wintvchannel#> (eg, http://192.168.1.1:7799/stream?channel=1081) :

FM Live Stream Radio
-----------------------------
Stream 0
Type: Audio
Original ID: 1001
Codec: MPEG Audio layer 1/2/3 (mpga)
Channels: Stereo
Sample rate: 48000 Hz
Bitrate: 384 kb/s


ATSC Live Stream TV
-----------------------------
Stream 0
Type: Video
Original ID: 49
Codec: MPEG-1/2 Video (mpgv)
Resolution: 1920x1080
Frame rate: 59.940060
Decoded format: Planar 4:2:0 YUV
Stream 1
Type: Audio
Original ID: 52
Codec: A52 Audio (aka AC3) (a52)
Channels: Stereo
Sample rate: 48000 Hz
Bitrate: 384 kb/s
Stream 2
Type: Subtitle
Original ID: 272
Codec: Teletext (telx)
Description: Teletext
Stream 3
Type: Subtitle
Codec: (cc1)
Description: Closed captions 1
Stream 4
Type: Subtitle
Codec: (cc2)
Description: Closed captions 2
Stream 5
Type: Subtitle
Codec: (cc3)
Description: Closed captions 3
Stream 6
Type: Subtitle
Codec: (cc4)
Description: Closed captions 4
"A little song, a little dance, a little seltzer down the pants." -Chuckles the Clown ==> http://www.youtube.com/watch?v=YmBK5GslDaQ

fritz_fritz
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Aug 2012 21:25
VLC version: 2.0.3
Operating System: Ubuntu 12.04

Re: VLC ATSC to HTTP Live Stream

Postby fritz_fritz » 19 Sep 2012 01:18

Was wondering how this is working for you now and what TV tuner you were working with, as well as what progress you may have made on the plugin?
Kakker,

My setup is working great! Honestly I haven't had the time to toy around with my goals listed above but the experience has been satisfying enough not to be at the top of my priority list. I am using an ATI TV Wonder 600 USB tuner that tunes both digital and analog TV. I ended up setting up an apache server on my computer running Ubuntu 12.04 LTS and writing bash script stored in the cgi-bin to execute tuning channel changes. The entirety of the tuning is handled by VLC. The hard part was finding the correct frequencies. I am tuning OTA (over the air) broadcast tv in digital form and then formatting the signal in the correct format for HTTP Live Streaming (which is very specific if streaming to an IOS device). And then outputing the video in segments via the HTTP Live Streaming Protocal all handled by VLC. My server has an HTML page that when loaded shows a link to "watch now" if VLC is currently streaming. It also gives a dropdown menu to select a channel to tune. While I have this successfully implemented, HTTP Live Streaming does introduce a delay as the video has to be tuned, encapsulated, and then segmented before being viewed (Generally about 30 seconds or more). I hope to implement a plugin to Plex soon so as not to have my server open remotely. While I haven't developed in a Windows environment, I do expect the general principle to translate easily to the windows environment as the entirety of the process is handled by VLC and then access via Apache. Both are available cross platform. The only changes I expect to be needed would be for the path to where to export the files.

I love to hear others are interested in implementing the same thing! Please feel free to message me with any questions or suggestions!

My current setup: 1 Dell Latitude D620 laptop running Ubuntu 12.04 LTS with two external HDD's holding my movie library and music library respectively and running Plex Media Server. 1 MacBook Retina Display running Mac OSX 10.8.1 running Plex Client, accessing my library locally via iTunes and remotely via Plex. 1 iPhone 4S with Plex iOS App accessing my library remotely. 1 Apple TV.

I really love this setup as I can keep my macbook very lightweight and access my media anywhere without having to store it locally. Best of all my total investment (outside of hardware costs) is about $5 for the Plex iOS App!

vicarious69
New Cone
New Cone
Posts: 1
Joined: 24 Sep 2012 04:20

Re: VLC ATSC to HTTP Live Stream

Postby vicarious69 » 24 Sep 2012 05:13

Fritz,

I am looking to do exactly the same as you have set up. Are you willing to share your scripts that you built to get this working?

Cheers,

Dan

fritz_fritz
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Aug 2012 21:25
VLC version: 2.0.3
Operating System: Ubuntu 12.04

Re: VLC ATSC to HTTP Live Stream

Postby fritz_fritz » 24 Sep 2012 06:22

I want to get them working a little better before sharing. the bash script was quite complicated to get working correctly honestly. I had to properly daemonize the vlc process in order to keep the server from timing out and causing havoc. I promise to give this project some love soon and probably will set up a github account to give people the tools they need to setup properly while still developing it further. I'll post back here once I have it up.

Let me know if you have any questions or if you plan to attempt it yourself, I'll be happy to give advice.

FRITZ|FRITZ

kakker
New Cone
New Cone
Posts: 2
Joined: 07 Sep 2012 19:15
Operating System: Mac, WHS11, Ubuntu
Location: Midwest, USA

Re: VLC ATSC to HTTP Live Stream

Postby kakker » 13 Nov 2012 15:03

fritz,

Nice work. Funny, because I was just getting ready to attempt a Plex plugin, utilizing VLC, with the hope of live streaming to DLNA devices, such as our Sony BDP-S580.

-K

P.S. I've since switched from WHS 2011 to a headless Ubuntu server (12.0.4), have pulled my Hauppauge HVR-2250 (V4L drivers are flaky at best, and don't support the FM radio functionality), and have installed an HDHomerun Dual, instead.
"A little song, a little dance, a little seltzer down the pants." -Chuckles the Clown ==> http://www.youtube.com/watch?v=YmBK5GslDaQ

fritz_fritz
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Aug 2012 21:25
VLC version: 2.0.3
Operating System: Ubuntu 12.04

Re: VLC ATSC to HTTP Live Stream

Postby fritz_fritz » 14 Nov 2012 05:55

Thanks! Just an update I had the http live streaming working to an iPhone but tested on a android phone and didn't work. Does work to VLC and quicktime on a remote computer.

I changed my server to run Ubuntu Server 12.04 and ran into issues getting it to work. Vlc seems to require an X screen implementation with my current implementation. I tried to find a work around and ended up with errors recognizing the tuner. Currently I don't think my script is the problem. Just need to get the tuner mounted properly. Once I get the system working properly. I will post to github and update here.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 28 guests