FAQ  •  Register  •  Login

No sound in version 1.7

<<

Alex Atkin UK

Streaming enthusiast

Posts: 36

Joined: Wed May 04, 2011 7:25 pm

Post Fri Dec 23, 2016 8:23 pm

Re: No sound in version 1.7

Okay, so when I tried that I couldn't find anything in the log about it parsing the file so instead I took a copy of 1.8 onto my desktop machine and did a test adding that single file. That seemed to work with audio working fine during playback, so rather than carry on fighting this glitch I'm going to try wiping out the database completely and adding everything back.

I REALLY didn't want to do this as my mum relies on the "recently added","recently watched", so its annoying losing it.

There does still to be another issue though. I have Downmix to Stereo ticked in Transcoding but in my tests its just using the source audio as its a supported format. Surely if you choose Downmix to Stereo it should ALWAYS downmix to stereo, unless that file is already stereo?
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Sat May 20, 2017 2:40 am

Re: No sound in version 1.7

Sorry, I overlooked this thread and started a new one at viewtopic.php?f=7&t=23752 ...

The exact same thing is happening to me with 1.8. For every transcode, the FFmpeg command line has "-an", meaning no audio will be in the output. Force Refresh does not help.

  Code:
2017-05-11 19:16:47,709 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -threads 2 -i Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi -y -threads 2 -c:v mpeg2video -pix_fmt yuv420p -qscale:v 3 -r 30000/1001 -g 15 -an -map 0:0 -sn -f mpegts G:\Serviio transcodes\Serviio\transcoding-temp-96f67e309550f774a30ffe29a4df870b.stf


The suggestion to copy the video file and add it to the library resulted in working audio. Here is the file being added:

  Code:
2017-05-19 20:32:04,375 DEBUG [MediaFileIndexer] Found file 'The Cover Girls - Show Me - Copy (2).avi', checking if it's
 already in the Library
serviio.log:2017-05-19 20:32:04,375 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi
serviio.log:2017-05-19 20:32:04,375 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi, ignore case: true
serviio.log:2017-05-19 20:32:04,376 DEBUG [MediaItemDAOImpl] Media item Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi doesn't exist in DB yet
serviio.log:2017-05-19 20:32:04,376 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi
serviio.log:2017-05-19 20:32:04,376 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi
serviio.log:2017-05-19 20:32:04,376 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -i Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi
serviio.log:2017-05-19 20:32:04,529 DEBUG [OpenSubtitlesService] Generating hash code for opensubtitles.org for file The Cover Girls - Show Me - Copy (2).avi
serviio.log:2017-05-19 20:32:04,532 DEBUG [MetadataExtractionCoordinator] Metadata found via extractor EMBEDDED: VideoMetadata [title=The Cover Girls - Show Me - Copy (2), filePath=Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi, fileSize=176501942, audioTracks=1/LPCM/1411/2/44100//false, bitrate=6204, container=AVI, contentType=UNKNOWN, rating=null, duration=227, episodeNumber=null, fps=29.97, h264Levels={}, h264Profile=null, ftyp=null, height=576, seasonNumber=null, seriesName=null, timestampType=null, videoBitrate=4781, videoCodec=MPEG4, videoFourCC=xvid, videoStreamIndex=0, width=768, embeddedSubtitles=[]]
serviio.log:2017-05-19 20:32:04,532 DEBUG [VideoService] Adding video into database: The Cover Girls - Show Me - Copy (2)
serviio.log:2017-05-19 20:32:04,537 DEBUG [VideoDAOImpl] Creating a new Video (title = The Cover Girls - Show Me - Copy (2))
serviio.log:2017-05-19 20:32:04,616 INFO  [MediaFileIndexer] Added file 'The Cover Girls - Show Me - Copy (2).avi' (title: The Cover Girls - Show Me - Copy (2)) to Library


And here is the transcode happening; the FFmpeg command line has the correct audio options, and it plays fine:

  Code:
2017-05-19 20:34:25,269 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -threads 2 -i Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me - Copy (2).avi -y -threads 2 -c:v mpeg2video -pix_fmt yuv420p -qscale:v 3 -r 30000/1001 -g 15 -c:a:0 ac3 -b:a:0 448k -ar:a:0 44100 -ac:a:0 2 -map 0:0 -map 0:1 -sn -f mpegts G:\Serviio transcodes\Serviio\transcoding-temp-9c0b5a1253a8211b60fda263feacb73d.stf


Is there a way to query the database to see what is different about its understanding of the old copy of the file?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat May 20, 2017 2:12 pm

Re: No sound in version 1.7

It's due to the library not fully refreshed yet I assume.
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Sat May 20, 2017 5:12 pm

Re: No sound in version 1.7

Force Refresh does not help. It only takes a few minutes to complete. It would take days if it was doing a full rescan, but the log shows it is not detecting changes in the files, so it is not updating what it already knows about them.

I am guessing it will work if I empty the library and add the folders back again, so it has to rescan everything, but I try not to do that since it takes so long. I also thought maybe I could help you diagnose the cause of the problem. I am willing to try whatever you recommend.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun May 21, 2017 8:48 am

Re: No sound in version 1.7

Try to click Refresh video metadata first (Metadata tab) and then Force Refresh again.
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Sun May 21, 2017 4:56 pm

Re: No sound in version 1.7

No luck. In the metadata tab, I have all boxes unchecked, and "No descriptive metadata" selected. When I click Rescan Video Metadata, this goes in the log:

  Code:
2017-05-21 10:36:04,695 DEBUG [RendererManager] Retrieve device description from http://10.0.1.4:49200/device.xml
2017-05-21 10:36:05,940 DEBUG [ActionsServerResource] Action with name 'forceVideoFilesMetadataUpdate' was requested
2017-05-21 10:36:05,941 INFO  [LocalLibraryManager] Forcing metadata update for 'VIDEO' media files
2017-05-21 10:36:05,941 DEBUG [MediaItemDAOImpl] Marking MediaItems (type = VIDEO) as dirty

Then when I click on Force Refresh, the log quickly fills up with messages like this for each item:

  Code:
serviio.log.4:2017-05-21 10:38:14,773 DEBUG [MediaFileIndexer] Found file 'The Cover Girls - Show Me.avi', checking if it's already in the Library
serviio.log.4:2017-05-21 10:38:14,773 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi
serviio.log.4:2017-05-21 10:38:14,773 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi, ignore case: true
serviio.log.4:2017-05-21 10:38:14,773 DEBUG [MediaItemDAOImpl] Media item Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi already exists in DB

(I happened to grep the log at the right moment so I could see it mention the file I was testing.)

At the end there's a long list of "Getting file of media item" messages, ending with:

  Code:
2017-05-21 10:39:57,150 DEBUG [MediaItemDAOImpl] Getting file of media item 76869
2017-05-21 10:39:57,150 DEBUG [MediaItemDAOImpl] Getting file of media item 76870
2017-05-21 10:39:57,150 DEBUG [MediaItemDAOImpl] Getting file of media item 76871
2017-05-21 10:39:57,150 DEBUG [RepositoryDAOImpl] Marking Repository 14 as scanned with current timestamp
2017-05-21 10:39:57,150 DEBUG [LibraryOneTimeScanner] Finished the scan of the library
2017-05-21 10:39:57,150 DEBUG [PipeManager] Enabling processing Delta scan queue
2017-05-21 10:39:57,151 INFO  [PlaylistMaintainerWorker] Finished looking for playlist changes
2017-05-21 10:39:57,251 INFO  [PlaylistMaintainerWorker] Started looking for playlist changes
2017-05-21 10:39:57,251 DEBUG [PlaylistDAOImpl] Reading all Playlists

Then it just goes into its usual cycle of endlessly repeating these messages, interspersed with other network activity:

2017-05-21 10:39:58,248 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 81832)
2017-05-21 10:39:58,249 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2017-05-21 10:40:03,249 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 81832)
2017-05-21 10:40:03,249 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2017-05-21 10:40:08,249 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 81832)
2017-05-21 10:40:08,249 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2017-05-21 10:40:13,249 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 81832)
2017-05-21 10:40:13,250 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2017-05-21 10:40:18,249 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 81832)
2017-05-21 10:40:18,249 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2017-05-21 10:40:23,250 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 81832)
2017-05-21 10:40:23,250 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2017-05-21 10:40:24,643 DEBUG [SearchManager] Committing search index


There is no further scanning happening. The transcoding is still happening without audio.
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Sun May 21, 2017 10:56 pm

Re: No sound in version 1.7

I poked around in my settings again and decided to try enabling "Search for updates of currently shared files". I normally have this off because it was resulting in endless scanning, I think due to symlinks.

Now when I did Rescan Video Metadata followed by Force Refresh, the videos finally got rescanned.

  Code:
serviio.log:2017-05-21 16:36:52,368 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi, ignore case: true
serviio.log:2017-05-21 16:36:52,368 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi
serviio.log:2017-05-21 16:36:52,368 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi
serviio.log:2017-05-21 16:36:52,369 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -i Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi
serviio.log:2017-05-21 16:36:52,481 DEBUG [OpenSubtitlesService] Generating hash code for opensubtitles.org for file The Cover Girls - Show Me.avi
serviio.log:2017-05-21 16:36:52,482 DEBUG [MetadataExtractionCoordinator] Metadata found via extractor EMBEDDED: VideoMetadata [title=The Cover Girls - Show Me, filePath=Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi, fileSize=176501942, audioTracks=1/LPCM/1411/2/44100//false, bitrate=6204, container=AVI, contentType=UNKNOWN, rating=null, duration=227, episodeNumber=null, fps=29.97, h264Levels={}, h264Profile=null, ftyp=null, height=576, seasonNumber=null, seriesName=null, timestampType=null, videoBitrate=4781, videoCodec=MPEG4, videoFourCC=xvid, videoStreamIndex=0, width=768, embeddedSubtitles=[]]
serviio.log:2017-05-21 16:36:52,482 DEBUG [VideoService] Updating video in database: The Cover Girls - Show Me
serviio.log:2017-05-21 16:36:52,490 INFO  [MediaFileIndexer] Updated 'The Cover Girls - Show Me' (Z:\video\music\songs, high quality, logo-free\1980s dance\misc\The Cover Girls - Show Me.avi) in Library


The video transcodes with audio now. So now the problem is solved for me. Or at least, I can no longer help diagnose what the original problem was. Whatever was in the database before is now gone.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Mon May 22, 2017 12:16 pm

Re: No sound in version 1.7

When you upgrade from pre 1.7 Serviio needs to recreate the audio information stored within the database for all existing files. By having the "Search for updates of currently shared files" disabled this has interfered with this process, which could have resulted from:

  • An issue during the original update. Will need to check that the library updater ignores this setting so that it checks all existing files irrespective of this user setting; or
  • The original update was stopped (eg. computer restarted) and any subsequent refreshes then honoured the setting (ignoring currently shared files).
Something for zip, but a question - is it still endlessly scanning. Reason for asking is that I've never understood why anyone would want this setting disabled (until now) and have wondered whether it's needed anymore.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Tue May 23, 2017 4:00 am

Re: No sound in version 1.7

is it still endlessly scanning

No. It was a good while ago, and I didn't look into what was causing it. It may have been recursive links to folders. For example, a Beatles folder might contain a link to a Paul McCartney folder, and vice-versa. For some of these links, I was using proper symlinks (available on NTFS in Windows Vista and up), but due to scanning loops in another app, I recently replaced them with regular shortcut files, which Serviio ignores for now.
Previous

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 40 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.