Re: [FFmpeg-user] help required for creating MPEGTS from raw h264 & PCM Audio

2017-09-26 Thread Ajay Parashar
On Sep 26, 2017 4:52 PM, "Carl Eugen Hoyos"  wrote:

2017-09-23 13:44 GMT+02:00 Ajay Parashar :

> I am getting raw h264 encoded frames from one thread of
> my application in a buffer & getting raw PCM data buffer
> from the second thread. Now i want to create MPEGTS
> by using ffmpeg APIs in the same application.

This mailing list is for usage questions concerning ffmpeg
(and ffplay etc.), there is a mailing list for api-related
questions:
http://ffmpeg.org/contact.html#MailingLists

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".

 Hi Carl,
   Thanks for your reply, I will post this query to respective mailing
list.
 Regards
Ajay
___
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] help required for creating MPEGTS from raw h264 & PCM Audio

2017-09-25 Thread Ajay Parashar
On Sat, Sep 23, 2017 at 5:14 PM, Ajay Parashar  wrote:
> Hi,
>
> I am getting raw h264 encoded frames from one thread of my application
> in a buffer & getting raw PCM data buffer from the second thread.
> Now i want to create MPEGTS by using ffmpeg APIs in the same application.
>
> I got many references to create MPEGTS by using static files but did
> not find any info how can i create MPEGTS by using h264 frame buffer
> and PCM data buffer?
> It would be great if you guys let me know how can i achieve the same.
>
> Regards
> Ajay Parashar

Hi,

Please Let me know how to create MPEGTS by using h264 video frame buffers ?

Regards
Ajay
___
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] help required for creating MPEGTS from raw h264 & PCM Audio

2017-09-23 Thread Ajay Parashar
Hi,

I am getting raw h264 encoded frames from one thread of my application
in a buffer & getting raw PCM data buffer from the second thread.
Now i want to create MPEGTS by using ffmpeg APIs in the same application.

I got many references to create MPEGTS by using static files but did
not find any info how can i create MPEGTS by using h264 frame buffer
and PCM data buffer?
It would be great if you guys let me know how can i achieve the same.

Regards
Ajay Parashar
___
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] For HLS, playlist.m3u8 file skips last segment entry

2014-10-08 Thread ajay parashar


On Wed, Oct 08, 2014 at 13:08:56 +0800, ajay parashar wrote:
> I want to know why this segment out005.ts is not adding to playlist file ? 
> Is it known issue ? or i need to provide some other options to command line.
> 
> below is the command that currently i am using
> ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=5&overrun_nonfatal=1' 
> -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment 
> -hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live 
> -segment_time 10 out%03d.ts

I tried to reproduce this with testsrc, otherwise using the similar
(video!) properties and arguments as you, and I don't see any issues.
Perhaps you can try with testsrc as well?

Moritz

barsnick@sunshine:~/tmp/ffmpeg_segment_test > ffmpeg -f lavfi -i 
'testsrc=size=704x480:duration=00\\:01\\:02.76' -vcodec libx264 -f ssegment 
-hls_list_size 10 -segment_list playlist.m3u8 -segment_time 10 
-segment_list_flags +live out%03d.ts
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers

***
testsrc input and even in my case giving local file as input is working well at 
my end. I am facing this issue when i am receiving stream from network.
In my Scenario I am sending UDP stream from machine 1 using VLC and receivng 
this UDP stream  on machine 2 by ffmpeg command. Playlist.m3u8 file  skips last 
segment entry.
Last segment out005.ts is vailable on my machine and it is having valid data 
also ,Please let me know why playlist.m3u8 is skipping last segment entry while 
receiving UDP stream?

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


Re: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry

2014-10-07 Thread ajay parashar


On 9/30/2014 4:11 PM, ajay parashar wrote:
>>> #EXTM3U
>>> #EXT-X-VERSION:3
>>> #EXT-X-MEDIA-SEQUENCE:0
>>> #EXT-X-ALLOW-CACHE:YES
>>> #EXT-X-TARGETDURATION:17
>>> #EXTINF:15.015000,
>>> out000.ts
>>> #EXTINF:8.341667,
>>> out001.ts
>>> #EXTINF:8.341667,
>>> out002.ts
>>> #EXTINF:8.341667,
>>> out003.ts
>>> #EXTINF:16.68,
>>> out004.ts
>>>
>>>
>> You should add "#EXT-X-ENDLIST" for a VOD hls.
> ***
> Should I add ENDLIST tag manually or ffmpeg should do this for user while 
> generating playlist.m3u8 file.
>

Actually, "#EXT-X-ENDLIST" is not added because you have specified 
"-segment_list_flags +live" in your ffmpeg command.
If you want to generate a live HLS stream, use +live flag and the tag 
will not be added (like in your example), if you want to generate a VOD 
stream, remove the flag and the tag will be added.

However this won't fix the issue you are reporting that "out005.ts" 
isn't added to the playlist and I can't help you with that, sorry.
Just wondering: are you sure that out005.ts contains useful data?
-- 
Claudiu

Yes i am sure out005.ts contains valid data as i can play this out005.ts in VLC 
player smoothly.
when i manually add this segment to playlist file then also it plays as part of 
playlist file.
I want to know why this segment out005.ts is not adding to playlist file ? 
Is it known issue ? or i need to provide some other options to command line.

below is the command that currently i am using
ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=5&overrun_nonfatal=1' 
-map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment 
-hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live 
-segment_time 10 out%03d.ts
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffserver config for HLS

2014-10-07 Thread ajay parashar


On Tue, Oct 07, 2014 at 14:10:49 +0800, ajay parashar wrote:

> >   Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native))
> >   Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264))
> > Error while opening encoder for output stream #1:0 - maybe incorrect
> > parameters such as bit_rate, rate, width or height

> I played this video in VLC and confirm Video width, height , video
> frame rate and use the same value in above mentioned ffserver config
> file.

From: Moritz Barsnick 

But as you can see from the message, something is wrong with the AC3
audio track (output stream #1:0). Have you tried stream-copying input
#0:0 or #0:1 instead of re-encoding it?

By the way, you have two outputs:
out%03d.ts (segment)

and
http://10.125.133.31:8080/feed1.ffm

and you are not specifying any parameters for the second one. Are you
sure this is what you are trying to achieve?

Moritz


Okay for second output Now i am using tee option and below is the ffmpeg 
commnad, ffmpeg does not complain this time for incorrect
parameters  but ffserver is not streming data.

ffmpeg -i pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy 
-f ssegment -segment_list_flags +live -segment_time 10 -segment_list 
playlist.m3u8 out%03d.ts |[f=hls] http://10.125.133.31:8080/feed1.ffm
ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static 
--disable-stripping
  libavutil  54.  7.100 / 54.  7.100
bash: [f=hls]: command not found...
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
[mpegts @ 0x181ee40] PES packet size mismatch
Last message repeated 2 times
Input #0, mpegts, from 'pentagon_hd_sd.ts':
  Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s
  Program 1 
Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 
192 kb/s
Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 
384 kb/s
Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:3[0x47]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 
tbc
[libx264 @ 0x187c200] using SAR=10/11
[libx264 @ 0x187c200] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x187c200] profile High, level 3.0
[mpegts @ 0x190aaa0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
Output #0, stream_segment,ssegment, to 'out%03d.ts':
  Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 
q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc
Metadata:
  encoder : Lavc56.1.100 libx264
Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[stream_segment,ssegment @ 0x1826dc0] Non-monotonous DTS in output stream 0:1; 
previous: 74880, current: 73459; changing to 74881. This may result in 
incorrect timestamps in the output file.
[mpegts @ 0x181ee40] DTS 2958942089 < 2958943387 out of order
[mpegts @ 0x1916920] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x1916900] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x190bfc0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x191b800] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x1ec39c0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x181ee40] PES packet size mismatch1:02.67 bitrate=N/A dup=38 drop=0  
  
frame= 1891 fps= 27 q=29.0 size=N/A time=00:01:03.05 bitrate=N/A dup=38 drop=0  
  
[2]+  Stopped ffmpeg -i pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 
-vcodec libx264 -acodec copy -f ssegment -segment_list_flags +live 
-segment_time 10 -seg

Re: [FFmpeg-user] ffserver config for HLS

2014-10-06 Thread ajay parashar





On Tue, Oct 7, 2014 at 8:18 AM, ajay parashar <
ajay_382000-at-yahoo.co...@ffmpeg.org> wrote:


> Hi,
>
> Asf video streaming is working smoothly at my end  but Now I want to do
> HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order.
>
> Step 1) execute vlc
> Step 2) execute ffserver
> Step 3) execute ffmpeg
>
> I tried a lot but not getting any ffserver config file that can be used
> for HLS streaming .
>
> Please share working ffserver config file with me.
>
> Thanks
> Ajay
>
>
> **
>
> Please provide me working ffserver configuration file for HLS streaming.
>
> **
>
> Below is the ffmpeg command and it says "maybe incorrect parameters such
>  as bit_rate, rate, width or height". I verified all these parameters
> are correct
>
> ffmpeg -i
> pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f
> ssegment -segment_list_flags +live -segment_list playlist.m3u8
> -segment_time 10 out%03d.ts  http://10.125.133.31:8080/feed1.ffm
> ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat
> 4.8.3-1)
>   configuration: --enable-gpl --enable-libx264 --enable-shared
> --disable-static --disable-stripping
>   libavutil  54.  7.100 / 54.  7.100
>   libavcodec 56.  1.100 / 56.  1.100
>   libavformat56.  4.101 / 56.  4.101
>   libavdevice56.  0.100 / 56.  0.100
>   libavfilter 5.  1.100 /  5.  1.100
>   libswscale  3.  0.100 /  3.  0.100
>   libswresample   1.  1.100 /  1.  1.100
>   libpostproc53.  0.100 / 53.  0.100
> [mpegts @ 0x22f4ec0] PES packet size mismatch
> Last message repeated 2 times
> Input #0, mpegts, from 'pentagon_hd_sd.ts':
>   Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s
>   Program 1
> Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
> fltp, 192 kb/s
> Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
> fltp, 384 kb/s
>
>  Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
> yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr,
> 90k tbn, 119.88 tbc
> Stream #0:3[0x47]: Video:
> h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480
> [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
> [libx264 @ 0x2351e60] using SAR=10/11
> [libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
> [libx264 @ 0x2351e60] profile High, level 3.0
> [ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB
> Output #0, stream_segment,ssegment, to 'out%03d.ts':
> Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR
> 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc
> Metadata:
>   encoder : Lavc56.1.100 libx264
> Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s
> Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm':
>   Metadata:
> creation_time   : now
> Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s
> Metadata:
>   encoder : Lavc56.1.100 ac3
> Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR
> 16:9, 59.94 fps, 1000k tbn, 30 tbc
> Metadata:
>   encoder : Lavc56.1.100 libx264
> Stream mapping:
>   Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264))
>   Stream #0:0 -> #0:1 (copy)
>   Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native))
>   Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264))
> Error while opening encoder for output stream #1:0 - maybe incorrect
> parameters such as bit_rate, rate, width or height
>
>
> ***
> My ffserevr config file
>
> *
> HTTPPort 8080
> HTTPBindAddress 10.125.133.31
> MaxClients 1000
> MaxBandwidth 1000
>
> 
> File /tmp/feed1.ffm
> FileMaxSize 1G
> ACL allow localhost
> ACL allow 10.125.133.31 10.125.133.66 10.125.133.151
> 
>
> 
> Feed feed1.ffm
> Format HLS
> VideoCodec libx264
> VideoFrameRate 30
> VideoBitRate 128
> VideoSize 704*480
> AVOptionVideo hls_time 10
> AVOptionVideo hls_list_size 0
> AVOptionVideo flags +global_header
> AudioCodec ac3
> AudioBitRate 128
> AudioChannels 2
> AudioSampleRate 48000
> 
***

Re: [FFmpeg-user] ffserver config for HLS

2014-10-06 Thread ajay parashar


 






Hi,

Asf video streaming is working smoothly at my end  but Now I want to do HLS by 
using ffmpeg, ffserver and (VLC or iPAD) as per below order.

Step 1) execute vlc
Step 2) execute ffserver
Step 3) execute ffmpeg

I tried a lot but not getting any ffserver config file that can be used for HLS 
streaming . 

Please share working ffserver config file with me.

Thanks
Ajay

**

Please provide me working ffserver configuration file for HLS streaming.
**

Below is the ffmpeg command and it says "maybe incorrect parameters such
 as bit_rate, rate, width or height". I verified all these parameters 
are correct

ffmpeg -i 
pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f 
ssegment -segment_list_flags +live -segment_list playlist.m3u8 
-segment_time 10 out%03d.ts  http://10.125.133.31:8080/feed1.ffm
ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static 
--disable-stripping
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
[mpegts @ 0x22f4ec0] PES packet size mismatch
Last message repeated 2 times
Input #0, mpegts, from 'pentagon_hd_sd.ts':
  Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s
  Program 1 
Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 
192 kb/s
Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 
384 kb/s
   
 Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 
90k tbn, 119.88 tbc
Stream #0:3[0x47]: Video: 
h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480 
[SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
[libx264 @ 0x2351e60] using SAR=10/11
[libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x2351e60] profile High, level 3.0
[ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB
Output #0, stream_segment,ssegment, to 'out%03d.ts':
Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 
q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc
Metadata:
  encoder : Lavc56.1.100 libx264
Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s
Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm':
  Metadata:
creation_time   : now
Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s
Metadata:
  encoder : Lavc56.1.100 ac3
Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR 16:9, 
59.94 fps, 1000k tbn, 30 tbc
Metadata:
  encoder : Lavc56.1.100 libx264
Stream mapping:
  Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
  Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native))
  Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264))
Error while opening encoder for output stream #1:0 - maybe incorrect parameters 
such as bit_rate, rate, width or height

***
My ffserevr config file
*
HTTPPort 8080
HTTPBindAddress 10.125.133.31
MaxClients 1000
MaxBandwidth 1000


File /tmp/feed1.ffm
FileMaxSize 1G
ACL allow localhost
ACL allow 10.125.133.31 10.125.133.66 10.125.133.151



Feed feed1.ffm
Format HLS
VideoCodec libx264
VideoFrameRate 30
VideoBitRate 128
VideoSize 704*480
AVOptionVideo hls_time 10
AVOptionVideo hls_list_size 0
AVOptionVideo flags +global_header
AudioCodec ac3
AudioBitRate 128 
AudioChannels 2
AudioSampleRate 48000

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


Re: [FFmpeg-user] ffserver config for HLS

2014-10-06 Thread ajay parashar



Hi,

Asf video streaming is working smoothly at my end  but Now I want to do HLS by 
using ffmpeg, ffserver and (VLC or iPAD) as per below order.

Step 1) execute vlc
Step 2) execute ffserver
Step 3) execute ffmpeg

I tried a lot but not getting any ffserver config file that can be used for HLS 
streaming . 

Please share working ffserver config file with me.

Thanks
Ajay

**

Please provide me working ffserver configuration file for HLS streaming.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] ffserver config for HLS

2014-10-06 Thread ajay parashar
Hi,

Asf video streaming is working smoothly at my end  but Now I want to do HLS by 
using ffmpeg, ffserver and (VLC or iPAD) as per below order.

Step 1) execute vlc
Step 2) execute ffserver
Step 3) execute ffmpeg

I tried a lot but not getting any ffserver config file that can be used for HLS 
streaming . 

Please share working ffserver config file with me.


 
Thanks
Ajay
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry

2014-09-30 Thread ajay parashar





--
On Tue 30 Sep, 2014 10:22 PM IST ajay parashar wrote:

>
>
>
>
>
>--
>On Tue 30 Sep, 2014 6:59 PM IST Claudiu Rad wrote:
>
>>
>>On 9/30/2014 4:11 PM, ajay parashar wrote:
>>> #EXTM3U
>>> #EXT-X-VERSION:3
>>> #EXT-X-MEDIA-SEQUENCE:0
>>> #EXT-X-ALLOW-CACHE:YES
>>> #EXT-X-TARGETDURATION:17
>>> #EXTINF:15.015000,
>>> out000.ts
>>> #EXTINF:8.341667,
>>> out001.ts
>>> #EXTINF:8.341667,
>>> out002.ts
>>> #EXTINF:8.341667,
>>> out003.ts
>>> #EXTINF:16.68,
>>> out004.ts


Please let me know why it is not adding last segment in its list?
Ajay

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


Re: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry

2014-09-30 Thread ajay parashar





--
On Tue 30 Sep, 2014 6:59 PM IST Claudiu Rad wrote:

>
>On 9/30/2014 4:11 PM, ajay parashar wrote:
>>> #EXTM3U
>>> #EXT-X-VERSION:3
>>> #EXT-X-MEDIA-SEQUENCE:0
>>> #EXT-X-ALLOW-CACHE:YES
>>> #EXT-X-TARGETDURATION:17
>>> #EXTINF:15.015000,
>>> out000.ts
>>> #EXTINF:8.341667,
>>> out001.ts
>>> #EXTINF:8.341667,
>>> out002.ts
>>> #EXTINF:8.341667,
>>> out003.ts
>>> #EXTINF:16.68,
>>> out004.ts
>>> 
>>> 
>> You should add "#EXT-X-ENDLIST" for a VOD hls.
>> ***
>> Should I add ENDLIST tag manually or ffmpeg should do this for user while 
>> generating playlist.m3u8 file.
>> 
>
>Actually, "#EXT-X-ENDLIST" is not added because you have specified 
>"-segment_list_flags +live" in your ffmpeg command.
>If you want to generate a live HLS stream, use +live flag and the tag will not 
>be added (like in your example), if you want to generate a VOD stream, remove 
>the flag and the tag will be added.
>
>However this won't fix the issue you are reporting that "out005.ts" isn't 
>added to the playlist and I can't help you with that, sorry.
>Just wondering: are you sure that out005.ts contains useful data?
>
>-- Claudiu
***
Yes, out005.ts contains useful data.
Ajay
__
>ffmpeg-user mailing list
>ffmpeg-user@ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry

2014-09-30 Thread ajay parashar





--
On Tue 30 Sep, 2014 5:53 PM IST Geek.Song wrote:

>2014年9月30日 下午1:15于 "ajay parashar" >写道:
>>
>> Hi,
>>
>> I am creating HLS segments and playlist file by using below command.
>> it creates total 6 segment files (out000.ts to out005.ts) but playlist
>contain entry only for first 4 , it always skips out0005.ts
>> I do not know why it does not deal with last segment file ?
>>
>> here is my playlist.m3u8 file contents
>>
>>
>==
>> #EXTM3U
>> #EXT-X-VERSION:3
>> #EXT-X-MEDIA-SEQUENCE:0
>> #EXT-X-ALLOW-CACHE:YES
>> #EXT-X-TARGETDURATION:17
>> #EXTINF:15.015000,
>> out000.ts
>> #EXTINF:8.341667,
>> out001.ts
>> #EXTINF:8.341667,
>> out002.ts
>> #EXTINF:8.341667,
>> out003.ts
>> #EXTINF:16.68,
>> out004.ts
>>
>>
>
>You should add "#EXT-X-ENDLIST" for a VOD hls.
***
Should I add ENDLIST tag manually or ffmpeg should do this for user while 
generating playlist.m3u8 file.

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

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


[FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry

2014-09-29 Thread ajay parashar
Hi,

I am creating HLS segments and playlist file by using below command.
it creates total 6 segment files (out000.ts to out005.ts) but playlist contain 
entry only for first 4 , it always skips out0005.ts
I do not know why it does not deal with last segment file ? 

here is my playlist.m3u8 file contents

==
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:17
#EXTINF:15.015000,
out000.ts
#EXTINF:8.341667,
out001.ts
#EXTINF:8.341667,
out002.ts
#EXTINF:8.341667,
out003.ts
#EXTINF:16.68,
out004.ts


==

ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=5&overrun_nonfatal=1' -map 0:v:1 
-map 0:a:0 -vcodec libx264 -acodec copy -f ssegment -hls_list_size 10 
-segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 
out%03d.ts
ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static 
--disable-stripping
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
[mpegts @ 0x1d65e40] PES packet size mismatch
Input #0, mpegts, from 
'udp://226.0.0.1:1234?fifo_size=5&overrun_nonfatal=1':
  Duration: N/A, start: 80713.733156, bitrate: 192 kb/s
  Program 1 
Stream #0:0[0x5f](???): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 192 kb/s
Stream #0:1[0x60]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:2[0x61]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 
tbc
[libx264 @ 0x1e863e0] using SAR=10/11
[libx264 @ 0x1e863e0] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x1e863e0] profile High, level 3.0
[mpegts @ 0x1e35740] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
Output #0, stream_segment,ssegment, to 'out%03d.ts':
  Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 
q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc
Metadata:
  encoder : Lavc56.1.100 libx264
Stream #0:1(???): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[stream_segment,ssegment @ 0x1e85dc0] Non-monotonous DTS in output stream 0:1; 
previous: 74880, current: 73459; changing to 74881. This may result in 
incorrect timestamps in the output file.
[mpegts @ 0x1d65e40] DTS 7264406208 < 7264407506 out of orderN/A dup=38 drop=0  
  
[mpegts @ 0x20dba60] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x21507a0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x21507a0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x21507a0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x21507a0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
frame= 1879 fps= 26 q=29.0 size=N/A time=00:01:02.76 bitrate=N/A dup=38 drop=0  
  



Regards 
Ajay
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] usage of fifo_size option while receiving udp stream hangs ffmpeg itself

2014-09-29 Thread ajay parashar





ajay parashar  ffmpeg.org> writes:

> “ffmpeg –i udp://226.0.0.1:1234 -map 0:v:1 -map 0:a:0 
> -acodec copy -f mp4 2909_3v.ts” 
> 
> My concern is that the output file 2909_3v.ts is 
> neither playable by vlc nor by ffplay.

Carl Eugen Hoyos  writes:
>>Remove "-f mp4".
  My video is MPEG4 encoded in transport stream and it is live video. I 
want to capture mpeg4 encoded data so i am using mp4 format , is ther 
anyothet format that can be use to receiving AVC codec data and will 
resolve this issue


>>As said here from time to time, I suspect FFmpeg is not 
>>the best tool to dump transport streams: I suggest you 
>>pipe the udp stream to a file and use FFmpeg later 
>>to convert the file to whatever format you need if you 
>>don't want to keep the transport stream.

As it is live video is it possible that first it dump  to file then 
simultaneously stream video data to end user ?





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


Re: [FFmpeg-user] usage of fifo_size option while receiving udp stream hangs ffmpeg itself

2014-09-29 Thread ajay parashar
Hi,


“ffmpeg –i udp://226.0.0.1:1234 -map 0:v:1 -map 0:a:0 -acodec copy -f mp4 
2909_3v.ts” 

My concern is that the output file 2909_3v.ts is neither playable by vlc nor by 
ffplay.
**
logs of ffplay as below:

 ffplay -i 2909_3v.ts 
ffplay version 2.4.1 Copyright (c) 2003-2014 the FFmpeg developers
  built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-gpl --enable-libx264 --enable-shared --disable-static 
--disable-stripping
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7faf740008c0] moov atom not found0/0   
2909_3v.ts: Invalid data found when processing input

[root@localhost media_files]#







 
Regards
Ajay
 Parashar
On Monday, 29 September 2014 1:16 PM, Carl Eugen Hoyos  wrote:
 


ajay parashar  ffmpeg.org> writes:

> so i use fifo_size option and exectuted below command 
> but while
 processing  ffmpeg hanges itself. Out of
> total 1892 frames it process 1880 frames and then hangs.

I believe this has nothing to do with fifo_size, 
it should also happen without it:
 udp input 
does not expect eof but waits for more input.

>   configuration: --enable-debug --enable-gpl 
> --enable-libx264 --enable-shared --disable-static
> --disable-optimizations --disable-mmx --disable-stripping

I am curious:
Why do you use --disable-optimizations --disable-mmx 
which produce a very slow binary?
Note that --enable-debug is the default.

Carl Eugen

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


[FFmpeg-user] usage of fifo_size option while receiving udp stream hangs ffmpeg itself

2014-09-29 Thread ajay parashar
Hi,

I need to capture UDP stream, when I executed following command 
“ffmpeg –i udp://226.0.0.1:1234 -map 0:v:1 -map 0:a:0 -acodec copy -f mp4 
2609_5v.ts” 

It says “Circular buffer overrun. To avoid, increase fifo_size URL option. To 
survive in such case, use overrun_nonfatal option”

so i use fifo_size option and exectuted below command but while processing  
ffmpeg hanges itself. Out of total 1892 frames it process 1880 frames and then 
hangs.

Pleaee find complete logs below and let me know why it hangs does not produecd 
desired output.

*
ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=49152&overrun_nonfatal=1' -map 0:v:1 
-map 0:a:0 -acodec copy -f mp4 2909_1v.ts
ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 26 2014 15:32:03 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-debug --enable-gpl --enable-libx264 --enable-shared 
--disable-static --disable-optimizations --disable-mmx --disable-stripping
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
Input #0, mpegts, from 
'udp://226.0.0.1:1234?fifo_size=49152&overrun_nonfatal=1':
  Duration: N/A, start: 2102.952156, bitrate: 192 kb/s
  Program 1 
Stream #0:0[0x44](???): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 192 kb/s
Stream #0:1[0x45]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 
tbc
[libx264 @ 0x166f450] using SAR=10/11
[libx264 @ 0x166f450] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x166f450] profile High, level 3.0
[libx264 @ 0x166f450] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 
nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 
b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 
keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x156ce40] track 1: codec frame size is not set
Output #0, mp4, to '2909_1v.ts':
  Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 
704x480 [SAR 10:11 DAR 4:3], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
Metadata:
  encoder : Lavc56.1.100 libx264
Stream #0:1(???): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 
192 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x156ce40] Non-monotonous DTS in output stream 0:1; previous: 39936, 
current: 39178; changing to 39937. This may result in incorrect timestamps in 
the output file.
[mpegts @ 0x1546710] DTS 189435918 < 189437216 out of order bitrate= 
190.7kbits/s dup=38 drop=0
^C[mpegts @ 0x1546710] PES packet size mismatch=00:01:02.80 bitrate= 
754.7kbits/s dup=38 drop=0
Last message repeated 1 times
av_interleaved_write_frame(): Immediate exit requested
frame= 1882 fps=8.9 q=-1.0 Lsize=5787kB time=00:01:02.83 bitrate= 
754.5kbits/s dup=38 drop=0
video:4354kB audio:1474kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown
[libx264 @ 0x166f450] frame I:8 Avg QP:18.79  size: 42182
[libx264 @ 0x166f450] frame P:494   Avg QP:21.39  size:  6416
[libx264 @ 0x166f450] frame B:1380  Avg QP:26.63  size:   757
[libx264 @ 0x166f450] consecutive B-frames:  0.8%  0.9% 10.4% 88.0%
[libx264 @ 0x166f450] mb I  I16..4: 19.6% 29.5% 50.9%
[libx264 @ 0x166f450] mb P  I16..4:  2.6%  2.8%  1.3%  P16..4: 36.5%  8.8%  
6.1%  0.0%  0.0%skip:41.8%
[libx264 @ 0x166f450] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 25.0%  1.5%  
0.2%  direct: 0.9%  skip:72.3%  L0:42.6% L1:50.2% BI: 7.3%
[libx264 @ 0x166f450] 8x8 transform intra:39.4% inter:62.5%
[libx264 @ 0x166f450] coded y,uvDC,uvAC intra: 52.6% 65.0% 25.6% inter: 6.0% 
9.5% 1.5%
[libx264 @ 0x166f450] i16 v,h,dc,p: 39% 29% 20% 13%
[libx264 @ 0x166f450] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 20% 37%  3%  4%  4%  
5%  3%  5%
[libx264 @ 0x166f450] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 22% 23%  4

Re: [FFmpeg-user] fifo_size usage hangs ffmpeg

2014-09-26 Thread Ajay Parashar


> ffmpeg version 2.3.3

Please test current FFmpeg git head.

I downloded latest version 2.4.1, compiled and executed also but no luck.
Still facing same issue, ffmpeg hangs with usage of fifo_size.
Please find latest logs as below:


ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=875000&overrun_nonfatal=1' -map 0:v:1 
-map 0:a:0 -acodec copy -f mp4 2609_5v.ts
ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 26 2014 15:32:03 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-debug --enable-gpl --enable-libx264 --enable-shared 
--disable-static --disable-optimizations --disable-mmx --disable-stripping
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.101 / 56.  4.101
  libavdevice56.  0.100 / 56.  0.100
  libavfilter 5.  1.100 /  5.  1.100
  libswscale  3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  0.100 / 53.  0.100
[mpegts @ 0x1da4710] PES packet size mismatch
Input #0, mpegts, from 
'udp://226.0.0.1:1234?fifo_size=875000&overrun_nonfatal=1':
  Duration: N/A, start: 34358.106822, bitrate: 192 kb/s
  Program 1
Stream #0:0[0x52](???): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 192 kb/s
Stream #0:1[0x53]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:2[0x54]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, 
smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 
tbc
[libx264 @ 0x1e13640] using SAR=10/11
[libx264 @ 0x1e13640] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x1e13640] profile High, level 3.0
[libx264 @ 0x1e13640] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 
nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 
b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 
keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x1ee4f80] track 1: codec frame size is not set
Output #0, mp4, to '2609_5v.ts':
  Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 
704x480 [SAR 10:11 DAR 4:3], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
Metadata:
  encoder : Lavc56.1.100 libx264
Stream #0:1(???): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 
192 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x1ee4f80] Non-monotonous DTS in output stream 0:1; previous: 39936, 
current: 39178; changing to 39937. This may result in incorrect timestamps in 
the output file.
[mpegts @ 0x1da4710] DTS 3092399838 < 3092401136 out of orderitrate= 
189.7kbits/s dup=38 drop=0
frame= 1872 fps= 24 q=29.0 size=5762kB time=00:01:02.54 bitrate= 
754.7kbits/s dup=38 drop=0

^C[mpegts @ 0x1da4710] PES packet size mismatch
Last message repeated 1 times
av_interleaved_write_frame(): Immediate exit requested


frame= 1882 fps= 13 q=-1.0 Lsize=5786kB time=00:01:02.83 bitrate= 
754.4kbits/s dup=38 drop=0
video:4354kB audio:1473kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown
[libx264 @ 0x1e13640] frame I:8 Avg QP:18.79  size: 42182
[libx264 @ 0x1e13640] frame P:494   Avg QP:21.39  size:  6416
[libx264 @ 0x1e13640] frame B:1380  Avg QP:26.63  size:   757
[libx264 @ 0x1e13640] consecutive B-frames:  0.8%  0.9% 10.4% 88.0%
[libx264 @ 0x1e13640] mb I  I16..4: 19.6% 29.5% 50.9%
[libx264 @ 0x1e13640] mb P  I16..4:  2.6%  2.8%  1.3%  P16..4: 36.5%  8.8%  
6.1%  0.0%  0.0%skip:41.8%
[libx264 @ 0x1e13640] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 25.0%  1.5%  
0.2%  direct: 0.9%  skip:72.3%  L0:42.6% L1:50.2% BI: 7.3%
[libx264 @ 0x1e13640] 8x8 transform intra:39.4% inter:62.5%
[libx264 @ 0x1e13640] coded y,uvDC,uvAC intra: 52.6% 65.0% 25.6% inter: 6.0% 
9.5% 1.5%
[libx264 @ 0x1e13640] i16 v,h,dc,p: 39% 29% 20% 13%
[libx264 @ 0x1e13640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 20% 37%  3%  4%  4%  
5%  3%  5%
[libx264 @ 0x1e13640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 22% 23%  4%  5%  5%  
5%  4%  4%
[libx264 @ 0x1e13640] i8c dc,h,v,p: 45% 24% 27%  4%
[libx264 @ 0x1e13640] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1e13640] ref P L0: 63.1%  8.6% 19.7%  8.6%
[libx264 @ 0x1e13640] ref B L0: 87.3% 10.2%  2.5%
[libx264 @ 0x1e13640] ref B L1: 93.4%  6.6%
[libx264 @ 0x1e13640] kb/s:579.84
Received signal 2: terminating.
[root@localhost media_files

[FFmpeg-user] fifo_size usage hangs ffmpeg

2014-09-26 Thread Ajay Parashar

I need capture a udp stream, I describe the issue with below mentioned two 
cases, please let me know how this issue can be resolved?

Regards
Ajay

===
Case1)
When I executed following command
"ffmpeg -i udp://226.0.0.1:1234 -map 0:v:1 -map 0:a:0 -acodec copy -f mp4 
2609_5v.ts"

It says "Circular buffer overrun. To avoid, increase fifo_size URL option. To 
survive in such case, use overrun_nonfatal option"
Original total  video length 64 second but it generates only 40 second video , 
good part is this 40 second is playable.

==
Case2)
Then I start using fifo_size option and executed below command
ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=875000&overrun_nonfatal=1' -map 0:v:1 
-map 0:a:0 -acodec copy -f mp4 2609_5v.ts

In this case it did not complain circular buffer overrun but after complete 
processing ffmpeg hangs itself , I waited a lot then I need to terminate this 
ffmpeg.
Output file generated by this case is not playable?
Below  are the complete  logs

ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=875000&overrun_nonfatal=1' -map 0:v:1 
-map 0:a:0 -acodec copy -f mp4 2609_5v.ts
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 15 2014 17:53:59 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-debug --enable-gpl --enable-libx264 --enable-shared 
--disable-static --disable-optimizations --disable-mmx --disable-stripping
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
[mpegts @ 0x1e21710] PES packet size mismatch
Input #0, mpegts, from 
'udp://226.0.0.1:1234?fifo_size=875000&overrun_nonfatal=1':
  Duration: N/A, start: 22597.430822, bitrate: 192 kb/s
  Program 1
Stream #0:0[0x77](???): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 192 kb/s
Stream #0:1[0x78](): Video: h264 (Main) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 
119.88 tbc
Stream #0:2[0x79](): Video: h264 (Main) ([27][0][0][0] / 0x001B), 
yuv420p(tv, smpte170m), 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k 
tbn, 59.94 tbc
[libx264 @ 0x1e902a0] using SAR=10/11
[libx264 @ 0x1e902a0] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x1e902a0] profile High, level 3.0
[libx264 @ 0x1e902a0] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 
nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 
b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 
keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x26fba70] track 1: codec frame size is not set
Output #0, mp4, to '2609_5v.ts':
  Metadata:
encoder : Lavf55.48.100
Stream #0:0(): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 
704x480 [SAR 10:11 DAR 4:3], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
Metadata:
  encoder : Lavc55.69.100 libx264
Stream #0:1(???): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 
192 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x26fba70] Non-monotonous DTS in output stream 0:1; previous: 39936, 
current: 39178; changing to 39937. This may result in incorrect timestamps in 
the output file.
[mpegts @ 0x1e21710] DTS 2033938998 < 2033940296 out of orderitrate= 
189.7kbits/s dup=38 drop=0
^C[mpegts @ 0x1e21710] PES packet size mismatch=00:01:02.54 bitrate= 
754.7kbits/s dup=38 drop=0
Last message repeated 1 times
av_interleaved_write_frame(): Immediate exit requested
frame= 1882 fps= 17 q=-1.0 Lsize=5786kB time=00:01:02.83 bitrate= 
754.4kbits/s dup=38 drop=0
video:4354kB audio:1473kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown
[libx264 @ 0x1e902a0] frame I:8 Avg QP:18.79  size: 42182
[libx264 @ 0x1e902a0] frame P:494   Avg QP:21.39  size:  6416
[libx264 @ 0x1e902a0] frame B:1380  Avg QP:26.63  size:   757
[libx264 @ 0x1e902a0] consecutive B-frames:  0.8%  0.9% 10.4% 88.0%
[libx264 @ 0x1e902a0] mb I  I16..4: 19.6% 29.5% 50.9%
[libx264 @ 0x1e902a0] mb P  I16..4:  2.6%  2.8%  1.3%  P16..4: 36.5%  8.8%  
6.1%  0.0%  0.0%skip:41.8%
[libx264 @ 

Re: [FFmpeg-user] ffserver Unknown VideoCodec: libx264

2014-09-12 Thread Ajay Parashar
Hi,

I need to provide  a suitable output format for 'udp://226.0.0.1:1234.
now i removed MOV as it does not support seeking and start using mp4 but it says
"muxer does not support non seekable output"


What output format should i provide for sending h264 codec file?
please find logs as below
*
ffmpeg -i media_files/Cars2_Video_Only.mp4 -f mp4 udp://226.0.0.1:1234
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 12 2014 12:21:59 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-debug --enable-gpl --enable-libx264
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
[h264 @ 0x36685c0] A non-intra slice in an IDR NAL unit.
[h264 @ 0x36685c0] decode_slice_header error
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'media_files/Cars2_Video_Only.mp4':
  Metadata:
major_brand : isom
minor_version   : 0
compatible_brands: mp41avc1qt
creation_time   : 2014-09-12 07:07:47
encoder : vlc 2.1.3 stream output
encoder-eng : vlc 2.1.3 stream output
  Duration: 00:01:26.25, start: 0.00, bitrate: 388 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 576x240 
[SAR 1:1 DAR 12:5], 386 kb/s, 24 fps, 24 tbr, 1000k tbn, 48 tbc (default)
Metadata:
  creation_time   : 2014-09-12 07:07:47
  handler_name: VideoHandler
[libx264 @ 0x366d340] using SAR=1/1
[libx264 @ 0x366d340] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x366d340] profile High, level 2.1
[libx264 @ 0x366d340] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 
nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 
b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 
keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x3669900] muxer does not support non seekable output
Output #0, mp4, to 'udp://226.0.0.1:1234':
  Metadata:
major_brand : isom
minor_version   : 0
compatible_brands: mp41avc1qt
encoder : Lavf55.48.100
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 
576x240 [SAR 1:1 DAR 12:5], q=-1--1, 24 fps, 24 tbn, 24 tbc (default)
Metadata:
  creation_time   : 2014-09-12 07:07:47
  handler_name: VideoHandler
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid argument



The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffserver Unknown VideoCodec: libx264

2014-09-12 Thread Ajay Parashar
Hi,

I recompiled by enabling libx264 but it is not working, i am feeding 
H264-MPEG-1AVC(part 10) (avc1) file. VLC is playing this file but ffmpeg does 
not.
please find below logs.



ffmpeg -i media_files/Cars2_Video_Only.mp4 -f mov udp://226.0.0.1:1234
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 12 2014 12:21:59 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration: --enable-debug --enable-gpl --enable-libx264
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
[h264 @ 0x1abf5c0] A non-intra slice in an IDR NAL unit.
[h264 @ 0x1abf5c0] decode_slice_header error
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'media_files/Cars2_Video_Only.mp4':
  Metadata:
major_brand : isom
minor_version   : 0
compatible_brands: mp41avc1qt
creation_time   : 2014-09-12 07:07:47
encoder : vlc 2.1.3 stream output
encoder-eng : vlc 2.1.3 stream output
  Duration: 00:01:26.25, start: 0.00, bitrate: 388 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 576x240 
[SAR 1:1 DAR 12:5], 386 kb/s, 24 fps, 24 tbr, 1000k tbn, 48 tbc (default)
Metadata:
  creation_time   : 2014-09-12 07:07:47
  handler_name: VideoHandler
[libx264 @ 0x1ac4340] using SAR=1/1
[libx264 @ 0x1ac4340] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x1ac4340] profile High, level 2.1
[libx264 @ 0x1ac4340] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 
nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 
b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 
keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mov @ 0x1ac0900] muxer does not support non seekable output
Output #0, mov, to 'udp://226.0.0.1:1234':
  Metadata:
major_brand : isom
minor_version   : 0
compatible_brands: mp41avc1qt
encoder : Lavf55.48.100
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 
576x240 [SAR 1:1 DAR 12:5], q=-1--1, 24 fps, 24 tbn, 24 tbc (default)
Metadata:
  creation_time   : 2014-09-12 07:07:47
  handler_name: VideoHandler
  encoder : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid argument


The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffserver Unknown VideoCodec: libx264

2014-09-11 Thread Ajay Parashar
Please find detail logs of ffmpeg as below:

*
ffmpeg -re -i Cars2.mp4 -f mpegts udp://226.0.0.1:1234
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep  3 2014 17:01:53 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration:
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Cars2.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
creation_time   : 1970-01-01 00:00:00
title   : 09--0125--Cars 2 - Trailer - 
http://www.archive.org/details/09--0125--cars2-Trailer
encoder : Lavf52.88.0
comment : license:http://creativecommons.org/licenses/by-nd/3.0/
  Duration: 00:01:26.46, start: 0.00, bitrate: 611 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), 
yuv420p, 576x240, 510 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
Metadata:
  creation_time   : 1970-01-01 00:00:00
  handler_name: VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 
96 kb/s (default)
Metadata:
  creation_time   : 1970-01-01 00:00:00
  handler_name: SoundHandler
Output #0, mpegts, to 'udp://226.0.0.1:1234':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
comment : license:http://creativecommons.org/licenses/by-nd/3.0/
title   : 09--0125--Cars 2 - Trailer - 
http://www.archive.org/details/09--0125--cars2-Trailer
encoder : Lavf55.48.100
Stream #0:0(eng): Video: mpeg2video, yuv420p, 576x240, q=2-31, 200 kb/s, 24 
fps, 90k tbn, 24 tbc (default)
Metadata:
  creation_time   : 1970-01-01 00:00:00
  handler_name: VideoHandler
  encoder : Lavc55.69.100 mpeg2video
Stream #0:1(eng): Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s (default)
Metadata:
  creation_time   : 1970-01-01 00:00:00
  handler_name: SoundHandler
  encoder : Lavc55.69.100 mp2
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
frame= 2075 fps= 24 q=31.0 Lsize=7782kB time=00:01:26.45 bitrate= 
737.4kbits/s
video:2797kB audio:4053kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 13.593935%
[lusr@localhost media_files]$



***
> ffserver says Unknown VideoCodec: libx264, but I assume libx264 is enabled in 
> ffmpeg.
> Please let me know how this issue can be resolved?
> logs of ffserver and ffmpeg as below:

> ffserver version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Sep  3 2014 17:01:53 with gcc 4.8.3 (GCC) 20140624 (Red Hat 
> 4.8.3-1)
>   configuration:

> ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Sep  3 2014 17:01:53 with gcc 4.8.3 (GCC) 20140624 (Red Hat 
> 4.8.3-1)
>   configuration:

I don't see --enable-libx264 anywhere in the (empty) configuation line printed 
by both ffmpeg and ffserver.


The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] ffserver Unknown VideoCodec: libx264

2014-09-11 Thread Ajay Parashar
ffserver says Unknown VideoCodec: libx264, but I assume libx264 is enabled in 
ffmpeg.
Please let me know how this issue can be resolved?
logs of ffserver and ffmpeg as below:

*
ffserver -f stream_ffmpeg_streaming.conf

ffserver version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep  3 2014 17:01:53 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration:
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
stream_ffmpeg_streaming.conf:18: Unknown VideoCodec: libx264
Error reading configuration file 'stream_ffmpeg_streaming.conf': Invalid 
argument

**
ffmpeg -re -i udp://226.0.0.1:1234 -vcodec libx264 - 
http://10.125.133.31:8080/feed1.ffm

ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep  3 2014 17:01:53 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1)
  configuration:
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100

Regards
Ajay



The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] FFmpeg feed options to ffserver

2014-09-08 Thread Ajay Parashar

Yes FFmpeg can feed static file to ffserver.

Is it possible that FFmpeg will listen multicast data packets from VLC and 
simultaneously feed these packets to ffserver?

Regards
Ajay



The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] can ffmpeg stream out http video ?

2014-09-08 Thread Ajay Parashar

My expectation is that ffmpeg should start streaming the data.
On other end if I send request from vlc or ffplay then this player should play 
the streaming data.

Regards
Ajay


-Original Message-
From: ffmpeg-user-boun...@ffmpeg.org [mailto:ffmpeg-user-boun...@ffmpeg.org] On 
Behalf Of Tom Evans
Sent: Thursday, September 04, 2014 10:03 PM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] can ffmpeg stream out http video ?

On Thu, Sep 4, 2014 at 8:49 AM, Ajay Parashar  
wrote:
>
> FFmpeg can stream output  with tcp and udp protocol.
> I want to know  can ffmpeg stream out video by using http ?
> I execute this command
> ffmpeg -i my_file.mp4 -f mpegts http://10.125.133.31:8080
>
> and it gives below error
>
> [tcp @ 0x2fe6120] Connection to tcp://10.125.133.31:8080 failed:
> Connection refused
> http://10.125.133.31:8080: Input/output error
>

What do you expect that to do?

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

The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] can ffmpeg stream out http video ?

2014-09-04 Thread Ajay Parashar

FFmpeg can stream output  with tcp and udp protocol.
I want to know  can ffmpeg stream out video by using http ?
I execute this command
ffmpeg -i my_file.mp4 -f mpegts http://10.125.133.31:8080

and it gives below error

[tcp @ 0x2fe6120] Connection to tcp://10.125.133.31:8080 failed: Connection 
refused
http://10.125.133.31:8080: Input/output error

***
PS: I do not want to use ffserver
**

Regards
Ajay



The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] udp_resolve_host: Name or service not known

2014-09-02 Thread Ajay Parashar
Thanks Moritz,
It was typo, I tried with 226.0.0.1 and it is working.

Regards
Ajay

-Original Message-
From: ffmpeg-user-boun...@ffmpeg.org [mailto:ffmpeg-user-boun...@ffmpeg.org] On 
Behalf Of Moritz Barsnick
Sent: Tuesday, September 02, 2014 12:57 PM
To: FFmpeg user discussions
Subject: Re: [FFmpeg-user] udp_resolve_host: Name or service not known

On Tue, Sep 02, 2014 at 12:31:45 +0530, Ajay Parashar wrote:
> But ffmpeg sends  below error
> udp_resolve_host: Name or service not known
> udp://226.0.0.0.1:1234: Input/output error

How did you check that that host is actually available?

A little hint: It probably can't be, because 226.0.0.0.1 is not a valid IP 
address (nor FQDN).

Please choose the correct IP address for your host.

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

The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] udp_resolve_host: Name or service not known

2014-09-02 Thread Ajay Parashar
Hi,

I am executing ffmpeg version 2.3.3 on Linux fedora 20 flavor and  want to 
receive udp data by executing below command.
ffmpeg -i udp://226.0.0.0.1:1234 -f mpegts /home/lusr/gogo/my_file.mp4

But ffmpeg sends  below error
udp_resolve_host: Name or service not known
udp://226.0.0.0.1:1234: Input/output error

Please let me know how this issue can be resolved.

Regards
Ajay



The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, please 
immediately alert the sender by reply e-mail and then delete this message. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. R Systems has 
taken every reasonable precaution to minimize the risk, but is not liable for 
any damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user