[FFmpeg-user] Extract raw video buffer from HLS

2018-05-24 Thread m.kamalasubha m.kamalasubha
Hello Guys,
How to extract raw video buffer in RGB pixel format from HLS stream using
FFmpeg?
Sample input stream: https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8

Thanks,
Kamalasubha M
___
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] FFplay fails to play the initial few seconds of raw buffer

2018-05-23 Thread m.kamalasubha m.kamalasubha
On Wed, May 23, 2018 at 5:56 PM Carl Eugen Hoyos <ceffm...@gmail.com> wrote:

> 2018-05-22 14:10 GMT+02:00, m.kamalasubha m.kamalasubha
> <m.kamalasu...@gmail.com>:
>
> > *ffplay -video_size 640X360 -framerate 29.97 -pixel_format rgb24
> > -f rawvideo video.raw*
>
> > Complete, uncut console output missing.
>

* Output screen:*
 [rawvideo @ 0x7fc6340008c0] Estimating duration from bitrate, this may be
inaccurate
 Input #0, rawvideo, from 'video.raw':
 Duration: 00:00:30.03, start: 0.00, bitrate: 165722 kb/s
 Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 640x360,
165722 kb/s, 29.97 tbr, 29.97 tbn, 29.97 tbc
 4.76 M-V: -0.033 fd=   1 aq=0KB vq=15527KB sq=0B f=0/0


>
> > While playing a raw file, I could see that for initial 1 or 2 seconds,
> > frame stalls and for remaining seconds, it plays normally.
>
> > What happens if you quit ffplay after a few seconds and immediately
> > try to play the same file again?
>

   I tried. But, it doesn't help.
___
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] FFplay fails to play the initial few seconds of raw buffer

2018-05-23 Thread m.kamalasubha m.kamalasubha
Hello Guys,
May I know why it happens while fetching raw video buffer from the .m3u8
file?
___
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] FFplay fails to play the initial few seconds of raw buffer

2018-05-22 Thread m.kamalasubha m.kamalasubha
Hello all,
I am trying to generate a video raw buffer from the .m3u8 file.
I have used the following commands to generate the raw buffer as well as to
view the raw buffer,
To generate raw buffer,
*ffmpeg -ss 00:00:05 -i https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8
 -s 640X360 -t 00:00:30
-map 0:0 -vcodec rawvideo -pix_fmt rgb24 -f rawvideo -an video.raw*
To view the generated one,
*ffplay -video_size 640X360 -framerate 29.97 -pixel_format rgb24 -f
rawvideo video.raw*

While playing a raw file, I could see that for initial 1 or 2 seconds,
frame stalls and for remaining seconds, it plays normally.

Why does it happen?  How to resolve the issue?

Thanks,
Kamalasubha
___
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] Get a duration of HLS Live stream using FFmpeg

2018-05-10 Thread m.kamalasubha m.kamalasubha
Hello all,
How to get a duration of the HLS Live stream which doesn't
have  #EXT-X-ENDLIST token using FFmpeg?
Thanks in advance...
___
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] Not able to open URL using avformat_open_input

2018-05-10 Thread m.kamalasubha m.kamalasubha
Thanks Moritz.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Not able to open URL using avformat_open_input

2018-05-06 Thread m.kamalasubha m.kamalasubha
 Hello all,
I tried to open URL using avformat_open_input API function.
Initially, I got a warning like,

*Using network protocols without global network initialization. Please use
avformat_network_init(), this will become mandatory later.*

After initializing avformat_network_init(), I am getting a negative return
value for avformat_open_input() function call.

*INPUT URL:* https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8

Can anyone please help me to find the issue?

Regards,
Kamalasubha M
___
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] How to download the ts files from .m3u8 playlist

2018-04-30 Thread m.kamalasubha m.kamalasubha
Hello Moritz,
Thanks for the reply.
I tried the above command line. It works.
But the requirement is to have individual raw files for every individual ts
file.
Is there any way to generate raw file for every ts file?
___
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] How to download the ts files from .m3u8 playlist

2018-04-27 Thread m.kamalasubha m.kamalasubha
Hello Moritz,
Thanks for the reply.

Basically, I want to extract the audio and video raw files from the ts
segments of the playlist file. Is it possible to generate the raw files
from the individual TS segments using FFmpeg?

On Fri, Apr 27, 2018 at 7:16 PM Moritz Barsnick <barsn...@gmx.net> wrote:

> On Fri, Apr 27, 2018 at 18:54:40 +0530, m.kamalasubha m.kamalasubha wrote:
> > Is there any way to download the individual ts files from the .m3u8
> > playlist file https://mnmedias.api.telequebec.tv/m3u8/29880.m3u8 of
> > specific bitrate using FFmpeg?
>
> No, ffmpeg always demuxes and remuxes a stream.
>
> What you can do is to use youtube-dl to download and reassemble the
> segments. You need to use options like "--hls-prefer-native" and
> especially "--fixup never". (This probably only works correctly with
> MPEG-TS HLS, I don't have experience with MPEG4 HLS.) Note that
> youtube-dl will name the file ".mp4", even if it is MPEG-TS.
>
> Two additional remarks:
> - Your given URL doesn't hold .ts segments, it is rather a "playlist"
>   of further .m3u8 URLs. (youtube-dl can handle that, too.)
>   Like:
>
> https://s2.content.video.llnw.net/smedia/42f4e71183054396907c0dea18241568/Ks/l56Xl_JnkEU-hQoz9-AHS5lrBjICWHZV0dybQSN3w/francstireurs_entrevue_ep472_seq24.mpegts/playlist-933ef269e85350d026f5e55af66a76a52737ff48.m3u8
>
> - The (final) m3u8 is actually a list of .ts segments. You could
>   download them yourself, and simply concatentate them in the correct
>   order. That said, youtube-dl does a very much better job of this,
>   no reason to reinvent the wheel, unless you need to work on an
>   embedded platform (which may be too weak for youtube-dl). youtube-dl
>   also handles decryption, IIUC, something not easily done manually.
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
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] FPS mismatches after extracting video stream from avi file

2018-03-05 Thread m.kamalasubha m.kamalasubha
Hello all,
I was trying to extract video stream from an avi file using the command,

ffmpeg -i  -an -vcodec copy 

*Input AVI file details:*
 Duration: 00:04:58.21, start: 0.00, bitrate: 1312 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720, 1054 kb/s, *24 fps*, 24 tbr, 90k tbn, 48 tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 253 kb/s (default)
Metadata:
  handler_name: SoundHandler

*Output AVI file details:*
  Duration: 00:04:58.08, start: 0.00, bitrate: 1063 kb/s
Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720,
1054 kb/s, *48 fps*, 24 tbr, 48 tbn, 48 tbc

Why FPS differs between input and output avi ?
___
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] FFmpeg dumps audio raw data of more size than expected

2018-01-29 Thread m.kamalasubha m.kamalasubha
Hello all,
I need to generate audio raw buffer for some 30 seconds from a clip whose
sample rate is 44100 Hz. I used the following FFmpeg command to dump the
raw data.
  ffmpeg -i  -ss 00:00:00  -t 00:00:30 -f s16le -acodec pcm_s16le
-ac 1 -ar 44100 audi.raw

Expected audio raw file size : 44100 * 2 * 30 = 2646000
Actual audio raw file size : 2646176

I am wondering from where that extra 176 bytes arrive for 30 secs samples
with sample rate 44100 Hz and sample size 2 bytes respectively.

Kindly help on those lines.

Thanks,
Shalini
___
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] huffman table decode error with FFmpeg

2018-01-22 Thread m.kamalasubha m.kamalasubha
Hello all,
I am able to build FFmpeg older versions using Visual Studio 12 2013 in
windows 8.1 and integrated those set of generated libs with the sample
application which calls *FFmpeg API* functions.
When "*avcodec_decode_video2()*" function call is executed, I am getting
following error
*[mjpeg @ 00FC02AB1900] huffman table decode error*
Can someone please help me to find why above error is thrown?

Thanks,
Kamal
___
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] Raw file generation takes more time with FFmpeg libraries

2018-01-15 Thread m.kamalasubha m.kamalasubha
Hello all,
  I used the following link to install ffmpeg 3.3 version in windows,
https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC
I am able to generate a raw file using the command and it takes less than a
second in window,
*ffmpeg.exe -ss  -i  -t  -vcodec rawvideo
-pix_fmt rgb24 -f rawvideo -an *
I just renamed the main function in ffmpeg.c with the user defined name and
called  that function from another user defined function (from my own
code).
After linking the ffmpeg libraries with my own code, I am able to generate
the raw file but it takes more time.
I am little confused here. Why it takes more time? Am I missing anything
while linking the libraries ?
___
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] Build FFmpeg libraries in Windows

2017-12-01 Thread m.kamalasubha m.kamalasubha
Thanks Moritz..

>An particular reason for not choosing something newer?
 FFmpeg 3.3 version is required for my work.

>A patch to change this was posted to the ffmpeg-devel mailing list
>recently:
>http://ffmpeg.org/pipermail/ffmpeg-devel/2017-September/216916.html
>
>but it was not accepted, because it may break existing workflows.

How to use the patch ? Is there any steps available ?
___
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] Build FFmpeg libraries in Windows

2017-11-30 Thread m.kamalasubha m.kamalasubha
Hello,
  I am trying to build static libraries (.lib) for FFmpeg 3.3 version in
Windows 10.
I followed the steps outlined in the link given below,
https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC
and used Visual Studio 2015 version.
In order to generate static libs, I changed the configure options from
"--enable-shared --disable-static" to "--enable-static --disable-shared".
But, it always generates libraries in ".a" format.
How to generate static libraries in ".lib" format?

Thanks in advance ...
___
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] Start offset changes in ts file

2017-10-03 Thread m.kamalasubha m.kamalasubha
Hello guys,
I converted a video file from MP4 format to TS format using the
following ffmpeg command.
   * ffmpeg -i  -c copy -bsf h264_mp4toannexb *
=> simply copies the A/V data from .mp4 to .ts

Simple copy operation from .mp4 -> .ts introduces *"start: 1.441667" in
* whereas  contains "start: 0.00".

 I find this extra 1.4 seconds getting added to start metadata in all
.ts files generated using ffmpeg command. My questions are
1) Why is it added ?
2) How to retain  "start: 0.00" in  ?

Thanks in advance.
___
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] Start offset changes with ts file

2017-10-03 Thread m.kamalasubha m.kamalasubha
Hello guys,
I converted a video file from MP4 format to TS format using the
following ffmpeg command.
   * ffmpeg -i  -c copy -bsf h264_mp4toannexb *
=> simply copies the A/V data from .mp4 to .ts

Simple copy operation from .mp4 -> .ts introduces *"start: 1.441667" in
* whereas  contains "start: 0.00".

 I find this extra 1.4 seconds getting added to start metadata in all
.ts files generated using ffmpeg command. My questions are
1) Why is it added ?
2) How to retain  "start: 0.00" in  ?

Thanks in advance.
___
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] Raw files differs

2017-09-18 Thread m.kamalasubha m.kamalasubha
Can you please provide a command to change the start offset of the video?
___
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] Raw files differs

2017-09-17 Thread m.kamalasubha m.kamalasubha
Hello guys,
  I converted a video file from MP4 format to TS format using the following
ffmpeg command.
   * ffmpeg -i  -c copy -bsf h264_mp4toannexb *
=> simply copies the A/V data from .mp4 to .ts

  I used the below command to fetch raw video data  for first 30 seconds
from both input.mp4 and output.ts
   * ffmpeg -ss 00:00:00 -i  -t 00:00:30 -vcodec rawvideo
-pix_fmt rgb24 -f rawvideo -an *

*ffmpeg -ss 00:00:00 -i  -t 00:00:30 -vcodec rawvideo
-pix_fmt rgb24 -f rawvideo -an *

  I expect the raw video data to be same between both  and
 since  is generated using simple stream copy from
. But I find that * and 
differs* (though both file size being same) and that first few frames were
found missing in  when compared with .

Can you please explain why raw files differs?
___
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] Usage of -f mpegts option

2017-09-17 Thread m.kamalasubha m.kamalasubha
Thanks for your response. I am able to generate mp4 file without using *-f
mpegts* option.
___
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] Usage of -f mpegts option

2017-09-15 Thread m.kamalasubha m.kamalasubha
Hello
Can you please explain in detail about auto detection with example?

Sent from my iPhone

> On 15-Sep-2017, at 9:58 PM, Carl Eugen Hoyos <ceffm...@gmail.com> wrote:
> 
> 2017-09-15 17:36 GMT+02:00 m.kamalasubha m.kamalasubha
> <m.kamalasu...@gmail.com>:
>> Hello Guys,
>> I am able to generate output file in mp4 format taking input in ts format
>> using the below command.
>> * ffmpeg -f mpegts -i  *
> 
> It should not be necessary to force the format of the input file "input.ts" 
> with
> "-f mpegts", FFmpeg is supposed to auto-detect.
> If auto-detection does not work for your sample, please provide it!
> 
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Usage of -f mpegts option

2017-09-15 Thread m.kamalasubha m.kamalasubha
Hello Guys,
I am able to generate output file in mp4 format taking input in ts format
using the below command.
 * ffmpeg -f mpegts -i  *

Can you please explain in detail what *-f mpegts* option does internally to
do the conversion ?
___
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".