Invalid Media Format Exception with mpegts of mp2 only
I would, however, like to be able to do the same with the live streams of our FM radio stations, but Serviio does not appear to like the mpegts of mp2 audio only, as I am encountering the following errors:
2012-04-06 12:02:02,900 WARN [FeedUpdaterThread] Failed to retrieve online item information for http://192.168.1.25:7799/stream?channel=8970. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video codec.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video codec.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:347)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
... 2 more
and I am not able to see the FM radio stations on my Sony.
I have tried a number of fixes, including adding the following to the "Sony BD Player" section of the profiles.xml:
<!-- attempt to fix problem playing mpegts with mp2 audio coming from Hauppauge WinTV FM radio stations -->
<Video targetContainer="mpegts" targetACodec="mp2">
<Matches container="mpegts" ACodec="mp2" />
</Video>
but have not had any luck. I would appreciate any advice you could provide. Thanks.
-kakker
------------------------------------------------------------------------------------------------
ffmpeg output for FM radio live stream:
[mpegts @ 0x7f7f7c04ac00] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x7f7f7c04ac00] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://192.168.1.25:7799/stream?channel=8970':
Duration: N/A, start: 0.213011, bitrate: 384 kb/s
Program 1
Stream #0.0[0x3e9]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
ffmpeg output for TV live stream:
[mpeg2video @ 0x7fb8d2850800] mpeg_decode_postinit() failure
Last message repeated 13 times
[mpegts @ 0x7fb8d284ac00] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://192.168.1.25:7799/stream?channel=1041':
Duration: N/A, start: 79941.345378, bitrate: 13240 kb/s
Program 3
No Program
Stream #0.0[0x31]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 12856 kb/s, 34.64 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x34]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s