[FFmpeg-user] help with file paths under windows

Marton Balint cus at passwd.hu
Fri May 15 23:46:07 CEST 2015


On Fri, 15 May 2015, Moritz Barsnick wrote:

> On Thu, May 14, 2015 at 17:39:46 +0200, lorenzo angeli wrote:
>> Now, this seems all to be working fine under linux, but on winows, I
>> started finding a bunch of issues.
>>
>> first this :
>> https://trac.ffmpeg.org/ticket/2166
>> <https://www.google.com/url?q=https%3A%2F%2Ftrac.ffmpeg.org%2Fticket%2F2166&sa=D&sntz=1&usg=AFQjCNEzmfy7GKPE-4mOSGJ-ECSz3vK3jA>,which
>> I have fixed on my side, but doesn't really look nice....
>
> I dont think you have:
>
>> [Parsed_lut3d_0 @ 0000000002f22ea0] Setting 'interp' to value '/Python27/lib/site-packages/efesto_review/resource/luts/Cineon-to-SLog.3dl'
>> [lut3d @ 0000000005a80060] [Eval @ 000000000022e6e0] Undefined constant or missing '(' in '/Python27/lib/site-packages/efesto_review/resource/luts/Cineon-to-SLog.3dl'
>> [lut3d @ 0000000005a80060] Unable to parse option value "/Python27/lib/site-packages/efesto_review/resource/luts/Cineon-to-SLog.3dl"
>
> I recommend you change your command line from
>
>> C:\Users\efesto\Desktop>ffmpeg -threads 0 -y -start_number 1798 -i E:\A012C006_101030_L1O3\A012C006_101030_L1O3.%4d.dpx -c:v libx264 -crf 18 -preset slow -strict -2 -movflags faststart -filter_complex "[0:v]lut3d='C\\:/Python27/lib/site-packages/efesto_review/resource/luts/Cineon-to-SLog.3dl',lut3d='E\\:/efesto/efesto-review/resource/config/K_TONEVintage_KODACHROME.cube',ut3d='C\\:/Python27/lib/site-packages/efesto_review/resource/luts/SLog-to-sRGB.3dl',scale=1920:1080[clip];[slate][clip] concat=n=2:v=1, scale=1920:1080, fps=25[v]" -map [v] "C:\Users\efesto\Desktop\out.mov" -v trace
>
> to
>
> ffmpeg -threads 0 -y -start_number 1798 -i E:\A012C006_101030_L1O3\A012C006_101030_L1O3.%4d.dpx -c:v libx264 -crf 18 -preset slow -strict -2 -movflags faststart -filter_complex "[0:v]lut3d=C\\:\\\\Python27\\\\lib\\\\site-packages\\\\efesto_review\\\\resource\\\\luts\\\\Cineon-to-SLog.3dl',lut3d='E\\:\\\\efesto\\\\efesto-review\\\\resource\\\\config\\\\K_TONEVintage_KODACHROME.cube,ut3d=C\\:\\\\Python27\\\\lib\\\\site-packages\\\\efesto_review\\\\resource\\\\luts\\\\SLog-to-sRGB.3dl,scale=1920:1080[clip];[slate][clip] concat=n=2:v=1, scale=1920:1080, fps=25[v]" -map [v] "C:\Users\efesto\Desktop\out.mov" -v trace
>

I don't think it makes sense to change the slashes to backslashes, and 
struggle with escaping.

IMHO the reason for the failure was that the colon was not escaped 
properly and the filter regarded the path as two separate filter 
parameters.

You have two options:

Dont use '' but escape twice: lut3d=C\\:/xxx/yyy

or

Use '' and escape once: lut3d='C\:/xxx/yyy'

Regards,
Marton


> I think the may difference of your command line to the trac ticket: You
> added single quotes within the arguments. It may be sufficient to omit
> them.
>
>> Then I have a problem with the luts, even if I format the full path to the
>> lut correctly, it fails loading it with a strange message, which I can't
>> undestand if it's given by the content of the lut, or the path itself.
>
> No, as the message says, it still can't parse the argument to the
> filter. Until you fix the issue of finding the files, the filters
> aren't yet being applied.
>
> Windows paths are a PITA, admitted.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list