Discussion:
ffmpeg scheint kein concat mehr zu machen
(zu alt für eine Antwort)
Andreas Tille
2016-12-18 11:20:01 UTC
Permalink
Hi,

ich habe früher immer mal Videos per ffmpeg

ffmpeg -i orig_video -ss startzeit -t dauer -vcodec copy cut1
...

geschnitten und dann wieder per


ffmpeg -f concat -i filelist -c copy cutted_video

zusammengeflickt, wobei

cat filelist
file cut1
file cut2
...

war. Seit neuestem bekomme ich nun:

[concat @ 0x5639d80a9960] Unsafe file name 'cutted_video'
/tmp/tmp.WN3B5pG08f: Operation not permitted

Ich habe gefunden, daß man da noch mit -safe etwas richten kann,
aber das hilf letztlich auch nicht, denn nun kommt:

[NULL @ 0x557b1f598bc0] Requested output format 'concat' is not a suitable output format
/tmp/tmp.ZM7og3bmeO: Invalid argument


Hat jemand eine Idee, wie man das nun wieder anstellen kann, per
Kommandozeile *ohne* umkodieren, Videos auf diese Weise schneiden kann?

Viele Grüße

Andreas.
--
http://fam-tille.de
Jan Kappler
2016-12-18 11:40:01 UTC
Permalink
Moin,
Post by Andreas Tille
Hi,
ich habe früher immer mal Videos per ffmpeg
ffmpeg -i orig_video -ss startzeit -t dauer -vcodec copy cut1
...
geschnitten und dann wieder per
ffmpeg -f concat -i filelist -c copy cutted_video
zusammengeflickt, wobei
cat filelist
file cut1
file cut2
...
/tmp/tmp.WN3B5pG08f: Operation not permitted
ohne ffmeg wirklich zu kennen, werfe ich mal die Vermutung in den Raum,
das vielleicht eine Dateiendung angegeben werden muss. "unsafe file
name" würde ich jedenfalls so deuten, das ffmpeg nicht genau weiß,
welchen Dateityp er erzeugen soll - vielleicht ist das eine neue
Sicherheitsfunktion?
--
Mit freundlichem Gruß
Jan Kappler
Andreas Tille
2016-12-18 13:20:01 UTC
Permalink
Post by Jan Kappler
Post by Andreas Tille
ffmpeg -i orig_video -ss startzeit -t dauer -vcodec copy cut1
...
geschnitten und dann wieder per
ffmpeg -f concat -i filelist -c copy cutted_video
zusammengeflickt, wobei
cat filelist
file cut1
file cut2
...
/tmp/tmp.WN3B5pG08f: Operation not permitted
ohne ffmeg wirklich zu kennen, werfe ich mal die Vermutung in den Raum,
das vielleicht eine Dateiendung angegeben werden muss. "unsafe file
name" würde ich jedenfalls so deuten, das ffmpeg nicht genau weiß,
welchen Dateityp er erzeugen soll - vielleicht ist das eine neue
Sicherheitsfunktion?
Also ich habe natürlich immer die Dateiendung des "Ausgangsmaterials"
verwendet (z.B.mpg) - genau das, was die ungeschnittene Datei vorher
hatte. Über das "Unsafe file name" war ich ja auch schon mittels -safe
Option hinaus, wollte es halt der Vollständigkeit halber erwähnt haben.

Viele Grüße

Andreas.
Michael Lange
2016-12-18 13:50:02 UTC
Permalink
Hallo,

On Sun, 18 Dec 2016 12:12:54 +0100
suitable output format /tmp/tmp.ZM7og3bmeO: Invalid argument
Hat jemand eine Idee, wie man das nun wieder anstellen kann, per
Kommandozeile *ohne* umkodieren, Videos auf diese Weise schneiden kann?
Nicht getestet, aber lt. man ffmpeg:

-f fmt (input/output)
Force input or output file format. The format is normally auto
detected for input files and guessed from the file extension for output
files, so this option is not needed in most cases.

Soll heissen: evtl. kannst du das -f concat einfach weglassen?

Gruss

Michael


.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.

But it's real. And if it's real it can be affected ... we may not be
able to break it, but, I'll bet you credits to Navy Beans we can put a
dent in it.
-- deSalle, "Catspaw", stardate 3018.2
Andreas Tille
2016-12-18 15:00:01 UTC
Permalink
Post by Michael Lange
-f fmt (input/output)
Force input or output file format. The format is normally auto
detected for input files and guessed from the file extension for output
files, so this option is not needed in most cases.
Soll heissen: evtl. kannst du das -f concat einfach weglassen?
Da scheint sich irgendwie das interface geändert zu haben. Das concat
existert laut manpage gar nicht mehr. Grrr, ich kriegs trotzdem nicht
hin. :-( Es muß von mir aus auch nicht ffmpeg sein - halt irgendwas an
der Kommandozeile, daß ohne umkodieren Videoschnipsel, die garantiert
das gleiche Format haben (waren ja vorher mal ein Video) zusammenheftet.

Viele Grüße

Andreas.
--
http://fam-tille.de
Jens Schüßler
2016-12-18 16:20:02 UTC
Permalink
Post by Andreas Tille
Post by Michael Lange
-f fmt (input/output)
Force input or output file format. The format is normally auto
detected for input files and guessed from the file extension for output
files, so this option is not needed in most cases.
Soll heissen: evtl. kannst du das -f concat einfach weglassen?
Da scheint sich irgendwie das interface geändert zu haben. Das concat
existert laut manpage gar nicht mehr. Grrr, ich kriegs trotzdem nicht
hin. :-( Es muß von mir aus auch nicht ffmpeg sein - halt irgendwas an
der Kommandozeile, daß ohne umkodieren Videoschnipsel, die garantiert
das gleiche Format haben (waren ja vorher mal ein Video) zusammenheftet.
Natürlich existiert das noch. ffmpeg kommt mit mehreren Manpages
man ffmpeg-formats

Dirk Griesbach
2016-12-18 15:50:01 UTC
Permalink
Post by Andreas Tille
ffmpeg -f concat -i filelist -c copy cutted_video
[…]
Stehen in filelist absolute oder relative Pfade? Die Meldung kommt bei
absoluten Pfaden.
Post by Andreas Tille
Ich habe gefunden, daß man da noch mit -safe etwas richten kann,
/tmp/tmp.ZM7og3bmeO: Invalid argument
Ich denk, dir fehlt ne Null. Mit -safe 0 kannst du die Überprüfung
abschalten, während -safe 1 standardmäßig gesetzt ist. Mit relativen
Pfaden in der filelist geht es auch ohne -safe 0.

Ansonsten funktioniert die Kommandozeile von dir auch mit dem
aktuellen ffmpeg(7:3.2.2-1) aus unstable.

Gruß
Dirk
Loading...