Jump to content

ServerWmc + h264


Luke

Recommended Posts

Is there anyone here who uses ServerWmc and has h264 live tv feeds? I need a tester or two to help verify some new optimizations. Thanks.

Link to comment
Share on other sites

techywarrior

Is there an easy way to tell what WMC encodes the show as? Or does it just save whatever the broadcast is into the .wtv file?

Link to comment
Share on other sites

it's what your tv tuner provides. nothing to do with serverwmc, except that this improvement only applies to the serverwmc plugin right now

Link to comment
Share on other sites

krustyreturns

If you look at the serverwmc log when you start a live stream (look for the command OpenLiveStream) it will tell you the encoding it found.

Link to comment
Share on other sites

i just need to know if your tv tuner serves h264, and if so, if you can perform some tests

Link to comment
Share on other sites

silverscout

Based upon specs my device should.. However, I need to find a comcast station that does. 

Link to comment
Share on other sites

silverscout

sorry Luke, it looks like Comcast only broadcasts in AC3

 

StreamProc> started remux thread: 'ESPNHD-173: 994349'
2014/05/23 23:25:11.163 Remux::FindDescriptors> Scanning wtv for streams...
2014/05/23 23:25:13.114 Parse> Guid: 0 took 1.95 sec, it was attempted 650 times
2014/05/23 23:25:13.114 Parse> Next 4 Guids: 0.00 sec, 0.00 sec, 0.00 sec, 0.00 sec, 
2014/05/23 23:25:13.949 Parse> Descriptor pass done, using 500 guids in 0.84 sec
2014/05/23 23:25:13.949 Parse> Total Descriptor parse time: 2.79 sec
2014/05/23 23:25:13.949 Pass 'Descriptor':
2014/05/23 23:25:13.949 >  WtvToPesDemuxer::Parse> total guid headers processed: 500
2014/05/23 23:25:13.949 >  WtvToPesDemuxer::Parse> total data packets processed: 101
2014/05/23 23:25:13.952 Remux::FindDescriptors> wtv scanned (2.79 sec), Streams found: 
2014/05/23 23:25:13.952 >  Audio: ID:27 (eng) ac3 5.1 48000 Hz 448 kb/s
2014/05/23 23:25:13.952 >  Video: ID:28 mpeg2video MP-HL 1280x720p fps: 60000/1001 AR: 16:9
2014/05/23 23:25:13.952 >  SubTitle: ID:29 MSCaption
2014/05/23 23:25:13.952 Remux::FindDescriptors> Output streams:
2014/05/23 23:25:13.952 >  Audio: ID:27 (eng) ac3 5.1 48000 Hz 448 kb/s
2014/05/23 23:25:13.952 >  Video: ID:28 mpeg2video MP-HL 1280x720p fps: 60000/1001 AR: 16:9
2014/05/23 23:25:14.017 StreamProc> 'ts' file created, size: 262,144 in 2.94 sec
2014/05/23 23:25:14.017 StreamProc> total time: 2.96 sec
2014/05/23 23:25:14.017 OpenLiveStream> stream path returned to client: E:\Recorded TV\TempSWMC\LiveTV_MediaBrowser^3_Digital Cable_173_2014_05_23_23_25_11.ts
2014/05/23 23:25:14.017 OpenLiveStream> -----------------done-------------------------
2014/05/23 23:25:14.017 Finished request OpenLiveStream in 2.96s
 
 
If there is anything else let me know. 
Edited by silverscout
Link to comment
Share on other sites

Latchmor

@@Luke I may be able to test later today depending on the time. Out all day tomorrow though.  ;)

 

Part of my Freeview HD Channel playback below

 

2014/05/24 10:32:40.727 Remux::FindDescriptors> wtv scanned (3.26 sec), Streams found:
2014/05/24 10:32:40.728  >  Other: ID:69 MPEG2 Sections and Tables
2014/05/24 10:32:40.728  >  Audio: ID:70 (eng) (HearingImpaired) aac-LATM
2014/05/24 10:32:40.728  >  Audio: ID:71 (eng) aac
2014/05/24 10:32:40.728  >  Video: ID:72 h264 High-4.0
2014/05/24 10:32:40.728  >  SubTitle: ID:73 Subtitle

Link to comment
Share on other sites

Spaceboy

I'm in the UK and using serverwmc to receive my HD channels so yes

 

 

Sent from my iPad using Tapatalk

Link to comment
Share on other sites

Ok. Next step will have to wait for the next dev build because more debugging information is needed in the log.

Link to comment
Share on other sites

Latchmor

@@Luke Hi, are you still looking for testers for this or did miss the boat at the weekend?

Cheers

 

Sent from my Nexus 4 using Tapatalk

Link to comment
Share on other sites

Yes i still need you. The first thing I need is for you to just verify that playback is still working with an h264 live tv feed. Please test in firefox, android w/ hls, or Roku because i want the output to also be h264.

Link to comment
Share on other sites

Latchmor

Ok, just tested the following

 

PC, Chome, It works

PC, Firefox, It works

Android, Chrome, Video but no Audio

 

You mention Android with HLS do you mean the App... which doesn't have Live TV yet.

 

I actually just tested IE11 which wouldn't play anything last time I tried and it works too now!

Link to comment
Share on other sites

beardy

I also get h264 video from my TV tuner, but haven't got it working at all.  FFMpeg starts up on the server, uses some CPU for a few seconds then disappears again.

 

Edit:  Appears to only struggle on Channel 4HD.  BBC and ITV channels appear to work OK, so long as I pause the stream for a little while to allow the encoding to get a bit of a head start, as FFMpeg only appears to want to use two of the four CPU cores on the server.

Edited by beardy
Link to comment
Share on other sites

Ok, just tested the following

 

PC, Chome, It works

PC, Firefox, It works

Android, Chrome, Video but no Audio

 

You mention Android with HLS do you mean the App... which doesn't have Live TV yet.

 

I actually just tested IE11 which wouldn't play anything last time I tried and it works too now!

 

Can you play again using the latest dev build + android, then post server log? Thanks.

Link to comment
Share on other sites

Please update your serverwmc installation and try again. thanks.

Link to comment
Share on other sites

Latchmor

Hi @@Luke, this time the web client doesn't play audio only video and it only plays for seconds then stops.

 

Server Log for web client

 

2014-06-02 17:28:05.1305 Info - App: Opening channel stream from ServerWMC, external channel Id: 993398
2014-06-02 17:28:10.4505 Info - App: C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140506\ffmpeg.exe -fflags genpts -async 1 -vsync -1 -re -i file:"E:\Recorded TV\TempSWMC\LiveTV_MediaBrowser^2_DVB-T_1_2014_06_02_17_28_05.ts" -map 0:1 -map 0:0 -map -0:s -vcodec libvpx -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -vf "yadif=0:-1:0,scale=min(iw\,1280):-1" -speed 16 -quality good -profile:v 0 -slices 8 -crf 4 -maxrate:v 9872000 -bufsize:v (9872000*2) -b:v 9872000 -r 23.97602 -vsync vfr -map_metadata -1 -threads 3 -acodec libvorbis -ac 2 -ab 0 -af "adelay=1,aresample=async=1000" -y "C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\195c7ebd-1c14-5689-894d-7e888c922215.webm"
2014-06-02 17:28:13.0605 Info - App: Opening channel stream from ServerWMC, external channel Id: 993398
2014-06-02 17:28:14.0705 Info - App: Killing ffmpeg process for C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\195c7ebd-1c14-5689-894d-7e888c922215.webm
2014-06-02 17:28:14.0705 Info - App: Closing live stream from ServerWMC, stream Id: 2
2014-06-02 17:28:14.0905 Info - App: FFMpeg exited with code -1
2014-06-02 17:28:14.0905 Info - App: Deleting partial stream file(s) C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\195c7ebd-1c14-5689-894d-7e888c922215.webm
2014-06-02 17:28:14.1405 Info - App: C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140506\ffmpeg.exe -fflags genpts -async 1 -vsync -1 -re -i file:"E:\Recorded TV\TempSWMC\LiveTV_MediaBrowser^3_DVB-T_1_2014_06_02_17_28_13.ts" -map 0:1 -map 0:0 -map -0:s -vcodec libx264 -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -vf "yadif=0:-1:0,scale=min(iw\,1280):trunc(ow/dar/2)*2" -preset superfast -crf 18 -maxrate 9872000 -bufsize 19744000 -r 23.97602 -vsync vfr -profile:v baseline -level 3 -map_metadata -1 -threads 0 -acodec aac -strict experimental -ac 2 -ab 0 -af "adelay=1,aresample=async=1000" -f mp4 -movflags frag_keyframe+empty_moov -y "C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\65328f2e-0844-6d3d-7cd8-07d98efb915d.mp4"
2014-06-02 17:28:22.6205 Info - App: Killing ffmpeg process for C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\65328f2e-0844-6d3d-7cd8-07d98efb915d.mp4
2014-06-02 17:28:22.6205 Info - App: Closing live stream from ServerWMC, stream Id: 3
2014-06-02 17:28:22.6405 Info - App: FFMpeg exited with code -1
2014-06-02 17:28:22.6405 Info - App: Deleting partial stream file(s) C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\65328f2e-0844-6d3d-7cd8-07d98efb915d.mp4
2014-06-02 17:28:24.5705 Warn - App: PlaybackStopped reported with null media info.

 

Android won't play at all, just get loading video and the transcoding folder starts to fill up, had 42 ts files in there before I cancelled.

Server Log for Android

 

2014-06-02 17:33:07.2909 Info - App: Opening channel stream from ServerWMC, external channel Id: 993398
2014-06-02 17:33:11.1309 Info - App: Opening channel stream from ServerWMC, external channel Id: 993398
2014-06-02 17:33:12.1409 Info - App: C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140506\ffmpeg.exe -fflags genpts -async 1 -vsync -1 -re -i file:"E:\Recorded TV\TempSWMC\LiveTV_MediaBrowser^4_DVB-T_1_2014_06_02_17_33_07.ts" -map_metadata -1 -threads 0 -map 0:1 -map 0:0 -map -0:s -codec:v:0 libx264 -preset superfast -crf 18 -maxrate 1372000 -bufsize 2744000 -r 23.97602 -vsync vfr -profile:v baseline -level 3 -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+1)) -vf "yadif=0:-1:0,scale=min(iw\,720):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 0 -af "adelay=1,aresample=async=1000" -hls_time 5 -start_number 0 -hls_list_size 100 -y "C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\986de5f4-2b4b-9541-94f1-838e823f88cd.m3u8"
2014-06-02 17:33:28.3410 Info - App: C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140506\ffmpeg.exe -fflags genpts -async 1 -vsync -1 -re -i file:"E:\Recorded TV\TempSWMC\LiveTV_MediaBrowser^5_DVB-T_1_2014_06_02_17_33_11.ts" -map_metadata -1 -threads 0 -map 0:1 -map 0:0 -map -0:s -codec:v:0 libx264 -preset superfast -crf 18 -maxrate 1372000 -bufsize 2744000 -r 23.97602 -vsync vfr -profile:v baseline -level 3 -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+1)) -vf "yadif=0:-1:0,scale=min(iw\,720):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 0 -af "adelay=1,aresample=async=1000" -hls_time 5 -start_number 0 -hls_list_size 100 -y "C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\d45796b7-b383-a223-20d0-b7abc2a3377c.m3u8"
2014-06-02 17:33:44.9710 Info - App: Opening channel stream from ServerWMC, external channel Id: 993398
2014-06-02 17:33:46.0410 Info - App: C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140506\ffmpeg.exe -fflags genpts -async 1 -vsync -1 -re -i file:"E:\Recorded TV\TempSWMC\LiveTV_MediaBrowser^6_DVB-T_1_2014_06_02_17_33_44.ts" -map_metadata -1 -threads 0 -map 0:1 -map 0:0 -map -0:s -codec:v:0 libx264 -preset superfast -crf 18 -maxrate 1372000 -bufsize 2744000 -r 23.97602 -vsync vfr -profile:v baseline -level 3 -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+1)) -vf "yadif=0:-1:0,scale=min(iw\,720):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 0 -af "adelay=1,aresample=async=1000" -hls_time 5 -start_number 0 -hls_list_size 100 -y "C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\0a291efd-fc48-1350-d246-4c4905e18bd7.m3u8"
2014-06-02 17:33:46.1310 Info - App: Closing live stream from ServerWMC, stream Id: 6
2014-06-02 17:33:46.1310 Info - App: FFMpeg exited with code 1
2014-06-02 17:35:11.3011 Info - App: Killing ffmpeg process for C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\986de5f4-2b4b-9541-94f1-838e823f88cd.m3u8
2014-06-02 17:35:11.3111 Warn - App: PlaybackStopped reported with null media info.
2014-06-02 17:35:11.3111 Info - App: Closing live stream from ServerWMC, stream Id: 4
2014-06-02 17:35:11.3111 Info - App: FFMpeg exited with code -1
2014-06-02 17:35:11.3311 Info - App: Deleting partial stream file(s) C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\986de5f4-2b4b-9541-94f1-838e823f88cd.m3u8
2014-06-02 17:35:11.3311 Info - App: Killing ffmpeg process for C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\d45796b7-b383-a223-20d0-b7abc2a3377c.m3u8
2014-06-02 17:35:11.3511 Info - App: FFMpeg exited with code -1
2014-06-02 17:35:11.3511 Info - App: Deleting partial stream file(s) C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\d45796b7-b383-a223-20d0-b7abc2a3377c.m3u8
2014-06-02 17:35:11.3511 Info - App: Deleting partial stream file(s) C:\Users\Ewan\AppData\Roaming\MediaBrowser-Server\transcoding-temp\0a291efd-fc48-1350-d246-4c4905e18bd7.m3u8
2014-06-02 17:35:11.3611 Error - DtoUtils: ServiceBase2014-06-02 17:35:11.6811 Info - App: Closing live stream from ServerWMC, stream Id: 6

Link to comment
Share on other sites

can you do it again with the log in debug mode? also, firefox not chrome. thanks.

Link to comment
Share on other sites

Latchmor

can you do it again with the log in debug mode? also, firefox not chrome. thanks.

 

Yip. This time Player pops up, transcoding folder shows a file being created, nothing appears in player, then transcoding file disappears. At this point I just closed the player.

 

Full debug log this time http://pastebin.com/Nn4UkM38

Link to comment
Share on other sites

Latchmor

Yip. This time Player pops up, transcoding folder shows a file being created, nothing appears in player, then transcoding file disappears. At this point I just closed the player.

 

Full debug log this time http://pastebin.com/Nn4UkM38

 

Ok, not sure what's happening. I tried again and this time it works. However, I notice this time it is a WebM file that's being transcoded. When it failed a few minutes ago it was MP4.  Is this because it's playing adverts just now which maybe aren't HD but the programme a few minutes ago was?

Edited by Latchmor
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...