Re: [FFmpeg-user] ffmpeg command required to convert MPEG TS to HLS with transcoding to aac

2022-12-10 Thread Robin van der Linden via ffmpeg-user
ck.


Your master.m3u8 which will later on reference the other master.m3u8 
files generated by ffmpeg should look like this:

___
#EXTM3U
#EXT-X-VERSION:7
#EXT-X-PLAYLIST-TYPE VOD

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="a-1",NAME="English 
(5.1)",CHANNELS=6,AUTOSELECT="YES",DEFAULT="NO",LANGUAGE="en",URI="a-aac-en-mp4a.40.2_384000/master.m3u8"


#EXT-X-STREAM-INF:BANDWIDTH=11956736,RESOLUTION=3840x2160,CODECS="avc1.640033,mp4a.40.2",AUDIO="a-1"
v-h264-2160p-avc1.640033/master.m3u8
___

There are many other parameters you can set here. This is very basic. If 
you have HDR content for example you will also need to announce this in 
your master.m3u8 file, and also use codecs which support 10 Bit/HDR like 
HEVC or AV1 (SVT-AV1). Second you also have to think about the way of 
transportation here, HEVC and AV1 will only work with fmp4 (.m4s) 
segments, not with mpegts segments (.ts).


I can only recommend reading through the whole HLS documentation 
published by Apple: 
https://developer.apple.com/documentation/http_live_streaming/understanding_the_http_live_streaming_architecture 
It will give you a very good understanding about compatibility along 
different devices, codecs, and ways of delivering your content.


Without going too much into detail, all encoding commands I showed above 
will create independent segments, meaning your video gets split into 
many thousand files. It's questionable if this is the way you wanted to 
go. It's also possible to have single files for each of your output 
tracks. But then the delivery only works using byte-range requests which 
your webserver must also support and which again are not compatible with 
XHR authentication requests by common browsers. Just in case you want to 
protect your segment pulling outside of CORS validation. So there is a 
lot of stuff you have to experiment yourself with. Professional HLS 
authoring and delivery is really not an easy task.



Third, Build stuff yourself, espacially when building such a complex app 
like yours. Build ffmpeg from scratch, build nginx or even better use 
OpenResty and build it from scratch, build a performantd FUSE Filesystem 
for mounting your S3 buckets etc. It really pay off in the end. Going 
with half baked solutions you haven't written yourself will get you 
stuck at at a specific point, I'm pretty sure onto that.



Kind regards,

Robin

Am 2022-12-11 00:01, schrieb Robin van der Linden via ffmpeg-user:

I give you a detailed answer in the next 24 Hrs. I currently dont have
Access to my system and code 

Cheers,

Robin


Von: Mahesh Velankar 
Gesendet: Samstag, 10. Dezember 2022 22:38
An: ffmpeg-user@ffmpeg.org
Betreff: Re: [FFmpeg-user] ffmpeg command required to convert MPEG TS
to HLS with transcoding to aac

Robin,

This is not for a single video, I have to keep the application ready
that will be receiving different input TS and the app will need to
prepare the playlists,  segments and master playlist.

I am  aware that I need to write script/app for this.

Please tell me the command line to prepare individual playlists and
segmentsand I will be able to write the master playlist
myself.

Thanks in advance for your help

-Mahesh

---

Robin wrote:

Hello,

ffmpeg can do this, at least some parts. It will create the segments
and a master.m3u8 file for each track by itself. Still you will need
to create master.m3u8 File wich references all the tracks master.m3u8
yourself. My Script is about 3500 lines long, so be prepared that you
have to code lot yourself.

Im currently on the go, but I will try to provide you some more
advice. Are you about to encode a single Video or do you need a full
implemented rapackaging process for many vidz?


Kind regards,

Robin




On Sat, Dec 10, 2022 at 1:53 PM Mahesh Velankar  
wrote:


I have a transport stream file with following details (given by 
ffprobe)


Input #0, mpegts, from 'f-13324-ccrtpa_before_tc_1669374838.ts':
   Duration: 00:04:23.44, start: 8879.809433, bitrate: 2373 kb/s
   Program 3
 Stream #0:0[0x31]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], 
Closed

Captions, 30 fps, 29.97 tbr, 90k tbn, 60 tbc
 Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 320 kb/s
 Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s (visual impaired)
 Stream #0:3[0x36]: Data: klv (KLVA / 0x41564C4B)


I want to convert this into HLS playlists and segments. The 
requirements

are as follows
There will be two playlists

playlist 1 will have a listing of TS segments. Each such segment will 
have

1. Video stream (Stream #0:0) from the above input (h264) and
2. Audio stream 1 (Stream #0:1) from the above input (ac3 5.1)  
but

converted to

Re: [FFmpeg-user] ffmpeg command required to convert MPEG TS to HLS with transcoding to aac

2022-12-10 Thread Robin van der Linden via ffmpeg-user
I give you a detailed answer in the next 24 Hrs. I currently dont have Access 
to my system and code 

Cheers,

Robin


Von: Mahesh Velankar 
Gesendet: Samstag, 10. Dezember 2022 22:38
An: ffmpeg-user@ffmpeg.org
Betreff: Re: [FFmpeg-user] ffmpeg command required to convert MPEG TS to HLS 
with transcoding to aac 

Robin, 

This is not for a single video, I have to keep the application ready 
that will be receiving different input TS and the app will need to 
prepare the playlists,  segments and master playlist. 

I am  aware that I need to write script/app for this. 

Please tell me the command line to prepare individual playlists and 
segmentsand I will be able to write the master playlist 
myself. 

Thanks in advance for your help 

-Mahesh 

--- 

Robin wrote: 

Hello, 

ffmpeg can do this, at least some parts. It will create the segments 
and a master.m3u8 file for each track by itself. Still you will need 
to create master.m3u8 File wich references all the tracks master.m3u8 
yourself. My Script is about 3500 lines long, so be prepared that you 
have to code lot yourself. 

Im currently on the go, but I will try to provide you some more 
advice. Are you about to encode a single Video or do you need a full 
implemented rapackaging process for many vidz? 


Kind regards, 

Robin 

 


On Sat, Dec 10, 2022 at 1:53 PM Mahesh Velankar  wrote: 

> I have a transport stream file with following details (given by ffprobe) 
> 
> Input #0, mpegts, from 'f-13324-ccrtpa_before_tc_1669374838.ts': 
>   Duration: 00:04:23.44, start: 8879.809433, bitrate: 2373 kb/s 
>   Program 3 
> Stream #0:0[0x31]: Video: h264 (Main) ([27][0][0][0] / 0x001B), 
> yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], Closed 
> Captions, 30 fps, 29.97 tbr, 90k tbn, 60 tbc 
> Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
> 5.1(side), fltp, 320 kb/s 
> Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
> stereo, fltp, 192 kb/s (visual impaired) 
> Stream #0:3[0x36]: Data: klv (KLVA / 0x41564C4B) 
> 
> 
> I want to convert this into HLS playlists and segments. The requirements 
> are as follows 
> There will be two playlists 
> 
> playlist 1 will have a listing of TS segments. Each such segment will have 
> 1. Video stream (Stream #0:0) from the above input (h264) and 
> 2. Audio stream 1 (Stream #0:1) from the above input (ac3 5.1)  but 
> converted to aac format 
> 
> playlist 2 will have a listing of TS segments. Each such segment will have 
> 1. Video stream (Stream #0:0) from the above input (h264) and 
> 2. Audio stream 2 (Stream #0:2) from the above input (ac3 stereo)  but 
> converted to aac format 
> 
> In short the output segments will have one video and one audio stream. 
> Since there are two audio streams I need to convert it into two different 
> playlists ... each having video and one of the audio streams 
> 
> ac3 to aac conversion is mandatory,  as it has to be played in the browser. 
> 
> How can I achieve this with the ffmpeg command line? Please help or point 
> me to any such recipe if already available. 
> 
> Thanks 
> 
___ 
ffmpeg-user mailing list 
ffmpeg-user@ffmpeg.org 
https://ffmpeg.org/mailman/listinfo/ffmpeg-user 

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

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


Re: [FFmpeg-user] ffmpeg command required to convert MPEG TS to HLS with transcoding to aac

2022-12-10 Thread Robin van der Linden via ffmpeg-user
Hello,

ffmpeg can do this, at least some parts. It will create the segments and a 
master.m3u8 file for each track by itself. Still you will need to create 
master.m3u8 File wich references all the tracks master.m3u8 yourself. My Script 
is about 3500 lines long, so be prepared that you have to code lot yourself.

Im currently on the go, but I will try to provide you some more advice. Are you 
about to encode a single Video or do you need a full implemented rapackaging 
process for many vidz?


Kind regards,

Robin


Von: Mahesh Velankar 
Gesendet: Samstag, 10. Dezember 2022 19:53
An: ffmpeg-user@ffmpeg.org
Betreff: [FFmpeg-user] ffmpeg command required to convert MPEG TS to HLS with 
transcoding to aac 

I have a transport stream file with following details (given by ffprobe) 

Input #0, mpegts, from 'f-13324-ccrtpa_before_tc_1669374838.ts': 
  Duration: 00:04:23.44, start: 8879.809433, bitrate: 2373 kb/s 
  Program 3 
    Stream #0:0[0x31]: Video: h264 (Main) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], Closed 
Captions, 30 fps, 29.97 tbr, 90k tbn, 60 tbc 
    Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
5.1(side), fltp, 320 kb/s 
    Stream #0:2[0x35](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
stereo, fltp, 192 kb/s (visual impaired) 
    Stream #0:3[0x36]: Data: klv (KLVA / 0x41564C4B) 


I want to convert this into HLS playlists and segments. The requirements 
are as follows 
There will be two playlists 

playlist 1 will have a listing of TS segments. Each such segment will have 
1. Video stream (Stream #0:0) from the above input (h264) and 
2. Audio stream 1 (Stream #0:1) from the above input (ac3 5.1)  but 
converted to aac format 

playlist 2 will have a listing of TS segments. Each such segment will have 
1. Video stream (Stream #0:0) from the above input (h264) and 
2. Audio stream 2 (Stream #0:2) from the above input (ac3 stereo)  but 
converted to aac format 

In short the output segments will have one video and one audio stream. 
Since there are two audio streams I need to convert it into two different 
playlists ... each having video and one of the audio streams 

ac3 to aac conversion is mandatory,  as it has to be played in the browser. 

How can I achieve this with the ffmpeg command line? Please help or point 
me to any such recipe if already available. 

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

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

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


[FFmpeg-user] How to get HDR metadata inside my AV1 video?

2022-12-01 Thread Robin van der Linden via ffmpeg-user

Hey folks,

I'm trying to reencode a 10 Bit HEVC to 10 Bit AV1 while keeping the HDR 
metadata intact.
Sadly, I don't see any HDR metadata with VLC at the reencoded AV1 clip. 
The only thing I see are very cold looking colors, have a look at my 
encode command:


/usr/bin/ffmpeg -i "/tmp/VODProcessing/Test (2022) - [2160p UHD].m4v"  
-map 0:0 -c:v libsvtav1 -b:v 7864320 -maxrate:v 8257536 -bufsize 
31457280 -vf zscale=width=3840:height=2160 -svtav1-params 
"input-depth=10:fast-decode=1:color-primaries=9:transfer-characteristics=16:matrix-coefficients=9:mastering-display=G(0.265,0.69)B(0.15,0.06)R(0.68,0.32)WP(0.3127,0.329)L(4000.0,0.005):content-light=368,226:enable-hdr=1" 
-pix_fmt yuv420p10le -color_trc smpte2084 -max_muxing_queue_size 1024 
-profile:v main -preset 6 -crf 16 -strict experimental -bf 0 -tune 
fastdecode -force_key_frames "expr:gte(t,n_forced*2)" -keyint_min 48 
-use_timeline 1 -use_template 1 -map_metadata -1 -map_chapters -1 
-sc_threshold 0 -f hls -seg_duration 4 -hls_time 4 -streaming 1 
-hls_list_size 0 -hls_segment_filename "/tmp/VODProcessing/output/Test 
(2022) - [2160p UHD]/v-av01-2160p-av01.0.12H.10/f-%04d.m4s"  
-hls_fmp4_init_filename "init-v-av01-2160p-av01.0.12H.10.m4s"  
-hls_segment_type fmp4 -hls_playlist_type vod -movflags 
frag_keyframe+frag_every_frame+write_colr+prefer_icc+skip_trailer+faststart 
-hls_flags independent_segments "/tmp/VODProcessing/output/Test (2022) - 
[2160p UHD]/v-av01-2160p-av01.0.12H.10/master.m3u8"


Can somebody give me a hint why the SVT-AV1 encoder does not take the 
information?


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] fmp4 streaming issues

2022-11-22 Thread Robin van der Linden via ffmpeg-user

@Dave Blanchard
Hello again,

I've now applied the patch you provided, it worked without a problem. 
Sadly, this was not the root-cause in the end.
The stream still often breaks on quality change using VideoJS 7.20.3 
with fmp4.
I also tried to only use one single video and audio codec at my hls 
manifest just to make sure the player does not change the codec
for some reason. This sadly also did not solve the problem. I really 
start to believe that it has something to do with the way VideoJS does 
remuxing.  Yesterday I also had the chance to play around with the 
bitmovin player, and here it's working flawlessly for some reason with 
the data I generate using ffmpeg, the same data that fails with VideoJS.


I now hope that the new VHS release by VideoJS from yesterday will come 
upstream fast as it contains a lot of bug fixes, let's see.



Thanks again,

Robin

Am 2022-11-21 23:00, schrieb Dave Blanchard:

I tried to find some more information onto this, but I'm not sure if
this might be the issue:

https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1018

Is somebody able to provide some more information onto these issues? 
Why
aren't these changes already merged? Can I do this by my own, and if 
so,

how?


If you're on Linux, you can easily build your own patched ffmpeg.

Although I'm using SRT now, in the event you or someone else is stuck
with HLS, I went ahead and ported this patch to the current ffmpeg
5.1.2 source. It's attached to this email, along with a build script
for ffmpeg. It compiles, and looks like it will work, but I haven't
tested it; so give it a try and see if it helps.

First download ffmpeg 5.1.2 from:
https://ffmpeg.org/releases/ffmpeg-5.1.2.tar.bz2

Then put it in a directory somewhere with the script and patch file.
By default the script builds and installs ffmpeg and the docs in the
current directory, under ./ffmpeg and ./ffmpeg-doc. You can easily
edit the script to replace the system ffmpeg, if you want; then just
run the script with 'sudo'.

You'll undoubtedly have to install a number of different -dev packages
of various needed libraries to complete the build, so just run the
script, watch for 'configure' to fail with missing packages, then find
and install the -dev version of what it's looking for.

If you need to cross-build ffmpeg for a different CPU, the script can
do that also; set environment variable TARGET="aarch64" or whatever.

I do recommend to switching to SRT if you can, though, as it's much
better than HLS in my experience.

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

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


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] fmp4 streaming issues

2022-11-21 Thread Robin van der Linden via ffmpeg-user

Hello,

thanks for your time.
Well, I would love to use a single way of transportation. Currently, I 
have to work with HLS and DASH side by side ...
SRT is not wanted at the moment. We have our own build script that also 
builds all libs from source incl. svt-av1 which we heavily rely on.

Basically we put hevc, avc1 and av1 all into fragmented mp4.
I will try to integrate your patch asap, but for some reason it seems 
(still testing) that when using byte-range requests this issue does not 
come up.
At least not with the test stream provided by nuevodevel which is 
basically VideoJS 7 here: 
https://www.nuevodevel.com/nuevo/showcase/fmp4hls
The only difference to my stream seems to be the byte-range request 
instead of pulling file based m4s segments.


I will report back.

Thanks so far,

Robin


Am 2022-11-21 23:00, schrieb Dave Blanchard:

I tried to find some more information onto this, but I'm not sure if
this might be the issue:

https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1018

Is somebody able to provide some more information onto these issues? 
Why
aren't these changes already merged? Can I do this by my own, and if 
so,

how?


If you're on Linux, you can easily build your own patched ffmpeg.

Although I'm using SRT now, in the event you or someone else is stuck
with HLS, I went ahead and ported this patch to the current ffmpeg
5.1.2 source. It's attached to this email, along with a build script
for ffmpeg. It compiles, and looks like it will work, but I haven't
tested it; so give it a try and see if it helps.

First download ffmpeg 5.1.2 from:
https://ffmpeg.org/releases/ffmpeg-5.1.2.tar.bz2

Then put it in a directory somewhere with the script and patch file.
By default the script builds and installs ffmpeg and the docs in the
current directory, under ./ffmpeg and ./ffmpeg-doc. You can easily
edit the script to replace the system ffmpeg, if you want; then just
run the script with 'sudo'.

You'll undoubtedly have to install a number of different -dev packages
of various needed libraries to complete the build, so just run the
script, watch for 'configure' to fail with missing packages, then find
and install the -dev version of what it's looking for.

If you need to cross-build ffmpeg for a different CPU, the script can
do that also; set environment variable TARGET="aarch64" or whatever.

I do recommend to switching to SRT if you can, though, as it's much
better than HLS in my experience.

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

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


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] fmp4 streaming issues

2022-11-21 Thread Robin van der Linden via ffmpeg-user

Hello,

can somebody explain why fmp4 currently does randomly break on seek 
and/or quality change using VideoJS and other players, while mpegts 
works 100% fine?
I really don't change anything on my encode command, except of the 
output format transport type:


mpegts (working):
-hls_segment_filename "{path}/f-%04d.ts"
-hls_fmp4_init_filename "init-{name}.ts"
-hls_segment_type mpegts'

fmp4 (not working):
-hls_segment_filename "{path}/f-%04d.m4s"
-hls_fmp4_init_filename "init-{name}.m4s"
-hls_segment_type fmp4'

I tried to find some more information onto this, but I'm not sure if 
this might be the issue: 
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1018


Is somebody able to provide some more information onto these issues? Why 
aren't these changes already merged? Can I do this by my own, and if so, 
how?


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] How to add black bars as replacement for height?

2022-11-08 Thread Robin van der Linden via ffmpeg-user

Thanks for your reply, Moritz,

I now came to the following cmd:

-vf 
"scale={stream["width"]}:{stream["height"]}:force_original_aspect_ratio=decrease,pad={stream["width"]}:{stream["height"]}:(ow-iw)/2:(oh-ih)/2,setsar=1"


{stream["height"]} and {stream["width"]} are just placeholders


Thanks for your help.

Am 2022-11-08 08:05, schrieb Moritz Barsnick:

On Tue, Nov 08, 2022 at 03:02:36 +0100, FFmpeg user discussions wrote:
Can I use ffmpeg to convert a 1920x800 resolution clip to 1920x1080? 
The

goal is to fill the remaining pixels with a true black bar.


Have a look at the pad filter:
https://ffmpeg.org/ffmpeg-filters.html#pad-1

Something like
$ ffmpeg -i inputfile -vf "pad=h=1080:y=(oh-ih)/2" outputfile

The "y" expression is for centering the video vertically.

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

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


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] How to add black bars as replacement for height?

2022-11-07 Thread Robin van der Linden via ffmpeg-user
Can I use ffmpeg to convert a 1920x800 resolution clip to 1920x1080? The 
goal is to fill the remaining pixels with a true black bar.


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] 16:9 to 2.35:1 and true HD 7.1 to DTS

2022-11-03 Thread Robin van der Linden via ffmpeg-user

@Carl Eugen
I check on the web for that, but was not able to find any 
encoder/decoder for TrueHD.
Can you give some more information here, I'm pretty sure it does not 
survive the volume per channel layout. From my understanding, if it 
works, it's experimental.



Kind regards,

Robin van der Linden

Am 2022-11-03 22:35, schrieb Carl Eugen Hoyos:

Am Do., 3. Nov. 2022 um 20:34 Uhr schrieb Robin van der Linden via
ffmpeg-user :


About the audio, I'm pretty sure that TrueHD is a BlackBox to ffmpeg


FFmpeg contains a TrueHD deccoder and encoder.

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

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


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] 16:9 to 2.35:1 and true HD 7.1 to DTS

2022-11-03 Thread Robin van der Linden via ffmpeg-user

Hello,

about the first point, I have no idea, maybe somebody else has.
About the audio, I'm pretty sure that TrueHD is a BlackBox to ffmpeg, 
same goes for Dolby Atoms.
I'm not sure if you have access to a MacOS system, I personally run it 
inside a VM.
There is a tool called "Subler" for MacOS, which can at least transform 
a DTS source to AC3, not sure about TrueHD and other formats, but maybe 
it's worth a try. But from my understanding, TrueHD is a proprietary 
format and will most likely also not work with Subler.



Kind regards,

Robin

Am 2022-11-03 20:17, schrieb Bartosz Trzebuchowski:

Hi,
I’m completely new to ffmpeg and have 2 questions:

1. How can I convert 16:9 movies to 2.35:1? My projector can’t scale
down and 16:9 movies run outside my 2.35:1 canvas at the top and the
bottom. I need to black out top and bottom so only 2.35:1 is visible.

2. My old Yamaha surround can’t decode true HD. Is is possible with
ffmpeg to convert the sound to DTS 7.1?

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

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


--
Grüße / Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] X265 HDR content differs from AVT-AV1 HDR Content

2022-10-28 Thread Robin van der Linden via ffmpeg-user

Hello,

I'm currently trying to encode a mp4 containing a HEVC 10 Bit stream 
with proper HDR grading to a HLS stream in two codec versions, the first 
is HEVC and the second is SVT-AV1. The problem here is that the two 
encoded versions differ from each other according to the color grading. 
The SVT-AV1 version looks much colder compared to the HEVC grading.


These are my commands:

SVT-AV1

/usr/bin/ffmpeg -i "/tmp/VODProcessing/testclip.m4v" -map 0:0 -c:v 
libsvtav1 -b:v 4718592 -maxrate:v 4954521 -bufsize 18874368 -vf 
zscale=width=3840:height=1600 -svtav1-params 
"enable-hdr=1:input-depth=10:fast-decode=1:color-primaries=9:transfer-characteristics=16:matrix-coefficients=9:mastering-display=G(0.265,0.69)B(0.15,0.06)R(0.68,0.32)WP(0.3127,0.329)L(4000.0,0.005):content-light=368,226" 
-pix_fmt yuv420p10le -max_muxing_queue_size 1024 -profile:v main -preset 
7 -crf 20 -keyint_min 48 -g 48 -use_timeline 1 -use_template 1 
-seg_duration 6 -strict experimental -map_metadata -1 -map_chapters -1 
-f hls -hls_time 6 -streaming 1 -hls_list_size 0  -hls_segment_filename 
"/tmp/VODProcessing/output/testclip/v-av01-2160p-av01.0.12H.10/f-%04d.m4s" 
 -hls_fmp4_init_filename "init-v-av01-2160p-av01.0.12H.10.m4s"  
-hls_segment_type fmp4 -movflags 
frag_every_frame+delay_moov+skip_trailer+faststart -hls_flags 
independent_segments 
"/tmp/VODProcessing/output/testclip/v-av01-2160p-av01.0.12H.10/master.m3u8"




X265

/usr/bin/ffmpeg -i "/tmp/VODProcessing/testclip.m4v" -map 0:0 -c:v 
libx265 -b:v 6291456 -maxrate:v 6606028 -bufsize 25165824 -vf 
zscale=width=3840:height=1600 -x265-params 
"hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(4000,50):max-cll=368,226" 
-pix_fmt yuv420p10le -profile:v main10 -bf 0 -crf 16 -preset fast 
-keyint_min 48 -g 48 -use_timeline 1 -use_template 1 -seg_duration 6 
-tune fastdecode -vtag hvc1 -map_metadata -1 -map_chapters -1 -f hls 
-hls_time 6 -streaming 1 -hls_list_size 0  -hls_segment_filename 
"/tmp/VODProcessing/output/testclip/v-hevc-2160p-hvc1.2.4.L150.B0/f-%04d.m4s" 
 -hls_fmp4_init_filename "init-v-hevc-2160p-hvc1.2.4.L150.B0.m4s"  
-hls_segment_type fmp4 -movflags 
frag_every_frame+delay_moov+skip_trailer+faststart -hls_flags 
independent_segments 
"/tmp/VODProcessing/output/testclip/v-hevc-2160p-hvc1.2.4.L150.B0/master.m3u8"



I'm using the following script to get the grading: 
https://pastebin.com/AZdKbPEL
But to me, it seems that the encoder ignores these values, talking about 
SVT-AV1.

Can somebody provide a little help here?

--
Kind regards,

Robin van der Linden
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] How to transcode to HLS and DASH with mp4 and webm all at once

2022-10-12 Thread Robin van der Linden via ffmpeg-user

Hello Stefan,

did you received the mail I directly send you?


Kind regards,

Robin

Am 2022-10-12 14:00, schrieb Stefan Oltmanns:

Hi Alvaro,


you should be able to generate the mpd file for DASH


Yes, but how? ffmpeg proved an easy way to generate 
webm-dash-manifests,

but I cannot figure out how to use it to include the MPEG segments.

And MPEG-DASH manifest creation afterwards I couldn't figure out at 
all,

only with at least remuxing the files.

Best regards
Stefan


Am 12.10.22 um 10:47 schrieb Alvaro Jimenez:
DASH is codec agnostic, so if you already have or generate the ts 
segments for HLS, you should be able to generate the mpd file for DASH 
to play back the same segments you would use for HLS. I have used the 
m4s segments, and I have seen a common instance of lip sync issues 
that I have never see using mpeg.ts segments. In my opinion, CMAF 
using mp4 segments is over-rated, and heavily promoted by commercial 
encoding and streaming engines like Wowza.

Regards,
Alvaro Jiménez


On Tuesday 11 October 2022 10:06:36 AM (-07:00), Stefan Oltmanns 
wrote:



Hi Clay,

for me storage is not a major concern (the total number of videos 
will

not be that high), but device compatibility is (including older
devices). Apple does not seem to support CMAF on older devices, only
MPEG-TS, therefore I'll stick to MPEG-TS. There are also some 
approaches

like mux.js that are intended to remux the stream as needed in the
browser, but I rather stick to MP4/MPEG2-TS.

I have not played with ffmpeg-python yet, but good to know. I started
writing a PHP script that generates a ffmpeg command-line for
transcoding a specific video (in fact multiple, because ffmpeg got
killed when I tried to transcode to all formats at once: my system 
ran

out of it's 64 GB memory...).

I still couldn't figure out how generate a single DASH manifest for 
webm

and mp4 files. That should be possible, because dash.js added support
for that in 4.0 and shaka seems to have always supported that.

Best regards
Stefan


Am 11.10.22 um 17:00 schrieb Clay via ffmpeg-user:

Hi Steve

Have you looked into CMAF for this solution?  I am also working on 
some
complex transcoding and packaging actions for HLS ABR delivery.  I 
am
looking into using CMAF to reduce the overall storage footprint 
(gpu/cpu
threads still cost a lot more than storage).  Also, I am 
experimenting
with ffmpeg-python (https://github.com/kkroening/ffmpeg-python), 
have

you (or anyone reading this) played around with it?

*I apologize to the forum for the accidental prior message 
(inadvertent

click :-P)

Liberty & Regard,
Clay

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

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


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

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





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

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


--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] Subtitle metadata incomplete with ffprobe?

2022-09-25 Thread Robin van der Linden via ffmpeg-user

Hey folks,

is it maybe possible that we add compatibility for more subtitle related 
metadata. For example, ffprobe does not properly read if a subtitle 
track is set as enforced, sdh, auxiliary content etc. This would really 
help to build proper dash/hls streams with proper subtitle names on 
them.




Thanks and kind regards,

R. Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] Subtitle metadata not intercompatible by ffprobe

2022-09-21 Thread Robin van der Linden via ffmpeg-user

Testing files can be obtained from here:


https://drive.google.com/file/d/1kShvOA6_Emx3COrMudn3V2__zErj8_-c/view?usp=sharing

--
Kind regards,

R. Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] metadata on subtitle track's not readable by ffprobe

2022-09-17 Thread Robin van der Linden via ffmpeg-user

Hello,

I'm building an industry grade streaming platform where I use ffmpeg and 
ffprobe to convert and parse information from media objects. I'm using 
ffprobe to read all available information from a mp4 file using the 
following command:


ffprobe -print_format json -export_all true -show_streams -show_format 
-loglevel quiet -hide_banner /path/to/file.mp4


But if I take a closer look at the output of it, I'm not able to check 
if a subtitle is enforced, marked as SDH or auxiliary content. The only 
thing I really see is when the subtitle is marked as a default track 
which does not help at all, e.g.:

{
"index": 1,
"codec_name": "mov_text",
"codec_long_name": "MOV text",
"codec_type": "subtitle",
"codec_tag_string": "tx3g",
"codec_tag": "0x67337874",
"width": 1920,
"height": 162,
"id": "0x2",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.00",
"duration_ts": 28237,
"duration": "28.237000",
"bit_rate": "44",
"nb_frames": "8",
"extradata_size": 48,
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
},
"tags": {
"creation_time": "2022-09-17T11:23:47.00Z",
"language": "eng"
}
},



You might wonder what I mean by a subtitle is marked as SDH, enforced or 
auxiliary content. These are extended information of a specific track 
element of a subtitle embedded into a mp4 container, in most cases these 
embedded subtitles come in tx3g format. The most advanced tool I know of 
to write metadata and tracks into a mp4 container is called "Subler" and 
it's sadly only available on MAC OS since many years.
Subler is extremely conform with apple's definition of mp4 containers 
and how to "metarise" them, by that it very nicely integrates with 
QuickTime, iOS etc. Subler also allows me to set a subtitle track of a 
mp4 as SDH, enforced, auxiliary content etc. But I'm not able to read 
this information later using ffprobe, which is absolutely mandatory for 
me as I repack media from these highly metarised mp4 containers into 
HLS/Dash streams where I really want to know if a subtitle is marked as 
enforced or SDH. Otherwise, I cannot display this information to the 
end-user using e.g. VideoJS, as all the Video players out there parse 
their subtitle track names from a m3u8/mpd manifest you pass them. So 
the only information I can rely on while building a HLS/DASH stream from 
a mp4 input is the ffprobe's output, which currently does not cover 
these fields I have with subler and would really solve this issue. The 
information is there, but I can't read it using ffprobe to put it in 
more simple words. The only thing I can do at the moment is to compare 
the nb_frames value and if I have 2 subtitles in the same language. 
Maybe I have 2x English subtitles, one is shorter than the other, than I 
maybe know what of the two is the enforced subtitle track and which is 
the full subtitle track ... This workaround kinda sucks, and I still 
have no clue what track is marked as SDH.


I created an example mp4 file with 4 subtitle tracks in it, each of the 
subtitle tracks covers a specific type of metadata setup which I want to 
be able to read using ffprobe. I also included screenshots where I show 
how each subtitle track is metarised under the use of Subler.


https://drive.google.com/file/d/1kShvOA6_Emx3COrMudn3V2__zErj8_-c/view?usp=sharing

If I parse the example file using the command I showd above, I get backe 
the following which does not reflect the metadata I set befor using 
subler, execpt of one single field "default": 1, this is the only one 
that works for me:


{
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 
10",

"profile": "High",
"codec_type": "video",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 1920,
"height": 1080,
"coded_width": 1920,
"coded_height": 1080,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 2,
"pix_fmt": "yuv420p",

Re: [FFmpeg-user] encryption not available for fmp4/m4s segments ?!?

2022-07-12 Thread Robin van der Linden via ffmpeg-user

Hello again,

well I'm not sure what I should do with your reply, but good to know 
that you know it better, but that doesn't help me at all.

If you know a solution, please let me simply know.

1. " No idea how "encryption" should work without "DRM" " -> Clearkey 
for example.
2. If you have really read my message, it's according to HEVC and that 
it's only compatible if you use fmp4 as hls_segment_type instead of 
mpegts. I use h264 and HEVC as I provide ABR streams up to 4K HDR, so 
there is no way around fmp4 for me. The problem is that fmp4 is not 
"packable" with encryption, and you will get the following error: > 
Encrypted fmp4 not yet supported Could not write header for output file 
#0 (incorrect codec parameters ?): Not yet implemented in FFmpeg, 
patches welcome <
If you don't believe me, please try yourself using the following 
parameters found at http://www.ffmpeg.org/ffmpeg-all.html -> 21.17.1 
Options (-hls_enc -hls_enc_key -hls_enc_key_url -hls_enc_iv). Please 
make sure you set hls_segment_type to fmp4


And yes I'm on the latest greatest self build ffmpeg version available 
(5.0.1).


Thanks in advance.

Am 2022-07-12 00:35, schrieb Reindl Harald:

Am 11.07.22 um 23:22 schrieb Robin van der Linden via ffmpeg-user:

Hello,

I'm urgently searching for a solution to protect HLS streams using 
DRM/AES encryption.
Currently, it seems that this is only working with .ts segments not 
with .m4s segments and .ts files again don't work with HEVC / 4k HDR 
content, so it seems I'm 100% stuck at this point.


There is also a report from another user (4 years ago) with exactly 
the same issue: https://trac.ffmpeg.org/ticket/7138

Is there any kind of progress or workaround?


no idea how "encryption" should work without "DRM"

"protect HLS streams using DRM/AES encryption" belongs fro the sake of
god to the transport layer and has nothing to do with the media file
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] encryption not available for fmp4/m4s segments ?!?

2022-07-11 Thread Robin van der Linden via ffmpeg-user

Hello,

I'm urgently searching for a solution to protect HLS streams using 
DRM/AES encryption.
Currently, it seems that this is only working with .ts segments not with 
.m4s segments and .ts files again don't work with HEVC / 4k HDR content, 
so it seems I'm 100% stuck at this point.


There is also a report from another user (4 years ago) with exactly the 
same issue: https://trac.ffmpeg.org/ticket/7138

Is there any kind of progress or workaround?


--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] Subtitle metadata not intercompatible by ffprobe

2022-07-01 Thread Robin van der Linden via ffmpeg-user

Hello,

thanks for your interest in my question. I will need a couple of days to 
get all the stuff together, I will report back ASAP.


Thanks,

Robin van der Linden

Am 2022-06-29 03:50, schrieb Bang He:
Can you share your mp4 file generated by subler, i have no apple 
computer.


On Fri, Jun 10, 2022 at 5:59 AM Robin van der Linden via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:


Hello.

I'm using ffprobe to import video information into my database using
python. In general, this process is working fine
but if I set a subtitle forced or SDH using "Subler"
(https://subler.org/) I'm not able to later on check with ffprobe if a
subtitle is set as SDH or is forced. No matter what information I set
with Subler, the ffprobe output will always be:

  "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 1,
 "timed_thumbnails": 0,
 "captions": 0,
 "descriptions": 0,
 "metadata": 0,
 "dependent": 0,
 "still_image": 0
 },

So basically the only information that really triggers is 
attached_pic,
but the rest does not change at all, not matter what I set with 
Subler.
The funny thing is that VLC for example recognizes a subtitle as 
forced
if I set it as forced using Subler. So I can assume that the 
Information

is there, but stored differently so ffprobe can't read it properly. Is
there any chance that this will be fixed or is there any workaround?
This is the cmd I fire:

"ffprobe -pretty -print_format json -export_all true -show_programs
-show_streams -show_format -loglevel quiet -hide_banner 
'path/to/file'"




--
Grüße / Kind regards,

Robin van der Linden___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


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

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


--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] Encrypted fmp4 not yet supported

2022-06-15 Thread Robin van der Linden via ffmpeg-user

Hello,

Today I actually wanted to start implementing HLS segment encryption for 
my streams, but each time I try to generate encrypted output segments I 
run into the following error:


"Encrypted fmp4 not yet supported\nCould not write header for output 
file #2"


After some googling I came across this post, which I quite old but still 
seems true:

https://trac.ffmpeg.org/ticket/7138

It still seems that even 2 years later fmp4 encryption is not supported, 
and I'm asking myself why it was supported in the past but
has been dropped, at least according to this post? Is there any 
workaround here? Can I maybe use OpenSSL here as a workaround?



Thanks in advance

--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] Subtitle metadata not intercompatible by ffprobe

2022-06-09 Thread Robin van der Linden via ffmpeg-user

Hello.

I'm using ffprobe to import video information into my database using 
python. In general, this process is working fine
but if I set a subtitle forced or SDH using "Subler" 
(https://subler.org/) I'm not able to later on check with ffprobe if a 
subtitle is set as SDH or is forced. No matter what information I set 
with Subler, the ffprobe output will always be:


 "disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 1,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
},

So basically the only information that really triggers is attached_pic, 
but the rest does not change at all, not matter what I set with Subler.
The funny thing is that VLC for example recognizes a subtitle as forced 
if I set it as forced using Subler. So I can assume that the Information 
is there, but stored differently so ffprobe can't read it properly. Is 
there any chance that this will be fixed or is there any workaround?

This is the cmd I fire:

"ffprobe -pretty -print_format json -export_all true -show_programs 
-show_streams -show_format -loglevel quiet -hide_banner 'path/to/file'"




--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


Re: [FFmpeg-user] ffprobe does not render sdes tag field properly

2022-06-03 Thread Robin van der Linden via ffmpeg-user
In the end it‘s working for me, but it‘s kinda strange. If I save the JSON 
output as utf-8 I have no problems at all.
Anyways, thanks for you idea and Feedback.


Kind regards

Von: Nicolas George
Gesendet: Freitag, 3. Juni 2022 14:52
An: FFmpeg user questions
Betreff: Re: [FFmpeg-user] ffprobe does not render sdes tag field properly

Robin van der Linden via ffmpeg-user (12022-06-03):
> After stealing the Tesseract in \"Avengers: Endgame,\" Loki lands before the
> Time Variance Authority.

This looks like escaping of a character that has a meaning in the
surrounding language, a completely different issue than the issue of
international characters.

But you did not tell how exactly you get this output, so I cannot say
more.

I suspect you are missing a lot of theoretical background necessary to
achieve your goals.


> Am 2022-06-03 11:36, schrieb Nicolas George:

Top-posting is forbidden on this mailing-list; if you do not know what
it means look it up.

Regards,

-- 
  Nicolas George

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

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


Re: [FFmpeg-user] ffprobe does not render sdes tag field properly

2022-06-03 Thread Robin van der Linden via ffmpeg-user
Well, that would make a lot of sense. But, if I look at other fields, 
the encoding is again different.

For example, in the synopsis field:

My input:

After stealing the Tesseract in "Avengers: Endgame," Loki lands before 
the Time Variance Authority.


ffprobe output:

After stealing the Tesseract in \"Avengers: Endgame,\" Loki lands before 
the Time Variance Authority.


So the conversion of " is again different here. I switched from 
PowerShell to a Linux bash terminal
to see if it makes any difference, and it does! The "sdes" field is now 
correct, but the "synopsis" field is still as shown above (as it was 
already before switching to a different terminal.)


That would mean in conclusion that my Terminal might not by responsible 
for the encoding issue, at least not completely ...



Thanks in advance,

Robin


Am 2022-06-03 11:36, schrieb Nicolas George:

Robin van der Linden via ffmpeg-user (12022-06-03):
It seems that ffprobe does not render special characters the right way 
for

that field.


ffprobe does not do any rendering, it writes the text to its standard
outputs, the task of rendering falls on whatever program is connected 
to

the outputs.

It seems your problem is that your terminal does not work in UTF-8. But
you did not say which terminal you use, so I cannot help further.

Regards,


--
Grüße / Kind regards,

Robin van der Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] ffprobe does not render sdes tag field properly

2022-06-03 Thread Robin van der Linden via ffmpeg-user

Hello,

I'm using ffprobe to read various metadata from my video files. One of 
these fields is called "sdes" and represents a TV-Show description. You 
will only see this filed if your command contains "-export_all" for 
example:


"ffprobe -print_format json -export_all true -show_programs 
-show_streams -show_format -loglevel quiet -hide_banner "


It seems that ffprobe does not render special characters the right way 
for that field. If the content of that field contains special chars, 
these will get rendered wrong. TO give you a better example, please see 
the following text comparison:


This is the content I save to the file:

After stealing the Tesseract during the events of “Avengers: Endgame,” 
an alternate version of Loki is brought to the mysterious Time Variance 
Authority, a bureaucratic organization that exists outside of time and 
space and monitors the timeline. They give Loki a choice: face being 
erased from existence due to being a “time variant” or help fix the 
timeline and stop a greater threat.

@!"§$%&/()

This is what the ffprobe command from above outputs:

After stealing the Tesseract during the events of ÔÇ£Avengers: 
Endgame,ÔÇØ an alternate version of Loki is brought to the mysterious 
Time Variance Authority, a bureaucratic organization that exists outside 
of time and space and monitors the timeline. They give Loki a choice: 
face being erased from existence due to being a ÔÇ£time variantÔÇØ or 
help fix the timeline and stop a greater threat. \r\n@!\"§$%&/()



Where does this issue come from? To me, it seems like an encoding issue. 
Can somebody help?



--
Kind regards and thanks in advance,

Robin Linden

0x257F9C8D.asc
Description: application/pgp-keys
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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