[FFmpeg-user] Any Insight Into Validation Error?

Jeremy genericinbox at gmail.com
Sat Jun 13 00:19:58 CEST 2015


Hi,

I'm using ffmpeg to encode video for a popular online media retailer. I've
been doing it for months without incident.

Just recently I've run into issues with video products making it through
QC. My process / command hasn't changed, but suddenly they're throwing back
an error that, sadly, is gibberish to me. Error is as follows :

Import error:
ERROR[mediaValidation.mpeg2.programPack.insufficientBytes]@889326276289_USQY51571375.mpg:
Insufficient number of bytes (2) before file end while checking for
ProgramPack]


Here is my ffmpeg command line :

ffmpeg -y -i /filename.mov -vcodec mpeg2video -pix_fmt yuv420p -me_method
epzs -threads 2 -vf yadif=0 -vf crop=1920:1072:0:4 -g 45 -bf 2 -trellis 2
-cmp 2 -subcmp 2 -s 640x360 -b:v 16384k -minrate 16384k -maxrate 16384k
-acodec mp2 -ac 2 -ab 384k -ar 48000 -async 1 -y -f vob output.mpg


Does anyone have any insight into what this error means when it comes to
mpeg2 encoding?

Thanks very much

-j


More information about the ffmpeg-user mailing list