Sorry, updated mpeg4 profiles again
This time using info from https://ffmpeg.org/faq.html ----- 3.9 Which are good parameters for encoding high quality MPEG-4? ’-mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2’, things to try: ’-bf 2’, ’-mpv_flags qp_rd’, ’-mpv_flags mv0’, ’-mpv_flags skip_rd’. ---- For msmpeg4 only +aic flag is valid For mpeg4 bot flags (+mv4+aic) are valid I also tried AVC-Intra-100 encoding - slow on my machine, but apparently produces mp4? mediainfo /dev/shm/avcintra100.mp4 General Complete name : /dev/shm/avcintra100.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 879 MiB Duration : 1 min 5 s Overall bit rate mode : Constant Overall bit rate : 113 Mb/s Writing application : Lavf58.55.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High 4:2:2 [email protected] Format settings, CABAC : No Format settings, GOP : N=1 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1 min 4 s Bit rate mode : Constant Bit rate : 114 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 10 bits Scan type : Progressive Bits/(Pixel*Frame) : 2.193 Stream size : 878 MiB (100%) Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 1 min 5 s Duration_LastFrame : -16 ms Bit rate mode : Constant Bit rate : 129 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 44.1 kHz Frame rate : 43.066 FPS (1024 SPF) Compression mode : Lossy Stream size : 1 022 KiB (0%) Language : Russian Default : Yes Alternate group : 1 Of course audio better to be PCM .... Can anyone check if this file edi(t)able by other video editors?
Andrew, Your changes + the new Intra... will be checked in later today (or soon). I tested all of them and they all worked but you know more about it then we do. I also tried AVC-Intra-100 encoding - slow on my machine, but apparently
produces mp4?
Yes, it produced mp4 and it was not slow on my laptop but I ran a very small file without audio.
Of course audio better to be PCM .... Can anyone check if this file edi(t)able by other video editors?
I do not have MLV or any other video editor to test. Maybe Andrea can after we check it in?
В сообщении от Wednesday 16 September 2020 01:06:18 Phyllis Smith via Cin написал(а):
Andrew, Your changes + the new Intra... will be checked in later today (or soon). I tested all of them and they all worked but you know more about it then we do.
Unfortunately, not much (just was looking at checkboxes in Avidemux settings and tried to upscale verysmall video - http://samples.mplayerhq.hu/MPEG1/ where difference in file size was obvious. I also tried to create two new profiles mpeg1.mpeg and mpeg2.mpeg with those recommended settings in them, and mpeg1_mp2.mpeg as audio file (so you can mux mpeg1 streams with sound) - but not sure how useful they can be? I also tried to create h264 flv, but swftool failed to merge it into swf, and I don't know any other open-source tool for merging/wrapping flv into swf https://en.wikipedia.org/wiki/Flash_Video https://stackoverflow.com/questions/45484607/how-to-properly-wrap-h264-into-... Those two somewhat confusing, _I think_ flv muxer in ffmpeg can mux h264 in flv (for example for uploading to youtube/etc), but how useful this can be in real-life I don't know .... https://trac.ffmpeg.org/wiki/EncodingForStreamingSites --- Encoding a file for streaming If your computer is too slow to encode the file on-the-fly like the example above then you can re-encode it first: $ ffmpeg -i input.mkv -c:v libx264 -preset medium -b:v 3000k -maxrate 3000k -bufsize 6000k \ -vf "scale=1280:-1,format=yuv420p" -g 50 -c:a aac -b:a 128k -ac 2 -ar 44100 file.flv Then stream copy it to the streaming service: $ ffmpeg -re -i file.flv -c copy -f flv rtmp://live.twitch.tv/app/<stream key> ----
I also tried AVC-Intra-100 encoding - slow on my machine, but apparently
produces mp4?
Yes, it produced mp4 and it was not slow on my laptop but I ran a very small file without audio.
Of course audio better to be PCM .... Can anyone check if this file edi(t)able by other video editors?
I do not have MLV or any other video editor to test. Maybe Andrea can after we check it in?
Andrew, I also tried to create two new profiles mpeg1.mpeg and mpeg2.mpeg with
those recommended settings in them, and mpeg1_mp2.mpeg as audio file (so you can mux mpeg1 streams with sound) - but not sure how useful they can be?
I also tried to create h264 flv, but swftool failed to merge it into swf, and I don't know any other open-source tool for merging/wrapping flv into swf
Well, I tried these 4 and the 3 seem to work and could be useful. BUT mpeg1_mp2.mpeg for audio just gives me the error message of: libtwolame @ 0x7fffa0701f80] Specified channel layout '5.1' is not supported FFMPEG::open_encoder err: Invalid argument which I do not understand as I only had 2 channels.
Andrew, I just noticed that the flv_h264.flv output file is so pixelated (original was 352x240) that I think it would only be useful on a small play device (lots of those around in phones these days). And for some reason the mpeg1_mp2.mpeg is now working so obviously I was doing something wrong originally. On Tue, Sep 15, 2020 at 6:40 PM Phyllis Smith <[email protected]> wrote:
Andrew,
I also tried to create two new profiles mpeg1.mpeg and mpeg2.mpeg with
those recommended settings in them, and mpeg1_mp2.mpeg as audio file (so you can mux mpeg1 streams with sound) - but not sure how useful they can be?
I also tried to create h264 flv, but swftool failed to merge it into swf, and I don't know any other open-source tool for merging/wrapping flv into swf
Well, I tried these 4 and the 3 seem to work and could be useful. BUT mpeg1_mp2.mpeg for audio just gives me the error message of: libtwolame @ 0x7fffa0701f80] Specified channel layout '5.1' is not supported FFMPEG::open_encoder err: Invalid argument which I do not understand as I only had 2 channels.
В сообщении от Wednesday 16 September 2020 03:52:23 Phyllis Smith via Cin написал(а):
Andrew, I just noticed that the flv_h264.flv output file is so pixelated (original was 352x240) that I think it would only be useful on a small play device (lots of those around in phones these days).
Try to set "quality" (in GUI) to somehting like "23" ? or "b=3000000" in this small window where you can add ffmpeg options)
And for some reason the mpeg1_mp2.mpeg is now working so obviously I was doing something wrong originally.
I think just selecting some other output type momentary and then re-selecting desired type reload all those options?
On Tue, Sep 15, 2020 at 6:40 PM Phyllis Smith <[email protected]> wrote:
Andrew,
I also tried to create two new profiles mpeg1.mpeg and mpeg2.mpeg with
those recommended settings in them, and mpeg1_mp2.mpeg as audio file (so you can mux mpeg1 streams with sound) - but not sure how useful they can be?
I also tried to create h264 flv, but swftool failed to merge it into swf, and I don't know any other open-source tool for merging/wrapping flv into swf
Well, I tried these 4 and the 3 seem to work and could be useful. BUT mpeg1_mp2.mpeg for audio just gives me the error message of: libtwolame @ 0x7fffa0701f80] Specified channel layout '5.1' is not supported FFMPEG::open_encoder err: Invalid argument which I do not understand as I only had 2 channels.
I do not have MLV or any other video editor to test. Maybe Andrea can after we check it in?
Try various renderings: div3 --> 40 fps div3v2 --> 41 div5 --> 68 AVC_Intra --> ERROR [libx264 @ 0x7fdda80c8b40] FPS 30/1p not compatible with AVC-Intra msmpeg4 --> 40 xvid --> 63 The default settings are low quality. I currently have no other NLEs installed (I cannot get DaVinci Resolve to work with AMD). The files produced work well in VLC and MPV.
В сообщении от Wednesday 16 September 2020 15:48:04 Andrea paz via Cin написал(а):
I do not have MLV or any other video editor to test. Maybe Andrea can after we check it in?
Try various renderings:
div3 --> 40 fps div3v2 --> 41 div5 --> 68 AVC_Intra --> ERROR [libx264 @ 0x7fdda80c8b40] FPS 30/1p not compatible with AVC-Intra
https://en.wikipedia.org/wiki/AVC-Intra Common to both classes; Frame rates: 1920 × 1080 (23.98p / 25p / 29.97p / 50i / 59.94i), 1280 × 720 (23.98p / 25p / 29.97p / 50p / 59.94p) yeah, it seems exact 30 fps is not specified :(
msmpeg4 --> 40 xvid --> 63
The default settings are low quality. I currently have no other NLEs installed (I cannot get DaVinci Resolve to work with AMD). The files produced work well in VLC and MPV.
participants (3)
-
Andrea paz -
Andrew Randrianasulu -
Phyllis Smith