[FFmpeg-trac] #2433(undetermined:new): FFMPEG reporting wrong video duration after encoding WTV to TS MPEG2
FFmpeg
trac at avcodec.org
Thu Apr 4 23:15:45 CEST 2013
#2433: FFMPEG reporting wrong video duration after encoding WTV to TS MPEG2
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: new
Priority: important | Component:
Version: git-master | undetermined
Keywords: regression | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ramitbhalla):
BTW if I use this command, then ffmpeg detects the duration correctly
after transcoding:
{{{
ffmpeg -probesize 100M -analyzeduration 300M -y -i "..\Wrong Audio Track
Selected - Hearing impaired.wtv" -vcodec mpeg2video -qscale 0 -map 0:3
-qscale 0 -an -f mpegts test.ts
}}}
This also works fine
{{{
ffmpeg -probesize 100M -analyzeduration 300M -y -i "..\Wrong Audio Track
Selected - Hearing impaired.wtv" -vcodec mpeg2video -qscale 0 -map 0:3
-qscale 0 -acodec copy -f mpegts test.ts
}}}
The issue is with the -acodec copy -map 0:a parameter. without the -map
0:a it works fine.
When I use this command also it works fine:
{{{
ffmpeg -probesize 100M -analyzeduration 300M -y -i "..\Wrong Audio Track
Selected - Hearing impaired.wtv" -vn -acodec copy -map 0:a -f mpegts
test.ts
}}}
Just when I use video and audio together with the -map 0:a it creates an
issue.
Hope this helps narrow it down.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2433#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list