澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

multimedia - ffmpeg: Combine a audio (.wav) and video in (.rgb) format

itPublisher 分享于

2020腾讯云双十一活动,全年最低!!!(领取3500元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1073

【阿里云】双十一活动,全年抄底价,限时3天!(老用户也有),
入口地址https://www.aliyun.com/1111/home

推荐:convert video/audio file to audio format with ffmpeg

ffmpeg can?convert between different audio formats including MP3, AAC, AIFF, AU-SUN , DTS, WMA, M4A,? MP2, RA, WAV, AAC, FLAC, OGG, APE. FFmpeg?mp3 Th

I want to synchronously play audio (.wav) file and video which is provided to me in rgb format.

The rgb file contains all the rgb images in the video frames. How can I combine rgb file and audio using ffmeg to get output video which can be played on vlc player?

Input 1 : audio.wav

Input 2 : allimages.rgb

Output : A video file which can be played in vlc player.

I was looking at ffmpeg documentation but couldn't find anything for rgb input. It would be great help if you can provide the ffmpeg command for doing above.

Thanks

ffmpeg multimedia
|
  this question
edited Apr 13 '16 at 9:18 asked Apr 13 '16 at 9:12 Sandeep Kulkarni 400 6 22

 | 

1 Answers
1

The closest I got with this is using below command, but I see Green and Pink colors in my video after I play it. I think I am missing something in the ffmpeg command. Can anyone tell me what is wrong in above command and help to
  video quality and remove green and pink colors?

ffmpeg -s 480x270 -r 15 -pix_fmt gbrp  -i /Users/sandeep/Downloads/Videos/input.rgb -c:v libx264 -y output.mp4


|
  this answer
edited Apr 14 '16 at 7:18 answered Apr 14 '16 at 7:08 Sandeep Kulkarni 400 6 22      You need to correctly identify the pixel format of the input. How was it generated? –  Mulvya Apr 14 '16 at 8:29      I have been given input files as part of task and I don't know how it was generated. I think the rgb images in input have green and pink colors. Is there any way we can tell ffmeg to do: r = r & 0xff, g = g & 0xff, b = b & 0xff. I tried to read r,g,b values and then AND it with 0xff. and then display frame which has no green and pink colors. –  Sandeep Kulkarni Apr 14 '16 at 17:44      You should try the following pixel formats: rgb24 bgr24 0rgb rgb0 0bgr bgr0 If none of these work, we may have to swap channels. –  Mulvya Apr 15 '16 at 8:30

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场