Writing H.264 data to a file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Writing H.264 data to a file

Austin Einter
In  a call, I am receiving H.264 data in RTP packet.
I need to write it to a mkv file to and then I should be able to play it
using ffmpeg.

It looks that I am always getting single NAL unit in RTP packet.
My understanding is, I need to remove RTP packetization data (rfc 6184),
and remove immediate next byte (F | NRI | TYPE), and then write remaining
data to file prefixed with 0x00 0x00 00x1.

After I prepare buffer, then I use av_write_xxx apis to write it using
ffmpeg.

The resultant file, I am not able to play.

Kindly help me by pointing whats wrong here.

-Austin
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Writing H.264 data to a file

Moritz Barsnick
Hi Austin,

On Tue, Apr 03, 2018 at 13:05:03 +0530, Austin Einter wrote:

> After I prepare buffer, then I use av_write_xxx apis to write it using
> ffmpeg.

The list ffmpeg-user discusses use of ffmpeg's command line tools. If
you need assistance in using the libav* libraries, please direct your
question to the libav-user list:
https://lists.ffmpeg.org/mailman/listinfo/libav-user/

For any coding concepts which also apply to the command line tools (and
can be recreated by them), feel free to stick to this ffmpeg-user list.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".