[libav-bugs] [Bug 717] New: vf padding fails when converting an mp3 and image to video, due to the mp3

bugzilla at libav.org bugzilla at libav.org
Sat Jul 12 01:05:08 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=717

           Summary: vf padding fails when converting an mp3 and image to
                    video, due to the mp3
           Product: Libav
           Version: 9
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: xsleonard at gmail.com


Convert a specific mp3 to a video, in combination with an image padded by -vf,
fails with "[pad @ 0x1aa21c0] Negative values are not acceptable.".  It is
entirely dependent on this particular mp3.  Using the image with other mp3s
works fine, and using other images with the problematic mp3 has the same error.
 Transcoding the mp3 corrects the problem.


Exact command and output:

$ avconv -loop 1 -r 1 -i "/tmp/ytout/tmp-Manson Family - Get It Crunk
[1997].flv.png" -i "/home/steve/Downloads/complete/Manson Family
Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson Family
- Get It Crunk.mp3" -acodec copy -shortest -q:v 5       -t 122 -vf
pad="640:480:(ow-iw)/2:(oh-ih)/2" -v 9 -loglevel 99 "Manson Family - Get It
Crunk [1997].flv"

avconv version 9.13-6:9.13-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav
developers
  built on May  9 2014 13:34:03 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:9.13-0ubuntu0.14.04.1' --libdir=/usr/lib/x86_64-linux-gnu
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype
--enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame
--enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl
--enable-swscale --enable-libcdio --enable-x11grab --enable-libx264
--enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  libavutil     52.  3. 0 / 52.  3. 0
  libavcodec    54. 35. 0 / 54. 35. 0
  libavformat   54. 20. 4 / 54. 20. 4
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  0. 1 /  1.  0. 1
  libswscale     2.  1. 1 /  2.  1. 1
Splitting the commandline.
Reading option '-loop' ... matched as AVOption 'loop' with argument '1'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
fraction or abbreviation)) with argument '1'.
Reading option '-i' ... matched as input file with argument
'/tmp/ytout/tmp-Manson Family - Get It Crunk [1997].flv.png'.
Reading option '-i' ... matched as input file with argument
'/home/steve/Downloads/complete/Manson Family Discography/01. Albums/Manson
Family - Gram Afta Gram (1997)/09. Manson Family - Get It Crunk.mp3'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec
('copy' to copy stream)) with argument 'copy'.
Reading option '-shortest' ... matched as option 'shortest' (finish encoding
within shortest input) with argument '1'.
Reading option '-q:v' ... matched as option 'q' (use fixed quality scale (VBR))
with argument '5'.
Reading option '-t' ... matched as option 't' (record or transcode "duration"
seconds of audio/video) with argument '122'.
Reading option '-vf' ... matched as option 'vf' (video filters) with argument
'pad=640:480:(ow-iw)/2:(oh-ih)/2'.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option 'Manson Family - Get It Crunk [1997].flv' ... matched as output
file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file /tmp/ytout/tmp-Manson Family - Get It
Crunk [1997].flv.png.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with
argument 1.
Successfully parsed a group of options.
Opening an input file: /tmp/ytout/tmp-Manson Family - Get It Crunk
[1997].flv.png.
[image2 @ 0x1a96ba0] Probe buffer size limit 5000000 reached
Input #0, image2, from '/tmp/ytout/tmp-Manson Family - Get It Crunk
[1997].flv.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0, 19, 1/25: Video: png, rgb24, 481x480, 0/1, 25 fps, 25 tbr, 25
tbn
Successfully openened the file.
Parsing a group of options: input file /home/steve/Downloads/complete/Manson
Family Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson
Family - Get It Crunk.mp3.
Successfully parsed a group of options.
Opening an input file: /home/steve/Downloads/complete/Manson Family
Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson Family
- Get It Crunk.mp3.
[mp3 @ 0x1a99a20] Probed with size=65536 and score=51
[mjpeg @ 0x1a9e380] marker=d8 avail_size_in_buf=36810
[mjpeg @ 0x1a9e380] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x1a9e380] marker=e0 avail_size_in_buf=36808
[mjpeg @ 0x1a9e380] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x1a9e380] marker=db avail_size_in_buf=36790
[mjpeg @ 0x1a9e380] index=0
[mjpeg @ 0x1a9e380] qscale[0]: 4
[mjpeg @ 0x1a9e380] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x1a9e380] marker=db avail_size_in_buf=36721
[mjpeg @ 0x1a9e380] index=1
[mjpeg @ 0x1a9e380] qscale[1]: 8
[mjpeg @ 0x1a9e380] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x1a9e380] marker=c0 avail_size_in_buf=36652
[mjpeg @ 0x1a9e380] sof0: picture: 500x500
[mjpeg @ 0x1a9e380] component 0 2:2 id: 0 quant:0
[mjpeg @ 0x1a9e380] component 1 1:1 id: 1 quant:1
[mjpeg @ 0x1a9e380] component 2 1:1 id: 2 quant:1
[mjpeg @ 0x1a9e380] pix fmt id 22111100
[mjpeg @ 0x1a9e380] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x1a9e380] marker=c4 avail_size_in_buf=36633
[mjpeg @ 0x1a9e380] class=0 index=0 nb_codes=12
[mjpeg @ 0x1a9e380] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x1a9e380] marker=c4 avail_size_in_buf=36600
[mjpeg @ 0x1a9e380] class=1 index=0 nb_codes=251
[mjpeg @ 0x1a9e380] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x1a9e380] marker=c4 avail_size_in_buf=36417
[mjpeg @ 0x1a9e380] class=0 index=1 nb_codes=12
[mjpeg @ 0x1a9e380] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x1a9e380] marker=c4 avail_size_in_buf=36384
[mjpeg @ 0x1a9e380] class=1 index=1 nb_codes=251
[mjpeg @ 0x1a9e380] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x1a9e380] escaping removed 203 bytes
[mjpeg @ 0x1a9e380] marker=da avail_size_in_buf=36201
[mjpeg @ 0x1a9e380] component: 0
[mjpeg @ 0x1a9e380] component: 1
[mjpeg @ 0x1a9e380] component: 2
[mjpeg @ 0x1a9e380] marker parser used 35997 bytes (287974 bits)
[mjpeg @ 0x1a9e380] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x1a9e380] mjpeg decode frame unused 0 bytes
[mp3 @ 0x1a99a20] max_analyze_duration reached
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, mp3, from '/home/steve/Downloads/complete/Manson Family
Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson Family
- Get It Crunk.mp3':
  Metadata:
    title           : Get It Crunk
    artist          : Manson Family
    genre           : Memphis Rap
    album           : Gram Afta Gram
    track           : 09/13
    date            : 1997
  Duration: 00:02:00.89, start: 0.000000, bitrate: 225 kb/s
    Stream #1.0, 194, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 223 kb/s
    Stream #1.1, 1, 1/90000: Video: mjpeg, yuvj420p, 500x500 [PAR 1:1 DAR 1:1],
0/1, 90k tbn
    Metadata:
      title           : 
      comment         : Cover (front)
Successfully openened the file.
Parsing a group of options: output file Manson Family - Get It Crunk
[1997].flv.
Applying option acodec (force audio codec ('copy' to copy stream)) with
argument copy.
Applying option shortest (finish encoding within shortest input) with argument
1.
Applying option q:v (use fixed quality scale (VBR)) with argument 5.
Applying option t (record or transcode "duration" seconds of audio/video) with
argument 122.
Applying option vf (video filters) with argument
pad=640:480:(ow-iw)/2:(oh-ih)/2.
Successfully parsed a group of options.
Opening an output file: Manson Family - Get It Crunk [1997].flv.
Successfully openened the file.
[buffer @ 0x1b4b220] w:500 h:500 pixfmt:yuvj420p
[buffersink @ 0x1b4e640] auto-inserting filter 'auto-inserted fifo 0' between
the filter 'format' and the filter 'output stream 0:0'
[format @ 0x1b4d860] auto-inserting filter 'auto-inserted scaler 0' between the
filter 'Parsed filter 0 pad' and the filter 'format'
[pad @ 0x1aa21c0] Negative values are not acceptable.
[buffer @ 0x1b4b220] Failed to configure input pad on Parsed filter 0 pad
Error opening filters!


==========

File info:

$ avconv -v 9 -loglevel 99 -i "/home/steve/Downloads/complete/Manson Family
Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson Family
- Get It Crunk.mp3"

avconv version 9.13-6:9.13-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav
developers
  built on May  9 2014 13:34:03 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:9.13-0ubuntu0.14.04.1' --libdir=/usr/lib/x86_64-linux-gnu
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype
--enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame
--enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl
--enable-swscale --enable-libcdio --enable-x11grab --enable-libx264
--enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static
  libavutil     52.  3. 0 / 52.  3. 0
  libavcodec    54. 35. 0 / 54. 35. 0
  libavformat   54. 20. 4 / 54. 20. 4
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  0. 1 /  1.  0. 1
  libswscale     2.  1. 1 /  2.  1. 1
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option '-i' ... matched as input file with argument
'/home/steve/Downloads/complete/Manson Family Discography/01. Albums/Manson
Family - Gram Afta Gram (1997)/09. Manson Family - Get It Crunk.mp3'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file /home/steve/Downloads/complete/Manson
Family Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson
Family - Get It Crunk.mp3.
Successfully parsed a group of options.
Opening an input file: /home/steve/Downloads/complete/Manson Family
Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson Family
- Get It Crunk.mp3.
[mp3 @ 0x17edae0] Probed with size=65536 and score=51
[mjpeg @ 0x17f3060] marker=d8 avail_size_in_buf=36810
[mjpeg @ 0x17f3060] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x17f3060] marker=e0 avail_size_in_buf=36808
[mjpeg @ 0x17f3060] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x17f3060] marker=db avail_size_in_buf=36790
[mjpeg @ 0x17f3060] index=0
[mjpeg @ 0x17f3060] qscale[0]: 4
[mjpeg @ 0x17f3060] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x17f3060] marker=db avail_size_in_buf=36721
[mjpeg @ 0x17f3060] index=1
[mjpeg @ 0x17f3060] qscale[1]: 8
[mjpeg @ 0x17f3060] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x17f3060] marker=c0 avail_size_in_buf=36652
[mjpeg @ 0x17f3060] sof0: picture: 500x500
[mjpeg @ 0x17f3060] component 0 2:2 id: 0 quant:0
[mjpeg @ 0x17f3060] component 1 1:1 id: 1 quant:1
[mjpeg @ 0x17f3060] component 2 1:1 id: 2 quant:1
[mjpeg @ 0x17f3060] pix fmt id 22111100
[mjpeg @ 0x17f3060] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x17f3060] marker=c4 avail_size_in_buf=36633
[mjpeg @ 0x17f3060] class=0 index=0 nb_codes=12
[mjpeg @ 0x17f3060] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x17f3060] marker=c4 avail_size_in_buf=36600
[mjpeg @ 0x17f3060] class=1 index=0 nb_codes=251
[mjpeg @ 0x17f3060] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x17f3060] marker=c4 avail_size_in_buf=36417
[mjpeg @ 0x17f3060] class=0 index=1 nb_codes=12
[mjpeg @ 0x17f3060] marker parser used 31 bytes (248 bits)
[mjpeg @ 0x17f3060] marker=c4 avail_size_in_buf=36384
[mjpeg @ 0x17f3060] class=1 index=1 nb_codes=251
[mjpeg @ 0x17f3060] marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x17f3060] escaping removed 203 bytes
[mjpeg @ 0x17f3060] marker=da avail_size_in_buf=36201
[mjpeg @ 0x17f3060] component: 0
[mjpeg @ 0x17f3060] component: 1
[mjpeg @ 0x17f3060] component: 2
[mjpeg @ 0x17f3060] marker parser used 35997 bytes (287974 bits)
[mjpeg @ 0x17f3060] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x17f3060] mjpeg decode frame unused 0 bytes
[mp3 @ 0x17edae0] max_analyze_duration reached
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, mp3, from '/home/steve/Downloads/complete/Manson Family
Discography/01. Albums/Manson Family - Gram Afta Gram (1997)/09. Manson Family
- Get It Crunk.mp3':
  Metadata:
    title           : Get It Crunk
    artist          : Manson Family
    genre           : Memphis Rap
    album           : Gram Afta Gram
    track           : 09/13
    date            : 1997
  Duration: 00:02:00.89, start: 0.000000, bitrate: 225 kb/s
    Stream #0.0, 194, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16p, 223 kb/s
    Stream #0.1, 1, 1/90000: Video: mjpeg, yuvj420p, 500x500 [PAR 1:1 DAR 1:1],
0/1, 90k tbn
    Metadata:
      title           : 
      comment         : Cover (front)
Successfully openened the file.
At least one output file must be specified

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list