[FFmpeg-user] errors in encoding avc x264 to av1 using latest ffmpeg libaom linux

Guddla Rupesh rupeshforu3 at gmail.com
Tue Jan 31 18:05:55 EET 2023


Hi in the attachments below I am providing the script which consists of
ffmpeg commands to convert a x264 MP4 video file to av1 using latest ffmpeg
and libaom.

After that I have given the attachment of output of running the script.

Kindly try to suggest what's wrong and run the above script without any
errors.

Regards,
Rupesh.

On Mon, 30 Jan 2023, 10:41 pm Ferdi Scholten, <ferdi at sttc-nlp.nl> wrote:

> Hi I am Rupesh from India and I have a system with Intel i3 10th generation
> > processor and Asus H510 me motherboard. I have installed Arch Linux
> x86_64
> > latest version and after that I have installed aom package from official
> > repository and after that I have compiled ffmpeg with option
> > --enable-libaom. But I am getting errors while using ffmpeg from command
> > line.
> >
> >
> > Previously I mean from the past one year I am using ffmpeg along with
> > libaom and I have not encountered any error but yesterday I have removed
> > aom package from my system and after that I have uninstalled ffmpeg.
> > Freshly I have installed aom package and then I have compiled the source
> > code of ffmpeg with option --enable-libaom and it succeeded. Here the
> issue
> > is when I want to convert a h264 avc .mp4 video file to av1 but I am
> > getting error as follows.
> >
> > [CODE]Overriding packet duration by frame rate, this should not
> > happen[/CODE]
> >
> > After that I have removed aom package and un installed ffmpeg. After
> that I
> > have tried to install aom-git aur package using yay helper and succeeded.
> > Now I have tried to compile source code of ffmpeg with option
> > --enable-libaom and succeeded. After that I have tried to convert h264
> avc
> > .mp4 video file using ffmpeg but again I am getting same error as
> follows.
> >
> > [CODE]Overriding packet duration by frame rate, this should not
> > happen"[/CODE]
> >
> >  From the past one year I have not received any such errors but now I am
> > getting. Previously I have used ffmpeg along with Linux distributions
> > Fedora 36 debian stable etc.,.
> >
> > 5 days back the package installed from aom-git aur repository worked fine
> > along with ffmpeg but now can't.
> >
> > I have compiled the source code of aom downloaded from git official
> > repository as mentioned in itself but still I am getting same error.
> >
> > Previously as I have not received any errors and now I think that
> there's a
> > bug in the source code of aom git repository.
> >
> > If you want I will provide the output of the commands specified by you.
> > Kindly try to suggest how to make ffmpeg with libaom run properly without
> > any errors in my arch Linux system. If none works can you suggest how to
> > compile source code of aom from git.
> >
> > Regards,
> > Rupesh.
> >
> Please provide the ffmpeg commandline used and full output from it here,
> otherwise we can't help you at all.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
-------------- next part --------------
[ Rupesh ~/Videos/to_convert/1 ]$ ./ffmpeg_script.sh 
Maharana Pratap History - How did Maharana Pratap Dismiss - Rahasyavaani
525
537798
ffmpeg version N-109737-g669ff26bc2 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.1 (GCC) 20230111
  configuration: --arch=x86_64 --cpu=skylake --prefix=/opt/ffmpeg --enable-gpl --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libsvtav1 --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-vaapi --enable-vdpau --enable-opencl --enable-opengl --enable-libmfx --enable-hwaccels
  libavutil      57. 44.100 / 57. 44.100
  libavcodec     59. 60.100 / 59. 60.100
  libavformat    59. 37.100 / 59. 37.100
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 56.100 /  8. 56.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Maharana Pratap History - How did Maharana Pratap Dismiss - Rahasyavaani.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2017-03-07T04:46:53.000000Z
  Duration: 00:02:27.10, start: 0.000000, bitrate: 635 kb/s
  Stream #0:0[0x1](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 537 kb/s, 24.88 fps, 25 tbr, 25 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2017-03-07T04:46:56.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      vendor_id       : [0][0][0][0]
Using auto hwaccel type vaapi with new default device.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> av1 (libaom-av1))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[libaom-av1 @ 0x55682ce9cf80] 3.5.0-728-gbecea2fc7
Output #0, null, to '/dev/null':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf59.37.100
  Stream #0:0(und): Video: av1, yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 180 kb/s, 25 fps, 25 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.60.100 libaom-av1
    Side data:
      cpb: bitrate max/min/avg: 0/0/180000 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s (default)
    Metadata:
      creation_time   : 2017-03-07T04:46:56.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.60.100 pcm_s16le
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:02:27.07 bitrate=N/A speed=3.11x    
video:0kB audio:12670kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
ffmpeg version N-109737-g669ff26bc2 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.1 (GCC) 20230111
  configuration: --arch=x86_64 --cpu=skylake --prefix=/opt/ffmpeg --enable-gpl --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libsvtav1 --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-vaapi --enable-vdpau --enable-opencl --enable-opengl --enable-libmfx --enable-hwaccels
  libavutil      57. 44.100 / 57. 44.100
  libavcodec     59. 60.100 / 59. 60.100
  libavformat    59. 37.100 / 59. 37.100
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 56.100 /  8. 56.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Maharana Pratap History - How did Maharana Pratap Dismiss - Rahasyavaani.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2017-03-07T04:46:53.000000Z
  Duration: 00:02:27.10, start: 0.000000, bitrate: 635 kb/s
  Stream #0:0[0x1](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 537 kb/s, 24.88 fps, 25 tbr, 25 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2017-03-07T04:46:56.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      vendor_id       : [0][0][0][0]
Using auto hwaccel type vaapi with new default device.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> av1 (libaom-av1))
  Stream #0:1 -> #0:1 (aac (native) -> opus (libopus))
Press [q] to stop, [?] for help
[libaom-av1 @ 0x5618d4800c40] 3.5.0-728-gbecea2fc7
Output #0, mp4, to 'Maharana Pratap History - How did Maharana Pratap Dismiss - Rahasyavaani_compressed_opus_new.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf59.37.100
  Stream #0:0(und): Video: av1 (av01 / 0x31307661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 180 kb/s, 25 fps, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.60.100 libaom-av1
    Side data:
      cpb: bitrate max/min/avg: 0/0/180000 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: opus (Opus / 0x7375704F), 48000 Hz, mono, flt, 20 kb/s (default)
    Metadata:
      creation_time   : 2017-03-07T04:46:56.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.60.100 libopus
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kb[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
frame=    1 fps=0.6 q=0.0 size=       0kB time=00:00:01.43 bitrate=   0.3kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
frame=    2 fps=0.5 q=0.0 size=       0kB time=00:00:01.43 bitrate=   0.3kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
    Last message repeated 4 times
frame=    6 fps=1.3 q=0.0 size=       0kB time=00:00:01.43 bitrate=   0.3kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
    Last message repeated 2 times
frame=   10 fps=1.4 q=0.0 size=       0kB time=00:00:01.93 bitrate=   0.2kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
    Last message repeated 3 times
frame=   14 fps=1.7 q=0.0 size=       0kB time=00:00:01.93 bitrate=   0.2kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
    Last message repeated 4 times
frame=   18 fps=1.6 q=0.0 size=       0kB time=00:00:01.93 bitrate=   0.2kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
    Last message repeated 3 times
frame=   22 fps=1.9 q=0.0 size=       0kB time=00:00:02.41 bitrate=   0.2kbits/s[vost#0:0/libaom-av1 @ 0x5618d47f5940] Overriding packet duration by frame rate, this should not happen
    Last message repeated 1 times
[1]+  Stopped                 ./ffmpeg_aom_opus_2pass.sh
[ Rupesh ~/Videos/to_convert/1 ]$ 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_script.sh
Type: text/x-sh
Size: 3059 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230131/04babefe/attachment.sh>


More information about the ffmpeg-user mailing list