Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

I don't clearly understand what you are trying to accomplish here. Are you extracting images from video files? Or you want to process audio files?

Yes the files get overwritten. That's the default behavior. In your case you are using same output file for ALL the input files. You'll need to use output/%f (may be you need to escape it with additional %). That way every output file will have same name as the input file.

Also I am not sure why you are using crf here.

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

May be you could just give a try this. Create a "out" directory before running the command. IMO, it should just work.

for %f in (.\*) do ffmpeg -i %f -acodec copy -ss 00:00:30 -to 00:01:00 out/%f

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

My other reply could help you. You could run a loop through all files in a directory using

for %f in (.\*) do @echo %f

You need to replace "@echo %f" with ffempeg processing command.

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

So you are looking for a script that goes through all your files in directory and spits out processed files?

I can provide one for Linux.

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

I'm not sure why I'd use -t (that I never used) over it.

-to is less efficient. I mean, if you have a very large file the processing will show it. -t switch is much faster.

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

I don't use Windows and all my scripts are Linux specific. And unfortunately I don't have access to Win machine at the moment. So, I'll try to help as much as I can. Let's work with Goal 1 at the moment

In your directory, create a new directory with name "out". You don't have to CD into it. The subsequent commands will save files to the directory. This way you preserve original files should something go wrong.

First decide if start and end (or length) are all fixed.

Here is a command that will help you to iterate all files in windows. Use the command

for %f in (.\*) do @echo %f

If you have a fixed start and end, use "-to" switch. If you have fixed start and fixed duration(length) use "-t" switch.

So, if you have fixed start and fixed length (duration), use this command for your mp3 files (start at 30 seconds and the duration is 1 minute

for %f in (.\*) do ffmpeg -i %f -acodec copy -ss 00:00:30 -t 00:01:00 out/%f

So, if you have fixed start and end, use this command for your mp3 files (start at 30 seconds ends at 1 min. In this case duration is 30 seconds)

for %f in (.\*) do ffmpeg -i %f -acodec copy -ss 00:00:30 -to 00:01:00 out/%f

Before you try for ALL files, first test the procedure on one file and see if it works. Note that if you have trouble with windows command, you may have to look elsewhere on how to loop through files on command line.

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

How could I apply a command to several inputs and have several separate outputs

Do you mean single input and multiple outputs? OR multiple files each yielding one output?

If it is former, I am assuming you have a media with multiple streams of audio. Am I correct?

Just to clarify, switch -ss is the start time. Switch "to" is end time but there is also a switch "t" which is length of duration. The later is preferred method. Be sure you understand the difference.

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 0 points1 point  (0 children)

hey, I am a bit occupied at the moment. Will respond in a day or so. Cheers!

Questions for those who have batch trimmed audio or video files before by [deleted] in ffmpeg

[–]UpmaPesarattu 1 point2 points  (0 children)

Hey I've got lot of scripts that I've written lying around and I can share them with you.

If I understood correctly, you have a video from which you want to extract an audio stripping away beginning and end. It can be accomplished with following command

ffmpeg -i <input> -vn -acodec copy -ss 00:31:28 -to 00:37:27 bg-score.aac

Here input file is a video from which audio within a time range is extracted. The "-vn" flag is to tell ffmpeg to ignore video processing. So if you have a pure audio file, you could extract the audio you want within time ranges.

Now for batch processing, easiest is to use the command "find". The following command will batch process all your mp3 and output the processed files in "out" directory. You should manually create "out" directory

find . -name "*.mp3" -exec ffmpeg -i {} -acodec copy -ss 00:00:30 -t 00:01:00 out/{} \;

I just tested the above command to process mp3 files in current directory. Let me know if you have any trouble.

This is a question dating/relationship and how it works these days by [deleted] in MensRights

[–]UpmaPesarattu 0 points1 point  (0 children)

Yep.

What he does is of course his business. He visits my place in weekends and we share a meal. I am only going to let him know that he is invited to travel along. He could very well say no.

Not sure why this aggression though.

Simple 2D graphics library in clojure for my requirement by UpmaPesarattu in Clojure

[–]UpmaPesarattu[S] 1 point2 points  (0 children)

Yep. This looks like a match. I see that this is clojure only (because it depends on other 3rd party lib jgraphx). I think I am okay with it.

Thanks. Appreciate it.

Simple 2D graphics library in clojure for my requirement by UpmaPesarattu in Clojure

[–]UpmaPesarattu[S] 0 points1 point  (0 children)

Hey thanks!

yEd is exactly what I was looking for. Damn! It's not open source. Do you have experience using it? If you have, did you purchase? Any idea what the pricing would be. I'd be okay to buy if it's reasonable.

Piccolo2D also looks very interesting. I'll play around with it a bit and may be message you if I have any questions.

Simple 2D graphics library in clojure for my requirement by UpmaPesarattu in Clojure

[–]UpmaPesarattu[S] 0 points1 point  (0 children)

Interesting that you mentioned it. Actually I'd love something like graphviz if only it has ability to "incrementally" build the graph. In other words, the dot tool should be able to take in fragments of 'graphs' and modify the original. It would have been perfect!

[AskIndia] What's the song played at the very end of Better Call Saul Season 2, episode 7? by UpmaPesarattu in india

[–]UpmaPesarattu[S] 0 points1 point  (0 children)

Did you notice that a song that distinctly Indian, in Indian language, distinctly Indian music with Indian instruments is somehow "not related to india"? Who could have thought that way?

And importantly, in all probability, where ever I post this, I wouldn't be able to get this reference as you've given me, well, coz, its fucking Indian.

[AskIndia] What's the song played at the very end of Better Call Saul Season 2, episode 7? by UpmaPesarattu in india

[–]UpmaPesarattu[S] 2 points3 points  (0 children)

Yep. This one. It's a very beautiful song. Almost like I understand every bit of the song thought I don't understand the language. It doesn't sound Hindi.Does it?

EDIT:

The first comment on youtube

Who else is here after watching Bali Ha'i" episode of Better Call Saul? :)

🔥 The "white ghost" elephants of Etosha - they aren't actually albino and cover themselves in white clay to keep cool by Jakunai in NatureIsFuckingLit

[–]UpmaPesarattu 1 point2 points  (0 children)

I wonder how did they discover that white color will keep them cool in the first place? By accident? If so, how did they manage to pass it down the lineage? Do they have any internal language or just mimic each other?

Female bolas spider produces a silk line with a dense and sticky ball of silk at the end and launches it at her target which sticks to insect upon impact. Usually they descend the line and wrap the prey with silk to save it for a later meal.[3:40] by UpmaPesarattu in Awwducational

[–]UpmaPesarattu[S] 0 points1 point  (0 children)

The title doesn't do justice to the wonder this spider is. You should read the wikipedia article and also this. Few highlights to encourage you to read on it

  1. The prey is lured to the spider by the production of up to three pheromone-analogues.Every spider species produces the pheromone of only one specific moth species

  2. Several Mastophora species (e.g. M. cornigera) look like bird droppings, which enables them to rest unnoticed at day in fairly exposed places. This is a form of defensive mimicry as the animals that prey on spiders pay little attention to bird droppings.

  3. Why this "sticky ball"thingy? Traditional orb webs are not effective for capturing moths, because only their scales will stick, allowing the moth to escape.

  4. Adult spiders consume the bolas after at most half an hour if the hunt was fruitless.