[FFmpeg-user] fail to seek key video packet

2018-02-06 Thread qw
Hi,


I use following command to test ffmpeg-3.4.1:


ffmpeg -debug_ts -ss 10 -t 1 -i hanma.ts -f null /dev/null






ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-version3 --enable-asm --enable-avfilter 
--disable-static --enable-shared --enable-gpl --enable-nonfree 
--prefix=/usr/local/ --extra-cflags=-I/usr/local/include 
--extra-ldflags=-L/usr/local/lib --enable-stripping
  libavutil  55. 78.100 / 55. 78.100
  libavcodec 57.107.100 / 57.107.100
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 10.100 / 57. 10.100
  libavfilter 6.107.100 /  6.107.100
  libswscale  4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc54.  7.100 / 54.  7.100
Input #0, mpegts, from './hanma.ts':
  Duration: 00:02:39.78, start: 1.40, bitrate: 10913 kb/s
  Program 1 
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 
0x001B), yuv420p(progressive), 1280x720 [SAR 3:4 DAR 4:3], 24 fps, 24 tbr, 90k 
tbn, 48 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, 
fltp, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (ac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
demuxer -> ist_index:1 type:audio next_dts:NOPTS next_dts_time:NOPTS 
next_pts:NOPTS next_pts_time:NOPTS pkt_pts:1024560 pkt_pts_time:11.384 
pkt_dts:1024560 pkt_dts_time:11.384 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:1 type:audio pkt_pts:-1440 pkt_pts_time:-0.016 
pkt_dts:-1440 pkt_dts_time:-0.016 off:-1140 off_time:-11.4
encoder <- type:audio frame_pts:0 frame_pts_time:0 time_base:1/48000
encoder -> type:audio pkt_pts:0 pkt_pts_time:0 pkt_dts:0 pkt_dts_time:0
demuxer -> ist_index:1 type:audio next_dts:16000 next_dts_time:0.016 
next_pts:16000 next_pts_time:0.016 pkt_pts:1027440 pkt_pts_time:11.416 
pkt_dts:1027440 pkt_dts_time:11.416 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:1 type:audio pkt_pts:1440 pkt_pts_time:0.016 
pkt_dts:1440 pkt_dts_time:0.016 off:-1140 off_time:-11.4
encoder <- type:audio frame_pts:768 frame_pts_time:0.016 time_base:1/48000
encoder -> type:audio pkt_pts:768 pkt_pts_time:0.016 pkt_dts:768 
pkt_dts_time:0.016
demuxer -> ist_index:1 type:audio next_dts:48000 next_dts_time:0.048 
next_pts:48000 next_pts_time:0.048 pkt_pts:1030320 pkt_pts_time:11.448 
pkt_dts:1030320 pkt_dts_time:11.448 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:1 type:audio pkt_pts:4320 pkt_pts_time:0.048 
pkt_dts:4320 pkt_dts_time:0.048 off:-1140 off_time:-11.4
encoder <- type:audio frame_pts:2304 frame_pts_time:0.048 time_base:1/48000
encoder -> type:audio pkt_pts:2304 pkt_pts_time:0.048 pkt_dts:2304 
pkt_dts_time:0.048
demuxer -> ist_index:0 type:video next_dts:NOPTS next_dts_time:NOPTS 
next_pts:NOPTS next_pts_time:NOPTS pkt_pts:1026000 pkt_pts_time:11.4 
pkt_dts:1026000 pkt_dts_time:11.4 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:0 type:video pkt_pts:0 pkt_pts_time:0 pkt_dts:0 
pkt_dts_time:0 off:-1140 off_time:-11.4
demuxer -> ist_index:0 type:video next_dts:41667 next_dts_time:0.041667 
next_pts:0 next_pts_time:0 pkt_pts:1029750 pkt_pts_time:11.4417 pkt_dts:1029750 
pkt_dts_time:11.4417 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:0 type:video pkt_pts:3750 pkt_pts_time:0.0416667 
pkt_dts:3750 pkt_dts_time:0.0416667 off:-1140 off_time:-11.4
[h264 @ 0x17da880] Missing reference picture, default is 0
[h264 @ 0x17da880] decode_slice_header error
demuxer -> ist_index:0 type:video next_dts:83334 next_dts_time:0.083334 
next_pts:0 next_pts_time:0 pkt_pts:1033500 pkt_pts_time:11.4833 pkt_dts:1033500 
pkt_dts_time:11.4833 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:0 type:video pkt_pts:7500 pkt_pts_time:0.083 
pkt_dts:7500 pkt_dts_time:0.083 off:-1140 off_time:-11.4
demuxer -> ist_index:1 type:audio next_dts:8 next_dts_time:0.08 
next_pts:8 next_pts_time:0.08 pkt_pts:1033200 pkt_pts_time:11.48 
pkt_dts:1033200 pkt_dts_time:11.48 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:1 type:audio pkt_pts:7200 pkt_pts_time:0.08 
pkt_dts:7200 pkt_dts_time:0.08 off:-1140 off_time:-11.4
encoder <- type:audio frame_pts:3840 frame_pts_time:0.08 time_base:1/48000
encoder -> type:audio pkt_pts:3840 pkt_pts_time:0.08 pkt_dts:3840 
pkt_dts_time:0.08
demuxer -> ist_index:1 type:audio next_dts:112000 next_dts_time:0.112 
next_pts:112000 next_pts_time:0.112 pkt_pts:1036080 pkt_pts_time:11.512 
pkt_dts:1036080 pkt_dts_time:11.512 off:-1140 off_time:-11.4
demuxer+ffmpeg -> ist_index:1 type:audio pkt_pts:10080 pkt_pts_time:0.112 
pkt_dts:10080 pkt_dts_time:0.112 off:-1140 off_time:-11.4
encoder <- type:audio frame_pts:5376 frame_pts_time:0.112 time_base:1/48000
encoder -> type:audio 

Re: [FFmpeg-user] video slows down in the middle

2018-02-06 Thread Carl Eugen Hoyos
2018-02-07 1:19 GMT+01:00 Henry Lau :

> ./ffmpeg -i inputWebm out.mp4

(Complete, uncut console output missing!)

You have to set an output framerate with -r 30

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] Error building ffmpeg with x265 support

2018-02-06 Thread Lou Logan
On Mon, Feb 5, 2018, at 8:13 PM, David Turner wrote:
> I worked my through the tutorial on compiling ffmpeg with h.265 support 
> found at https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. The last 
> thing it instructed me to do is 
> PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/
> pkgconfig" ./configure   --prefix="$HOME/ffmpeg_build"   --pkg-config-
> flags="--static"   --extra-cflags="-I$HOME/ffmpeg_build/include"   --
> extra-ldflags="-L$HOME/ffmpeg_build/lib"   --extra-libs="-lpthread -
> lm"   --bindir="$HOME/bin"   --enable-gpl   --enable-libass   --enable-
> libfdk-aac   --enable-libfreetype   --enable-libmp3lame   --enable-
> libopus   --enable-libtheora   --enable-libvorbis   --enable-libvpx   --
> enable-libx264   --enable-libx265   --enable-nonfree
> 
> to which I got the following error:
> ERROR: x265 not found using pkg-config

Which Ubuntu version? Did you compile x265 or install the libx265-dev package? 
(The guide offers either 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] MXF container tags modified when replacing audio

2018-02-06 Thread Carl Eugen Hoyos
2018-02-05 18:07 GMT+01:00 Frédéric Busnel-Joncour :
>>> Most of time it's not an issue, but in a particular case, the player
>>> can't read properly the file as the "Video Line Map" tag value is
>>> not what expected.
>>
>> How do you know that this is the (one) value that stops your player
>> from decoding FFmpeg's output file?
>> What is the value that your input file shows (and the player expects)
>> and what value is written by FFmpeg?
>>
>> (I can confirm that for 3840x2160 no useful value is written.)

> Thanks for support again !
> As I'm not the end user, it's difficult to tell you exactly, but the problem
> occurs with Avid Media Composer.
> Video Line Map should be at 42, and it's at 0.

Sorry, I am not sure I understand correctly:
If you change the value "0" for Video Line Map in a 3840x2160 file
created with FFmpeg to "42", the file works with Avid Media Composer?

> Perhaps it's not technically possible, but an option like
> -keep_all_metadata would be very helpful in such case.

Sorry if I was unclear in my first message in this thread:
Just as FFmpeg is unable to "replace" streams, you
cannot "keep" metadata.

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] MXF XAVC UHD video stream modified while using the -copy option

2018-02-06 Thread Carl Eugen Hoyos
2018-02-06 18:09 GMT+01:00 Ronan Ricou :

> I'm trying to remux a MXF XAVC file with the exact same video but
> only 2 out of the 4 audio tracks.
> For that I use this command:
> ffmpeg -i INPUT_FILE -c copy -map 0:v -map 0:a:0 -map 0:a:1 OUTPUT_FILE
>
> The thing is, some video data are lost during the remux as my file
> is smaller than it should be.

How do you know this?

Please test current FFmpeg git head and provide the command line
you tested together with the complete, uncut console output.

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] Error building ffmpeg with x265 support

2018-02-06 Thread Carl Eugen Hoyos
2018-02-06 6:13 GMT+01:00 David Turner :
> I worked my through the tutorial on compiling ffmpeg with h.265 support found 
> at https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. The last thing it 
> instructed me to do is
> PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" 
> ./configure   --prefix="$HOME/ffmpeg_build"   --pkg-config-flags="--static"   
> --extra-cflags="-I$HOME/ffmpeg_build/include"   
> --extra-ldflags="-L$HOME/ffmpeg_build/lib"   --extra-libs="-lpthread -lm"   
> --bindir="$HOME/bin"   --enable-gpl   --enable-libass   --enable-libfdk-aac   
> --enable-libfreetype   --enable-libmp3lame   --enable-libopus   
> --enable-libtheora   --enable-libvorbis   --enable-libvpx   --enable-libx264  
>  --enable-libx265   --enable-nonfree
>
> to which I got the following error:
> ERROR: x265 not found using pkg-config
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "ffbuild/config.log" produced by configure as this will 
> help
> solve the problem.
>
> Per the request above I am including the config.log file for your kindly 
> review.

> /usr/bin/ld: cannot find -lnuma

I don't know libnuma, feel free to verify that it is part of x265's
pkgconfig file
and that it was installed when you installed x265.

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] Error building ffmpeg with x265 support

2018-02-06 Thread Frank Haefemeier
Am Dienstag, den 06.02.2018, 05:13 + schrieb David Turner:
> I worked my through the tutorial on compiling ffmpeg with h.265 support found 
> at https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. The last thing it 
> instructed me to do is 
> PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" 
> ./configure   --prefix="$HOME/ffmpeg_build"   --pkg-config-flags="--static"   
> --extra-cflags="-I$HOME/ffmpeg_build/include"   
> --extra-ldflags="-L$HOME/ffmpeg_build/lib"   --extra-libs="-lpthread -lm"   
> --bindir="$HOME/bin"   --enable-gpl   --enable-libass   --enable-libfdk-aac   
> --enable-libfreetype   --enable-libmp3lame   --enable-libopus   
> --enable-libtheora   --enable-libvorbis   --enable-libvpx   --enable-libx264  
>  --enable-libx265   --enable-nonfree
> 
> to which I got the following error:
> ERROR: x265 not found using pkg-config
You must install the developer package (header files) of x265 library.
E.g. on fedora you must install 'dnf install x265-devel'. It will
install the header, pkg-config files and (if missing) the library
itself. If you have another package manager the concept is equal.

Bye
Frank
___
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 cross-compilation

2018-02-06 Thread Carl Eugen Hoyos
2018-02-05 15:46 GMT+01:00 Vladimir Kondenko :

> I managed to get it to compile on release/3.2 branch, but it throws an
> error regarding an undefined reference to 'main' in ether ffplay or
> libavutil.so files (depending on shared and/or static flags).

Which change in the FFmpeg source code introduced the regression?

> Then I edited sdl2_cflags and sdl2_extralibs variables in the configure
> file on the master branch to point to my library

If you edited configure, we cannot help...

> And here's my script:

Instead, please provide the actual (unscripted) configure line you tested
and the console output. The console output should also tell you what
else you can do to help us understand your issue.

(You don't need --disable-symver and --enable-static)

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] Is it possible to add a 'keyw' atom to a MP4

2018-02-06 Thread Carl Eugen Hoyos
2018-02-06 20:29 GMT+01:00 Jason Player :

> ffprobe version 3.0.2 Copyright (c) 2007-2016 the FFmpeg developers

Please test current FFmpeg git head and please do not top-post here.

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] Is it possible to add a 'keyw' atom to a MP4

2018-02-06 Thread Jason Player
Hi Moritz,

Thanks for trying to help me. Here’s the log scroll console output.
Basically it shows this:
ffprobe command showing current metadata,
the ffmpeg command to add keywords,
the ffprobe command showing the metadata of the output file.

Console log:
==
northeast-fortynine-seven-fifty-two:iflicks jcplayer$ ffprobe copy.mp4
ffprobe version 3.0.2 Copyright (c) 2007-2016 the FFmpeg developers
  built with Apple LLVM version 7.3.0 (clang-703.0.29)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid
--enable-vda
  libavutil  55. 17.103 / 55. 17.103
  libavcodec 57. 24.102 / 57. 24.102
  libavformat57. 25.100 / 57. 25.100
  libavdevice57.  0.101 / 57.  0.101
  libavfilter 6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'copy.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : Instructor Interview: Meet the Educator
artist  : Shigeru Miyagawa
album_artist: MIT OpenCourseWare
album   : MIT OCW: 21G.027 Asia in the Modern World: Images &
Representations, Fall 2016
date: 2017-03-01T12:00:00Z
encoder : Lavf57.25.100
comment : https://ocw.mit.edu; Creative Commons
Attribution-NonCommercial-ShareAlike 4.0; https://ocw.mit.edu/terms; album
art image is in the public domain.
genre   : MIT Faculty Interview
copyright   : https://ocw.mit.edu; Creative Commons
Attribution-NonCommercial-ShareAlike 4.0; https://ocw.mit.edu/terms; album
art image is in the public domain.
description : This video is the introduction of Professor Shigeru
Miyagawa, the instructor for the MIT course 21G.027 of Fall 2016.
synopsis: This video is the introduction of Professor Shigeru
Miyagawa, the instructor for the MIT course 21G.027 of Fall 2016.
media_type  : 9
hd_video: 0
gapless_playback: 0
  Duration: 00:01:15.63, start: 0.00, bitrate: 303 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709), 640x360 [SAR 1:1 DAR 16:9], 221 kb/s, 24 fps, 24 tbr, 90k tbn, 180k
tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 76 kb/s (default)
Metadata:
  handler_name: SoundHandler
northeast-fortynine-seven-fifty-two:iflicks jcplayer$ ffmpeg -i ./copy.mp4
-metadata 'keywords=bla, foo' ./copy_keyw.mp4
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.3.0 (clang-703.0.29)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid
--enable-vda
  libavutil  55. 17.103 / 55. 17.103
  libavcodec 57. 24.102 / 57. 24.102
  libavformat57. 25.100 / 57. 25.100
  libavdevice57.  0.101 / 57.  0.101
  libavfilter 6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './copy.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
title   : Instructor Interview: Meet the Educator
artist  : Shigeru Miyagawa
album_artist: MIT OpenCourseWare
album   : MIT OCW: 21G.027 Asia in the Modern World: Images &
Representations, Fall 2016
date: 2017-03-01T12:00:00Z
encoder : Lavf57.25.100
comment : https://ocw.mit.edu; Creative Commons
Attribution-NonCommercial-ShareAlike 4.0; https://ocw.mit.edu/terms; album
art image is in the public domain.
genre   : MIT Faculty Interview
copyright   : https://ocw.mit.edu; Creative Commons
Attribution-NonCommercial-ShareAlike 4.0; https://ocw.mit.edu/terms; album
art image is in the public domain.
description : This video is the introduction of Professor Shigeru
Miyagawa, the instructor for the MIT course 21G.027 of Fall 2016.
synopsis: This video is the introduction of Professor Shigeru
Miyagawa, the instructor for the MIT course 21G.027 of Fall 2016.
media_type  : 9
hd_video: 0
gapless_playback: 0
  Duration: 00:01:15.63, start: 0.00, bitrate: 303 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 

Re: [FFmpeg-user] file size too big after re-encoding (was: help please)

2018-02-06 Thread Lou Logan
On Tue, Feb 6, 2018, at 1:02 AM, sarkis yol wrote:
> hey what is the best way to hardcore subtitles into a movie while 
> staying as close as possible to his original size and settings i tried 
> this command:
> ffmpeg -i 1.mp4 -vf "subtitles=1.srt:force_style='FontName=Droid Naskh 
> Shift Alt,Fontsize=21'" -c:a copy "output.mp4"

Always show the complete console output with your command. It will provide 
helpful info.

> but my 770mb movie goes to 1.3gb which is too much
> 
> even though i tried another movie and went from 750 to 800 mb which is good
> but now allot of movies are getting x2 the size any help lease :)

Re-encoding from a lossy input will often result in a bigger file size. There 
are many reasons for this. For example, the input may have been encoded 
efficiently (this could be determined by the format, encoder implementation, 
options used, etc). Secondly, lossy encoding introduces artifacts that become 
part of the video. When re-encoding a lossy input the encoder will attempt to 
preserve details including these artifacts which can be detrimental for 
encoding efficiency resulting in a comparatively higher output file size.

Assuming you're using libx264 it by default tries to achieve a certain quality, 
so trying to guess the output file size is not possible until you do it. 
However, you can use two-passes if you need to target a specific output file 
size. Use the slowest -preset (default is "medium") you have patience for. See:
https://trac.ffmpeg.org/wiki/Encode/H.264

You may also consider using "-c:v libx265" but it is much slower and HEVC may 
not be supported by your playback device.

Alternatively, use softsubs to avoid re-encoding video. Consider outputting to 
MKV if your player supports it as MP4 is a poor choice for softsubs.
___
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 please

2018-02-06 Thread Steve Boyer
On Tue, Feb 6, 2018 at 4:02 AM, sarkis yol  wrote:

> hey what is the best way to hardcore subtitles into a movie while staying
> as close as possible to his original size and settings i tried this command:
> ffmpeg -i 1.mp4 -vf "subtitles=1.srt:force_style='FontName=Droid Naskh
> Shift Alt,Fontsize=21'" -c:a copy "output.mp4"
>
>
> but my 770mb movie goes to 1.3gb which is too much
>
> Upside to FFmpeg, if you don't tell it specifics, then it fills in gaps
for you based on container (here, it's MP4). Downside, if you don't tell it
specifics, then it fills in the gaps for you. By default (someone correct
me if wrong), it is doing -crf 23 -preset standard (I believe). Couple of
things to experiment with:

Setting bitrate itself ( -b k)
Setting a lower CRF (-crf 24, -crf 25, -crf 26 - A higher number is a lower
quality and about every 6 digits is about half quality/size)
Setting a max bitrate in combination of a different CRF value (-crf 
-maxrate k)
specificing a different preset ("-preset veryfast" I've found seems to be
the best fast/size trade-off, but your mileage may vary).

What medium are you trying to watch the output on? Can the player not
display subtitles? I know Kodi and VLC have no problem with this.


> even though i tried another movie and went from 750 to 800 mb which is good
> but now allot of movies are getting x2 the size any help lease :)
> ___
> 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] help please

2018-02-06 Thread sarkis yol
hey what is the best way to hardcore subtitles into a movie while staying as 
close as possible to his original size and settings i tried this command:
ffmpeg -i 1.mp4 -vf "subtitles=1.srt:force_style='FontName=Droid Naskh Shift 
Alt,Fontsize=21'" -c:a copy "output.mp4"


but my 770mb movie goes to 1.3gb which is too much

even though i tried another movie and went from 750 to 800 mb which is good
but now allot of movies are getting x2 the size any help lease :)
___
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] Hardware accelerated overlay

2018-02-06 Thread Matthieu Pepin
Hi,

I recently started to use hardware accelerated transcoding using ffmpeg and
CUDA. It makes quite an improvement! The only thing I can't find for my use
case is how to accelerate the overlay filter. Is there a CUDA version?

Thanks!

-- 
*Matthieu Pepin*
___
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 cross-compilation

2018-02-06 Thread Vladimir Kondenko
Hello.
I'm trying to obtain an ffplay binary to use it in my Android app. But when
I run my configure script, it says that sdl2 in not found although I
cross-compiled it too and put its headers and library flags to
--extra-cflags and --extraldflags. If I remove --enable-sdl2 ffplay simply
wont appear in the list of the programs to be built.
I managed to get it to compile on release/3.2 branch, but it throws an
error regarding an undefined reference to 'main' in ether ffplay or
libavutil.so files (depending on shared and/or static flags).
Then I edited sdl2_cflags and sdl2_extralibs variables in the configure
file on the master branch to point to my library, but it won't compile
anyway.
What am I doing wrong?

My configure file has been changed this way:

if enabled sdl2; then
sdl2_cflags="-I/home/kondenko/Android/ffmpeg/ffmpeg/sdl2/include
-D_REENTRANT"

sdl2_extralibs="-L/home/kondenko/Android/ffmpeg/ffmpeg/sdl2/build/android/obj/local/armeabi-v7a
-lSDL2"
enable sdl2
fi

And here's my script:

make_or_die() {
make -j $(nproc) || exit
sudo make install || exit
}

ARCH=arm
API=17
CPU=armv7

WORKING_DIR=~/Android/ffmpeg/ffmpeg

NDK=~/Android/SDK/ndk
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi
SYSROOT=$TOOLCHAIN/sysroot
CROSS_PREFIX=$TOOLCHAIN/bin/arm-linux-androideabi-

FFMPEG_PREFIX=$(pwd)/android/$CPU

SDL=$(pwd)/sdl2
SDL_PREFIX=$SDL/build/android/obj/local/armeabi-v7a

export PATH=$PATH:$TOOLCHAIN/bin:$TOOLCHAIN/include
export CC="arm-linux-androideabi-clang"
export CXX="arm-linux-androideabi-clang++"

build_sdl2() {
hg clone https://hg.libsdl.org/SDL $SDL
cd $SDL
sudo ./build-scripts/androidbuildlibs.sh
cd $WORKING_DIR
echo "SDL build folder: $SDL_PREFIX"
}

build_ffmpeg() {
sudo make distclean
sudo ./configure \
--target-os=android \
--arch=$ARCH \
--prefix=$FFMPEG_PREFIX \
--cross-prefix=$CROSS_PREFIX \
--enable-static \
--disable-ffprobe \
--disable-ffmpeg \
--disable-doc \
--disable-symver \
&& make_or_die && header "Success! Your files are at
$FFMPEG_PREFIX" \
|| (echo \\n && tail ffbuild/config.log && exit)
}

build_sdl2
build_ffmpeg
___
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] RTP decoded video plays too fast

2018-02-06 Thread Hooman Fazaeli
I am developing a SIP call recording app. To save conversations as
playable media files, I
has done the following:

1.  Track SIP dialogs and save RTP media streams into custom .rtp
files. The files have
a header which contains stream encoding information (extracted form
SDP payloads)
followed by the RTP packets itself, saved consecutively and preceded
w/ a 2 byte length
field.

2. Developed a custom AVInputFormat. The format reads .rtp file header in its
read_header method and sets stream codec and its parameters. It also
creates RTPDemuxContext and RTPDynamicProtocolHandler instances. In
its read_packet method, the format reads rtp packets and passes them
to rtp demuxer.

3. To convert .rtp files to playable media, I use a simple command like below:

> ffmpeg -i vp8-video.rtp -o vp8-video.flv

The output contains the video as expected but it plays almost 2 times
faster in VLC and widows media player. The problem exists w/ other
output formats such as .avi or .mp4, too.

Can anybody suggest what is going wrong? As RTP packets contain timing
information,
why ffmpeg decodes them in a faster rate? How I can fix the problem
w/o using PTS filters?

NOTE: The trans-coded audio streams do not have this problem and play
at correct rate.

Pls. keep me CC'ed as I am not registered to the list.
Thanks.
___
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] Fragmented mp4

2018-02-06 Thread Er errechydy

Hi thanks for the great work, i hope you guys fine,
I have a question related to fragmented mp4 that works on media source 
extension, i tried this code :
" ffmpeg -i bunny.mp4 -movflags frag_keyframe+empty_moov+default_base_moof 
fragmented.mp4 "
but when i try to play the video using media source extension and append other 
videos buffer ( made with the same command above ) it didn't work.
My second question is what is the difference between 
" -f segment -segment_time 30 v%01d.mp4 "
and 
" -ss 0 -t 30 v1.mp4 "
they don't produce the same video , because when i use mp4fragment from Bento4 
to turn the final video to fragmented mp4 , it worked with the second command 
but it didn't work for the first one, that means videos produced with " -f 
segment -segment_time 30 v%01d.mp4 " are different than from " -ss 0 -t 30 
v1.mp4 ".
thanks 
___
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] MXF XAVC UHD video stream modified while using the -copy option

2018-02-06 Thread Ronan Ricou
Hello,

I'm trying to remux a MXF XAVC file with the exact same video but only 2 out of 
the 4 audio tracks.
For that I use this command:
ffmpeg -i INPUT_FILE -c copy -map 0:v -map 0:a:0 -map 0:a:1 OUTPUT_FILE

The thing is, some video data are lost during the remux as my file is smaller 
than it should be.
If I check with MediaInfo, the video stream bit rate, bits/(pixel*frame) value 
and stream size are smaller.

Here is the output of the original file:
Video
ID   : 2
Format   : AVC
Format/Info  : Advanced Video Codec
Format profile   : High 4:2:2 
Intra@L5.1
Format settings, CABAC   : No
Format settings, GOP : N=1
Format settings, wrapping mode   : Frame
Codec ID : 0D01030102106001-0401020201323001
Duration : 4 min 30 s
Bit rate : 506 Mb/s
Width: 3 840 pixels
Height   : 2 160 pixels
Display aspect ratio : 16:9
Frame rate   : 50.000 FPS
Standard : Component
Color space  : YUV
Chroma subsampling   : 4:2:2
Bit depth: 10 bits
Scan type: Progressive
Bits/(Pixel*Frame)   : 1.219
Stream size  : 15.9 GiB (99%)
Color range  : Limited
Color primaries  : BT.2020
Transfer characteristics : HLG
Matrix coefficients  : BT.2020 non-constant

And of the remuxed file:
Video
ID   : 2
Format   : AVC
Format/Info  : Advanced Video Codec
Format profile   : High 4:2:2 
Intra@L5.1
Format settings, CABAC   : No
Format settings, GOP : N=1
Format settings, wrapping mode   : Frame
Codec ID : 0D01030102106001-0401020201323001
Duration : 4 min 30 s
Bit rate : 500 Mb/s
Width: 3 840 pixels
Height   : 2 160 pixels
Display aspect ratio : 16:9
Frame rate   : 50.000 FPS
Standard : Component
Color space  : YUV
Chroma subsampling   : 4:2:2
Bit depth: 10 bits
Scan type: Progressive
Bits/(Pixel*Frame)   : 1.207
Stream size  : 15.7 GiB (100%)
Color range  : Limited
Color primaries  : BT.2020
Transfer characteristics : HLG
Matrix coefficients  : BT.2020 non-constant

Using current release 3.4.1 and latest nightly (N-89956-gcaa4bd7a9f) does the 
exact same thing.

Any idea what's happening and how I can prevent this loss?

Many thanks in advance for your help,


Ronan

___
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] stream hls from ffmpeg via media-server to TV

2018-02-06 Thread Thomas Schmiedl

Hello,

I tested with Streamlink (https://streamlink.github.io/) and Gerbera 
media-server (https://gerbera.io/), that works with my TV.


streamlink https://hddn01.skylinewebcams.com/live.m3u8?a=... best 
--player-external-http --player-external-http-port 1234


(complete m3u8 url from: 
http://www.skylinewebcams.com/en/webcam/czech-republic/prague/prague/old-town-bridge-tower.html)


Gerbera settings:
- External Link (URL)
- Title: Teststream
- URL: http://:1234
- Protocol: http-get
- Class: object.item.videoItem
- Description: Teststream
- Mimetype: video/mpeg

But Streamlink is slow on the router (Python interpreted) and doesn't 
exit when leaving the stream on TV.


The combination ffmpeg + Gerbera doesn't work:
ffmpeg -i https://hddn01.skylinewebcams.com/live.m3u8?a=... -c copy -f 
mpegts -listen 1 http://:1234


ffmpeg output:
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC)
  configuration: --prefix=/home/user/ffmpeg-3.4.1-mips 
--enable-cross-compile --cross-prefix=mips-linux- --arch=mips 
--target-os=linux --enable-openssl 
--extra-cflags='-I/home/user/openssl-1.0.2n-mips/include 
-Wl,-rpath=/home/user/openssl-1.0.2n-mips/lib' 
--extra-ldflags='-L/home/user/openssl-1.0.2n-mips/lib 
-Wl,-rpath=/home/user/openssl-1.0.2n-mips/lib' 
--extra-cxxflags='-I/home/user/openssl-1.0.2n-mips/include 
-Wl,-rpath=/home/user/openssl-1.0.2n-mips/lib' --disable-mips32r2 
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu

  libavutil  55. 78.100 / 55. 78.100
  libavcodec 57.107.100 / 57.107.100
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 10.100 / 57. 10.100
  libavfilter 6.107.100 /  6.107.100
  libswscale  4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn23.skylinewebcams.com/09640706UX3P-1517923165424.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Could not find codec parameters for stream 1 
(Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified 
sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
Input #0, hls,applehttp, from 
'https://hddn01.skylinewebcams.com/live.m3u8?a=kaasoaq2cbgbokmum0i106dm82':

  Duration: N/A, start: 736.70, bitrate: N/A
  Program 0
Metadata:
  variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 
1280x1024, 12 fps, 12 tbr, 90k tbn, 180k tbc

Metadata:
  variant_bitrate : 0
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
Metadata:
  variant_bitrate : 0
Output #0, mpegts, to 'http://192.168.178.1:1234':
  Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 
1280x1024, q=2-31, 12 fps, 12 tbr, 90k tbn, 90k tbc

Metadata:
  variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Broken pipe
Error writing trailer of http://192.168.178.1:1234: Broken pipe
frame=1 fps=0.6 q=-1.0 Lsize=  32kB time=00:00:00.00 
bitrate=23831272.7kbits/s speed=6.98e-06x
video:59kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown

Conversion failed!

Error message on TV is "file not readable" and in ffmpeg "Broken pipe".

Maybe someone could help me.

Thomas

Am 19.01.2018 um 12:56 schrieb Carl Eugen Hoyos:

2018-01-12 14:22 GMT+01:00 Thomas Schmiedl :

The option "-f mpegts" doesn't work.


At least provide your FFmpeg command line together with the complete,
uncut console output.
Does your tv accept usb drives? Did you test a file created with FFmpeg?

Please do not top-post here, 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] Alpha Channel QT with SubTitles

2018-02-06 Thread Gandharv Bhagat
hey Carl,


I generated the test file and no subs are rendered from the subs2.mov file. I 
see the test pattern/colorbars/clock.  Instead of using a transparent PNG, 
could I instead generate an alpha channel 1920x1080 canvas directly from 
ffmpeg? I wonder if my PNG file is causing the issue?


Gandharv


p.s. When I say I see nothing, I mean its a black image with no text.


From: ffmpeg-user  on behalf of Carl Eugen 
Hoyos 
Sent: Monday, February 5, 2018 7:26:37 AM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] Alpha Channel QT with SubTitles

2018-01-17 17:34 GMT+01:00 Gandharv Bhagat :

> Thanks for the frame rate multiplier correction, will make the change.
>
> As for the file, I am checking in FCP 7. When alpha type is set to
> ‘none/ignore’ I see a white background and white text and the drop
> shadow. When the alpha type is set to ‘straight’, ‘black’, or ‘white’
> I don’t see anything.

I wonder how it is possible not to "see anything" on a video screen...

The most relevant question from our point-of-view is if the following
command (or a variant) indicates transparency in your video:
$ ffmpeg -f lavfi -i testsrc=s=hd1080 -i Subs2.mov -filter_complex
overlay -qscale 2 -vcodec mpeg4 out.mov

The issue hitting you may be that a flag has to be set in the mov
file or the video bitstream to indicate the type of the transparency.

Please do not top-post here, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-user=02%7C01%7C%7C4b8be448d4d84c27456108d56c949044%7C84df9e7fe9f640afb435%7C1%7C0%7C636534307684783710=7XNGuBzb1jLhbuDHlEWcU3I5OpOs69Ginn55nCyJ5cc%3D=0

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