Unable to transcode files with spaces in filename/directory on Linux

Issue #372 invalid
Former user created an issue

Relative parts of debug log:

3160 2011-06-25 11:29:11,567 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.125.109, Profile=Generic Android DLNA Device' 3162 2011-06-25 11:29:11,576 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /home/media/movies/divx/10 Things I Hate About You/10 Things I Hate About You.avi 3163 2011-06-25 11:29:11,577 DEBUG [ProcessExecutor] Starting ffmpeg -i /home/media/movies/divx/10 Things I Hate About You/10 Things I Hate About You.avi -y -threads 2 -vcodec mpeg2video -sameq -r 25 -g 15 -copyts -acodec copy -map 0:0 ... ... ... 3198 2011-06-25 11:29:20,326 WARN [ProcessExecutor] Process ffmpeg has a return code of 255! This is a possible error. 3199 2011-06-25 11:29:20,327 DEBUG [TranscodingJobListener] Transcoding finished; successful: false

When running the ffmpeg command manually, the following error is returned:

[root@LAKITU:tmp] 128# ffmpeg -i /home/media/movies/divx/10 Things I Hate About You/10 Things I Hate About You.avi -y -threads 2 -vcodec mpeg2video -sameq -r 25 -g 15 -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /media/space/tmp/Serviio/transcoding-temp-64-MPEG2TS.stf FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 31 2011 18:53:20, gcc: 4.4.3 /home/media/movies/divx/10: no such file or directory

When calling the ffmpeg command, could you please put the path passed into -i in quotes? Escaping the input value should fix this problem. Thanks!

Comments (1)

  1. Petr Nejedly repo owner

    the file is wrapped with quotes, it's just not reflected in the log. It probably fails for a different reason.

  2. Log in to comment