Lavar Askew
unread,Oct 25, 2021, 8:44:40 PM10/25/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to media-dev, Chris Cunningham, media-dev, guest...@gmail.com, Lavar Askew
Hi Chris,
>"raw" is typically reserved for describing decoded data. I've never used vooya, but it looks like it only plays decoded data. If you're planning to do image processing you'll probably want to do that on the decoded data.
You are correct, but I have some code that will do the decoding.
>Are you sure this is writing the contents of data? At a glance, I think you may just be writing the pointer value.
Thanks for pointing out that mistake! I'm coming at this from a Java perspective so I am learning as I go. I have updated my code as to iterate through the buffer. When I try to play this in VLC it says that the header is missing. How can I add the header to this file? I see that a header is defined for VP9 in vp9_parser.h, but I don't see one for DAV1D.
PA_LOG(INFO) << "###################Dav1dVideoDecoder::Decode - Start###################\n";
std::ofstream buffer_file_;
buffer_file_.open ("/home/chronos/user/Downloads/Dav1dVideoDecoder_buffer_file.out", std::ofstream::binary | std::ofstream::out | std::ofstream::app);
if (buffer_file_.fail())
PA_LOG(INFO) << "Error: write failed - " << buffer_file_.exceptions() << "\n";
const uint8_t* encoded_data = buffer->data();
for( size_t i = 0 ; i < buffer->data_size() ; i++ )
{
buffer_file_ << encoded_data[i];
}
PA_LOG(INFO) << "###################Dav1dVideoDecoder::Decode - End###################\n";