Re: [FFmpeg-user] concat video requirements

2017-07-17 Thread Tony Lambropoulos
Ahh nevermind, what you said works when I use the concat filter and not
"ffmpeg -f concat -i file.txt...".  I had assumed they would work the same

On Mon, Jul 17, 2017 at 4:37 PM, Tony Lambropoulos <tonyl7...@gmail.com>
wrote:

> Hey Gyan,
> I've ensured the SAR ratios and resolutions match up.  The results are
> still pretty funky, however.  The first video last far longer than it's
> supposed to and the second video is running in slow motion.  Is there
> nothing else that should match up?
>
> Here are the specs on the two input videos (first and second respectively):
>
> tony@ubuntu:/mnt/hgfs/vloop/transcoding$ ffmpeg -i /tmp/here2.mp4
>
> ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
>
>   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
>
>   configuration: --prefix=/home/tony/ffmpeg_build
> --pkg-config-flags=--static --extra-cflags=-I/home/tony/ffmpeg_build/include
> --extra-ldflags=-L/home/tony/ffmpeg_build/lib --bindir=/home/tony/bin
> --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
> --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-libx264 --enable-nonfree
>
>   libavutil  55. 34.101 / 55. 34.101
>
>   libavcodec 57. 64.101 / 57. 64.101
>
>   libavformat57. 56.101 / 57. 56.101
>
>   libavdevice57.  1.100 / 57.  1.100
>
>   libavfilter 6. 65.100 /  6. 65.100
>
>   libswscale  4.  2.100 /  4.  2.100
>
>   libswresample   2.  3.100 /  2.  3.100
>
>   libpostproc54.  1.100 / 54.  1.100
>
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/here2.mp4':
>
>   Metadata:
>
> major_brand : isom
>
> minor_version   : 512
>
> compatible_brands: isomiso2avc1mp41
>
> encoder : Lavf57.56.101
>
>   Duration: 00:00:05.00, start: 0.00, bitrate: 104 kb/s
>
> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> 720x260 [SAR 1:1 DAR 36:13], 93 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
> (default)
>
> Metadata:
>
>   handler_name: VideoHandler
>
> Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
> stereo, fltp, 2 kb/s (default)
>
> Metadata:
>
>   handler_name: SoundHandler
>
> At least one output file must be specified
>
> tony@ubuntu:/mnt/hgfs/vloop/transcoding$ ffmpeg -i /tmp/
> 6d41bcedfe4849cf5a9a244ce159d0bd.mp4
>
> ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
>
>   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
>
>   configuration: --prefix=/home/tony/ffmpeg_build
> --pkg-config-flags=--static --extra-cflags=-I/home/tony/ffmpeg_build/include
> --extra-ldflags=-L/home/tony/ffmpeg_build/lib --bindir=/home/tony/bin
> --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
> --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-libx264 --enable-nonfree
>
>   libavutil  55. 34.101 / 55. 34.101
>
>   libavcodec 57. 64.101 / 57. 64.101
>
>   libavformat57. 56.101 / 57. 56.101
>
>   libavdevice57.  1.100 / 57.  1.100
>
>   libavfilter 6. 65.100 /  6. 65.100
>
>   libswscale  4.  2.100 /  4.  2.100
>
>   libswresample   2.  3.100 /  2.  3.100
>
>   libpostproc54.  1.100 / 54.  1.100
>
> Input #0, mpegts, from '/tmp/6d41bcedfe4849cf5a9a244ce159d0bd.mp4':
>
>   Duration: 00:00:09.02, start: 1.456711, bitrate: 1003 kb/s
>
>   Program 1
>
> Metadata:
>
>   service_name: Service01
>
>   service_provider: FFmpeg
>
> Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
> yuv420p(progressive), 720x260 [SAR 1:1 DAR 36:13], 29.97 fps, 29.97 tbr,
> 90k tbn, 59.94 tbc
>
> Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
> stereo, s16p, 384 kb/s
>
>
> Thanks,
>
> Tony
>
> On Mon, Jul 17, 2017 at 2:20 PM, Gyan <gyando...@gmail.com> wrote:
>
>> On Tue, Jul 18, 2017 at 12:37 AM, Tony Lambropoulos <tonyl7...@gmail.com>
>> wrote:
>>
>> >
>> > Does anyone have a specific list of these attributes to ensure the
>> concat
>> > command is successful?
>> >
>>
>> For video streams, resolution and SAR have to match. Pixel format and
>> frame
>> rate need not match. Since the filter operates upon decoded frames,
>> inputs'
>> bitstream syntax i.e. codec is not relevant.
>> ___
>> 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] concat video requirements

2017-07-17 Thread Tony Lambropoulos
Hey Gyan,
I've ensured the SAR ratios and resolutions match up.  The results are
still pretty funky, however.  The first video last far longer than it's
supposed to and the second video is running in slow motion.  Is there
nothing else that should match up?

Here are the specs on the two input videos (first and second respectively):

tony@ubuntu:/mnt/hgfs/vloop/transcoding$ ffmpeg -i /tmp/here2.mp4

ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers

  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

  configuration: --prefix=/home/tony/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/tony/ffmpeg_build/include
--extra-ldflags=-L/home/tony/ffmpeg_build/lib --bindir=/home/tony/bin
--enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree

  libavutil  55. 34.101 / 55. 34.101

  libavcodec 57. 64.101 / 57. 64.101

  libavformat57. 56.101 / 57. 56.101

  libavdevice57.  1.100 / 57.  1.100

  libavfilter 6. 65.100 /  6. 65.100

  libswscale  4.  2.100 /  4.  2.100

  libswresample   2.  3.100 /  2.  3.100

  libpostproc54.  1.100 / 54.  1.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/here2.mp4':

  Metadata:

major_brand : isom

minor_version   : 512

compatible_brands: isomiso2avc1mp41

encoder : Lavf57.56.101

  Duration: 00:00:05.00, start: 0.00, bitrate: 104 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
720x260 [SAR 1:1 DAR 36:13], 93 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
(default)

Metadata:

  handler_name: VideoHandler

Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 2 kb/s (default)

Metadata:

  handler_name: SoundHandler

At least one output file must be specified

tony@ubuntu:/mnt/hgfs/vloop/transcoding$ ffmpeg -i
/tmp/6d41bcedfe4849cf5a9a244ce159d0bd.mp4

ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers

  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

  configuration: --prefix=/home/tony/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/tony/ffmpeg_build/include
--extra-ldflags=-L/home/tony/ffmpeg_build/lib --bindir=/home/tony/bin
--enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree

  libavutil  55. 34.101 / 55. 34.101

  libavcodec 57. 64.101 / 57. 64.101

  libavformat57. 56.101 / 57. 56.101

  libavdevice57.  1.100 / 57.  1.100

  libavfilter 6. 65.100 /  6. 65.100

  libswscale  4.  2.100 /  4.  2.100

  libswresample   2.  3.100 /  2.  3.100

  libpostproc54.  1.100 / 54.  1.100

Input #0, mpegts, from '/tmp/6d41bcedfe4849cf5a9a244ce159d0bd.mp4':

  Duration: 00:00:09.02, start: 1.456711, bitrate: 1003 kb/s

  Program 1

Metadata:

  service_name: Service01

  service_provider: FFmpeg

Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 720x260 [SAR 1:1 DAR 36:13], 29.97 fps, 29.97 tbr,
90k tbn, 59.94 tbc

Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 384 kb/s


Thanks,

Tony

On Mon, Jul 17, 2017 at 2:20 PM, Gyan <gyando...@gmail.com> wrote:

> On Tue, Jul 18, 2017 at 12:37 AM, Tony Lambropoulos <tonyl7...@gmail.com>
> wrote:
>
> >
> > Does anyone have a specific list of these attributes to ensure the concat
> > command is successful?
> >
>
> For video streams, resolution and SAR have to match. Pixel format and frame
> rate need not match. Since the filter operates upon decoded frames, inputs'
> bitstream syntax i.e. codec is not relevant.
> ___
> 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] concat video requirements

2017-07-17 Thread Tony Lambropoulos
I see on this wiki for the concat filter:
https://trac.ffmpeg.org/wiki/Concatenate
"The inputs have to be of the same frame size, and a handful of other
attributes have to match."

Does anyone have a specific list of these attributes to ensure the concat
command is successful?

Appreciate the help,
Tony
___
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".