ffmpeg: print the codecs names in the stream mapping.
authorNicolas George <nicolas.george@normalesup.org>
Sat, 20 Aug 2011 10:40:26 +0000 (12:40 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 22 Aug 2011 08:46:13 +0000 (10:46 +0200)
ffmpeg.c

index e305948..e3223a5 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2623,6 +2623,13 @@ static int transcode(AVFormatContext **output_files,
                 fprintf(stderr, " [sync #%d.%d]",
                         ost->sync_ist->file_index,
                         ost->sync_ist->st->index);
                 fprintf(stderr, " [sync #%d.%d]",
                         ost->sync_ist->file_index,
                         ost->sync_ist->st->index);
+            if(ost->encoding_needed)
+                fprintf(stderr, ": %s -> %s",
+                    input_streams[ost->source_index].dec ?
+                        input_streams[ost->source_index].dec->name : "?",
+                    ost->enc ? ost->enc->name : "?");
+            else
+                fprintf(stderr, ": copy");
             fprintf(stderr, "\n");
         }
     }
             fprintf(stderr, "\n");
         }
     }