[libav-bugs] [Bug 455] New: avconv always requires that output filename has a proper suffix while sometimes this shouldn't be needed

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Wed Feb 20 13:45:29 CET 2013


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

           Summary: avconv always requires that output filename has a
                    proper suffix while sometimes this shouldn't be needed
           Product: Libav
           Version: 0.8
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: y77y777 at tom.com


I am trying to extract audio from a video file:

  avconv -i input.mpg -map 0:a -c:a copy output.mp3

While the above command works fine, this won't work:

  avconv -i input.mpg -map 0:a -c:a copy output

Full console output:

jesse2004 at MovingCastle:~$ avconv -i input.mpg -map 0:a -c:a copy output
avconv version 0.8.5-6:0.8.5-1~bpo60+1, Copyright (c) 2000-2012 the Libav
developers
  built on Jan 24 2013 20:38:51 with gcc 4.4.5
[mpeg @ 0x9bb0fe0] max_analyze_duration reached
Input #0, mpeg, from 'input.mpg':
  Duration: 00:02:13.88, start: 0.744000, bitrate: 1395 kb/s
    Stream #0.0[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 224 kb/s
    Stream #0.1[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [PAR 178:163 DAR
1958:1467], 1125 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Unable to find a suitable output format for 'output'


I think in the above command, enough information has been provided even without
the suffix of the output file. Moreover, consider the following command:

  for i in *; do avconv -i "$i" -map 0:a -c:a copy "$i"_soundtrack; done

When being run from a folder containing videos of different formats, it would
be tricky to specify different filename suffixes properly.

-- 
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