Re: [FFmpeg-user] Using FFMPEG to encode multiple outputs in 'parallel' (doesn't work?)

2017-07-06 Thread Moritz Barsnick
On Thu, Jul 06, 2017 at 03:44:45 -0700, DopeLabs wrote:
> Option 2 in your question looks fine to me... 
> 
> I have used ffmpeg to transcode audio and video streams before to achieve 
> adaptive streaming.
> 
> Here is an example of an audio transcode... input is 256k mp3, output is 
> 128k, 64k, and 24k
> 
> $ ffmpeg -i http://stream.dubstep.fm -c:a mp3 -b:a 128k -f null /dev/null 
> -c:a mp3 -b:a 64k -f null /dev/null -c:a mp3 -b:a 24k -ar 22050 -f null 
> /dev/null

Shalin did confirm in the original posting that this does work and is
the preferred method. The complaint was that it doesn't optimally make
use of parallelism to load all CPUs to the max (and thereby possibly
reduce processing time even more).

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

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

Re: [FFmpeg-user] progress output to unix domain socket

2017-07-06 Thread Moritz Barsnick
On Thu, Jul 06, 2017 at 11:16:36 +0200, Nicolas George wrote:
> Well, since you are being sarcastic:
> > I meant like: mkfifo?
> ... I hope you will share the exact version of the operating system you
> use where mkfifo can be used to create Unix domain sockets.

You can just point out an error without sarcasm - I can take being
corrected. I wasn't using sarcasm to point out an error related to the
user, ffmpeg or any part of the process while picking at JavaScript,
and the original poster got the point.

Yes, I was wrong, and misled by Google, and indeed mkfifo on most
Unixes creates pipes (not fifos? ;-)), and certainly not Unix domain
sockets.

(I *did* ask how the user created his socket - so you get my own
scepticism regarding my answer.)

Since you asked: The exact version is 42.

Moritz ;-)

$ gcc -o mkfifo -Wall Unix_domain_socket.c
$ PATH=.:$PATH
$ mkfifo /tmp/foo
$ uname -r
42
___
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] progress output to unix domain socket

2017-07-06 Thread tasos

There is no need to argue people.
I will try

Writing to unix socket works for me with url like this:
-progress "unix:/tmp/foo"
_

and let you know!
Thanks!!!

On 7/6/2017 1:52 PM, Nicolas George wrote:

L'octidi 18 messidor, an CCXXV, Anatoly a écrit :

don't mess socket(2) nc(1) and pipe(2) mkfifo(1)
socket(2) is a matter of networking staff, while pipe(2) is a matter of
ipc.

I know all that, but all that is completely unrelated to UNIX DOMAIN
SOCKETS. Judging by your other mail, you know what they are, so please
try to stay focused on the topic at hand.

Regards,



___
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] progress output to unix domain socket

2017-07-06 Thread Nicolas George
L'octidi 18 messidor, an CCXXV, Anatoly a écrit :
> don't mess socket(2) nc(1) and pipe(2) mkfifo(1)
> socket(2) is a matter of networking staff, while pipe(2) is a matter of
> ipc.

I know all that, but all that is completely unrelated to UNIX DOMAIN
SOCKETS. Judging by your other mail, you know what they are, so please
try to stay focused on the topic at hand.

Regards,

-- 
  Nicolas George


signature.asc
Description: Digital signature
___
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] Using FFMPEG to encode multiple outputs in 'parallel' (doesn't work?)

2017-07-06 Thread DopeLabs
Option 2 in your question looks fine to me... 

I have used ffmpeg to transcode audio and video streams before to achieve 
adaptive streaming.

Here is an example of an audio transcode... input is 256k mp3, output is 128k, 
64k, and 24k

$ ffmpeg -i http://stream.dubstep.fm -c:a mp3 -b:a 128k -f null /dev/null -c:a 
mp3 -b:a 64k -f null /dev/null -c:a mp3 -b:a 24k -ar 22050 -f null /dev/null


ffmpeg version N-86413-g50be8f2142 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --enable-libvidstab --enable-shared --enable-pthreads 
--cc=/usr/bin/clang --enable-vda --enable-videotoolbox --arch=x86_64 
--enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid 
--enable-filter=coreimage --enable-filter=coreimagesrc --enable-filter=frei0r 
--enable-filter=frei0r_src --enable-swscale --enable-avfilter 
--enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus 
--enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx 
--enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray 
--enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype 
--enable-libfribidi --enable-libx265 --enable-version3 --enable-libwavpack 
--enable-libssh --enable-librtmp --enable-libfdk-aac --enable-nonfree 
--enable-libzmq --enable-opencl --enable-ffplay --enable-libcaca 
--enable-libvidstab
  libavutil  55. 63.100 / 55. 63.100
  libavcodec 57. 96.101 / 57. 96.101
  libavformat57. 72.101 / 57. 72.101
  libavdevice57.  7.100 / 57.  7.100
  libavfilter 6. 91.100 /  6. 91.100
  libavresample   3.  6.  0 /  3.  6.  0
  libswscale  4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc54.  6.100 / 54.  6.100
[mp3 @ 0x7fa3b200] Skipping 88 bytes of junk at 0.
Input #0, mp3, from 'http://stream.dubstep.fm':
  Metadata:
icy-genre   : Dubstep, Dub, Electronic, Garage
icy-name: Dubstep.fm
icy-notice1 : This stream requires http://www.winamp.com";>Winamp
icy-notice2 : SHOUTcast DNAS/posix(linux x64) v2.5.1.724
icy-pub : 1
icy-url : https://www.dubstep.fm
StreamTitle : ARCHIVE - 2011-01-09 - The Dented McStank With Phaded 
From Chicago
StreamUrl   : https://www.dubstep.fm
  Duration: N/A, start: 0.00, bitrate: 256 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
  Stream #0:0 -> #1:0 (mp3 (native) -> mp3 (libmp3lame))
  Stream #0:0 -> #2:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, null, to '/dev/null':
  Metadata:
icy-genre   : Dubstep, Dub, Electronic, Garage
icy-name: Dubstep.fm
icy-notice1 : This stream requires http://www.winamp.com";>Winamp
icy-notice2 : SHOUTcast DNAS/posix(linux x64) v2.5.1.724
icy-pub : 1
icy-url : https://www.dubstep.fm
StreamTitle : ARCHIVE - 2011-01-09 - The Dented McStank With Phaded 
From Chicago
StreamUrl   : https://www.dubstep.fm
encoder : Lavf57.72.101
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 128 kb/s
Metadata:
  encoder : Lavc57.96.101 libmp3lame
Output #1, null, to '/dev/null':
  Metadata:
icy-genre   : Dubstep, Dub, Electronic, Garage
icy-name: Dubstep.fm
icy-notice1 : This stream requires http://www.winamp.com";>Winamp
icy-notice2 : SHOUTcast DNAS/posix(linux x64) v2.5.1.724
icy-pub : 1
icy-url : https://www.dubstep.fm
StreamTitle : ARCHIVE - 2011-01-09 - The Dented McStank With Phaded 
From Chicago
StreamUrl   : https://www.dubstep.fm
encoder : Lavf57.72.101
Stream #1:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 64 kb/s
Metadata:
  encoder : Lavc57.96.101 libmp3lame
Output #2, null, to '/dev/null':
  Metadata:
icy-genre   : Dubstep, Dub, Electronic, Garage
icy-name: Dubstep.fm
icy-notice1 : This stream requires http://www.winamp.com";>Winamp
icy-notice2 : SHOUTcast DNAS/posix(linux x64) v2.5.1.724
icy-pub : 1
icy-url : https://www.dubstep.fm
StreamTitle : ARCHIVE - 2011-01-09 - The Dented McStank With Phaded 
From Chicago
StreamUrl   : https://www.dubstep.fm
encoder : Lavf57.72.101
Stream #2:0: Audio: mp3 (libmp3lame), 22050 Hz, stereo, s16p, 24 kb/s
Metadata:
  encoder : Lavc57.96.101 libmp3lame
size=N/A time=00:00:13.14 bitrate=N/A speed=2.69x
video:0kB audio:347kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: unknown





> On Jul 5, 2017, at 2:23 39PM, sh


> alin  wrote:
> 
> Reuben Martin wrote
>> On Thursday, June 29, 2017 6:56:51 PM CDT shalin wrote:
>>> Cley Faye wrote
>>> 
 More to the point, as far as I know, ffmpeg will not do p

Re: [FFmpeg-user] about merging more than 1 videos

2017-07-06 Thread akash kulkarni
"media_type": "video", "key_frame": 0, "pkt_pts": 1902000, "pkt_pts_ti
me": "38.04", "pkt_dts": 1902000, "pkt_dts_time": "38.04",
"best_effort_
timestamp": 1902000, "best_effort_timestamp_time": "38.04",
"pkt_duration":
2000, "pkt_duration_time": "0.04", "pkt_pos": "117923788", "pkt_size":
"8841
7", "width": 1920, "height": 1080, "pix_fmt": "yuv420p",
"sample_aspect_ratio":
"1:1", "pict_type": "B", "coded_picture_number": 951,
"display_picture_number":
0, "interlaced_frame": 1, "top_field_first": 1, "repeat_pict": 0


how do i get this kind of info about video means which command should i use
with ffprobe

On Thu, Jul 6, 2017 at 2:08 PM, Cley Faye  wrote:

> 2017-07-06 10:27 GMT+02:00 akash kulkarni :
>
> > Hello there,
> > i am using the ffmpeg -copy command and merging multiple files from text
> > file
> > without re-encoding but its giving me jerk at the joint point of two
> files.
> > How could i vanish that jerk.
>
>
> ​This depends on your source material (codec, settings of each files), how
> they were made/cut, and on the exact command line you're using with ffmpeg.
> Without any info, it's hard to tell.
>
> For reference, I can stitch together multiple video without hiccups and
> without doing much more than put their name in a file, use concat, and set
> codec to copy.
> ___
> 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] progress output to unix domain socket

2017-07-06 Thread Anatoly
tasos  wrote:

> More specifically i get  
> Failed to open progress URL "/tmp/foo": No such device or
> address

Writing to unix socket works for me with url like this:
-progress "unix:/tmp/foo"
___
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] progress output to unix domain socket

2017-07-06 Thread Anatoly
don't mess socket(2) nc(1) and pipe(2) mkfifo(1)
socket(2) is a matter of networking staff, while pipe(2) is a matter of
ipc.

___
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] progress output to unix domain socket

2017-07-06 Thread Nicolas George
L'octidi 18 messidor, an CCXXV, Moritz Barsnick a écrit :
> Haha! Who needs operating systems when we have ... JavaScript! ;-)

Well, since you are being sarcastic:

> I meant like: mkfifo?

... I hope you will share the exact version of the operating system you
use where mkfifo can be used to create Unix domain sockets.

Regards,

-- 
  Nicolas George


signature.asc
Description: Digital signature
___
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] about merging more than 1 videos

2017-07-06 Thread Cley Faye
2017-07-06 10:27 GMT+02:00 akash kulkarni :

> Hello there,
> i am using the ffmpeg -copy command and merging multiple files from text
> file
> without re-encoding but its giving me jerk at the joint point of two files.
> How could i vanish that jerk.


​This depends on your source material (codec, settings of each files), how
they were made/cut, and on the exact command line you're using with ffmpeg.
Without any info, it's hard to tell.

For reference, I can stitch together multiple video without hiccups and
without doing much more than put their name in a file, use concat, and set
codec to copy.
___
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] about merging more than 1 videos

2017-07-06 Thread akash kulkarni
Hello there,
i am using the ffmpeg -copy command and merging multiple files from text
file
without re-encoding but its giving me jerk at the joint point of two files.
How could i vanish that jerk.
___
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".