[libav-bugs] [Bug 771] New: avconv merging audio & video streams; video stream is only partially merged.

bugzilla at aruru.libav.org bugzilla at aruru.libav.org
Thu Oct 30 20:59:25 CET 2014


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

            Bug ID: 771
           Summary: avconv merging audio & video streams; video stream is
                    only partially merged.
           Product: Libav
           Version: 9
          Hardware: X86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: ---
         Component: general
          Assignee: bugzilla at libav.org
          Reporter: nickv2002 at gmail.com

What you were trying to accomplish:

I'm trying to merge an audio file and a video file (lacking audio) together in
one container.  No transcoding is needed.

The problem you encountered:

avconv seems to successfully merge the files into a new container but the video
stream will often stop randomly, meaning the audio will keep playing through
the end of the stream but the video will just freeze on the last frame that
worked.  Both audio and video source files play though without issue.  The stop
point seems random after multiple tries (and sometimes the resulting file will
be perfectly fine) but the glitch happens more often than not.  This isn't a
problem that's specific to this particular audio and video file either, but
something I've seen many times for different videos.

The exact command line you were using:

---------------------------------------------------------
$ avconv -y -i 'Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.f137.mp4' -i 'Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.f141.m4a' -c copy -map 0:v:0 -map 1:a:0 -shortest 'Five
Fallacies _ Idea Channel _ PBS Digital Studios-8qb-h0sXkH4.mp4'
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav
developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.f137.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2014-10-22 22:32:46
  Duration: 00:13:37.11, start: 0.000000, bitrate: 2813 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR
16:9], 2810 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      creation_time   : 2014-10-22 22:32:46
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.f141.m4a':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2014-10-22 22:32:13
  Duration: 00:13:37.17, start: 0.000000, bitrate: 255 kb/s
    Stream #1.0(und): Audio: aac, 44100 Hz, stereo, fltp, 253 kb/s
    Metadata:
      creation_time   : 2014-10-22 22:32:13
Output #0, mp4, to 'Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2014-10-22 22:32:46
    encoder         : Lavf54.20.4
    Stream #0.0(und): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
q=2-31, 2810 kb/s, 90k tbn, 90k tbc
    Metadata:
      creation_time   : 2014-10-22 22:32:46
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, 253 kb/s
    Metadata:
      creation_time   : 2014-10-22 22:32:13
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press ctrl-c to stop encoding
frame=13208 fps=2772 q=-1.0 Lsize=  177607kB time=440.64 bitrate=3301.9kbits/s
video:151867kB audio:25296kB global headers:0kB muxing overhead 0.250634%
---------------------------------------------------------

The full, uncut console output provided by avconv -v 9 -loglevel 99 -i for the
audio file:

---------------------------------------------------------
$ avconv -v 9 -loglevel 99 -i 'Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.f141.m4a'
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav
developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:9.16-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 'Five Fallacies _
Idea Channel _ PBS Digital Studios-8qb-h0sXkH4.f141.m4a'.
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 Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.f141.m4a.
Successfully parsed a group of options.
Opening an input file: Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.f141.m4a.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe086c0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe086c0] ISO: File Type Major Brand: dash
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe086c0] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.f141.m4a':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2014-10-22 22:32:13
  Duration: 00:13:37.17, start: 0.000000, bitrate: 255 kb/s
    Stream #0.0(und), 1, 1/44100: Audio: aac, 44100 Hz, stereo, fltp, 253 kb/s
    Metadata:
      creation_time   : 2014-10-22 22:32:13
Successfully openened the file.
At least one output file must be specified

The full, uncut console output provided by avconv -v 9 -loglevel 99 -i for the
video file:

avconv -v 9 -loglevel 99 -i 'Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.f137.mp4'
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav
developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:9.16-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 'Five Fallacies _
Idea Channel _ PBS Digital Studios-8qb-h0sXkH4.f137.mp4'.
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 Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.f137.mp4.
Successfully parsed a group of options.
Opening an input file: Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.f137.mp4.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9b66c0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9b66c0] ISO: File Type Major Brand: dash
[h264 @ 0x9b92a0] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9b66c0] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.f137.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2014-10-22 22:32:46
  Duration: 00:13:37.11, start: 0.000000, bitrate: 2813 kb/s
    Stream #0.0(und), 20, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [PAR
1:1 DAR 16:9], 1001/60000, 2810 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      creation_time   : 2014-10-22 22:32:46
Successfully openened the file.
At least one output file must be specified
---------------------------------------------------------

The full, uncut console output provided by avconv -v 9 -loglevel 99 -i for the
merged file:

---------------------------------------------------------
avconv -v 9 -loglevel 99 -i 'Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.mp4'
avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav
developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:9.16-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 'Five Fallacies _
Idea Channel _ PBS Digital Studios-8qb-h0sXkH4.mp4'.
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 Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.mp4.
Successfully parsed a group of options.
Opening an input file: Five Fallacies _ Idea Channel _ PBS Digital
Studios-8qb-h0sXkH4.mp4.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1aaf6c0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1aaf6c0] ISO: File Type Major Brand: isom
[h264 @ 0x1ab2240] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1aaf6c0] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Five Fallacies _ Idea Channel _ PBS
Digital Studios-8qb-h0sXkH4.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-10-22 22:32:46
    encoder         : Lavf54.20.4
  Duration: 00:13:37.17, start: 0.000000, bitrate: 1780 kb/s
    Stream #0.0(und), 2, 1/90000: Video: h264 (High), yuv420p, 1920x1080 [PAR
1:1 DAR 16:9], 1001/60000, 2822 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Metadata:
      creation_time   : 2014-10-22 22:32:46
    Stream #0.1(und), 1, 1/44100: Audio: aac, 44100 Hz, stereo, fltp, 253 kb/s
    Metadata:
      creation_time   : 2014-10-22 22:32:46
Successfully openened the file.
At least one output file must be specified
---------------------------------------------------------

Here's a sample of the combined file where the video stops working around 7 min
and 20 seconds in:
http://nvinnyc.com/files/Five%20Fallacies%20_%20Idea%20Channel%20_%20PBS%20Digital%20Studios-8qb-h0sXkH4.mp4

You can also download both the raw audio and video with youtube-dl
(http://youtube-dl.org) like this:
youtube-dl -v -k -f bestvideo+bestaudio
http://www.youtube.com/watch?v=8qb-h0sXkH4

Thanks and let me know if any more information or samples are needed.

-Nick

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20141030/996efe7e/attachment-0001.html>


More information about the libav-bugs mailing list