charliehuang 發表於 2015-3-3 20:31:13

請教各位大大

有一個影片檔媒體資訊如下:
General
ID                           : 1 (0x1)
Complete name                  : E:\110820yongseo stage.ts
Format                         : MPEG-TS
File size                      : 596 MiB
Duration                     : 3mn 41s
Overall bit rate mode          : Constant
Overall bit rate               : 22.6 Mbps

Video
ID                           : 256 (0x100)
Menu ID                        : 1 (0x1)
Format                         : MPEG Video
Format version               : Version 2
Format profile               : Main@High
Format settings, BVOP          : No
Format settings, Matrix      : Default
Format settings, GOP         : N=12
Codec ID                     : 2
Duration                     : 4mn 25s
Bit rate mode                  : Variable
Bit rate                     : 21.1 Mbps
Width                        : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio         : 16:9
Frame rate                     : 29.970 fps
Color space                  : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Compression mode               : Lossy
Bits/(Pixel*Frame)             : 0.340
Time code of first frame       : 00:00:00:00
Time code source               : Group of pictures header
Stream size                  : 669 MiB

Audio
ID                           : 257 (0x101)
Menu ID                        : 1 (0x1)
Format                         : MPEG Audio
Format version               : Version 1
Format profile               : Layer 2
Codec ID                     : 3
Duration                     : 4mn 25s
Bit rate mode                  : Constant
Bit rate                     : 320 Kbps
Channel(s)                     : 2 channels
Sampling rate                  : 44.1 KHz
Compression mode               : Lossy
Stream size                  : 10.1 MiB (2%)

Menu
ID                           : 4095 (0xFFF)
Menu ID                        : 1 (0x1)
Duration                     : 3mn 41s
List                           : 256 (0x100) (MPEG Video) / 257 (0x101) (MPEG Audio)
Service name                   : Service01
Service provider               : FFmpeg
Service type                   : digital television

使用POT撥放有影無聲時間4:25
使用KM撥放沒有問題時間4:25
使用VLC撥放沒有問題時間3:41
為什麼有這種情形發生

billeccentrec 發表於 2015-3-4 08:02:59

.ts 本身好像沒有寫入影片長度
他是用大小去算的

596/22.6/8 = 3.29 分
669/21.1/8 = 3.96 分
10.1/320*1024/8 = 4.04分

他的比特率也是平均
但有時候電視台換比特率播影片也不準

VLC 在播放的時候其實很不準
所以 .ts 的顯示時間都是 00:00
但拉霸還是可以拉

KMPlayer 從以前處理這個就比較成功
PotPlayer ... 不評論
另外可以試試 MPC-HC
絕對一定也是準確

如果可以話
可以用 ffmpeg -c copy 在處理過
如果輸出 .mpg 就不會有這種問題
如果輸出 .ts 應該也可以改掉這個問題

charliehuang 發表於 2015-3-4 13:45:34

本文章最後由 charliehuang 於 2015-3-4 14:30 編輯

billeccentrec 發表於 2015-3-4 08:02 static/image/common/back.gif
.ts 本身好像沒有寫入影片長度
他是用大小去算的



感謝大大的指點...來找FFMPEG試試
另外請教那這情形是裁CUT時會發生還是本來錄製就有問題了

billeccentrec 發表於 2015-3-4 15:24:39

都有可能
如果可以的話用 ffmpeg
就没有這種鳥問題了
(不是說這個問題很鳥,是用爛軟體剪出來的鳥問題)

順便附一下 FFmpeg 指令
ffmpeg -i "E:\110820yongseo stage.ts" -c copy E:\output.exe
http://ffmpeg.zeranoe.com/builds/ 可以下載

charliehuang 發表於 2015-3-4 16:14:05

billeccentrec 發表於 2015-3-4 15:24 static/image/common/back.gif
都有可能
如果可以的話用 ffmpeg
就没有這種鳥問題了


再次感謝大大指導~~影片修復成功
我覺得是鳥問題,新手學習多多少少都遇到鳥問題
頁: [1]
查看完整版本: 請教各位大大