Hi,

I use the FFmpeg libs to read a video file, apply changes to the video stream, 
and write both the changed video frames and *unchanged* audio frames to another 
file. All of this is done on Android (NDK). Currently, I do have the video part 
running and wanted to start the audio part now. 2 questions:

#1: As I do not want to change the audio part, what is the preferred and 
fastest way to pass this stream through? Is it valid to simply read audio 
packets (not frames) and write them unchanged? To me it seems it does not make 
too much sense to first decode them and encode them later? Or am I missing 
something? 

#2: I have learned about pts/dts and roughly understand what it is all about. 
Samples I have seen do quite sophisticated things to derive a PTS for real time 
display and so on… In my scenario (which is a simple batch process), is it a 
valid approach to ignore that stuff completely and simple copy over the 
original pts/dts fields on packet level (both audio and video) when writing 
them to the second file?

I’m looking forward to any feedback.

Greetings Harald

-
Harald Schlangmann
Antwerpener Str. 52, 50672 Köln, Germany
+49 151 2265 4439
[email protected]
www.gps-laptimer.de

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to