File path with space
Issue #1092
closed
Serviio 1.10 Linux Ubuntu 14
Error accrues when video path is with spaces.
Log:
[ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error. Detailed output follows.
After DEBUG log i found reason
Example:
ffmpeg -fflags +genpts -threads 0 -i /media/dovydas/Elements/Test Space/Test.mkv -y -c:v copy -bsf:v h264_mp4toannexb -c:a:0 aac -b:a:0 192k -ac:a:0 2 -map 0:0 -map 0:1 -sn -f hls -hls_time 10 -hls_allow_cache 0 -hls_segment_filename /tmp/Serviio/transcoding-temp-be1ecf32ae0436662355cdbae1bedb69.stf/segment%05d.ts -hls_list_size 0 /tmp/Serviio/transcoding-temp-be1ecf32ae0436662355cdbae1bedb69.stf/playlist.m3u8
Need to wrap file path with quotes
ffmpeg -fflags +genpts -threads 0 -i "/media/dovydas/Elements/Test Space/Test.mkv" -y -c:v copy -bsf:v h264_mp4toannexb -c:a:0 aac -b:a:0 192k -ac:a:0 2 -map 0:0 -map 0:1 -sn -f hls -hls_time 10 -hls_allow_cache 0 -hls_segment_filename /tmp/Serviio/transcoding-temp-be1ecf32ae0436662355cdbae1bedb69.stf/segment%05d.ts -hls_list_size 0 /tmp/Serviio/transcoding-temp-be1ecf32ae0436662355cdbae1bedb69.stf/playlist.m3u8
Comments (3)
-
repo owner -
reporter 2018-11-17 16:12:06,857 DEBUG [CDSRetrieveMediaServerResource] GET http://127.0.0.1:23424/cds/resource/128/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8?profile=html5&clientName=MediaBrowser&authToken=ad67262808a24cf19d4250a5b6ba9f5d HTTP/1.1, headers = [host: 127.0.0.1:23424,connection: keep-alive,user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36,accept: */*,referer: http://127.0.0.1:23424/mediabrowser/,accept-encoding: gzip, deflate, br,accept-language: en-US,en;q=0.9,lt;q=0.8] 2018-11-17 16:12:06,857 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '127.0.0.1' and name 'MediaBrowser' 2018-11-17 16:12:06,857 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=127.0.0.1, Profile=HTML5, Name=MediaBrowser' 2018-11-17 16:12:06,857 DEBUG [ResourceDeliveryProcessor] Request for resource 128 and type 'MEDIA_ITEM' received 2018-11-17 16:12:06,857 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 128 (local) 2018-11-17 16:12:06,858 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 128) 2018-11-17 16:12:06,859 DEBUG [VideoDAOImpl] Reading a Video (id = 128) 2018-11-17 16:12:06,860 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 128, format HLS and profile HTML5 2018-11-17 16:12:06,861 DEBUG [AbstractAVTranscodingDeliveryEngine] Getting media info for transcoded version of file Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv 2018-11-17 16:12:06,861 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv": HLS 2018-11-17 16:12:06,861 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv": HLS 2018-11-17 16:12:06,861 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv": HLS 2018-11-17 16:12:06,862 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 128 (local) 2018-11-17 16:12:06,862 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 128) 2018-11-17 16:12:06,862 DEBUG [VideoDAOImpl] Reading a Video (id = 128) 2018-11-17 16:12:06,863 DEBUG [VideoDeliveryEngine] Delivering item '128' for client 'Identifier=127.0.0.1, Profile=HTML5, Name=MediaBrowser' 2018-11-17 16:12:06,863 DEBUG [VideoDeliveryEngine] Delivering file 'Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv' using transcoding 2018-11-17 16:12:06,878 DEBUG [AbstractAVTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=127.0.0.1, Profile=HTML5, Name=MediaBrowser' 2018-11-17 16:12:06,921 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /media/dovydas/Elements/Serialai/Doctor_Who/Doctor.Who.2005.S01-S07.480p.BluRay.nSD.x264-NhaNc3/Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv 2018-11-17 16:12:06,927 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads 0 -i /media/dovydas/Elements/Serialai/Doctor_Who/Doctor.Who.2005.S01-S07.480p.BluRay.nSD.x264-NhaNc3/Doctor.Who.2005.S02E01.480p.BluRay.nSD.x264-NhaNc3.mkv -y -c:v copy -bsf:v h264_mp4toannexb -c:a:0 aac -b:a:0 192k -ac:a:0 2 -map 0:0 -map 0:1 -sn -f hls -hls_time 10 -hls_allow_cache 0 -hls_segment_filename /tmp/Serviio/transcoding-temp-5693360d37aefbd92fdc55b394e75476.stf/segment%05d.ts -hls_list_size 0 /tmp/Serviio/transcoding-temp-5693360d37aefbd92fdc55b394e75476.stf/playlist.m3u8 2018-11-17 16:12:07,491 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error. Detailed output follows. Metadata: title : 00:45:05.202 Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709), 852x480, SAR 1:1 DAR 71:40, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) (forced) [aac @ 0x1143b40] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it. 2018-11-17 16:12:07,491 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
-
repo owner - changed status to closed
this is caused by old version of ffmpeg. Upgrade to the latest and it'll work.
- Log in to comment
the DEBUG log doesn't include the quotes, but the actual execution of the command does. Can you attach the actual debug log with the error?