Re: [FFmpeg-user] help... ffmpeg - x264 probleme during installation

2019-11-18 Thread Carl Eugen Hoyos
Am Di., 19. Nov. 2019 um 03:44 Uhr schrieb Philippe Sudre-Rouffaux
:

> I have a problem during an installation using a bash file.
> (mediaspip_install.sh from https://github.com/kent1D/mediaspip_scripts)
>
> At the beegining all is ok but when the file install ffmpeg, there is
> always problem with x264.
>
> Here is .log file.
>
> Makefile:2: config.mak: Aucun fichier ou dossier de ce type
> Makefile:62: /common.mak: Aucun fichier ou dossier de ce type
> Makefile:104: /libavutil/Makefile: Aucun fichier ou dossier de ce type
> Makefile:104: /library.mak: Aucun fichier ou dossier de ce type
> Makefile:106: /doc/Makefile: Aucun fichier ou dossier de ce type
> Makefile:189: /tests/Makefile: Aucun fichier ou dossier de ce type
> make: *** No rule to make target '/tests/Makefile'. Arrêt.
>
> Could you help me please ?

Why don't you ask kent1D?

Seriously: This is the FFmpeg user mailing list, nothing in your post
indicates that you have an issue related to FFmpeg.

You can get support for FFmpeg's configure script here but not for
third-party scripts (over which we have no control).

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg cuvid not transcoding properly

2019-11-18 Thread Andy
This finally fixed it:

-hwaccel cuvid -c:v mpeg2_cuvid

Indeed, you need to specify the input type before transcoding!

Thank you


On Mon, Nov 18, 2019 at 12:35 PM Ted Park  wrote:
>
> I just noticed this but it some examples it seems you are specifying h264 
> decoder for an input that (apparently) is mpeg? I’m not sure which is which, 
> but I think cuvid and nvdec differ in the way they map or copy to graphics 
> memory thought maybe that might be the difference between the logs (hw 
> decoder into gpu you probably need to specify format, especially when its 
> input is http, I don’t know if in ffmpeg the protocol takes mime type into 
> account.) For the compilation issues, check that you have cuda nvenc ffnv… 
> etc where they can be found by configure script, clean before make.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg cuvid not transcoding properly

2019-11-18 Thread Andy
Unfortunately lowering threads did not help and resulted in the same error.
I noticed that all inputs that im having issues with are mpegts...

On Sun, Nov 17, 2019 at 12:33 AM Dennis Mungai  wrote:

> Hey there,
>
> Lower your decoder threads and retest:
>
> ffmpeg -threads 1 -vsync 1 -hwaccel cuvid -c:v h264_cuvid -deint 1
> -drop_second_field 1 -i 'http://0.0.0.0:4603' -c:v h264_nvenc -vb
> 1000k -preset:v medium -c:a aac -ac 2 -ar 48k -ab 96k test.mp4
>
> Now with the yadif_cuda filter:
>
> ffmpeg -threads 1 -vsync 1 -hwaccel nvdec -hwaccel_output_format cuda -i
> 'http://0.0.0.0:4603' -vf "yadif_cuda" -c:v h264_nvenc -vb 1000k
> -preset:v medium -c:a
> aac -ac 2 -ar 48k -ab 96k test.mp4
>
> For usage see:
>
> ffmpeg -h filter=yadif_cuda
>
> For what to expect, see
>
> https://stackoverflow.com/questions/55687189/how-to-use-gpu-to-accelerate-the-processing-speed-of-ffmpeg-filter/55747785#55747785
>
> Running the nvdec & cuvid decoders with multiple threads is the
> fastest way to land in hot water.
> Infact, the decoder will warn you if threads (either in auto mode or
> manually set) exceed 16. These hwaccels do not implement threading.
>
> You can confirm that by running:
>
> ffmpeg -h decoder=h264_cuvid
>
> And see that threading is not a reported capability.
>
> I also changed your commands to -vsync 1 as the MP4 muxer
> implelentation in libav supports CFR only, and NALU HRD stuffing isn't
> supported.
> Even if you're using libx264, do not use
>
> -x264-params "nal-hrd=cbr"
>
> When generating (f)mp4 content as you'll generate invalid output, with
> audio predominantly out of sync.
> If you truly require VFR output as part of your workflow, then stick
> to either mpegts (also supported in chunks via HLS or segment muxer)
> OR matroska (mkv).
>
> Cheers,
>
> Dennis M.
>
> On Sat, 16 Nov 2019 at 20:37, Ted Park  wrote:
> >
> > How is the stream being served over http? Does it make any difference if
> you save a file wget for example first?
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://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
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg cuvid not transcoding properly

2019-11-18 Thread Andy
On Mon, Nov 18, 2019 at 12:35 PM Ted Park  wrote:
>
> I just noticed this but it some examples it seems you are specifying h264
decoder for an input that (apparently) is mpeg? I’m not sure which is
which, but I think cuvid and nvdec differ in the way they map or copy to
graphics memory thought maybe that might be the difference between the logs
(hw decoder into gpu you probably need to specify format, especially when
its input is http, I don’t know if in ffmpeg the protocol takes mime type
into account.) For the compilation issues, check that you have cuda nvenc
ffnv… etc where they can be found by configure script, clean before make.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

You are right, and all the inputs that are giving me troubles are indeed SD
MPEG2 video mpegts format. I tried searching on how to specify input for
hwaccel but can't find anything for mpegts
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] help... ffmpeg - x264 probleme during installation

2019-11-18 Thread Philippe Sudre-Rouffaux

Hello,

I have a Debian 8 server.

I have a problem during an installation using a bash file. 
(mediaspip_install.sh from https://github.com/kent1D/mediaspip_scripts)


At the beegining all is ok but when the file install ffmpeg, there is 
always problem with x264.


Here is .log file.

Makefile:2: config.mak: Aucun fichier ou dossier de ce type
Makefile:62: /common.mak: Aucun fichier ou dossier de ce type
Makefile:104: /libavutil/Makefile: Aucun fichier ou dossier de ce type
Makefile:104: /library.mak: Aucun fichier ou dossier de ce type
Makefile:106: /doc/Makefile: Aucun fichier ou dossier de ce type
Makefile:189: /tests/Makefile: Aucun fichier ou dossier de ce type
make: *** No rule to make target '/tests/Makefile'. Arrêt.

Could you help me please ?

Thanks.

Philippe

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] record camera to AES-128-CENC encrypted mp4

2019-11-18 Thread Soma Györe
Hi,
Is it possible to record camera to an AES-128-CENC encrypted mp4 file and
open it during the recording session?

I have a detailed explanation about my problem here:
https://gist.github.com/docoprusta/c294ebaaa68fdc8502b6caa641a75d7f

Thanks in advance,
Soma Györe
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Issue when retrieving stream metadata with ffprobe

2019-11-18 Thread PPRJ01
Hello All,

ffprobe does not seem to be able to retrieve all the metadata entries within a 
container.

I am using ffmpeg version 4.1 for MS Windows (build 20181017).

My purpose was to give names to the 2 subtitle streams (mov_text) of my movie.

Therefore, I did it like this :

ffmpeg -i INPUT.mp4 \
  -c copy \
  -map 0:v:0 -map 0:a:0 -map 0:s:0 -map 0:s:1 \
  -metadata:s:s:0 "title=Short version" \
  -metadata:s:s:1 "title=Full version" \
  OUTPUT.mp4

Then, I issued the following command to check the result of the previous one :

ffprobe -show_streams OUTPUT.mp4

The ffprobe command did NOT retrieve the titles of the subpictures.
I tried several other ffprobe options but none of them retrieved the titles.

However, I am sure that this metadata is stored somewhere because VLC Software
from Videolan do DISPLAY it correctly in its Subtitles menu.

How can I retrieve this data using ffprobe ?

Rgds
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread gordon
On Mon, Nov 18, 2019 at 1:08 PM Ted Park  wrote:

>
> > I am not sure what you mean?  I thought I was doing a simple encoding:
> >
> > -  One input video only, one output for video.
> > - One audio input plus a finalized video input for the audio output.
> Yes, but you have separate (raw) input sources.
>
> I think by alignment you are referring to the segment durations varying
> from each variant to another which could be a simple fix (at least I think?)
> > Map is used to end up with a video only stream and an audio only stream.
> by using the variant map for the hls muxer.
>
> But then when you play the result, are the video and audio going to be in
> sync is what I’m wondering, since they come from separate sources, and
> processed on separate tasks.
>
> > I am only including the copied video because I was under the impression
> > that it was required to properly segment the audio file.
>
> The audio stream doesn’t even have to be ts, you could have separate aac
> files for each segment. If you mean properly wrt synchronization, that’s
> what I’m wondering, since you have separate audio and video sources, is
> that even going to make any difference?
>
> i.e. if you simply multiplex the input and output, are the video and audio
> in sync? If so, using that file and variant map would make things a lot
> simpler.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



Your questions made me check the source in more detail =)  I picked a
random test video from FFMPEG test cases to run through processing.  The
audio duration is longer than the video duration.  I think that is my issue
here, but I will report back if it turns out not to be the problem!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread Ted Park

> I am not sure what you mean?  I thought I was doing a simple encoding:
> 
> -  One input video only, one output for video.
> - One audio input plus a finalized video input for the audio output.
Yes, but you have separate (raw) input sources.

I think by alignment you are referring to the segment durations varying from 
each variant to another which could be a simple fix (at least I think?)
> Map is used to end up with a video only stream and an audio only stream.
by using the variant map for the hls muxer.

But then when you play the result, are the video and audio going to be in sync 
is what I’m wondering, since they come from separate sources, and processed on 
separate tasks.

> I am only including the copied video because I was under the impression
> that it was required to properly segment the audio file.

The audio stream doesn’t even have to be ts, you could have separate aac files 
for each segment. If you mean properly wrt synchronization, that’s what I’m 
wondering, since you have separate audio and video sources, is that even going 
to make any difference?

i.e. if you simply multiplex the input and output, are the video and audio in 
sync? If so, using that file and variant map would make things a lot simpler.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread gordon
On Mon, Nov 18, 2019 at 12:37 PM Ted Park  wrote:

> The target duration randomly being changed to 7 is weird, but why are you
> doing this at all? Can’t you just do a simple encoding to a ts file for the
> video first with the right gop settings then have that be the reference for
> creating the hls playlist? Or even just create the ts file from both video
> and audio and prepare it for hls? Because how do you know they were synched
> to a common clock in the first place...
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


I am not sure what you mean?  I thought I was doing a simple encoding:

-  One input video only, one output for video.
- One audio input plus a finalized video input for the audio output.

Map is used to end up with a video only stream and an audio only stream.

I am only including the copied video because I was under the impression
that it was required to properly segment the audio file.  It is omitted
from the final output on the audio only stream.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread Ted Park
The target duration randomly being changed to 7 is weird, but why are you doing 
this at all? Can’t you just do a simple encoding to a ts file for the video 
first with the right gop settings then have that be the reference for creating 
the hls playlist? Or even just create the ts file from both video and audio and 
prepare it for hls? Because how do you know they were synched to a common clock 
in the first place...
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg cuvid not transcoding properly

2019-11-18 Thread Ted Park
I just noticed this but it some examples it seems you are specifying h264 
decoder for an input that (apparently) is mpeg? I’m not sure which is which, 
but I think cuvid and nvdec differ in the way they map or copy to graphics 
memory thought maybe that might be the difference between the logs (hw decoder 
into gpu you probably need to specify format, especially when its input is 
http, I don’t know if in ffmpeg the protocol takes mime type into account.) For 
the compilation issues, check that you have cuda nvenc ffnv… etc where they can 
be found by configure script, clean before make.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread gordon
On Mon, Nov 18, 2019 at 10:54 AM Dennis Mungai  wrote:

> On Mon, 18 Nov 2019, 18:44 Dennis Mungai,  wrote:
>
> >
> >
> > On Mon, 18 Nov 2019, 18:38 gordon,  wrote:
> >
> >> Okay, thank you. I will give that a go.
> >>
> >> -- aside --
> >>
> >> I thought that the "-force_key_frames expr:gte(t,n_forced*2)" was
> placing
> >> the key frames for segment boundaries and still allowing the encoder to
> >> place other keyframes where they wanted?  I am trying to use h264, h265,
> >> and vp9 so I figured the keyframes not at boundaries would need to be
> >> different for efficiency.
> >>
> >> How do I determine the best (or good) value for "-g" given a particular
> >> source file and target duration for segments?
> >>
> >> On Mon, Nov 18, 2019 at 10:19 AM Dennis Mungai 
> wrote:
> >>
> >> > On Mon, 18 Nov 2019 at 17:31, gordon  wrote:
> >> >
> >> > > Why are the segments for my stream not aligned?  The first command
> >> > outputs
> >> > > video segment.  The second command outputs an audio segment with the
> >> > > previous video output copied in.
> >> > >
> >> > > Ffmpeg commands are pasted below with the m3u8 outputs.  The same
> >> results
> >> > > were observed on ffmpeg 4.2.1 and snapshot
> >> > >
> >> > > /usr/local/bin/ffmpeg -y -loglevel error -f rawvideo -vcodec
> rawvideo
> >> -s
> >> > > 160x120 -pix_fmt rgb24 -r 12.00 -i - -an -vcodec libx264 -preset
> >> medium
> >> > -f
> >> > > hls -an -hls_flags single_file -hls_time 6 -hls_list_size 0
> >> > > -hls_segment_type mpegts -hls_segment_filename
> >> > >
> >> > >
> >> >
> >>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> >> > > -hls_playlist_type vod -master_pl_name
> >> > > 21b79578a1d04533932e32d28f46eb94-master.m3u8 -force_key_frames
> >> > > 'expr:gte(t,n_forced*2)' -profile:v baseline -level 3.0 -pix_fmt
> >> yuv420p
> >> > > -vsync cfr -b 145k -pix_fmt yuv420p
> >> > >
> >> > >
> >> >
> >>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94-variant.m3u8
> >> > >
> >> > > #EXTM3U
> >> > > #EXT-X-VERSION:4
> >> > > #EXT-X-TARGETDURATION:6
> >> > > #EXT-X-MEDIA-SEQUENCE:0
> >> > > #EXT-X-PLAYLIST-TYPE:VOD
> >> > > #EXTINF:6.00,
> >> > > #EXT-X-BYTERANGE:116748@0
> >> > > 21b79578a1d04533932e32d28f46eb94.ts
> >> > > #EXTINF:6.00,
> >> > > #EXT-X-BYTERANGE:96256@116748
> >> > > 21b79578a1d04533932e32d28f46eb94.ts
> >> > > #EXTINF:6.00,
> >> > > #EXT-X-BYTERANGE:143256@213004
> >> > > 21b79578a1d04533932e32d28f46eb94.ts
> >> > > #EXTINF:6.00,
> >> > > #EXT-X-BYTERANGE:97760@356260
> >> > > 21b79578a1d04533932e32d28f46eb94.ts
> >> > > #EXTINF:5.75,
> >> > > #EXT-X-BYTERANGE:75764@454020
> >> > > 21b79578a1d04533932e32d28f46eb94.ts
> >> > > #EXT-X-ENDLIST
> >> > >
> >> > >
> >> > > /usr/local/bin/ffmpeg -y -loglevel error -f s16le -acodec pcm_s16le
> >> -ar
> >> > > 44100 -ac 2 -i - -i
> >> > >
> >> > >
> >> >
> >>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> >> > > -vcodec copy -acodec libfdk_aac -ar 44100 -strict -2 -profile:a
> >> aac_he_v2
> >> > > -vbr 1 -f hls -hls_flags single_file -hls_time 6 -hls_list_size 0
> >> > > -hls_segment_type mpegts -hls_segment_filename
> >> > >
> >> > >
> >> >
> >>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f.ts
> >> > > -hls_playlist_type vod -master_pl_name
> >> > > e3658a88388c4d4da25681956bccb00f-master.m3u8 -force_key_frames
> >> > > 'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -vsync cfr
> >> > >
> >> > >
> >> >
> >>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f-variant.m3u8
> >> > >
> >> > > #EXTM3U
> >> > > #EXT-X-VERSION:4
> >> > > #EXT-X-TARGETDURATION:6
> >> > > #EXT-X-MEDIA-SEQUENCE:0
> >> > > #EXT-X-PLAYLIST-TYPE:VOD
> >> > > #EXTINF:6.00,
> >> > > #EXT-X-BYTERANGE:146452@0
> >> > > e3658a88388c4d4da25681956bccb00f.ts
> >> > > #EXTINF:6.00,
> >> > > #EXT-X-BYTERANGE:125020@146452
> >> > > e3658a88388c4d4da25681956bccb00f.ts
> >> > > #EXTINF:5.916667,
> >> > > #EXT-X-BYTERANGE:167320@271472
> >> > > e3658a88388c4d4da25681956bccb00f.ts
> >> > > #EXTINF:6.08,
> >> > > #EXT-X-BYTERANGE:133856@438792
> >> > > e3658a88388c4d4da25681956bccb00f.ts
> >> > > #EXTINF:5.75,
> >> > > #EXT-X-BYTERANGE:103776@572648
> >> > > e3658a88388c4d4da25681956bccb00f.ts
> >> > > #EXT-X-ENDLIST
> >> >
> >> >
> >> >
> >> > To ensure alignment, you must use a closed GOP (set via -flags +cgop)
> >> and
> >> > specify a GOP size via the -g option passed to your video encoder.
> >>
> >>
> >>
> >
> >
> > A keyframe distance of 2 is ideal. Simply set -g to 2x your content's
> >> frame rate. If your fps is 30, then -g should be 60. As an example.
> >> Secondly, set your segment length to a multiple of 2. Segment lengths
> of 6
> >> seconds are ideal (and it's what Apple recommends in their HLS authoring
> >> guidelines). However, if low latency for a trade off in encoding
> quality is
> >> desired, then set segment length to 2.
> >

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread gordon
On Mon, Nov 18, 2019 at 10:37 AM gordon  wrote:

> Okay, thank you. I will give that a go.
>
> -- aside --
>
> I thought that the "-force_key_frames expr:gte(t,n_forced*2)" was placing
> the key frames for segment boundaries and still allowing the encoder to
> place other keyframes where they wanted?  I am trying to use h264, h265,
> and vp9 so I figured the keyframes not at boundaries would need to be
> different for efficiency.
>
> How do I determine the best (or good) value for "-g" given a particular
> source file and target duration for segments?
>
> On Mon, Nov 18, 2019 at 10:19 AM Dennis Mungai  wrote:
>
>> On Mon, 18 Nov 2019 at 17:31, gordon  wrote:
>>
>> > Why are the segments for my stream not aligned?  The first command
>> outputs
>> > video segment.  The second command outputs an audio segment with the
>> > previous video output copied in.
>> >
>> > Ffmpeg commands are pasted below with the m3u8 outputs.  The same
>> results
>> > were observed on ffmpeg 4.2.1 and snapshot
>> >
>> > /usr/local/bin/ffmpeg -y -loglevel error -f rawvideo -vcodec rawvideo -s
>> > 160x120 -pix_fmt rgb24 -r 12.00 -i - -an -vcodec libx264 -preset medium
>> -f
>> > hls -an -hls_flags single_file -hls_time 6 -hls_list_size 0
>> > -hls_segment_type mpegts -hls_segment_filename
>> >
>> >
>> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
>> > -hls_playlist_type vod -master_pl_name
>> > 21b79578a1d04533932e32d28f46eb94-master.m3u8 -force_key_frames
>> > 'expr:gte(t,n_forced*2)' -profile:v baseline -level 3.0 -pix_fmt yuv420p
>> > -vsync cfr -b 145k -pix_fmt yuv420p
>> >
>> >
>> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94-variant.m3u8
>> >
>> > #EXTM3U
>> > #EXT-X-VERSION:4
>> > #EXT-X-TARGETDURATION:6
>> > #EXT-X-MEDIA-SEQUENCE:0
>> > #EXT-X-PLAYLIST-TYPE:VOD
>> > #EXTINF:6.00,
>> > #EXT-X-BYTERANGE:116748@0
>> > 21b79578a1d04533932e32d28f46eb94.ts
>> > #EXTINF:6.00,
>> > #EXT-X-BYTERANGE:96256@116748
>> > 21b79578a1d04533932e32d28f46eb94.ts
>> > #EXTINF:6.00,
>> > #EXT-X-BYTERANGE:143256@213004
>> > 21b79578a1d04533932e32d28f46eb94.ts
>> > #EXTINF:6.00,
>> > #EXT-X-BYTERANGE:97760@356260
>> > 21b79578a1d04533932e32d28f46eb94.ts
>> > #EXTINF:5.75,
>> > #EXT-X-BYTERANGE:75764@454020
>> > 21b79578a1d04533932e32d28f46eb94.ts
>> > #EXT-X-ENDLIST
>> >
>> >
>> > /usr/local/bin/ffmpeg -y -loglevel error -f s16le -acodec pcm_s16le -ar
>> > 44100 -ac 2 -i - -i
>> >
>> >
>> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
>> > -vcodec copy -acodec libfdk_aac -ar 44100 -strict -2 -profile:a
>> aac_he_v2
>> > -vbr 1 -f hls -hls_flags single_file -hls_time 6 -hls_list_size 0
>> > -hls_segment_type mpegts -hls_segment_filename
>> >
>> >
>> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f.ts
>> > -hls_playlist_type vod -master_pl_name
>> > e3658a88388c4d4da25681956bccb00f-master.m3u8 -force_key_frames
>> > 'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -vsync cfr
>> >
>> >
>> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f-variant.m3u8
>> >
>> > #EXTM3U
>> > #EXT-X-VERSION:4
>> > #EXT-X-TARGETDURATION:6
>> > #EXT-X-MEDIA-SEQUENCE:0
>> > #EXT-X-PLAYLIST-TYPE:VOD
>> > #EXTINF:6.00,
>> > #EXT-X-BYTERANGE:146452@0
>> > e3658a88388c4d4da25681956bccb00f.ts
>> > #EXTINF:6.00,
>> > #EXT-X-BYTERANGE:125020@146452
>> > e3658a88388c4d4da25681956bccb00f.ts
>> > #EXTINF:5.916667,
>> > #EXT-X-BYTERANGE:167320@271472
>> > e3658a88388c4d4da25681956bccb00f.ts
>> > #EXTINF:6.08,
>> > #EXT-X-BYTERANGE:133856@438792
>> > e3658a88388c4d4da25681956bccb00f.ts
>> > #EXTINF:5.75,
>> > #EXT-X-BYTERANGE:103776@572648
>> > e3658a88388c4d4da25681956bccb00f.ts
>> > #EXT-X-ENDLIST
>>
>>
>>
>> To ensure alignment, you must use a closed GOP (set via -flags +cgop) and
>> specify a GOP size via the -g option passed to your video encoder.
>>
>> >
>> >
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
>

Sorry for the top post - gmail does that by default.  I've copied my reply
below for ease of reading:

Okay, thank you. I will give that a go.

-- aside --

I thought that the "-force_key_frames expr:gte(t,n_forced*2)" was placing
the key frames for segment boundaries and still allowing the encoder to
place other keyframes where they wanted?  I am trying to use h264, h265,
and vp9 so I figured the keyframes not at boundaries would need to be
different for efficiency.

How do I determine the best (or good) value for "-g" given a particular
source file and target duration for segments?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread Dennis Mungai
On Mon, 18 Nov 2019, 18:38 gordon,  wrote:

> Okay, thank you. I will give that a go.
>
> -- aside --
>
> I thought that the "-force_key_frames expr:gte(t,n_forced*2)" was placing
> the key frames for segment boundaries and still allowing the encoder to
> place other keyframes where they wanted?  I am trying to use h264, h265,
> and vp9 so I figured the keyframes not at boundaries would need to be
> different for efficiency.
>
> How do I determine the best (or good) value for "-g" given a particular
> source file and target duration for segments?
>
> On Mon, Nov 18, 2019 at 10:19 AM Dennis Mungai  wrote:
>
> > On Mon, 18 Nov 2019 at 17:31, gordon  wrote:
> >
> > > Why are the segments for my stream not aligned?  The first command
> > outputs
> > > video segment.  The second command outputs an audio segment with the
> > > previous video output copied in.
> > >
> > > Ffmpeg commands are pasted below with the m3u8 outputs.  The same
> results
> > > were observed on ffmpeg 4.2.1 and snapshot
> > >
> > > /usr/local/bin/ffmpeg -y -loglevel error -f rawvideo -vcodec rawvideo
> -s
> > > 160x120 -pix_fmt rgb24 -r 12.00 -i - -an -vcodec libx264 -preset medium
> > -f
> > > hls -an -hls_flags single_file -hls_time 6 -hls_list_size 0
> > > -hls_segment_type mpegts -hls_segment_filename
> > >
> > >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> > > -hls_playlist_type vod -master_pl_name
> > > 21b79578a1d04533932e32d28f46eb94-master.m3u8 -force_key_frames
> > > 'expr:gte(t,n_forced*2)' -profile:v baseline -level 3.0 -pix_fmt
> yuv420p
> > > -vsync cfr -b 145k -pix_fmt yuv420p
> > >
> > >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94-variant.m3u8
> > >
> > > #EXTM3U
> > > #EXT-X-VERSION:4
> > > #EXT-X-TARGETDURATION:6
> > > #EXT-X-MEDIA-SEQUENCE:0
> > > #EXT-X-PLAYLIST-TYPE:VOD
> > > #EXTINF:6.00,
> > > #EXT-X-BYTERANGE:116748@0
> > > 21b79578a1d04533932e32d28f46eb94.ts
> > > #EXTINF:6.00,
> > > #EXT-X-BYTERANGE:96256@116748
> > > 21b79578a1d04533932e32d28f46eb94.ts
> > > #EXTINF:6.00,
> > > #EXT-X-BYTERANGE:143256@213004
> > > 21b79578a1d04533932e32d28f46eb94.ts
> > > #EXTINF:6.00,
> > > #EXT-X-BYTERANGE:97760@356260
> > > 21b79578a1d04533932e32d28f46eb94.ts
> > > #EXTINF:5.75,
> > > #EXT-X-BYTERANGE:75764@454020
> > > 21b79578a1d04533932e32d28f46eb94.ts
> > > #EXT-X-ENDLIST
> > >
> > >
> > > /usr/local/bin/ffmpeg -y -loglevel error -f s16le -acodec pcm_s16le -ar
> > > 44100 -ac 2 -i - -i
> > >
> > >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> > > -vcodec copy -acodec libfdk_aac -ar 44100 -strict -2 -profile:a
> aac_he_v2
> > > -vbr 1 -f hls -hls_flags single_file -hls_time 6 -hls_list_size 0
> > > -hls_segment_type mpegts -hls_segment_filename
> > >
> > >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f.ts
> > > -hls_playlist_type vod -master_pl_name
> > > e3658a88388c4d4da25681956bccb00f-master.m3u8 -force_key_frames
> > > 'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -vsync cfr
> > >
> > >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f-variant.m3u8
> > >
> > > #EXTM3U
> > > #EXT-X-VERSION:4
> > > #EXT-X-TARGETDURATION:6
> > > #EXT-X-MEDIA-SEQUENCE:0
> > > #EXT-X-PLAYLIST-TYPE:VOD
> > > #EXTINF:6.00,
> > > #EXT-X-BYTERANGE:146452@0
> > > e3658a88388c4d4da25681956bccb00f.ts
> > > #EXTINF:6.00,
> > > #EXT-X-BYTERANGE:125020@146452
> > > e3658a88388c4d4da25681956bccb00f.ts
> > > #EXTINF:5.916667,
> > > #EXT-X-BYTERANGE:167320@271472
> > > e3658a88388c4d4da25681956bccb00f.ts
> > > #EXTINF:6.08,
> > > #EXT-X-BYTERANGE:133856@438792
> > > e3658a88388c4d4da25681956bccb00f.ts
> > > #EXTINF:5.75,
> > > #EXT-X-BYTERANGE:103776@572648
> > > e3658a88388c4d4da25681956bccb00f.ts
> > > #EXT-X-ENDLIST
> >
> >
> >
> > To ensure alignment, you must use a closed GOP (set via -flags +cgop) and
> > specify a GOP size via the -g option passed to your video encoder.
>
>
>


A keyframe distance of 2 is ideal. Simply set -g to 2x your content's frame
> rate. If your fps is 30, then -g should be 60. As an example. Secondly, set
> your segment length to a multiple of 2. Segment lengths of 6 seconds are
> ideal (and it's what Apple recommends in their HLS authoring guidelines).
> However, if low latency for a trade off in encoding quality is desired,
> then set segment length to 2.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread gordon
Okay, thank you. I will give that a go.

-- aside --

I thought that the "-force_key_frames expr:gte(t,n_forced*2)" was placing
the key frames for segment boundaries and still allowing the encoder to
place other keyframes where they wanted?  I am trying to use h264, h265,
and vp9 so I figured the keyframes not at boundaries would need to be
different for efficiency.

How do I determine the best (or good) value for "-g" given a particular
source file and target duration for segments?

On Mon, Nov 18, 2019 at 10:19 AM Dennis Mungai  wrote:

> On Mon, 18 Nov 2019 at 17:31, gordon  wrote:
>
> > Why are the segments for my stream not aligned?  The first command
> outputs
> > video segment.  The second command outputs an audio segment with the
> > previous video output copied in.
> >
> > Ffmpeg commands are pasted below with the m3u8 outputs.  The same results
> > were observed on ffmpeg 4.2.1 and snapshot
> >
> > /usr/local/bin/ffmpeg -y -loglevel error -f rawvideo -vcodec rawvideo -s
> > 160x120 -pix_fmt rgb24 -r 12.00 -i - -an -vcodec libx264 -preset medium
> -f
> > hls -an -hls_flags single_file -hls_time 6 -hls_list_size 0
> > -hls_segment_type mpegts -hls_segment_filename
> >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> > -hls_playlist_type vod -master_pl_name
> > 21b79578a1d04533932e32d28f46eb94-master.m3u8 -force_key_frames
> > 'expr:gte(t,n_forced*2)' -profile:v baseline -level 3.0 -pix_fmt yuv420p
> > -vsync cfr -b 145k -pix_fmt yuv420p
> >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94-variant.m3u8
> >
> > #EXTM3U
> > #EXT-X-VERSION:4
> > #EXT-X-TARGETDURATION:6
> > #EXT-X-MEDIA-SEQUENCE:0
> > #EXT-X-PLAYLIST-TYPE:VOD
> > #EXTINF:6.00,
> > #EXT-X-BYTERANGE:116748@0
> > 21b79578a1d04533932e32d28f46eb94.ts
> > #EXTINF:6.00,
> > #EXT-X-BYTERANGE:96256@116748
> > 21b79578a1d04533932e32d28f46eb94.ts
> > #EXTINF:6.00,
> > #EXT-X-BYTERANGE:143256@213004
> > 21b79578a1d04533932e32d28f46eb94.ts
> > #EXTINF:6.00,
> > #EXT-X-BYTERANGE:97760@356260
> > 21b79578a1d04533932e32d28f46eb94.ts
> > #EXTINF:5.75,
> > #EXT-X-BYTERANGE:75764@454020
> > 21b79578a1d04533932e32d28f46eb94.ts
> > #EXT-X-ENDLIST
> >
> >
> > /usr/local/bin/ffmpeg -y -loglevel error -f s16le -acodec pcm_s16le -ar
> > 44100 -ac 2 -i - -i
> >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> > -vcodec copy -acodec libfdk_aac -ar 44100 -strict -2 -profile:a aac_he_v2
> > -vbr 1 -f hls -hls_flags single_file -hls_time 6 -hls_list_size 0
> > -hls_segment_type mpegts -hls_segment_filename
> >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f.ts
> > -hls_playlist_type vod -master_pl_name
> > e3658a88388c4d4da25681956bccb00f-master.m3u8 -force_key_frames
> > 'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -vsync cfr
> >
> >
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f-variant.m3u8
> >
> > #EXTM3U
> > #EXT-X-VERSION:4
> > #EXT-X-TARGETDURATION:6
> > #EXT-X-MEDIA-SEQUENCE:0
> > #EXT-X-PLAYLIST-TYPE:VOD
> > #EXTINF:6.00,
> > #EXT-X-BYTERANGE:146452@0
> > e3658a88388c4d4da25681956bccb00f.ts
> > #EXTINF:6.00,
> > #EXT-X-BYTERANGE:125020@146452
> > e3658a88388c4d4da25681956bccb00f.ts
> > #EXTINF:5.916667,
> > #EXT-X-BYTERANGE:167320@271472
> > e3658a88388c4d4da25681956bccb00f.ts
> > #EXTINF:6.08,
> > #EXT-X-BYTERANGE:133856@438792
> > e3658a88388c4d4da25681956bccb00f.ts
> > #EXTINF:5.75,
> > #EXT-X-BYTERANGE:103776@572648
> > e3658a88388c4d4da25681956bccb00f.ts
> > #EXT-X-ENDLIST
>
>
>
> To ensure alignment, you must use a closed GOP (set via -flags +cgop) and
> specify a GOP size via the -g option passed to your video encoder.
>
> >
> >
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread Dennis Mungai
On Mon, 18 Nov 2019 at 17:31, gordon  wrote:

> Why are the segments for my stream not aligned?  The first command outputs
> video segment.  The second command outputs an audio segment with the
> previous video output copied in.
>
> Ffmpeg commands are pasted below with the m3u8 outputs.  The same results
> were observed on ffmpeg 4.2.1 and snapshot
>
> /usr/local/bin/ffmpeg -y -loglevel error -f rawvideo -vcodec rawvideo -s
> 160x120 -pix_fmt rgb24 -r 12.00 -i - -an -vcodec libx264 -preset medium -f
> hls -an -hls_flags single_file -hls_time 6 -hls_list_size 0
> -hls_segment_type mpegts -hls_segment_filename
>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> -hls_playlist_type vod -master_pl_name
> 21b79578a1d04533932e32d28f46eb94-master.m3u8 -force_key_frames
> 'expr:gte(t,n_forced*2)' -profile:v baseline -level 3.0 -pix_fmt yuv420p
> -vsync cfr -b 145k -pix_fmt yuv420p
>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94-variant.m3u8
>
> #EXTM3U
> #EXT-X-VERSION:4
> #EXT-X-TARGETDURATION:6
> #EXT-X-MEDIA-SEQUENCE:0
> #EXT-X-PLAYLIST-TYPE:VOD
> #EXTINF:6.00,
> #EXT-X-BYTERANGE:116748@0
> 21b79578a1d04533932e32d28f46eb94.ts
> #EXTINF:6.00,
> #EXT-X-BYTERANGE:96256@116748
> 21b79578a1d04533932e32d28f46eb94.ts
> #EXTINF:6.00,
> #EXT-X-BYTERANGE:143256@213004
> 21b79578a1d04533932e32d28f46eb94.ts
> #EXTINF:6.00,
> #EXT-X-BYTERANGE:97760@356260
> 21b79578a1d04533932e32d28f46eb94.ts
> #EXTINF:5.75,
> #EXT-X-BYTERANGE:75764@454020
> 21b79578a1d04533932e32d28f46eb94.ts
> #EXT-X-ENDLIST
>
>
> /usr/local/bin/ffmpeg -y -loglevel error -f s16le -acodec pcm_s16le -ar
> 44100 -ac 2 -i - -i
>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
> -vcodec copy -acodec libfdk_aac -ar 44100 -strict -2 -profile:a aac_he_v2
> -vbr 1 -f hls -hls_flags single_file -hls_time 6 -hls_list_size 0
> -hls_segment_type mpegts -hls_segment_filename
>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f.ts
> -hls_playlist_type vod -master_pl_name
> e3658a88388c4d4da25681956bccb00f-master.m3u8 -force_key_frames
> 'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -vsync cfr
>
> /tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f-variant.m3u8
>
> #EXTM3U
> #EXT-X-VERSION:4
> #EXT-X-TARGETDURATION:6
> #EXT-X-MEDIA-SEQUENCE:0
> #EXT-X-PLAYLIST-TYPE:VOD
> #EXTINF:6.00,
> #EXT-X-BYTERANGE:146452@0
> e3658a88388c4d4da25681956bccb00f.ts
> #EXTINF:6.00,
> #EXT-X-BYTERANGE:125020@146452
> e3658a88388c4d4da25681956bccb00f.ts
> #EXTINF:5.916667,
> #EXT-X-BYTERANGE:167320@271472
> e3658a88388c4d4da25681956bccb00f.ts
> #EXTINF:6.08,
> #EXT-X-BYTERANGE:133856@438792
> e3658a88388c4d4da25681956bccb00f.ts
> #EXTINF:5.75,
> #EXT-X-BYTERANGE:103776@572648
> e3658a88388c4d4da25681956bccb00f.ts
> #EXT-X-ENDLIST



To ensure alignment, you must use a closed GOP (set via -flags +cgop) and
specify a GOP size via the -g option passed to your video encoder.

>
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Piping raw video from ffmpeg

2019-11-18 Thread Verachten Bruno
Thanks Carl Eugen, that worked. I will have a look at the pix_fmt option.
I now have to find how to pipe correctly to gstreamer, as it does not
like what I'm feeding him with.

WARNING: erroneous pipeline: could not link fdsrc0 to mpph264enc0,
mpph264enc0 can't handle caps video/x-raw, format=(string)nv12,
width=(int)1920, height=(int)1080, framerate=(fraction)30/1

Bruno

On Mon, Nov 18, 2019 at 12:09 PM Carl Eugen Hoyos  wrote:
>
>
>
> > Am 15.11.2019 um 18:29 schrieb Verachten Bruno :
> >
> > So far, I have tried ffmpeg  -f v4l2 -pix_fmt nv12 -s 1920x1080 -r 30
> > -i /dev/video0 -c:v rawvideo -f yuv - >/dev/null
>
> The name of the rawvideo format is not “yuv” (as the console output told you) 
> but “rawvideo”.
> You may also want to use the pix_fmt option.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



-- 
Bruno Verachten
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] why are my streams not aligned?

2019-11-18 Thread gordon
Why are the segments for my stream not aligned?  The first command outputs
video segment.  The second command outputs an audio segment with the
previous video output copied in.

Ffmpeg commands are pasted below with the m3u8 outputs.  The same results
were observed on ffmpeg 4.2.1 and snapshot

/usr/local/bin/ffmpeg -y -loglevel error -f rawvideo -vcodec rawvideo -s
160x120 -pix_fmt rgb24 -r 12.00 -i - -an -vcodec libx264 -preset medium -f
hls -an -hls_flags single_file -hls_time 6 -hls_list_size 0
-hls_segment_type mpegts -hls_segment_filename
/tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
-hls_playlist_type vod -master_pl_name
21b79578a1d04533932e32d28f46eb94-master.m3u8 -force_key_frames
'expr:gte(t,n_forced*2)' -profile:v baseline -level 3.0 -pix_fmt yuv420p
-vsync cfr -b 145k -pix_fmt yuv420p
/tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94-variant.m3u8

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:6.00,
#EXT-X-BYTERANGE:116748@0
21b79578a1d04533932e32d28f46eb94.ts
#EXTINF:6.00,
#EXT-X-BYTERANGE:96256@116748
21b79578a1d04533932e32d28f46eb94.ts
#EXTINF:6.00,
#EXT-X-BYTERANGE:143256@213004
21b79578a1d04533932e32d28f46eb94.ts
#EXTINF:6.00,
#EXT-X-BYTERANGE:97760@356260
21b79578a1d04533932e32d28f46eb94.ts
#EXTINF:5.75,
#EXT-X-BYTERANGE:75764@454020
21b79578a1d04533932e32d28f46eb94.ts
#EXT-X-ENDLIST


/usr/local/bin/ffmpeg -y -loglevel error -f s16le -acodec pcm_s16le -ar
44100 -ac 2 -i - -i
/tmp/973b7b02b6e6486f90d3064527a69701/output/21b79578a1d04533932e32d28f46eb94.ts
-vcodec copy -acodec libfdk_aac -ar 44100 -strict -2 -profile:a aac_he_v2
-vbr 1 -f hls -hls_flags single_file -hls_time 6 -hls_list_size 0
-hls_segment_type mpegts -hls_segment_filename
/tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f.ts
-hls_playlist_type vod -master_pl_name
e3658a88388c4d4da25681956bccb00f-master.m3u8 -force_key_frames
'expr:gte(t,n_forced*2)' -pix_fmt yuv420p -vsync cfr
/tmp/973b7b02b6e6486f90d3064527a69701/output/e3658a88388c4d4da25681956bccb00f-variant.m3u8

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:6.00,
#EXT-X-BYTERANGE:146452@0
e3658a88388c4d4da25681956bccb00f.ts
#EXTINF:6.00,
#EXT-X-BYTERANGE:125020@146452
e3658a88388c4d4da25681956bccb00f.ts
#EXTINF:5.916667,
#EXT-X-BYTERANGE:167320@271472
e3658a88388c4d4da25681956bccb00f.ts
#EXTINF:6.08,
#EXT-X-BYTERANGE:133856@438792
e3658a88388c4d4da25681956bccb00f.ts
#EXTINF:5.75,
#EXT-X-BYTERANGE:103776@572648
e3658a88388c4d4da25681956bccb00f.ts
#EXT-X-ENDLIST
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Failure with assertion "avpkt->buf failed at libavcodec/encode.c"

2019-11-18 Thread Carl Eugen Hoyos
Am Mo., 18. Nov. 2019 um 14:41 Uhr schrieb James E. Baird :
>
> >This issue was fixed over the weekend.

> I am assuming I just need to recompile then?

No, you have to update to current FFmpeg git head.

> CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the 
> Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential

Please remove this from emails sent to a public mailing list.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Failure with assertion "avpkt->buf failed at libavcodec/encode.c"

2019-11-18 Thread James E. Baird

>This issue was fixed over the weekend.
>
>Carl Eugen

I am assuming I just need to recompile then?

Thanks Carl


CONFIDENTIALITY NOTICE: This e-mail including attachments is covered by the 
Electronic Communications Privacy Act, 18 U.S.C. §§2510-2521, is confidential 
and may contain information that is privileged, confidential or otherwise 
protected from use and disclosure. If you are not the intended recipient, you 
are hereby notified that any review, disclosure, copying, or dissemination of 
this transmission, or taking of any action in reliance on its contents, or 
other use is strictly prohibited. If you have received this transmission in 
error, please reply to the sender listed above immediately and permanently 
delete this message from your inbox.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Piping raw video from ffmpeg

2019-11-18 Thread Carl Eugen Hoyos


> Am 15.11.2019 um 18:29 schrieb Verachten Bruno :
> 
> So far, I have tried ffmpeg  -f v4l2 -pix_fmt nv12 -s 1920x1080 -r 30
> -i /dev/video0 -c:v rawvideo -f yuv - >/dev/null

The name of the rawvideo format is not “yuv” (as the console output told you) 
but “rawvideo”.
You may also want to use the pix_fmt option.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".