Jump to content


Photo

Can't play .ts files from DVBViewer Recordings

DVBViewer ffmpeg

  • Please log in to reply
5 replies to this topic

#1 BODYPRINT OFFLINE  

BODYPRINT

    Newbie

  • Members
  • 3 posts
  • Local time: 03:41 PM

Posted 17 September 2017 - 09:54 AM

Hi guys,

 

I'm using the DVBViewer Media Server and Plugin to record my LiveTV with teletext subtitles.

My mum is hard of hearing so I need the teletext and hence must record as .ts for this feature.

 

Live TV plays OK, (subtitles don't show up <-- separate issue), but playback of the recorded files fails.

 

Here's the Playback Log below with the ffmpeg errors.

I also thought this is interesting on the first line... 

TranscodeReasons=SubtitleCodecNotSupported

I can share the video file if required.

 

I tried replacing ffmpeg with the latest version to see if it helps but same error.

 

Any help would be appreciated.

 

Cheers, Phil.

Application version: 3.2.30.23

http://localhost:8096/emby/videos/84d29d256f65c621d190b962497136e9/hls1/main/0.ts?DeviceId=ad9d023a0c0815a84288d8e9291677f1344a012a&MediaSourceId=84d29d256f65c621d190b962497136e9&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=2&VideoBitrate=139744000&AudioBitrate=256000&Level=51&Profile=high&PlaySessionId=dfdf2bdff5c84119bbf32ac475de2cef&api_key=e1b16a1e6a044d5da1d77166df782b87&CopyTimestamps=false&SubtitleMethod=Encode&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=efdad8213362846ef95348051e65674e&RequireAvc=true&RequireNonAnamorphic=false&DeInterlace=true&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=SubtitleCodecNotSupported

{"Protocol":"File","Id":"84d29d256f65c621d190b962497136e9","Path":"d:\\recorded tv\\2017-09-17_16-14-27_7 adelaide_7 adelaide.ts","Type":"Default","Container":"mpegts","Name":"480P/MPEG2VIDEO/MP2","IsRemote":false,"ETag":"efdad8213362846ef95348051e65674e","RunTimeTicks":324870000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"EnableMpDecimate":false,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"mpeg2video","TimeBase":"1/90000","CodecTimeBase":"1/25","IsInterlaced":true,"BitRate":3323512,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":576,"Width":720,"AverageFrameRate":25,"RealFrameRate":25,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":8,"IsAnamorphic":false},{"Codec":"mp2","Language":"eng","TimeBase":"1/90000","CodecTimeBase":"1/48000","DisplayTitle":"Eng MP2 stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":256000,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"dvb_teletext","Language":"eng","TimeBase":"1/90000","DisplayTitle":"Eng","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false}],"Formats":[],"Bitrate":3579512,"RequiredHttpHeaders":{}}

User policy for Phil: EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True

C:\Users\Phil\AppData\Roaming\Emby-Server\ffmpeg\20170308\ffmpeg.exe -c:v mpeg2_cuvid -i file:"d:\recorded tv\2017-09-17_16-14-27_7 adelaide_7 adelaide.ts" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 h264_nvenc -pix_fmt yuv420p -preset default -b:v 3323512 -maxrate 3323512 -bufsize 6647024 -profile:v high -force_key_frames "expr:if(isnan(prev_forced_t),eq(t,t),gte(t,prev_forced_t+3))" -copyts -vf "yadif=0:-1:0,scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2,subtitles='d\:/recorded tv/2017-09-17_16-14-27_7 adelaide_7 adelaide.ts:si=0',setpts=PTS -0/TB" -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 256000 -af "asetpts=PTS-0/TB" -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "D:\Temp\transcoding-temp\67aa48bdb798515ebab06fc1f06ac56c.m3u8" -y "D:\Temp\transcoding-temp\67aa48bdb798515ebab06fc1f06ac56c%d.ts"

ffmpeg version N-87306-g6743351 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 75.100 / 55. 75.100
libavcodec 57.106.101 / 57.106.101
libavformat 57. 82.100 / 57. 82.100
libavdevice 57. 8.101 / 57. 8.101
libavfilter 6.105.100 / 6.105.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mpeg2video @ 0000000002554580] Invalid frame dimensions 0x0.
Last message repeated 8 times
[mpegts @ 0000000000e180c0] PES packet size mismatch
[mpegts @ 0000000000e180c0] Could not find codec parameters for stream 3 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000000e180c0] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'file:d:\recorded tv\2017-09-17_16-14-27_7 adelaide_7 adelaide.ts':
Duration: 00:00:32.49, start: 55884.046689, bitrate: 3323 kb/s
Program 1360
Stream #0:0[0x501]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x502](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
Stream #0:2[0x504](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x506]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:4[0x599]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1361
Program 1362
Program 1363
Program 1364
Program 1365
Program 1368
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (mpeg2_cuvid) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_subtitles_2 @ 00000000025c09a0] Shaper: FriBidi 0.19.6 (SIMPLE)
[mpeg2video @ 000000000287c120] Invalid frame dimensions 0x0.
Last message repeated 8 times
[mpegts @ 0000000002ae6a60] PES packet size mismatch
[mpegts @ 0000000002ae6a60] Could not find codec parameters for stream 3 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000002ae6a60] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[Parsed_subtitles_2 @ 00000000025c09a0] Using font provider directwrite
[Parsed_subtitles_2 @ 00000000025c09a0] Failed to find subtitle codec dvb_teletext
[AVFilterGraph @ 00000000025566e0] Error initializing filter 'subtitles' with args 'd\:/recorded tv/2017-09-17_16-14-27_7 adelaide_7 adelaide.ts:si=0'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[aac @ 000000000287a440] Qavg: 349.773
[aac @ 000000000287a440] 2 frames left in the queue on closing
Conversion failed!
ffmpeg version N-87306-g6743351 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 75.100 / 55. 75.100
libavcodec 57.106.101 / 57.106.101
libavformat 57. 82.100 / 57. 82.100
libavdevice 57. 8.101 / 57. 8.101
libavfilter 6.105.100 / 6.105.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mpeg2video @ 00000000025d6540] Invalid frame dimensions 0x0.
Last message repeated 8 times
[mpegts @ 00000000006b8220] PES packet size mismatch
[mpegts @ 00000000006b8220] Could not find codec parameters for stream 3 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 00000000006b8220] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'file:d:\recorded tv\2017-09-17_16-14-27_7 adelaide_7 adelaide.ts':
Duration: 00:00:32.49, start: 55884.046689, bitrate: 3323 kb/s
Program 1360
Stream #0:0[0x501]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x502](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
Stream #0:2[0x504](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x506]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:4[0x599]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1361
Program 1362
Program 1363
Program 1364
Program 1365
Program 1368
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_subtitles_2 @ 0000000002676640] Shaper: FriBidi 0.19.6 (SIMPLE)
[mpeg2video @ 00000000028a4340] Invalid frame dimensions 0x0.
Last message repeated 8 times
[mpegts @ 0000000005f1e6c0] PES packet size mismatch
[mpegts @ 0000000005f1e6c0] Could not find codec parameters for stream 3 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000005f1e6c0] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[Parsed_subtitles_2 @ 0000000002676640] Using font provider directwrite
[Parsed_subtitles_2 @ 0000000002676640] Failed to find subtitle codec dvb_teletext
[AVFilterGraph @ 00000000025d71c0] Error initializing filter 'subtitles' with args 'd\:/recorded tv/2017-09-17_16-14-27_7 adelaide_7 adelaide.ts:si=0'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[aac @ 00000000028a5680] Qavg: 288.586
[aac @ 00000000028a5680] 2 frames left in the queue on closing
Conversion failed!


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127006 posts
  • Local time: 01:11 AM

Posted 17 September 2017 - 12:26 PM

Hi there @BODYPRINT can you please provide a sample video for testing? thanks !



#3 BODYPRINT OFFLINE  

BODYPRINT

    Newbie

  • Members
  • 3 posts
  • Local time: 03:41 PM

Posted 17 September 2017 - 11:50 PM

Hi @Luke.

 

File is attached here.

The subtitles begin after the adverts.

 

Cheers, Phil.

Attached Files



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127006 posts
  • Local time: 01:11 AM

Posted 18 September 2017 - 01:05 PM

Ok, what's going on is our ffmpeg builds need to have libzvbi added in order to be able to handle dvb_teletext, so we'll have to get that added in an upcoming update. thanks.



#5 BODYPRINT OFFLINE  

BODYPRINT

    Newbie

  • Members
  • 3 posts
  • Local time: 03:41 PM

Posted 18 September 2017 - 02:46 PM

That would be awesome if you can!

Would that make LiveTV teletext work as well or is that a different issue?

 

Thanks again.



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127006 posts
  • Local time: 01:11 AM

Posted 18 September 2017 - 02:51 PM

We'll have to test once we have that, live streams may require additional development. Thanks.







Also tagged with one or more of these keywords: DVBViewer, ffmpeg

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users