Yes I need to call av_write_trailer, but I am getting an error with 
avformat_write_header which is:

"Invalid data found when processing input"

What causes that?

06.09.2016, 01:19, "Leandro Raffo" <[email protected]>:
> Dont you need to call av_write_trailer at the end?
>
> 2016-09-05 18:42 GMT-03:00 M N <[email protected]>:
>>  OK here is my code for copying frames from one video to another: 
>> http://pastebin.com/ygXs4wAF
>>
>>  Why isn't it copying? Only the header (With a different MP4 codec than the 
>> one in vid.mp4) is written, and its not the same header as the original 
>> file, but
>>  _______________________________________________
>>  Libav-user mailing list
>>  [email protected]
>>  http://ffmpeg.org/mailman/listinfo/libav-user
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to