rss feed items containing blanks fail in ffmpeg.

Issue #477 invalid
Former user created an issue

In developing an rss to play files stored on the PC within EasyPHP, contentUrls of the form <media:content url="http://192.168.1.10/wiimcscripts/shania.flv" /> list, transcode and play perfectly, but those of the form <media content url="http://192.168.1.10/wiimcscripts/Shania I'm a woman.flv" /> fail in ffmpeg with the message "Unknown video file type" due to the embedded blank. The request to ffmpeg needs to have the url enclosed in ""'s

{{{ 011-12-01 13:52:59,586 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 144) 2011-12-01 13:52:59,587 DEBUG [OnlineLibraryManager] Feed http://192.168.1.10/wiimcscripts/LocalFeeds_Test.rss not in cache yet, loading it 2011-12-01 13:52:59,587 DEBUG [FeedParser] Parsing feed 'http://192.168.1.10/wiimcscripts/LocalFeeds_Test.rss' 2011-12-01 13:52:59,605 DEBUG [FeedParser] Found matching url extractor (LocalFeeds) for feed http://192.168.1.10/wiimcscripts/LocalFeeds_Test.rss 2011-12-01 13:52:59,606 DEBUG [FeedItemUrlExtractor] LocalFeeds: Starting extraction of url for item: Shania 2011-12-01 13:52:59,607 DEBUG [FeedItemUrlExtractor] LocalFeeds: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=http://192.168.1.10/wiimcscripts/Shania.flv, live=false, expiresImmediately=false, ] 2011-12-01 13:52:59,607 DEBUG [FeedParser] Added feed item 1: 'Shania' 2011-12-01 13:52:59,607 DEBUG [FeedItemUrlExtractor] LocalFeeds: Starting extraction of url for item: DUI 2011-12-01 13:52:59,608 DEBUG [FeedItemUrlExtractor] LocalFeeds: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=http://192.168.1.10/wiimcscripts/StumbleVideo - DUI test Perfect Score.flv, live=false, expiresImmediately=false, ] 2011-12-01 13:52:59,608 DEBUG [FeedParser] Added feed item 2: 'DUI' 2011-12-01 13:52:59,608 DEBUG [OnlineContentCacheDecorator] Stored online content 'http://192.168.1.10/wiimcscripts/LocalFeeds_Test.rss' in the cache (online_feeds), returning it 2011-12-01 13:52:59,608 DEBUG [OnlineLibraryManager] Feed http://192.168.1.10/wiimcscripts/LocalFeeds_Test.rss will expire in the cache on Thu Dec 01 21:52:59 EST 2011 2011-12-01 13:52:59,608 DEBUG [FeedUpdaterThread] Retrieving file size from the URL connection 2011-12-01 13:52:59,610 DEBUG [FeedUpdaterThread] Retrieving information about the video stream 'Shania' 2011-12-01 13:52:59,610 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: http://192.168.1.10/wiimcscripts/Shania.flv 2011-12-01 13:52:59,610 DEBUG [ProcessExecutor] Starting C:\Program Files (x86)\Serviio\bin\..\lib/ffmpeg.exe -i http://192.168.1.10/wiimcscripts/Shania.flv 2011-12-01 13:52:59,677 INFO [CacheEventQueue] Cache event queue created: CacheEventQueue [listenerId=-85924326, cacheName=online_technical_metadata] 2011-12-01 13:52:59,677 DEBUG [TechnicalMetadataCacheDecorator] Stored technical metadata for online item 'http://192.168.1.10/wiimcscripts/Shania.flv' in the cache (online_technical_metadata), returning it 2011-12-01 13:52:59,677 DEBUG [FeedUpdaterThread] Retrieving file size from the URL connection 2011-12-01 13:52:59,685 DEBUG [FeedUpdaterThread] Retrieving information about the video stream 'DUI' 2011-12-01 13:52:59,685 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: http://192.168.1.10/wiimcscripts/StumbleVideo - DUI test Perfect Score.flv 2011-12-01 13:52:59,686 DEBUG [ProcessExecutor] Starting C:\Program Files (x86)\Serviio\bin\..\lib/ffmpeg.exe -i http://192.168.1.10/wiimcscripts/StumbleVideo - DUI test Perfect Score.flv 2011-12-01 13:52:59,749 WARN [FeedUpdaterThread] Failed to retrieve online item information for http://192.168.1.10/wiimcscripts/StumbleVideo - DUI test Perfect Score.flv. It might not play. java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type. at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:258) at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:197) at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:98) Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type. at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:318) at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:68) at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:240) ... 2 more 2011-12-01 13:53:00,584 DEBUG [AbstractCDSLibraryIndexingListener] Library updated, notifying CDS }}}

Comments (6)

  1. Petr Nejedly repo owner

    this is not a bug of serviio or ffmpeg but your script. Again- your url is not properly encoded, spaces should be replaced by %20. Serviio wraps the argument with "" even though it's not in the log.

  2. Log in to comment