Transcoding with --start-time and --end-time results in incorrect duration
Hello,
I'm trying to transcode a part of mp4 into webm by using VLC with the following version string
VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
on a Debian/sid system using the following command line:
vlc "
I expect the resulting output file to contain only 15 seconds of original video, and it does. The duration of the output video is set to some completely wrong value though. Note, how in the metadata dump below the input file has duration of 1 minute 24 seconds, but the output file's duration is reported as 3 hours and 40 minutes (!), even though it actually only contains 15 seconds of video (progress bar in various players shows the bogus duration). What's even more bizarre, if I rerun the same command, the output file actually gets a different (longer) duration every time, it appears that it depends on the current time somehow, which makes no sense at all.
Information about the input file according to mediainfo:
General Complete name : input.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 File size : 3.66 MiB Duration : 1mn 24s Overall bit rate mode : Variable Overall bit rate : 365 Kbps Encoded date : UTC 2015-04-22 12:54:43 Tagged date : UTC 2015-04-22 12:54:43
Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L1.3 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : M=1, N=60 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1mn 24s Bit rate : 291 Kbps Maximum bit rate : 427 Kbps Width : 352 pixels Height : 288 pixels Display aspect ratio : 1.222 Frame rate mode : Constant Frame rate : 19.000 fps Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.151 Stream size : 2.92 MiB (80%) Tagged date : UTC 2015-04-22 12:54:44
Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 1mn 24s Bit rate mode : Variable Bit rate : 72.0 Kbps Maximum bit rate : 76.4 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 44.1 KHz Compression mode : Lossy Stream size : 740 KiB (20%) Language : English Encoded date : UTC 2015-04-22 12:54:43 Tagged date : UTC 2015-04-22 12:54:44
Information about the generated output file, according to mediainfo:
General Complete name : output.webm Format : WebM Format version : Version 2 File size : 1.00 MiB Duration : 3h 40mn Overall bit rate mode : Variable Overall bit rate : 633 bps Writing application : Lavf56.1.0 Writing library : Lavf56.1.0
Video ID : 2 Format : VP8 Codec ID : V_VP8 Width : 352 pixels Height : 290 pixels Display aspect ratio : 1.214 Frame rate mode : Variable Compression mode : Lossy Default : No Forced : No
Audio ID : 1 Format : Vorbis Format settings, Floor : 1 Codec ID : A_VORBIS Duration : 3h 40mn Bit rate mode : Variable Bit rate : 96.0 Kbps Channel(s) : 1 channel Sampling rate : 44.1 KHz Compression mode : Lossy Delay relative to video : -358ms Stream size : 152 MiB Writing library : libVorbis (Turpakäräjiin) (20140122 (Turpakäräjiin)) Default : No Forced : No Writing application : VLC media player
I'm attaching a complete log of the VLC invocation which produced this file to the bug.