[FFmpeg-devel] introduce new AVPacket (or modify the existing pkt->data) while muxing

2018-12-31 Thread Sify Browse
Hello,
   I am trying to create and push packet in the muxer but new packet is not
reflected at all after packaging.

Pipeline looks like below,

[image: image.png]

While doing this, I am loosing existing packet also.

Can you please help me by pointing some of example codes?

is there any restrictions with the DATA type? similarly I was able to
change VIDEO type, the pkt->data in the hls context.

If introduction of new AVPacket does not exist, can we have this
implemented support please?

Thank you,
-S
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] Encrypt mpeg-dash contents and Explore the headers

2017-12-15 Thread Sify Browse
I am trying to encrypt the mpeg-dash contents by passing the
encryption_scheme, encryption_key and encryption_kid to the mp4 muxer from
dash muxer. I do notice that the contents (fragmented and segmented) are
encrypted but not playable through dash players, decryption fails.

a)
Going through ffmpeg code reveals that some of the atom/box have to be
updated and added to proper atom/box (though not mandatory).
Specifications mentions that the 'senc' atom to be in the 'traf' or in
'trak' box but in the mp4 it is under the 'stbl' box. I am not sure on
which specification code was implemented. But moving 'senc' to the 'traf'
box works but for first segment as the auxiliary info's are appended and
second segment will have duplicates of first segment.So player complains
and fails to play the next chunk. Any inputs on how to segregate the 'senc'
when dash is enabled? I assume that the auxiliary information written is
for the whole file, but in the case of segmentation the 'senc' has to be
per segment and contain per segment auxiliary information. Trying to modify
auxiliary info results in the segmentation fault. Please provide some
guidance.

b) To play dash encrypted content, either we need to update the mpd file or
headers with 'pssh' atom (atom not mandatory). Do we need the 'sbgp',
'sgpd' and 'seig' boxes, inspite not mandatory? but ffmpeg is using
subsample encryption.

c) Following command generates the single file which can be playable in the
ffplay but I can not open and see the boxes through mp4 explorer. Which
tool does support to explore segmented file/s?

ffmpeg -y -loglevel info -loglevel verbose -err_detect careful
-analyzeduration 800 -probesize 400 -rtbufsize 30
-flush_packets 0 -fflags +genpts+discardcorrupt -f mpegts -i
Sample_Input.ts -i -map 0:p:1:0 -c copy -f dash -window_size 24
-min_seg_duration 4 -use_timeline true -use_template true -single_file
true live.mpd
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel