• 明星高考奇葩事杨幂总分第一 赵薇丢准考证(组图) 2019-07-02
  • 肩负促进和平与发展的时代重任 2019-07-02
  • 探秘海南高考评卷场 考生答题卡武警24小时值守 2019-06-28
  • “人民日报是我一生最尊敬和宝贵的朋友” 2019-06-28
  • 惊艳卢浮宫小牛电动发布新款电动车惊艳卢浮宫小牛电动发布新款电动车-手机行情 2019-06-23
  • 社区 —频道 春城壹网 七彩云南 一网天下 2019-06-15
  • 全国网络举报工作会议 2019-06-15
  • 珍贵!“国宝”林麝现身重庆金佛山 2019-06-11
  • 亚冠前瞻:恒大权健皆不容有失 两将伤情成上港争胜关键 2019-06-09
  • 端午节回归传统习俗 西安市民排队买艾草端午节艾叶-要闻 2019-06-09
  • 湖州唤醒“沉睡”的土地 2019-06-01
  • 在美中国留学生江玥被枪杀案宣判 罪犯获刑25年 2019-05-31
  • 日本大阪6.1级强震4死逾300伤 工厂及店铺恢复运营 2019-05-31
  • 台湾“裤子大王”:百姓三餐不济谈啥“台湾价值” 2019-05-23
  • 韩国釜山海滩变“垃圾场” 清洁工叫苦不堪 2019-05-23
  • Welcome to

    Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

     

    Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding

    Reply
     
    Thread Tools Search this Thread Display Modes
    Old 12th June 2018, 18:54   #1  |  Link
    Broadcast Encoder
     
    FranceBB's Avatar
     
    Join Date: Nov 2013
    Location: Germany
    Posts: 584
    MpegMapperSegmented::CalcDiskToDisplayOffset (XDCAM AVID)

    Hi,
    with the latest development version of ffmpeg (ffmpeg-20180611-8c20ea8), it seems that some files are not correctly muxed in .MXF.
    I’ve used the following command line:

    Code:
     C:\Encoding\ffmpeg.exe -i "%%~nxF" -pix_fmt yuv422p -vcodec mpeg2video -s 1920:1080 -aspect 16:9 -vf setfield=tff -flags +ildct+ilme -r 25 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 36408333 -acodec pcm_s24le -ar 48000 -g 12 -bf 2 -profile:v 0 -level:v 2 -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -f mxf "C:\Encoding\%%~nF encoded.mxf"
    The original video is an H.264 profile High, level 5.1, ref1, 3840x2160, progressive 8bit muxed in an .mp4. Nothing weird.
    The encoding starts but at the end I get:



    The encoded video plays fine on VLC, MPC-HP and PotPlayer, however if I import it into AVID Media Composer or if I link it it displays an error. If I try to transcode the original file in AVID, it works flawlessly, which is weird.
    I've also tried to pipe Avisynth to ffmpeg and encode, but it didin't solve the problem:

    Code:
    video=FFVideoSource("test.mp4")
    audiook=FFAudioSource("test.mp4")
    audio=MergeChannels(audiook, audiook, audiook, audiook)
    AudioDub(video, audio)
    
    ResampleAudio(48000)
    Normalize(0.20)
    ConvertAudioTo24bit()
    Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
    
    ConvertFPS(50)
    Spline64ResizeMT(1920, 1080)
    assumeTFF()
    separatefields()
    selectevery(4,0,3)
    weave()
    Converttoyv16(interlaced=true)
    Even after using Avisynth and encoding with ffmpeg, AVID prompted me to this error:



    This is not the first time I have to deal with this. It's odd.
    I managed to encode it already, but I decided to report this here 'cause it's odd.

    Original File + Encoded File: https://we.tl/A9Cgvr79zn

    Is it ffmpeg? Is it AVID? Who's guilty?
    __________________
    Broadcast Encoder
    LinkedIn

    Last edited by FranceBB; 12th June 2018 at 18:57.
    FranceBB is offline   Reply With Quote
    Old 18th April 2019, 22:46   #2  |  Link
    Registered User
     
    Join Date: Nov 2004
    Location: UK
    Posts: 2,376
    It's rather ffmpeg. It's not a "precise" tool and sometimes it doesn't follow some specs etc. AVID from other hand requires things to be precise, sometimes even too much
    This info about missing frame doesn't look "good" in ffmpeg.

    Last edited by kolak; 18th April 2019 at 22:48.
    kolak is offline   Reply With Quote
    Old 24th April 2019, 23:13   #3  |  Link
    Broadcast Encoder
     
    FranceBB's Avatar
     
    Join Date: Nov 2013
    Location: Germany
    Posts: 584
    Quote:
    Originally Posted by kolak View Post
    It's rather ffmpeg. It's not a "precise" tool and sometimes it doesn't follow some specs etc. AVID from other hand requires things to be precise, sometimes even too much
    This info about missing frame doesn't look "good" in ffmpeg.
    Yep... Later on I found out that it's ffmpeg... Remuxing the MXF with BBC BMX Transwrap and solves the problem most of the time, so it's definitely ffmpeg.
    It's sad 'cause the only other open source encoder capable to encode in MPEG-2 that I know is x262, but it does have its own issues...
    Last but not least, there's ffmbc, but it's not the panacea to each and every issue either...
    __________________
    Broadcast Encoder
    LinkedIn
    FranceBB is offline   Reply With Quote
    Old 25th April 2019, 16:22   #4  |  Link
    Registered User
     
    Join Date: Nov 2004
    Location: UK
    Posts: 2,376
    Is ffmbc maintained?
    Looks like binaries are so outdated.
    kolak is offline   Reply With Quote
    Old 5th May 2019, 12:03   #5  |  Link
    Broadcast Encoder
     
    FranceBB's Avatar
     
    Join Date: Nov 2013
    Location: Germany
    Posts: 584
    Quote:
    Originally Posted by kolak View Post
    Is ffmbc maintained?
    Looks like binaries are so outdated.
    It's not, that's why I was using ffmpeg.
    Anyway, since I only need an encoder as I pipe the A/V stream from Avisynth, I was trying ffmbc as well 'cause even if it's outdated and it doesn't have new decoders, I only need to encode an uncompressed audio/video stream.
    Besides, I don't think MPEG-2 encoders are updated frequently (or at all) nowadays...
    __________________
    Broadcast Encoder
    LinkedIn
    FranceBB is offline   Reply With Quote
    Old 5th May 2019, 12:40   #6  |  Link
    Registered User
     
    Join Date: Jan 2012
    Posts: 86
    This is build from 2018, so it is not latest.
    richardpl is offline   Reply With Quote
    Reply


    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT +1. The time now is 23:26.


    Powered by vBulletin® Version 3.8.11
    Copyright ©2000 - 2019, vBulletin Solutions Inc.
  • 明星高考奇葩事杨幂总分第一 赵薇丢准考证(组图) 2019-07-02
  • 肩负促进和平与发展的时代重任 2019-07-02
  • 探秘海南高考评卷场 考生答题卡武警24小时值守 2019-06-28
  • “人民日报是我一生最尊敬和宝贵的朋友” 2019-06-28
  • 惊艳卢浮宫小牛电动发布新款电动车惊艳卢浮宫小牛电动发布新款电动车-手机行情 2019-06-23
  • 社区 —频道 春城壹网 七彩云南 一网天下 2019-06-15
  • 全国网络举报工作会议 2019-06-15
  • 珍贵!“国宝”林麝现身重庆金佛山 2019-06-11
  • 亚冠前瞻:恒大权健皆不容有失 两将伤情成上港争胜关键 2019-06-09
  • 端午节回归传统习俗 西安市民排队买艾草端午节艾叶-要闻 2019-06-09
  • 湖州唤醒“沉睡”的土地 2019-06-01
  • 在美中国留学生江玥被枪杀案宣判 罪犯获刑25年 2019-05-31
  • 日本大阪6.1级强震4死逾300伤 工厂及店铺恢复运营 2019-05-31
  • 台湾“裤子大王”:百姓三餐不济谈啥“台湾价值” 2019-05-23
  • 韩国釜山海滩变“垃圾场” 清洁工叫苦不堪 2019-05-23
  • 北京赛车两期必中软件 丧尸来袭百度云资源 湖北快三今日推荐号 守财奴剧情介绍 新世界棋牌地址 天津快乐十分开奖结果 四川快乐12开奖走势分析 我叫mt4后期职业哪个好 王牌战士邀请服 cf手游暗影 王者荣耀孙尚香最强出装 水果乐园怎么玩 战东风客服 今日河南11选5开奖结果走势图 排列五走势图500期 dnf95版本武极怎么样