I'm trying to assemble an ffmpeg one-liner to extract both an mp4 and KLV metadata from a UAV video. I have two separate commands that work for this purpose:
ffmpeg -i input.mpg -map data-re -codec copy -f data output.klv
ffmpeg -i input.mpg output.mp4
But now I'd like to accomplish this in a single line. I've tried a number of variations but keep getting errors. e.g.,
ffmpeg -i input.mpg -map 0:0 -map data-re -codec:v:0 copy -codec:d copy output.mp4 -f data output.klv
gives me the error "Output file #1 does not contain any stream." I'm new to ffmpeg and probably doing something dumb, but I can't find any examples that adequately address this scenario. What am I doing wrong? Thanks!
+ Reply to Thread
Results 1 to 3 of 3
-
-
Your map and codec options should appear before each output file to which they apply. In other words, don't lump the outputs at the end of the command.
Similar Threads
-
(HELP PLEASE) FFmpeg - Batch Remove metadata
By uppon2 in forum Newbie / General discussionsReplies: 14Last Post: 3rd Jun 2016, 06:47 -
Video Camera Support For KLV Question
By joemart in forum Newbie / General discussionsReplies: 9Last Post: 16th Jun 2015, 12:23 -
Can somebody explain the FFMPEG usage of -metadata ?
By Videogamer555 in forum EditingReplies: 7Last Post: 15th May 2015, 15:06 -
ffmpeg/ffmbc metadata
By marcorocchini in forum Newbie / General discussionsReplies: 21Last Post: 16th May 2014, 18:54 -
FFMPEG writing metadata from another source
By marcorocchini in forum Newbie / General discussionsReplies: 24Last Post: 20th Apr 2014, 12:41