To generate a packet loss version: 1º. To generate a copy from original movie to .h264 version: ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1280x720 -r 50 -i Results\filename.yuv -c:v libx264 Results \filename.h264 Example: ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1280x720 -r 50 -i Results\blkblr_v6_1280x720_0.yuv -c:v libx264 Results blkblr_v6_1280x720_0.h264 2º. To run Naltools (ErrorGen\Release\): NalTools3 -ofilename_pckErr.264 filename.264:0:num2str(npacotesPorFrame-1) filename.264:num2str(prob2(nprob)):num2str(npacotesPorFrame):num2str(npacotesPorFrame*ACK_frame(nack)):num2str(npacotesPorFrame*nframes)]); Example: NalTools3 -ofilename_pckErr.264 filename.264:0:7 filename.264:3:8:96:4000 3º To run H264 decoder (H264_Decodificar\bin\ldecod): ldecod -i bin_out1Err -o bin_out1Err.yuv Example: ldecod -i filename_pckErr.264 -o filename_pckErr.yuv OBS: descobrir se esse script é necessário: lencod -d encoder.cfg -p InputFile=filename0.yuv -p FramesToBeEncoded=500 -p SourceWidth=1280 -p SourceHeight=720 -p RecogFile=filename1.yuv -p Outputfile=filename1.264 -p QPISlice=6 -p QPPSlice=6 -p NumberReferenceFrames=1 -p SliceMode=1 -p SliceArgument=450 -p IntraPeriod=12