[FFmpeg-user] AAC LATM Encoding
hi folks, I am trying to generate AAC LATM content but was unable to figure out how to get that done with ffmpeg. Can someone help ? thanks, Rashed ___ 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] AAC LATM Encoding
2017-02-23 10:37 GMT+01:00 Rashed : > I am trying to generate AAC LATM content but was unable to > figure out how to get that done with ffmpeg. The fdk encoder has a latm option that you have to set to 1 to get latm output.. 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] AAC LATM Encoding
I've used this setup and it works well... # ffmpeg -i input -c:v libx264 -c:a libfdk_aac -flags:a +global_header -latm 1 -strict 2 -profile:a aac_he -mpegts_flags latm -f mpegts output Of course you need to set all the parameters you prefer related to video/audio bandwidth, bitrate and so on. Cheers Alex Molon -Original Message- From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Carl Eugen Hoyos Sent: 23 February 2017 13:24 To: FFmpeg user questions Subject: Re: [FFmpeg-user] AAC LATM Encoding 2017-02-23 10:37 GMT+01:00 Rashed : > I am trying to generate AAC LATM content but was unable to figure out > how to get that done with ffmpeg. The fdk encoder has a latm option that you have to set to 1 to get latm output.. 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". ___ 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] Unknown encoder 'libfdk-aac'
Hi, I do have libfdk-aac $ ll /usr/lib64/*fdk* -rw-r--r--. 1 root jd13942 Sep 24 12:37 /usr/lib64/libfdk-aacdec.c -rw-r--r--. 1 root jd16647 Sep 24 12:37 /usr/lib64/libfdk-aacenc.c lrwxrwxrwx. 1 root root 19 Feb 23 13:56 /usr/lib64/libfdk-aac.so -> libfdk-aac.so.1.0.0 lrwxrwxrwx. 1 root root 19 Feb 23 13:56 /usr/lib64/libfdk-aac.so.1 -> libfdk-aac.so.1.0.0 -rwxr-xr-x. 1 root root 765464 Feb 23 13:54 /usr/lib64/libfdk-aac.so.1.0.0 but encoding a video using the command ~/bin/ffmpeg.d/ffmpeg -i video_Z10.mp4 -movflags +faststart -vb 8000k -c:a libfdk-aac -ab 384k -s 1920x1080 -y video_Z10-libfdk.mp4 ffmpeg version 3.0.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Debian 5.3.1-16) 20160424 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --enable-libzimg --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat57. 25.100 / 57. 25.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z10.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2016-05-26 13:17:32 encoder : Lavf56.1.0 Duration: 01:18:49.98, start: 0.00, bitrate: 2238 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2099 kb/s, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc (default) Metadata: creation_time : 2016-05-26 13:17:32 handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2016-05-26 13:17:32 handler_name: SoundHandler Unknown encoder 'libfdk-aac' How do I make use of libfdk-aac? ___ 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] Unknown encoder 'libfdk-aac'
On Thu, 23 Feb 2017 15:45:57 -0700 JD wrote: > Unknown encoder 'libfdk-aac' The encoder is named libfdk_aac. > How do I make use of libfdk-aac? You'll have to compile ffmpeg. ___ 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] Unknown encoder 'libfdk-aac'
Am 23.02.2017 um 23:45 schrieb JD: Hi, I do have libfdk-aac $ ll /usr/lib64/*fdk* -rw-r--r--. 1 root jd13942 Sep 24 12:37 /usr/lib64/libfdk-aacdec.c -rw-r--r--. 1 root jd16647 Sep 24 12:37 /usr/lib64/libfdk-aacenc.c lrwxrwxrwx. 1 root root 19 Feb 23 13:56 /usr/lib64/libfdk-aac.so -> libfdk-aac.so.1.0.0 lrwxrwxrwx. 1 root root 19 Feb 23 13:56 /usr/lib64/libfdk-aac.so.1 -> libfdk-aac.so.1.0.0 -rwxr-xr-x. 1 root root 765464 Feb 23 13:54 /usr/lib64/libfdk-aac.so.1.0.0 but encoding a video using the command ~/bin/ffmpeg.d/ffmpeg -i video_Z10.mp4 -movflags +faststart -vb 8000k -c:a libfdk-aac -ab 384k -s 1920x1080 -y video_Z10-libfdk.mp4 what you have somewhere on disk is pointless when ffmpeg is not compiled to use it (as any other software out there) and to find out how it was built: ffmpeg -encoders this will show you also typos and with "man grep" it should be easy to read -> "ffmpeg -encoders grep -i aac" ___ 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] How to use ffmpeg to do a PC side of the player??
Dear Sir or Madam, I'm sorry to bother you and I am writing to ask you about ffmpeg several questions. My name is Peter Yang. I am from Chongqing, China. I am a graduate student of Chongqing University of Posts and Telecommunications. At present, I am doing research on h.265 / HEVC and ffmpeg. For the video stream encoded with h.265 / HEVC, I'm going to be a player that can decode the video stream in this encoding format. And it has fast forward, pause, play and other functions.So how do I use ffmpeg to do this one on the PC side? Do you have a relevant case? Can you give me a look? I hope you have not wasted your time too much. Thank you for your help and look forward to your reply. Best wishes, Yours, Peter Yang ___ 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] Chroma problem converting mp4 to prores
Hi guys, I am having a issue where all the clips that I convert have a chroma problem. The red is saturated on all clips and there are red horizontal lines in the chroma. $ ffmpeg -y -i 5079162_NHL\ Marleau.mp4 -acodec pcm_s16le -vcodec prores_ks -profile:v 1 -copytb -1 -vf yadif=1 -qscale:v 10 mp4-yadif1-q10.mov I thought this might be the chroma bug but I have experimented with a couple of different options replacing yadif=1 with the following: -vf scale=out_color_matrix=bt709 -pix_fmt yuv422p10le -vf colormatrix=bt601:bt709 -vf yadif The yadif=1 option provides the closest results and specifying multiple options seems to make it worse not better. The problem is more obvious on a broadcast monitor. We are also having a problem where the converted clips are 1 frame shorter than the original, missing a black frame at the start of the clip. Here are the details of the clip I am trying to convert: $ ffprobe -v error -show_format -show_streams 5079162_NHL\ Marleau.mp4 [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_time_base=1/50 codec_tag_string=avc1 codec_tag=0x31637661 width=1920 height=1080 coded_width=1920 coded_height=1080 has_b_frames=1 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuv420p level=41 color_range=tv color_space=unknown color_transfer=unknown color_primaries=unknown chroma_location=left field_order=unknown timecode=N/A refs=1 is_avc=true nal_length_size=4 id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/5 start_pts=0 start_time=0.00 duration_ts=2354000 duration=47.08 bit_rate=9081205 max_bit_rate=N/A bits_per_raw_sample=8 nb_frames=1177 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2017-02-03T23:55:00.00Z TAG:language=eng TAG:handler_name=Alias Data Handler TAG:encoder=AVC Coding [/STREAM] [STREAM] index=1 codec_name=aac codec_long_name=AAC (Advanced Audio Coding) profile=LC codec_type=audio codec_time_base=1/48000 codec_tag_string=mp4a codec_tag=0x6134706d sample_fmt=fltp sample_rate=48000 channels=2 channel_layout=stereo bits_per_sample=0 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=0 start_time=0.00 duration_ts=2259840 duration=47.08 bit_rate=253262 max_bit_rate=283875 bits_per_raw_sample=N/A nb_frames=2210 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2017-02-03T23:55:01.00Z TAG:language=eng TAG:handler_name=Alias Data Handler [/STREAM] [FORMAT] filename=5079162_NHL Marleau.mp4 nb_streams=2 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=QuickTime / MOV start_time=0.00 duration=47.146600 size=54956371 bit_rate=9325189 probe_score=100 TAG:major_brand=mp42 TAG:minor_version=0 TAG:compatible_brands=mp42mp41 TAG:creation_time=2017-02-03T23:54:57.00Z [/FORMAT] ___ 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] Chroma problem converting mp4 to prores
2017-02-23 23:05 GMT+01:00 Dave : > $ ffmpeg -y -i 5079162_NHL\ Marleau.mp4 -acodec pcm_s16le -vcodec prores_ks > -profile:v 1 -copytb -1 -vf yadif=1 -qscale:v 10 mp4-yadif1-q10.mov Complete, uncut console output missing. Is the issue also reproducible with -vcodec prores? 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] Unknown encoder 'libfdk-aac'
2017-02-23 23:45 GMT+01:00 JD : > ~/bin/ffmpeg.d/ffmpeg -i video_Z10.mp4 -movflags +faststart -vb 8000k -c:a > libfdk-aac -ab 384k -s 1920x1080 -y video_Z10-libfdk.mp4 > > ffmpeg version 3.0.2-static http://johnvansickle.com/ffmpeg/ libfdk is non-free, you have to compile FFmpeg yourself if you want to use libfdk-aac. 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] Unknown encoder 'libfdk-aac'
And in any case, even if compiled correctly, the encoder is called "libfdk_aac" with the underscore, not libfdk-aac Cheers Alex Molon From: ffmpeg-user [ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Carl Eugen Hoyos [ceffm...@gmail.com] Sent: 24 February 2017 00:46 To: FFmpeg user questions Subject: Re: [FFmpeg-user] Unknown encoder 'libfdk-aac' 2017-02-23 23:45 GMT+01:00 JD : > ~/bin/ffmpeg.d/ffmpeg -i video_Z10.mp4 -movflags +faststart -vb 8000k -c:a > libfdk-aac -ab 384k -s 1920x1080 -y video_Z10-libfdk.mp4 > > ffmpeg version 3.0.2-static http://johnvansickle.com/ffmpeg/ libfdk is non-free, you have to compile FFmpeg yourself if you want to use libfdk-aac. 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". ___ 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] Chroma problem converting mp4 to prores
Try -sws_flags full_chroma_inp+full_chroma_int W dniu 2017-02-23 o 23:05, Dave pisze: Hi guys, I am having a issue where all the clips that I convert have a chroma problem. The red is saturated on all clips and there are red horizontal lines in the chroma. $ ffmpeg -y -i 5079162_NHL\ Marleau.mp4 -acodec pcm_s16le -vcodec prores_ks -profile:v 1 -copytb -1 -vf yadif=1 -qscale:v 10 mp4-yadif1-q10.mov I thought this might be the chroma bug but I have experimented with a couple of different options replacing yadif=1 with the following: -vf scale=out_color_matrix=bt709 -pix_fmt yuv422p10le -vf colormatrix=bt601:bt709 -vf yadif The yadif=1 option provides the closest results and specifying multiple options seems to make it worse not better. The problem is more obvious on a broadcast monitor. We are also having a problem where the converted clips are 1 frame shorter than the original, missing a black frame at the start of the clip. Here are the details of the clip I am trying to convert: $ ffprobe -v error -show_format -show_streams 5079162_NHL\ Marleau.mp4 [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_time_base=1/50 codec_tag_string=avc1 codec_tag=0x31637661 width=1920 height=1080 coded_width=1920 coded_height=1080 has_b_frames=1 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuv420p level=41 color_range=tv color_space=unknown color_transfer=unknown color_primaries=unknown chroma_location=left field_order=unknown timecode=N/A refs=1 is_avc=true nal_length_size=4 id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/5 start_pts=0 start_time=0.00 duration_ts=2354000 duration=47.08 bit_rate=9081205 max_bit_rate=N/A bits_per_raw_sample=8 nb_frames=1177 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2017-02-03T23:55:00.00Z TAG:language=eng TAG:handler_name=Alias Data Handler TAG:encoder=AVC Coding [/STREAM] [STREAM] index=1 codec_name=aac codec_long_name=AAC (Advanced Audio Coding) profile=LC codec_type=audio codec_time_base=1/48000 codec_tag_string=mp4a codec_tag=0x6134706d sample_fmt=fltp sample_rate=48000 channels=2 channel_layout=stereo bits_per_sample=0 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=0 start_time=0.00 duration_ts=2259840 duration=47.08 bit_rate=253262 max_bit_rate=283875 bits_per_raw_sample=N/A nb_frames=2210 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2017-02-03T23:55:01.00Z TAG:language=eng TAG:handler_name=Alias Data Handler [/STREAM] [FORMAT] filename=5079162_NHL Marleau.mp4 nb_streams=2 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=QuickTime / MOV start_time=0.00 duration=47.146600 size=54956371 bit_rate=9325189 probe_score=100 TAG:major_brand=mp42 TAG:minor_version=0 TAG:compatible_brands=mp42mp41 TAG:creation_time=2017-02-03T23:54:57.00Z [/FORMAT] ___ 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 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] Subtitle Embed on Stream
Anyone? -- View this message in context: http://www.ffmpeg-archive.org/Subtitle-Embed-on-Stream-tp4679228p4679283.html Sent from the FFmpeg-users mailing list archive at Nabble.com. ___ 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] Difference in ffmpeg command execution time
Hi, On trying to create video using ffmpeg as per command below, it takes much more time (around 6 minutes) on AWS lambda and EC2 instances where as it takes just 2 minutes on my local mac. I understand run time differs on CPU, but I am not able to figure out what needs to be done in order to get it run within 5 minutes on lambda. Or it could be due to differences in or missing libraries. Could someone please point me in right direction? Command: ffmpeg -safe 0 -f concat -i /tmp/config.txt -i /tmp/audio.mp3 -y -pix_fmt yuv444p -shortest /tmp/out_.mp4 Attached are the logs of both the machines. -- Thanks, Vivek ec2.log Description: Binary data local.log Description: Binary data ___ 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".