FORUMS: list search recent posts

Picture In Picture -Missing key or no key/value separator found

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
TOm Murr
Picture In Picture -Missing key or no key/value separator found
on Feb 15, 2012 at 3:57:04 am

I would like to overlay a video within another video --- I have tried the examples from the libavfilter documentation site and other examples.

I'd like to take a 640x480 video as the main/background video and superimpose a 480z360 video in the center of the main video.

ffmpeg -i file1.mp4 -vf "movie=file2.wmv[clip2]; [in][clip2] overlay=80:60 [out]" overlay.mp4

I received the following error: Missing key or no key/value separator found

ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 6 2011 22:02:08 with gcc 4.6.1
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 24. 0 / 51. 24. 0
libavcodec 53. 28. 0 / 53. 28. 0
libavformat 53. 19. 0 / 53. 19. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 47. 0 / 2. 47. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:\temp\videos\file1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.19.0
Duration: 00:00:40.66, start: 0.000000, bitrate: 232 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 97 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name :
[buffer @ 034B5DA0] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[movie @ 034CBC00] Missing key or no key/value separator found after key 'tempvideosfile2.mp4'
[movie @ 034CBBC0] Error parsing options string: 'tempvideosfile2.mp4'
Error initializing filter 'movie' with args 'c:tempvideosfile2.mp4'
Error opening filters!


Return to posts index

stephen dixon
Re: Picture In Picture -Missing key or no key/value separator found
on Feb 15, 2012 at 11:43:28 am

It looks like it's having trouble parsing the path - if you look at the line that reads Error parsing options string: 'tempvideosfile2.mp4', that looks to me like it's interpreting the backslashes as posix style escapes. Try giving it an absolute path to the movie, and escaping your backslashes eg movie=c:\temp\videos\file2.wmv


Return to posts index

TOm Murr
Re: Picture In Picture -Missing key or no key/value separator found
on Feb 15, 2012 at 3:45:23 pm

Steve wrote:
"looks to me like it's interpreting the backslashes as posix style escapes"

I agree -- if I run FFmpeg within the directory where the file is located then their is no path (i.e. no backslashes) and I receive no errors and it produces the desired video output.

I tried the escape sequence you proposed but it doesn't work on my system (.. Windows 7).... I tried the ole double backslash // but to no avail --- same error but the error now includes one of the backslashes (e.g. Error parsing options string: '\temp\videos\file2.mp4'). So I think you are on the right track --- I just have to find the right escape sequence to work with my system..

thanks


Return to posts index


TOm Murr
Re: Picture In Picture -Missing key or no key/value separator found
on Feb 15, 2012 at 2:08:55 pm

> ffmpeg -i file1.mp4 -vf "movie=file2.wmv[clip2]; [in][clip2]
> overlay=80:60 [out]" overlay.mp4

I made a mistake on my original post --- it should read

ffmpeg -i file1.mp4 -vf "movie=file2.mp4[clip2]; [in][clip2] overlay=80:60 [out]" overlay.mp4

Also ---- after some more reading -----

Apparently the movie referenced within the filter (i.e. after -vf) must be in the same directory as FFmpeg ---- when I move the video files into the same directory as FFmpeg I receive no errors and I'm able to get the Picture-in-Picture effect ----- !

Is there a way to reference a video that is not in the FFmpeg path?


Return to posts index

stephen dixon
Re: Picture In Picture -Missing key or no key/value separator found
on Mar 4, 2012 at 2:10:40 am

It's definitely doing something tricky with the paths. Maybe try enclosing the path in quotes. I'm sorry that I'm not much chop with windows paths.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]