Re: [FFmpeg-user] h264 and opus in mp4 container
On Mon, Feb 26, 2018 at 10:06:36 +0530, Vittalprasad wrote: > external player like mplayer, vlc and kmp are failing to decode voice . i.e > while playing mp4 file there is only video no voice. Are you sure that your external players support this? This feature was only recently added to the standard, and its support is only experimental in ffmpeg. (That said, my mpv plays it fine.) > Procedure followed using ffmpeg: > 1. From sample mp4 file, i have separated audio(aac codec) and video(h264) > in to different files . > 2. aac trans-coded to opus > 3. tried to merge video and audio(opus) in to single mp4 You can do all that in one step, if your ffmpeg supports the opus or the libopus encoder(s). > 1. whether ffmpeg support above codecs in single mp4 file or issue with > external player . ffmpeg does have support. It will give you an error that it is experimental if you don't add "-strict experimental" as an output option. > If anyone has mp4 file with h264 and opus codecs please provide me along > with procedure to convert. https://www.dropbox.com/s/422wukn3bt2x220/mp4_opus.mp4?dl=0 Assuming you have H.264 in your input file: ffmpeg -i inputfile -c:v copy -c:a libopus -strict experimental outputfile.mp4 Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] h264 and opus in mp4 container
2018-02-26 5:36 GMT+01:00 Vittalprasad: > From below link i saw that mp4 container can have h264 as video codec and > opus as audio codec. so i tried both codecs in to mp4 using ffmpeg, Command line and complete, uncut console output missing. > but external player like mplayer, vlc and kmp are failing to decode voice Why do you believe this is an issue with FFmpeg? Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] h264 and opus in mp4 container
Hi Vittal, what you want do do is called multiplexing after you have demultiplexed/seperated your video- and audiotrack from a stream. https://superuser.com/questions/429643/how-can-i-multiplex-a-video-and-audio-stream ffmpeg can do demultiplexing-> conversion of audio track-> multiplexing A+V in one step with ffmpeg -i INPUTFILE.mp4 -map 0:v -c:v libx264 -map 0:a -c:a libopus OUTPUTFILE.mp4 INPUTFILE means your original input.mp4 (sample.mp4). Be aware that you're loosing quality when converting your audio track from one format (aac) into the other lossy format (opus) if you're not planning to do something special with the opus-track, just leave it as it is with copy -map 0:a -c:a copy regards adi Am 2018-02-26 um 05:36 schrieb Vittalprasad: > Hi All, > From below link i saw that mp4 container can have h264 as video codec and > opus as audio codec. so i tried both codecs in to mp4 using ffmpeg, but > external player like mplayer, vlc and kmp are failing to decode voice . i.e > while playing mp4 file there is only video no voice. > https://en.wikipedia.org/wiki/Comparison_of_video_container_formats > > Procedure followed using ffmpeg: > 1. From sample mp4 file, i have separated audio(aac codec) and video(h264) > in to different files . > 2. aac trans-coded to opus > 3. tried to merge video and audio(opus) in to single mp4 > > > please let me know > 1. whether ffmpeg support above codecs in single mp4 file or issue with > external player . > > If anyone has mp4 file with h264 and opus codecs please provide me along > with procedure to convert. > > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] h264 and opus in mp4 container
Hi All, From below link i saw that mp4 container can have h264 as video codec and opus as audio codec. so i tried both codecs in to mp4 using ffmpeg, but external player like mplayer, vlc and kmp are failing to decode voice . i.e while playing mp4 file there is only video no voice. https://en.wikipedia.org/wiki/Comparison_of_video_container_formats Procedure followed using ffmpeg: 1. From sample mp4 file, i have separated audio(aac codec) and video(h264) in to different files . 2. aac trans-coded to opus 3. tried to merge video and audio(opus) in to single mp4 please let me know 1. whether ffmpeg support above codecs in single mp4 file or issue with external player . If anyone has mp4 file with h264 and opus codecs please provide me along with procedure to convert. -- Thanks & Regards Vittal Prasad B R 902597 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".