Re: [FFmpeg-user] mpegts metadata not set

2018-06-27 Thread Carl Eugen Hoyos
2018-06-27 16:28 GMT+02:00, Christian Knoefel | Ilm-Provider
:

> ffmpeg -re -i rtmp://live.net/rtmp/live -vcodec mpeg2video -s 720x576 -r
> 25 -flags cgop+ilme -sc_threshold 10 -b:v 5M -minrate:v 5M
> -maxrate:v 5M -bufsize:v 3.5M -acodec mp2 -ac 2 -b:a 192k -metadata
> "service_provider=Some Provider" -metadata "service_name=Some Channel
> Name" -f rtp_mpegts rtp://127.0.0.1:5000?pkt_size=1316

Complete, uncut console output missing.

This seems to be a limitation / bug in the rtp_mpegts muxer.

I don't think there is more than one way to put title and provider
into mpegts.

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

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

Re: [FFmpeg-user] mpegts metadata not set

2018-06-27 Thread Zak

On 2018-06-27 at 10:28 AM EDT, Christian Knoefel | Ilm-Provider wrote:

Hello,


i will remux an ts:

ffmpeg -re -i rtmp://live.net/rtmp/live -vcodec mpeg2video -s 720x576 -r 
25 -flags cgop+ilme -sc_threshold 10 -b:v 5M -minrate:v 5M 
-maxrate:v 5M -bufsize:v 3.5M -acodec mp2 -ac 2 -b:a 192k -metadata 
"service_provider=Some Provider" -metadata "service_name=Some Channel 
Name" -f rtp_mpegts rtp://127.0.0.1:5000?pkt_size=1316


Stream mapping:
   Stream #0:1 -> #0:0 (h264 (native) -> mpeg2video (native))
   Stream #0:0 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
Output #0, rtp_mpegts, to 'rtp://127.0.0.1:5000?pkt_size=1316':
   Metadata:
     service_provider: Some Provider
     service_name    : Some Channel Name
     encoder : Lavf58.17.100
     Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 
DAR 16:9], q=2-31, 5000 kb/s, 25 fps, 90k tbn, 25 tbc

     Metadata:
   encoder : Lavc58.20.103 mpeg2video
     Side data:
   cpb: bitrate max/min/avg: 500/500/500 buffer size: 
350 vbv_delay: -1

     Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
     Metadata:
   encoder : Lavc58.20.103 mp2


wit ffplay looks like this:

Input #0, rtp, from 'rtp://127.0.0.1:5000':   0KB sq=    0B f=0/0
   Duration: N/A, start: 91.443144, bitrate: 5192 kb/s
   Program 1
     Metadata:
   service_name    : Service01
   service_provider: FFmpeg
     Stream #0:1: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, bottom first), 720x576 [SAR 64:45 DAR 16:9], 5000 kb/s, 25 
fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:0: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 
s16p, 192 kb/s


Why metadate are not set?

it is the newest 64bit windows build...


thanks for your suggestion...

Christian


Hello Christian,

I suspect the root problem is this:

1. When FFmpeg (the first call, for transcoding/remuxing), when FFmpeg 
creates the MPEG TS, where is it putting the "metadata"? The MPEG 
transport stream protocol is SUPER old, I would be surprised if there 
were less than a dozen ways to store metadata.


2. When FFplay tries to play back the MPEG TS stream, where is it 
reading the metadata? Quite likely not the same place. I have no idea.


Here are some suggestions:

1. Consider what application you actually want to use for playback, 
because they will support different types of metadata. VLC, for example, 
supports VERY LITTLE metadata, which annoys me at times. Even if VLC 
reads the format for the metadata, it will never show you certain keys, 
it only shows you a few of the keys. For instance, "Get Info" on VLC 
usually shows a key "Year" for streaming video, but I know the video has 
"original air date" (year, month, and day), "copyright date", and 
possibly other things. And then "Year" is "2018", and that's just not 
right. That was the encoding year, probably. FFprobe can actually be 
helpful determining what is going on with things like this if you have 
no idea (because I have no idea how metadata is stored in MPEG transport 
streams).


2. MAYBE try putting the -metadata arguments after the "-f rtp_mpegts" 
argument. Sometimes (often) the order of arguments matters in FFmpeg. I 
have no idea if that is the case here. Maybe it "processed" -metadata 
early, when it thought you were going to use a MKV file as the output, 
and it got that metadata all ready for a MKV file. Then it saw "-f 
rtp_mpegts" and it threw away the things that go in MKV but not in MPEG 
TS, and then re-generated some metadata for MPEG TS. This is a wild 
guess, I would try it. The order of arguments mostly matters when the 
arguments apply to specific streams (like audio versus video versus the 
audio commentary). You can specify streams with (colon)(digit), such as 
-c:v:2, but some arguments do not support that syntax (as far as I 
know), so you need to put the argument in the group with that whole 
stream, and the location tells it to go with "2".


3. Before somebody else asks, you might want to include the whole uncut 
console output, including the "banner" printed by FFmpeg and FFplay that 
says the configuration options when it was compiled, and so on. I 
suspect it is not going to be hugely relevant, but you never know. You 
did say it is the latest Windows build, but these Mailman archives will 
be around for a long time, and what if you think you are using the 
latest build because you installed it, but at the hour of typing the 
command, your PATH variable decided to use an older version of FFmpeg 
that was lying around somewhere on your hard drive? (There is a nice 
xkcd comic about having tons of versions of the Python interpreter on 
one machine, because computers get messy.)


Good luck,

Zak

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

Re: [FFmpeg-user] nasm/yasm not found or too old. Use --disable-x86asm for a crippled build. error message

2018-06-27 Thread Dennis Mungai
Neither nasm nor yasm could be found on your platform.

Install either (i'd recommend nasm) and retry.

On 27 June 2018 at 19:03, robert warren zugates  wrote:

> enclosed is the log from the latest ffmpeg 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 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] mpegts metadata not set

2018-06-27 Thread Christian Knoefel | Ilm-Provider

Hello,


i will remux an ts:

ffmpeg -re -i rtmp://live.net/rtmp/live -vcodec mpeg2video -s 720x576 -r 
25 -flags cgop+ilme -sc_threshold 10 -b:v 5M -minrate:v 5M 
-maxrate:v 5M -bufsize:v 3.5M -acodec mp2 -ac 2 -b:a 192k -metadata 
"service_provider=Some Provider" -metadata "service_name=Some Channel 
Name" -f rtp_mpegts rtp://127.0.0.1:5000?pkt_size=1316


Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> mpeg2video (native))
  Stream #0:0 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
Output #0, rtp_mpegts, to 'rtp://127.0.0.1:5000?pkt_size=1316':
  Metadata:
    service_provider: Some Provider
    service_name    : Some Channel Name
    encoder : Lavf58.17.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 
DAR 16:9], q=2-31, 5000 kb/s, 25 fps, 90k tbn, 25 tbc

    Metadata:
  encoder : Lavc58.20.103 mpeg2video
    Side data:
  cpb: bitrate max/min/avg: 500/500/500 buffer size: 
350 vbv_delay: -1

    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Metadata:
  encoder : Lavc58.20.103 mp2


wit ffplay looks like this:

Input #0, rtp, from 'rtp://127.0.0.1:5000':   0KB sq=    0B f=0/0
  Duration: N/A, start: 91.443144, bitrate: 5192 kb/s
  Program 1
    Metadata:
  service_name    : Service01
  service_provider: FFmpeg
    Stream #0:1: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, bottom first), 720x576 [SAR 64:45 DAR 16:9], 5000 kb/s, 25 
fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:0: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 
s16p, 192 kb/s


Why metadate are not set?

it is the newest 64bit windows build...


thanks for your suggestion...

Christian


___
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] Can't copy ripped DVD stream due to timestamp issues

2018-06-27 Thread Alex
I'm trying to concatenate several VOB files that I ripped from a DVD I
bought, but FFMPEG refuses to do stream copying on them, even without
concatenation.

The basic command I'm trying, with output, is:

> ffmpeg -y -i VTS_01_1.VOB -c copy VTS_01_1.mkv
ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.1.1 (GCC) 20180531
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-avresample --enable-fontconfig
--enable-gmp --enable-gnutls --enable-gpl --enable-ladspa
--enable-libass --enable-libbluray --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libmodplug --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libv4l2 --enable-libvidstab --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvenc
--enable-omx --enable-shared --enable-version3
  libavutil  56. 14.100 / 56. 14.100
  libavcodec 58. 18.100 / 58. 18.100
  libavformat58. 12.100 / 58. 12.100
  libavdevice58.  3.100 / 58.  3.100
  libavfilter 7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc55.  1.100 / 55.  1.100
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:05:05.91, start: 0.280633, bitrate: 28072 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top
first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn,
59.94 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Output #0, matroska, to 'VTS_01_1.mkv':
  Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: mpeg2video (Main) (mpg2 / 0x3267706D),
yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], q=2-31, 29.97 fps,
29.97 tbr, 1k tbn, 90k tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo,
fltp, 256 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x55970f3fddc0] Timestamps are unset in a packet for
stream 0. This is deprecated and will stop working in the future. Fix
your code to set the timestamps properly
[matroska @ 0x55970f3fddc0] Non-monotonous DTS in output stream 0:0;
previous: 63564, current: 63533; changing to 63564. This may result in
incorrect timestamps in the output file.
[matroska @ 0x55970f3fddc0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 0x55970f3fddc0] Can't write packet with unknown timestamp
Error writing trailer of VTS_01_1.mkv: Invalid argument
frame= 1914 fps=0.0 q=-1.0 Lsize=   42043kB time=00:01:03.73
bitrate=5404.0kbits/s speed= 220x
video:40043kB audio:1987kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.032562%
Conversion failed!

I did some searching around on how to nuke the timestamps from orbit,
but I can't find how to really do it. I've tried combinations of `-r
29.97`, `-vsync drop`, and `-fflags +genpts`:

> ffmpeg -y -r 29.97 -vsync drop -fflags +genpts -i VTS_01_1.VOB -c copy 
> VTS_01_1.mkv
ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.1.1 (GCC) 20180531
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-avresample --enable-fontconfig
--enable-gmp --enable-gnutls --enable-gpl --enable-ladspa
--enable-libass --enable-libbluray --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libmodplug --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libv4l2 --enable-libvidstab --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvenc
--enable-omx --enable-shared --enable-version3
  libavutil  56. 14.100 / 56. 14.100
  libavcodec 58. 18.100 / 58. 18.100
  libavformat58. 12.100 / 58. 12.100
  libavdevice58.  3.100 / 58.  3.100
  libavfilter 7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc55.  1.100 / 55.  1.100
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:05:05.91, start: 0.280633, bitrate: 28072 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top
first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn,
59.94 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Output #0, matroska, to '

[FFmpeg-user] hevc conversion tojpg using ffmpeg

2018-06-27 Thread Ketan Pratap Chauhan
Hi,



I was working on heif fles, I need a solution for a problem given below:


Using MP4Box:

MP4Box -info IMG_5915.HEIC

I get:

prof colour profile not supported

prof colour profile not supported

Root Meta type: "pict" - 52 resource item(s)

Primary Item - ID 49

Item #1 - ID 1 - Name:
.

.

.

Item #49 - ID 49 - Name:

Item #50 - ID 50 - Name: Item #51 - ID 51 - Name:

File has no movie (moov) - static data container

Then if I extract all of these:

for i in seq 51; do MP4Box -dump-item $i:path=item$i.hevc IMG_5915.HEIC; done

Then if i continue, and convert these tiles to jpeg with ffmpeg it convert one 
tile to jpeg i.e it creates 51 HEVC tiles.

ffmpeg -i item1.hevc -frames:v 1 -vsync vfr -q:v 1 -an image1.jpg



The above command convert a single tile to a jpg, how can I combine these 51 
tiles into a single a jpg file?




Thanks & Regards,

Ketan Chauhan

Software Engineer(R&D)

Stellar Information Technology Pvt. Ltd



The information contained in this e-mail, including any attachments to it, is 
confidential and intended only for the person(s) to whom it is addressed. Any 
examination, distribution, disclosure, printing, or copying of this 
information, or reliance upon this information by any person other than the 
intended recipient(s) is strictly prohibited. If this e-mail has been 
misdirected and you are not the intended recipient, please notify the sender 
immediately and delete this e-mail from your system. The views and opinions 
contained in this transmission represent those of the author and do not 
necessarily reflect those of Stellar Information Technology Private Limited. 
Stellar Information Technology Private Limited may monitor incoming and 
outgoing e-mails. By replying to this message, you consent to this monitoring. 
This e-mail has been scanned by antivirus prior to transmission. However, 
recipients are advised to apply their own antivirus detection measures to this 
e-mail and any attachments upon receipt. Stellar Information Technology Private 
Limited does not accept liability for any damage or losses arising as a result 
of receiving this e-mail.
___
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] fMP4 generation speed

2018-06-27 Thread Ronak


> On Jun 27, 2018, at 1:50 AM, Carl Zwanzig  wrote:
> 
> On 6/26/2018 9:20 PM, Ronak wrote:
>> The temp files are made in the CWD. And they are constantly created and
>> destroyed for every single fragment it seems. I looked into the ffmpeg
>> code and it looks like every single method in hlsenc and dashenc opens
>> and closes these file handles.
>> I would like to make modifications to the code to fix it, but it's hard
>> to follow exactly which methods to modify.
> First thing I'd look at doing is to create the temp files in /tmp (*nix) or 
> /temp (windoze); just that and a memory file system for /tmp would do wonders 
> for throughput. Admittedly, it's not a real solution.
> 
> Past that, I suspect that any other change to use memory buffers instead of 
> files will be a more structural change. If I have a chance, I'll look at the 
> code tomorrow.
> 
> (z wonders why the code's author thought this was a good idea...)
> 
> Later,
> 
> z!

Ok great thanks Carl!


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

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

Re: [FFmpeg-user] bitmap-subtitle in stream

2018-06-27 Thread Thomas Schmiedl

Am 26.06.2018 um 22:44 schrieb Carl Eugen Hoyos:

2018-06-26 19:57 GMT+02:00, Thomas Schmiedl :


For a test, I exported a bitmap-subtitle in "Subtitle Edit" and run this
ffmpeg (git-version) command:

ffmpeg -i
http://62.113.210.250/medienasa-live/_definst_/mp4:punktum_high/playlist.m3u8
-i sub.idx -i sub.sub -map 0:v -map 0:a -c copy -map 1 -c:s:1
dvd_subtitle -metadata:s:s:1 language=eng -movflags
frag_keyframe+empty_moov -bsf:a aac_adtstoasc -f mp4 -listen 1
http://192.168.178.22:1234

The output from http://192.168.178.22:1234 was served via
Gerbera-mediaserver to a Panasonic-TV. The TV could not display the
video and ffmpeg exited with "broken pipe".


Does it work without subtitles?
No, it doesn't work. The main problem is still the listen mode. I 
contacted Panasonic-support for help. Maybe you could test listen mode 
on your TV device.


I don't think dvdsub in mov is widely supported, test dvbsub in
mpegts (but note that the mpegts muxer has known issues, only
test one video and at most one audio stream for a start).
It also doesn't work, because of the listen mode. How to generate dvbsub 
from text or image?


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

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


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

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

Re: [FFmpeg-user] ff_frame_thread_encoder_init failed when run via PHP exec

2018-06-27 Thread Robert Wilkin
Ah, sorry.

ulimit -a from terminal:
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 5
file size   (blocks, -f) unlimited
pending signals (-i) 120594
max locked memory   (kbytes, -l) 64
max memory size (kbytes, -m) 262144
open files  (-n) 1024
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 100
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited

ulimit -a from PHP:
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 20
file size   (blocks, -f) unlimited
pending signals (-i) 120594
max locked memory   (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files  (-n) 16384
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) 150
max user processes  (-u) 60
virtual memory  (kbytes, -v) 976562
file locks  (-x) unlimited


From: ffmpeg-user  on behalf of Andr? H?nsel 

Sent: Wednesday, 27 June 2018 3:22 PM
To: 'FFmpeg user questions'
Subject: Re: [FFmpeg-user] ff_frame_thread_encoder_init failed when run via PHP 
exec

> I ran ffmpeg with ulimit -a but it comes back with unrecognized option 'a'

Not ffmpeg, just "ulimit -a". It will show you the current resource limits that 
are set in that environment. PHP might set some and then you will see it in the 
output.

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