大佬教程收集整理的这篇文章主要介绍了无法在快速播放器上修剪从 FFMPEG 生成的 Mp4 文件,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我在 linux 机器上录制屏幕时使用 FFMPEG 生成 mp4 文件。 我正在使用带有 nodeJs 的 Spawn:
const transcodeStreamToOutput = spawn('ffmpeg',[
'-hIDe_bAnner','-loglevel','error',// disablE interaction via stdin
'-nostdin',// screen image size
'-s',`${BroWSER_SCREEN_WIDTH}x${BroWSER_SCREEN_HEIGHT}`,// vIDeo frame rate
'-r',`${VIDEO_FRAMERATE}`,// hIDes the mouse cursor from the resulTing vIDeo
'-draw_mouse','0',// grab the x11 display as vIDeo input
'-f','x11grab','-i',`${disPLAY}`,// grab pulse as audio input
'-f','pulse','-ac','2','default',// codec vIDeo with libx264
'-c:v','libx264','-pix_fmt','yuv420p','-profile:v','main','-preset','veryfast','-x264opts','nal-hrd=cbr:no-scenecut','-minrate',`${VIDEO_BITRATE}`,'-maxrate','-g',`${VIDEO_GOP}`,// apply a fixed delay to the audio stream in order to synchronize it with the vIDeo stream
'-filter_complex','adelay=delays=1000|1000',// codec audio with aac
'-c:a','aac','-b:a',`${AUdio_BITRATE}`,`${AUdio_CHAnnELS}`,'-ar',`${AUdio_SAMPLERATE}`,// adjust fragmentation to prevent seeking(resolve issue: muxer does not support non seekable output)
'-movflags','frag_keyframe+empty_moov',// set output format to mp4 and output file to stdout
'-f','mp4','-'
]
);
该文件在 Mac 上使用快速播放器正常打开,但我的问题是它不可编辑。 QuickTime 播放器上的修剪选项已禁用。
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的无法在快速播放器上修剪从 FFMPEG 生成的 Mp4 文件全部内容,希望文章能够帮你解决无法在快速播放器上修剪从 FFMPEG 生成的 Mp4 文件所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。