JK1974
16th October 2012, 11:46
Hi,
I want to encode MP4-AVC files with ffmpeg that should work on streaming settop boxes or TV sets. As the source is PAL-SD resolution, I though about starting with the information at https://sites.google.com/site/x264bluray/home/576i-pal.
But, in my case, several parameters are different. As the devices are not Blu-ray players (even if they might use the same chipsets) and the data is streamed by broadband internet connection and not delivered at a fixed rate from a physical media, I am first not sure what vbv values are best to take.
If I understand correctly, --vbv-maxrate limits the rate at which the buffer is being filled. But because I donīt know the internet speed of the users, wouldnīt it be best set it to a maximum value, e.g. 40000 like with Blu-ray encodings, to fill the buffer at the highest possible speed?
Second: What do I set as --vbv-bufsize? The example at http://mewiki.project357.com/wiki/X264_Encoding_Suggestions tells me that it would be best to set it to a minimum to avoid long buffering times. Other guides tell me that the vbv should be big enough to hold a full gop (I have currently set the keyint to 25, so it wouldnīt be too big).
Finally: The option --vbv-init does not seem to work with ffmpeg - simply seems to be ignored, even with the -x264ops option.
Another question concerning format compatibility has to do with the format profile and the codec-id. MediaInfo talks about "Base Media / Version 2" and "mp42" on a lot of files (e.g. rendered with Adobe Media Encoder), while ffmpeg encodings are said to have the format profile "Base Media" and codec-ID "isom". Is this just meta-data (as I have read on several pages) or can this have a bigger impact on compatibility?
Last, but not least: The Blu-ray x264 example commands use the parameters --colorprim "bt470bg" --transfer "bt470bg" --colormatrix "bt470bg"If I encode an MPEG-2 file to MP4-AVC using ffmpeg, MediaInfo tells me:colour_primaries : BT.601 PAL
transfer_characteristics : BT.470 System B, BT.470 System G
matrix_coefficients : BT.601
Is the result really correct? I have also read that BT.470-2 corresponds to BT.601... I have also seen a lot of encodings where MediaInfo does not print any information about those colour parameters, so I donīt think that this really causes incompatibilities if I leave it out.
Thank you very much in advance for any hints!
I want to encode MP4-AVC files with ffmpeg that should work on streaming settop boxes or TV sets. As the source is PAL-SD resolution, I though about starting with the information at https://sites.google.com/site/x264bluray/home/576i-pal.
But, in my case, several parameters are different. As the devices are not Blu-ray players (even if they might use the same chipsets) and the data is streamed by broadband internet connection and not delivered at a fixed rate from a physical media, I am first not sure what vbv values are best to take.
If I understand correctly, --vbv-maxrate limits the rate at which the buffer is being filled. But because I donīt know the internet speed of the users, wouldnīt it be best set it to a maximum value, e.g. 40000 like with Blu-ray encodings, to fill the buffer at the highest possible speed?
Second: What do I set as --vbv-bufsize? The example at http://mewiki.project357.com/wiki/X264_Encoding_Suggestions tells me that it would be best to set it to a minimum to avoid long buffering times. Other guides tell me that the vbv should be big enough to hold a full gop (I have currently set the keyint to 25, so it wouldnīt be too big).
Finally: The option --vbv-init does not seem to work with ffmpeg - simply seems to be ignored, even with the -x264ops option.
Another question concerning format compatibility has to do with the format profile and the codec-id. MediaInfo talks about "Base Media / Version 2" and "mp42" on a lot of files (e.g. rendered with Adobe Media Encoder), while ffmpeg encodings are said to have the format profile "Base Media" and codec-ID "isom". Is this just meta-data (as I have read on several pages) or can this have a bigger impact on compatibility?
Last, but not least: The Blu-ray x264 example commands use the parameters --colorprim "bt470bg" --transfer "bt470bg" --colormatrix "bt470bg"If I encode an MPEG-2 file to MP4-AVC using ffmpeg, MediaInfo tells me:colour_primaries : BT.601 PAL
transfer_characteristics : BT.470 System B, BT.470 System G
matrix_coefficients : BT.601
Is the result really correct? I have also read that BT.470-2 corresponds to BT.601... I have also seen a lot of encodings where MediaInfo does not print any information about those colour parameters, so I donīt think that this really causes incompatibilities if I leave it out.
Thank you very much in advance for any hints!